2011-10-07 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / ChangeLog
blob7658511a533651677a09b15c764643aa9bd248f0
1 2011-10-07  Tom de Vries  <tom@codesourcery.com>
3         PR middle-end/50527
4         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
5         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
6         * tree-ssa-ccp.c (evaluate_stmt): Set align for
7         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
8         * ipa-pure-const.c (special_builtin_state): Handle
9         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
10         * function.c (gimplify_parameters): Lower vla to
11         * gimplify.c (gimplify_vla_decl): Same.
12         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
13         * tree-mudflap.c (mf_xform_statements): Same.
14         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
15         * varasm.c (incorporeal_function_p): Same.
16         * tree-object-size.c (alloc_object_size): Same.
17         * gimple.c (gimple_build_call_from_tree): Same.
19 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
21         * function.c (frame_required_for_rtx): Remove function.
22         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
23         changed.  Compute a set of mentioned registers and compare against
24         the new arg rather than calling frame_required_for_rtx.
25         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
26         reg set.  Convert the unconverted_simple_returns mechanism to store
27         jump insns rather than their basic blocks.  Also check the
28         orig_entry_edge destination for new blocks.
30 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
32         PR tree-optimization/50650
33         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
34         call vect_is_simple_cond here, instead fail if cond_expr isn't
35         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
36         for cond_expr's first operand.
37         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
38         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
40 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42         * config/s390/s390.md (DWH, dwh): New mode macros.
43         ("umulsidi3"): Extend to support "umulditi3" as well.
45 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
46             H.J. Lu  <hongjiu.lu@intel.com>
48         PR target/50603
49         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
50         integer PLUS RTX to a register to improve address combine.
52 2011-10-06  Richard Henderson  <rth@redhat.com>
54         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
55         parameter; use it to decide whether to merge two notes.
56         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
57         for the deallocation case as well.
59 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
61         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
62         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
63         * doc/tm.texi: Regenerate.
64         * target.def (output_addr_const_extra): Use
65         hook_bool_FILEptr_rtx_false.
66         * targhooks.c (default_asm_output_addr_const_extra): Remove.
67         * targhooks.h (default_asm_output_addr_const_extra): Remove.
68         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
69         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
71 2011-10-06  David S. Miller  <davem@davemloft.net>
73         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
74         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
75         SI mode 64-bit code gen case explicitly zero-extend and truncate.
76         (*popcount<mode>_sp64): Split up into...
77         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
78         SImode case use truncate.
79         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
80         subtract so the compiler can optimize it.
81         (SIDI): Remove unused mode iterator.
83 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
85         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
86         on the orig_entry_edge. Don't account for it in prologue_clobbered.
88 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
90         PR tree-optimization/50596
91         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
92         (NUM_PATTERNS): Change to 6.
93         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
94         function.
95         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
96         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
97         if it already has one, and don't set STMT_VINFO_VECTYPE in it
98         if it is already set.
99         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
100         COND_EXPR in pattern stmts.
101         (vect_is_simple_cond): No longer static.
103 2001-10-06  Richard Henderson  <rth@redhat.com>
105         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
106         * config/i386/sse.md (sseshuffint): Remove.
107         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
108         (VSHUFFLE_AVX2): New mode iterator.
109         (vshuffle<mode>): Use it.
110         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
112         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
113         for vector_all_ones_operand.
114         (ix86_expand_int_vcond): Distinguish between comparison mode
115         and data mode.  Allow them to differ.
116         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
118 2001-10-06  Richard Henderson  <rth@redhat.com>
120         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
121         mask operand.  Tidy the code.
123 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
125         * tree-vect-patterns.c (vect_pattern_recog_1): Use
126         vect_recog_func_ptr typedef for the first argument.
127         (vect_pattern_recog): Rename vect_recog_func_ptr variable
128         to vect_recog_func, use vect_recog_func_ptr typedef for it.
130         PR tree-optimization/49279
131         * tree-ssa-structalias.c (find_func_aliases): Don't handle
132         CAST_RESTRICT.
133         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
134         restrict propagation.
135         * tree-ssa.c (useless_type_conversion_p): Don't return false
136         if TYPE_RESTRICT differs.
138 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
140         * function.c (thread_prologue_and_epilogue_insns): Build a vector
141         of unconverted simple return blocks rather than trying to
142         recompute them later based on bb_flags bitmap tests.
144 2011-10-06  Michael Matz  <matz@suse.de>
146         * tree-flow.h (get_var_ann): Don't declare.
147         * tree-flow-inline.h (get_var_ann): Remove.
148         (set_is_used): Use var_ann, not get_var_ann.
149         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
150         * tree-profile.c (gimple_gen_edge_profiler): Call
151         find_referenced_var_in.
152         (gimple_gen_interval_profiler): Ditto.
153         (gimple_gen_pow2_profiler): Ditto.
154         (gimple_gen_one_value_profiler): Ditto.
155         (gimple_gen_average_profiler): Ditto.
156         (gimple_gen_ior_profiler): Ditto.
157         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
158         (gimple_gen_ic_func_profiler): Call add_referenced_var.
159         * tree-mudflap.c (execute_mudflap_function_ops): Call
160         add_referenced_var.
162 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
164         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
165         don't set SSA_NAME_DEF_STMT that has been already set by
166         gimple_build_assign_with_ops.
167         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
168         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
169         Likewise.
171         * tree.h (avoid_folding_inline_builtin): New prototype.
172         * builtins.c (avoid_folding_inline_builtin): No longer static.
173         * gimple-fold.c (gimple_fold_builtin): Give up if
174         avoid_folding_inline_builtin returns true.
176 2011-10-06  Richard Guenther  <rguenther@suse.de>
178         * tree-vect-generic.c (vector_element): Look at previous
179         generated results.
181 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
183         PR target/39950
184         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
185         __powerpc__, __PPC__, __unix__.
187 2011-10-06  Michael Matz  <matz@suse.de>
189         * i386/i386.opt (recip_mask, recip_mask_explicit,
190         x_recip_mask_explicit): New variables and cl_target member.
191         (mrecip=): New option.
192         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
193         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
194         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
195         TARGET_RECIP_VEC_SQRT): New tests.
196         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
197         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
198         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
199         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
200         * i386/i386.c (ix86_option_override_internal): Set recip_mask
201         for -mrecip and -mrecip=options.
202         (ix86_function_specific_save): Save recip_mask_explicit.
203         (ix86_function_specific_restore): Restore recip_mask_explicit.
205         * doc/invoke.texi (ix86 Options): Document the new option.
207 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
209         PR target/49049
210         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
212 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
214         PR target/50305
215         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
216         output of a previous pass through legitimize_reload_address.
217         Do not attempt to optimize addresses if the base register is
218         equivalent to a constant.
220 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
222         * function.c (thread_prologue_and_epilogue_insns): Mark
223         last_bb_active as possibly unused.  It is unused for targets which
224         do neither have "return" nor "simple_return" expanders.
226 2011-10-06  Richard Guenther  <rguenther@suse.de>
228         * fold-const.c (fold_ternary_loc): Also fold non-constant
229         vector CONSTRUCTORs.  Make more efficient.
230         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
231         (cprop_into_stmt): Don't propagate into virtual operands.
232         (optimize_stmt): Really dump original statement.
234 2011-10-06  Nick Clifton  <nickc@redhat.com>
236         * config/rx/rx.md (smin3): Revert previous delta.
238 2011-10-06  Richard Guenther  <rguenther@suse.de>
240         PR tree-optimization/38884
241         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
242         reads from aggregate SSA names.
244 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
246         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
247         argument, truncate it at the beginning instead of allocating there
248         and freeing at the end.
249         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
250         pass its address to vect_pattern_recog_1.
252 2011-10-05  David S. Miller  <davem@davemloft.net>
254         * config/sparc/sparc.opt (POPC): New option.
255         * doc/invoke.texi: Document it.
256         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
257         default on Niagara-2 and later.
258         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
259         * config/sparc/sparc.md (SIDI): New mode iterator.
260         (ffsdi2): Delete commented out pattern and comments.
261         (popcount<mode>2, clz<mode>2): New expanders.
262         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
263         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
265 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
267         PR middle-end/50607
268         * c-tree.h (c_expr_t): New typedef for struct c_expr.
269         (C_EXPR_APPEND): New macro.
270         * c-parser.c (c_parser_get_builtin_args): Preserve
271         original_tree_code of c_expr structure.
272         (c_parser_postfix_expression): Adjust to the new function.
274 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
276         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
277         if profiling after the prologue.
279 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
281         PR tree-optimization/50613
282         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
283         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
284         and if it is neither that not SSA_NAME, give up.
286 2011-10-05  Richard Henderson  <rth@redhat.com>
288         * tree-vect-generic.c (vector_element): Never fail.  Use
289         build_zero_cst.  Tidy up type references.
290         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
291         code duplication.  Do update_stmt here ...
292         (expand_vector_operations_1): ... not here.
294         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
295         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
296         duplication.  Handle V2DI without SSE4.1.
297         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
298         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
300 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
302         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
303         of "found".  Simplify return value calculation.
304         (distance_agu_use): Ditto.
306 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
308         PR bootstrap/50621
309         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
310         if the function was not shrink-wrapped.
311         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
312         to an insn.
313         * function.c (thread_prologue_and_epilogue_insns): Make sure the
314         shrink_wrapped flag is set even if there is no dump file.
316 2011-10-05  DJ Delorie  <dj@redhat.com>
317             Nick Clifton  <nickc@redhat.com>
319         * config/rx/rx.opt (mpid): Define.
320         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
321         (MULTILIB_DIRNAMES): Add pid.
322         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
323         (rx_num_interrupt_regs): New variable.
324         (rx_gp_base_regnum): New function.  Returns the number of the
325         small data area register.
326         (rx_pid_base_regnum): New function.  Returns the number of the pid
327         base register.
328         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
329         (rx_pid_data_operand): New function.  Returns whether an object is
330         in the position independent data area.
331         (rx_legitimize_address): New function.  Puts undecided PID
332         objects in the PID data area.
333         (rx_is_legitimate_address): Add support for PID operands.
334         (rx_print_operand_address): Likewise.
335         (rx_print_operand): Likewise.
336         (rx_maybe_pidify_operand): New function.  Determine if an operand
337         is suitable for PID addressing.
338         (rx_gen_move_template): Add PID support.
339         (rx_conditional_register_usage): Likewise.
340         (rx_option_override): Initialise rx_num_interrupt_regs.
341         (rx_is_legitimate_constant): Add support for PID constants.
342         (TARGET_LEGITIMIZE_ADDRESS): Define.
343         * config/rx/constraints.md (Rpid): Define.
344         (Rpda): Define.
345         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
346         (tablejump): Add PID support.
347         (mov<>): Likewise.
348         (mov<>_internal): Likewise.
349         (addsi3): Convert to an expander.  Add PID support.
350         (pid_addr): New pattern.
351         * config/rx/rx.h (CPP_SPEC): Define.
352         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
353         (CASE_VECTOR_PC_RELATIVE): Define.
354         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
355         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
356         * doc/invoke.texi (RX Options): Document -mpid command line option.
358 2011-10-05  Richard Guenther  <rguenther@suse.de>
360         PR tree-optimization/38885
361         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
362         from constants.
364 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
366         * doc/invoke.texi (-fshrink-wrap): Document.
367         * opts.c (default_options_table): Add it.
368         * common.opt (fshrink-wrap): Add.
369         * function.c (emit_return_into_block): Remove useless declaration.
370         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
371         requires_stack_frame_p, gen_return_pattern): New static functions.
372         (emit_return_into_block): New arg simple_p.  All callers changed.
373         Use gen_return_pattern.
374         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
375         * config/i386/i386.md (return): Expand into a simple_return.
376         (simple_return): New expander):
377         (simple_return_internal, simple_return_internal_long,
378         simple_return_pop_internal_long, simple_return_indirect_internal):
379         Renamed from return_internal, return_internal_long,
380         return_pop_internal_long and return_indirect_internal; changed to use
381         simple_return.
382         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
383         simple returns.
384         (ix86_pad_returns): Likewise.
385         * function.h (struct rtl_data): Add member shrink_wrapped.
386         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
387         are not jumps or sibcalls can't be compared.
389 2011-10-05  Richard Guenther  <rguenther@suse.de>
391         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
392         vector type.
393         (simplify_unary_expression): Handle BIT_FIELD_REFs.
394         (try_to_simplify): Handle BIT_FIELD_REFs.
396 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
398         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
399         * config/avr/avr.c (avr_out_addto_sp): New function.
400         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
401         * config/avr/avr.md (adjust_len): Add "addto_sp".
402         (*movhi_sp): Remove insn.
403         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
405 2011-10-05  Richard Guenther  <rguenther@suse.de>
407         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
408         with an embedded expression valueize and fold that as well.
409         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
410         results from gimple_fold_stmt_to_constant_1.
412 2011-10-05  Nick Clifton  <nickc@redhat.com>
414         * config/rx/rx.md (tablejump): Add missing label.
415         (adddi3_internal): Mark operand 0 as early-clobbered.
416         (smaxsi3): Revert previous delta.
417         (adc_internal): Fix whitespace in generated asm.
418         (adc_flags): Likewise.
420 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
422         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
423         with the new widening_optab_handler.
425 2011-10-05  Richard Guenther  <rguenther@suse.de>
427         PR tree-optimization/50609
428         * gimple-fold.c (fold_array_ctor_reference): Also handle
429         vector typed constructors.
430         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
431         for vector typed constructors.
433 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
435         * config/i386/i386.c (ix86_emit_binop): New static function.
436         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
437         instructions.
438         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
440 2011-10-04  David S. Miller  <davem@davemloft.net>
442         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
443         UNSPEC_XMUL): New unspecs.
444         (muldi3_v8plus): Use output_v8plus_mult.
445         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
446         New VIS 3.0 combiner patterns.
447         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
448         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
449         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
450         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
451         builtins patterns.
452         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
453         (output_v8plus_mult): New function.
454         * config/sparc/sparc-protos.h: Declare it.
455         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
456         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
457         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
458         * doc/extend.texi: Document new builtins.
460 2011-10-04  Richard Henderson  <rth@redhat.com>
462         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
463         Avoid save_expr unless two_arguments.
465 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
467         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
468         * config/i386/mingw32.h (CPP_SPEC): Likewise.
470 2011-10-04  David S. Miller  <davem@davemloft.net>
472         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
473         under Linux.
475 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
477         PR tree-optimization/50604
478         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
479         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
480         last argument to memcpy has size_type_node type instead of ssizetype.
481         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
482         instead of TREE_TYPE (len) as type for newlen.
484         PR tree-optimization/50522
485         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
486         TYPE_RESTRICT.
487         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
488         unconditionally.
490         * fold-const.c (fold_unary_loc): Don't optimize
491         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
492         casting the inner pointer if it isn't TYPE_RESTRICT.
493         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
494         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
496 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
498         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
500 2011-10-04  Jan Hubicka  <jh@suse.cz>
502         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
503         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
504         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
505         * lto-cgraph.c (order_base): New static var.
506         (lto_output_node): Stream in order.
507         (lto_output_varpool_node): Stream out order.
508         (input_node): Stream in order.
509         (input_varpool_node): Stream out order.
510         (input_cgraph_1): Initialize order base; update call of
511         lto_input_toplevel_asms.
513 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
515         PR target/50566
516         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
517         prototype.
518         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
519         from here...
520         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
521         function.  Log if avr_log.legitimize_reload_address.
523 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
525         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
527 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
529         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
530         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
532 2011-10-03  David S. Miller  <davem@davemloft.net>
534         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
535         GSR_REG an input operand to UNSPEC instead of a parallel USE.
536         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
537         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
538         Reference GSR_REG in DI mode, simplify convoluted expressions by using
539         zero_extract.
540         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
542 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
544         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
546 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
547             Ian Lance Taylor  <iant@google.com>
549         * godump.c (go_output_typedef): Support printing enum values that
550         don't fit in a signed HOST_WIDE_INT.
552 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
554         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
555         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
556         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
557         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
559 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
561         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
562         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
563         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
564         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
566 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
568         PR target/49967
569         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
570         (gcc_cv_ld_static_option): Ditto.
571         (gcc_cv_ld_dynamic_option): Ditto.
572         * configure: Regenerate.
574 2011-10-03  David S. Miller  <davem@davemloft.net>
576         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
577         and 'si' patterns which describe the GSR changes explicitly in the
578         RTL using zero_extract.
579         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
581         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
582         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
584 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
586         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
587         if given expression can be expanded by the target.
588         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
589         using target vector instructions.
590         * optabs.h: New optab vshuffle.
591         (expand_vec_shuffle_expr_p): New prototype.
592         (expand_vec_shuffle_expr): New prototype.
593         (vshuffle_optab): New optab.
594         * genopinit.c: Adjust to support vecshuffle.
595         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
596         * expr.c (expand_expr_real_2): Adjust.
597         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
598         recognizing the cases of two and three arguments.
599         (convert_arguments) (build_binary_op)
600         (scalar_to_vector) (build_array_ref): Spurious whitespace.
601         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
602         * tree.def: New tree code VEC_SHUFFLE_EXPR.
603         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
604         * tree-vect-generic.c (vector_element): New function. Returns an
605         element of the vector at the given position.
606         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
607         by the backend or expand an expression piecewise.
608         (expand_vector_operations_1): Adjusted.
609         (gate_expand_vector_operations_noop): New gate function.
610         * Makefile.in (tree-vect-generic.o): New include.
611         * gimple.c (get_gimple_rhs_num_ops): Adjust.
612         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
613         * passes.c: Move veclower down.
614         * tree-pretty-print.c (dump_generic_node): Recognize
615         VEC_SHUFFLE_EXPR as valid expression.
616         * c-parser.c (c_parser_get_builtin_args): Helper function for the
617         builtins with variable number of arguments.
618         (c_parser_postfix_expression): Use a new helper function for
619         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
620         * tree-ssa-operands: Adjust.
621         * c-family/c-common.c: New __builtin_shuffle keyword.
622         * c-family/c-common.h: New __builtin_shuffle keyword.
623         * gcc/doc/extend.texi: Adjust.
625         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
626         between the vector and the type of the mask when shuffling.
627         (vecshuffle<mode>): New expansion.
628         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
629         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
630         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
632 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
634         PR tree-optimization/50587
635         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
636         arg0 is not a SSA_NAME.
638 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
640         * ipa-inline-analysis.c (MAX_TIME): Update comment.
642 2011-10-02  Richard Henderson  <rth@redhat.com>
643             David S. Miller  <davem@davemloft.net>
645         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
646         conditional insn type setting, we always emit a shift.
647         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
648         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
649         * config/sparc/predicates.md (const_one_operand): Delete.
651 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
653         * invoke.texi (SPARC Options): Refer to GNU/Linux.
655 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
657         * config/mips/mips.c (mips_frame_barrier): New function.
658         (mips_expand_prologue): Call it after allocating stack space.
659         (mips_deallocate_stack): New function.
660         (mips_expand_epilogue): Call mips_frame_barrier and
661         mips_deallocate_stack.
663 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
665         PR target/49696
666         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
667         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
668         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
670 2011-10-02  Jan Hubicka  <jh@suse.cz>
672         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
674         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
675         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
676         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
677         functions are reachable when address is taken.
678         * tree-sra.c (modify_function): Free dominance info.
680 2011-10-02  Jan Hubicka  <jh@suse.cz>
682         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
684         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
685         (reset_inline_summary): New function.
686         (compute_inline_parameters, inline_node_removal_hook,
687         inline_edge_removal_hook): Use it.
688         (inline_free_summary): Reset holders correctly.
689         (inline_generate_summary): Free summary before computing it.
691 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
693         PR preprocessor/36819
694         * incpath.c (merge_include_chains): Call free_path on
695         heads[QUOTE] and tails[QUOTE].
697 2011-10-02  Jan Hubicka  <jh@suse.cz>
699         PR lto/47247
700         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
701         when resolution is already availbale from plugin.
702         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
703         * cgraph.c (ld_plugin_symbol_resolution): Add
704         prevailing_def_ironly_exp.
705         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
706         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
707         externally visible.
708         * varasm.c (resolution_to_local_definition_p): Add
709         LDPR_PREVAILING_DEF_IRONLY_EXP.
710         (resolution_local_p): Likewise.
712 2011-10-01  David S. Miller  <davem@davemloft.net>
714         * config/sparc/sparc.opt (VIS3): New option.
715         * doc/invoke.texi: Document it.
716         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
717         not capable of such instructions.
718         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
719         to 0x300 when TARGET_VIS3.
720         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
721         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
722         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
723         (V64N8, VASS): New mode iterators.
724         (vis3_shift, vis3_addsub_ss): New code iterators.
725         (vbits, vconstr): New mode attributes.
726         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
727         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
728         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
729         fmean16_vis, fpadd64_vis, fpsub64_vis,
730         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
731         VIS 3.0 instruction patterns.
732         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
733         default when targetting capable cpus.  TARGET_VIS3 implies
734         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
735         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
736         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
737         is ignored.
738         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
739         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
740         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
741         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
742         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
743         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
744         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
745         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
746         * doc/extend.texi: Document new VIS 3.0 builtins.
748 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
750         * ira-color.c (assign_hard_reg): Fix typo.
752 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
754         * doc/extend.texi: Add missing ','.
756 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
758         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
759         Enable -fmodulo-sched at -O2 and above.
760         * config/c6x/c6x.md (doloop_end): New expander.
761         (mvilc, sploop, spkernel, loop_end): New patterns.
762         (loop_end with memory destination splitter): New.
763         * config/c6x/c6x.c: Include "hw-doloop.h".
764         (enum unitreqs): New.
765         (unit_req_table): New typedef.
766         (unit_reqs): New static variable.
767         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
768         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
769         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
770         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
771         (struct c6x_sched_context): New member last_scheduled_iter0.
772         (init_sched_state): Initialize it.
773         (c6x_variable_issue): Update it.
774         (sploop_max_uid_iter0): New static variable.
775         (c6x_sched_reorder_1): Be careful about issuing sploop.
776         (c6x_reorg): Call c6x_hwlooops before the final schedule.
778 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
780         PR target/50566
781         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
782         * config/avr/avr.c (avr_address_cost): Use it.
783         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
784         (avr_log_vadump): Unknown %-codes finish printing.
786 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
788         PR inline-asm/50571
789         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
790         input constraints allow mem and not reg, pass true instead of
791         false as second argument to maybe_fold_reference.
793         PR tree-optimization/46309
794         * fold-const.c (make_range, merge_ranges): Remove prototypes.
795         (make_range_step): New function.
796         (make_range): Use it.
797         * tree.h (make_range_step): New prototypes.
798         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
799         * tree-ssa-reassoc.c: Include diagnostic-core.h.
800         (struct range_entry): New type.
801         (init_range_entry, range_entry_cmp, update_range_test,
802         optimize_range_tests): New functions.
803         (reassociate_bb): Call optimize_range_tests.
805 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
806             Richard Guenther  <rguenther@suse.de>
808         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
809         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
810         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
811         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
812         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
813         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
815 2011-09-30  Jan Beulich  <jbeulich@suse.com>
817         * lto-cgraph.c (output_cgraph): Remove processing of
818         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
819         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
820         lto_input_toplevel_asms() instead.
821         * lto-section-in.c (lto_section_name): Add "asm" entry.
822         * lto-streamer-in.c (lto_input_toplevel_asms): New.
823         * lto-streamer-out.c (lto_output_toplevel_asms): New.
824         * lto-streamer.h (LTO_minor_version): Bump.
825         (enum lto_section_type): Add LTO_section_asm.
826         (struct lto_asm_header): New.
827         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
828         * tree-streamer.h (streamer_write_string_cst): Declare.
829         * tree-streamer-out.c (write_string_cst): Rename to
830         streamer_write_string_cst and make global. Handle incoming string
831         being NULL.
832         (streamer_write_tree_header): Adjust call to renamed function.
834 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
836         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
837         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
838         modulo_last_stage): New static variables.
839         (set_modulo_params, discard_delay_pairs_above): New functions.
840         (struct delay_pair): New member stages.
841         (htab_i2_traverse, htab_i1_traverse): New static functions.
842         (record_delay_slot_pair): New arg stages.  All callers changed.
843         Record it.
844         (pair_delay): Take stages into account.
845         (add_delay_dependencies): Don't do so for stage pairs.
846         (struct sched_block_state): New member modulo_epilogue.
847         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
848         (unschedule_insns_until): Decrease modulo_insns_scheduled.
849         Set HARD_DEP without using or.
850         (resolve_dependencies): New static function.
851         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
852         If it is true, allow only insns with INSN_EXACT_TICK set.
853         (schedule_block): Return bool, always true for normal scheduling,
854         true or false depending on modulo scheduling success otherwise.
855         Add bookkeeping for modulo scheduling, and call resolve_dependencies
856         on everything left over after a modulo schedule.
857         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
858         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
859         declarations.
860         (set_modulo_params, discard_delay_pairs_above): Declare.
861         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
862         * doc/invoke.texi (--param): Document it.
864         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
865         New arg modulo_scheduling.  All callers changed.  Move note handling
866         code here from schedule_ebbs.
867         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
868         out of schedule_ebbs.
869         (schedule_ebbs): Call them.  Remove note handling code moved to
870         schedule_ebb.
871         * sched-int.h (schedule_ebb, schedule_ebbs_init,
872         schedule_ebbs_finish): Declare.
874 2011-09-30  Richard Guenther  <rguenther@suse.de>
876         PR middle-end/50574
877         * tree-cfg.c (verify_gimple_comparison): Compare component
878         mode sizes for vector comparisons.
880 2011-09-30  Revital Eres  <revital.eres@linaro.org>
882         * ddg.c (autoinc_var_is_used_p): New function.
883         (create_ddg_dep_from_intra_loop_link,
884         add_cross_iteration_register_deps): Call it.
885         * ddg.h (autoinc_var_is_used_p): Declare.
886         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
887         (sms_schedule): Handle instructions with REG_INC.
889 2011-09-30  Revital Eres  <revital.eres@linaro.org>
891         * modulo-sched.c (generate_reg_moves): Skip instructions that
892         do not set a register and verify no regmoves are created for
893         !single_set instructions.
895 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
897         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
898         insns.
900 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
902         PR target/50099
903         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
904         (qhs_zextenddi_op): New.
905         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
906         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
907         Distinguish between ARM and Thumb2 states.
909 2011-09-30  David S. Miller  <davem@davemloft.net>
911         * config/sparc/sparc.opt (VIS2): New option.
912         * doc/invoke.texi: Document it.
913         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
914         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
915         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
916         (define_attr type): New insn type 'edgen'.
917         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
918         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
919         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
920         patterns.
921         * niagara.md: Handle edgen.
922         * niagara2.md: Likewise.
923         * ultra1_2.md: Likewise.
924         * ultra3.md: Likewise.
925         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
926         to 0x200 when TARGET_VIS2.
927         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
928         default when targetting capable cpus.  TARGET_VIS2 implies
929         TARGET_VIS, clear and it when TARGET_FPU is disabled.
930         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
931         (sparc_expand_builtin): Fix predicate indexing when builtin returns
932         void.
933         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
934         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
935         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
936         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
937         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
938         * doc/extend.texi: Document new VIS 2.0 builtins.
940 2011-09-29  Nick Clifton  <nickc@redhat.com>
941             Bernd Schmidt  <bernds@codesourcery.com>
943         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
944         * config/frv/frvend.c: Likewise.
945         * config/frv/frv.c (frv_function_prologue): Move misplaced
946         CALL_ARG_LOCATION notes back to their proper locations.
948 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
950         PR target/50566
951         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
952         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
953         from avr_rtx_costs.
954         (avr_legitimate_address_p): Use avr_edump to print log information
955         filtered by avr_log.
956         (extra_constraint_Q): Ditto.
957         (avr_legitimize_address): Ditto.
958         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
959         (final_prescan_insn): Use avr_log.rtx_costs as filter.
961 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
963         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
964         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
965         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
966         NEON vector and structure modes to be tied.
968 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
970         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
971         forward declaration.
972         (remove_duplicate_close_phi): Detect and repair creation of
973         duplicate close-phis for a containing loop.
975 2011-09-27   Andi Kleen <ak@linux.intel.com>
977         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
978         /dev/urandom.  Add getpid call.
979         (compare_debug_dump_opt_spec_function): Drop getpid call.
981 2011-09-26   Andi Kleen <ak@linux.intel.com>
983         * toplev.c (init_local_tick): Try reading random seed
984         from /dev/urandom.
986 2011-09-26   Andi Kleen <ak@linux.intel.com>
988         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
989         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
990         Handle numerical random seed.
991         * lto-streamer.h (lto_file_decl_data): Change id to
992         unsigned HOST_WIDE_INT.
993         * toplev.c (random_seed): Add.
994         (init_random_seed): Change for numerical random seed.
995         (get_random_seed): Return as HOST_WIDE_INT.
996         (set_random_seed): Crc32 existing string.
997         * toplev.h (get_random_seed): Change to numercal return.
998         * tree.c (get_file_function_name): Remove CRC. Handle
999         numerical random seed.
1001 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1003         PR target/50566
1004         * config.gcc (extra_objs): Add avr-log.o for $target in:
1005         avr-*-rtems*, avr-*-*.
1006         * config/avr/t-avr (avr-log.o): New rule to compile...
1007         * config/avr/avr-log.c: ...this new file.
1008         * config/avr/avr.opt (mlog=): New option.
1009         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
1010         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
1011         (avr_log_set_avr_log): New prototype.
1012         (avr_log_t): New typedef.
1013         (avr_log): New declaration.
1014         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
1016 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1018         * expr.c (do_store_flag): Expand vector comparison by
1019         building an appropriate VEC_COND_EXPR.
1020         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
1021         (c_objc_common_truthvalue_conversion): Adjust.
1022         * tree-vect-generic.c (do_compare): Helper function.
1023         (expand_vector_comparison): Check if hardware supports
1024         vector comparison of the given type or expand vector piecewise.
1025         (expand_vector_operation): Treat comparison as binary
1026         operation of vector type.
1027         (expand_vector_operations_1): Adjust.
1029 2011-09-29  Richard Guenther  <rguenther@suse.de>
1031         * tree.c (build_opaque_vector_type): Make opaque vectors
1032         variant types of the corresponding non-opaque type.  Make
1033         sure to share opaque vector types properly.
1035 2011-09-29  David S. Miller  <davem@davemloft.net>
1037         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
1038         UNSPEC_ARRAY32): New unspec.
1039         (define_attr type): New type 'array'.
1040         (array{8,16,32}<P:mode>_vis): New patterns.
1041         * config/sparc/ultra1_2.md: Add reservations for 'array'.
1042         * config/sparc/ultra3.md: Likewise.
1043         * config/sparc/niagara.md: Likewise.
1044         * config/sparc/niagara2.md: Likewise.
1045         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
1046         array builtins.
1047         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
1048         __vis_array32): New.
1049         * doc/extend.texi: Document new VIS builtins.
1051         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
1052         (VIS pixel-compare insn): Just use <gcond:name>.
1054         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
1055         code iterator used, so just use <code>.  There are two mode iterators
1056         so explicitly use <GCM:gcm_name>.
1058 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
1060         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
1061         Darwin >= 9.
1063 2011-09-28  David S. Miller  <davem@davemloft.net>
1065         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
1066         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
1067         (UNSPEC_FCMP): New unspec.
1068         (gcond): New code iterator.
1069         (gcond_name): New code attr.
1070         (GCM): New mode iterator.
1071         (gcm_name): New mode attr.
1072         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
1074 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
1076         PR target/49486
1077         * config/sh/sh.md (negdi2): Move expansion into split to
1078         allow more combination options.  Add T_REG clobber.
1079         (abssi2): New expander.
1080         (*negdi2, *abssi2, *negabssi2): New insns.
1081         (cneg): Change from insn to insn_and_split.  Rename to
1082         negsi_cond.  Add alternative for non-SH4.
1084 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
1086         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1087         (neon_move_hi_quad_<mode>): Likewise.
1088         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1090 2011-09-28  Nick Clifton  <nickc@redhat.com>
1092         * config/rx/predicates.md (rx_minmax_operand): New predicate.
1093         Accepts immediates and a restricted subset of MEMs.
1094         * config/rx/rx.md (int_modes): New iterator.
1095         (smaxsi3, sminsi3): Delete and replace with...
1096         (smax<int_mode>3, smin<int_mode>3): New patterns.
1097         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1099 2011-09-28  Richard Guenther  <rguenther@suse.de>
1101         PR middle-end/50460
1102         * fold-const.c (try_move_mult_to_index): Handle &a.array the
1103         same as &a.array[0].
1105 2011-09-28  Kai Tietz  <ktietz@redhat.com>
1107         * configure.ac: Add test for new section attribute
1108         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1109         * config.in: Regenerated.
1110         * configure: Regenerated.
1111         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1112         new section flag "e" for excluded sections, if supported.
1113         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1115 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1117         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1118         throughout file.
1120 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1122         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1123         throughout file.
1125 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
1127         * output.h (SECTION_EXCLUDE): New macro.
1128         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1130 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1132         * fwprop.c (forward_propagate_and_simplify): After checking
1133         reg/subreg combinations, check whether the modes are the same.
1135 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1136             Richard Sandiford  <rdsandiford@googlemail.com>
1138         * config/mips/mips.c (mips_add_cfa_restore): New function.
1139         (mips16e_save_restore_reg): Use it.
1140         (mips_restore_reg): Likewise.  Split double FPRs for
1141         REG_CFA_RESTORE notes.
1143 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1145         PR middle-end/50386
1146         PR middle-end/50326
1147         * tree-sra.c (build_ref_for_model): Use the type of the field as
1148         the type of the COMPONENT_REF.
1150 2011-09-27  Jeff Law  <law@redhat.com>
1152         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
1153         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1154         (find_if_case_1): Use the probability of the THEN clause when
1155         determining if speculation is profitable.
1156         (find_if_case_2): Similarly for the ELSE clause.
1158 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1160         * common.opt: Add -foptimize-strlen option.
1161         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1162         (tree-sssa-strlen.o): Add dependencies.
1163         * opts.c (default_options_table): Enable -foptimize-strlen
1164         by default at -O2 if not -Os.
1165         * passes.c (init_optimization_passes): Add pass_strlen
1166         after pass_object_sizes.
1167         * timevar.def (TV_TREE_STRLEN): New timevar.
1168         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1169         * tree-pass.h (pass_strlen): Declare.
1170         * tree-ssa-strlen.c: New file.
1171         * c-decl.c (merge_decls): If compatible stpcpy prototype
1172         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1174 2011-09-27  Tom de Vries  <tom@codesourcery.com>
1176         PR middle-end/43864
1177         * tree-ssa-tail-merge.c: New file.
1178         (struct same_succ_def): Define.
1179         (same_succ, const_same_succ): New typedef.
1180         (struct bb_cluster_def): Define.
1181         (bb_cluster, const_bb_cluster): New typedef.
1182         (struct aux_bb_info): Define.
1183         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1184         (gvn_uses_equal): New function.
1185         (same_succ_print, same_succ_print_traverse, update_dep_bb)
1186         (stmt_update_dep_bb, local_def, same_succ_hash)
1187         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1188         (same_succ_reset): New function.
1189         (same_succ_htab, same_succ_edge_flags)
1190         (deleted_bbs, deleted_bb_preds): New var.
1191         (debug_same_succ): New function.
1192         (worklist): New var.
1193         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1194         (init_worklist, delete_worklist, delete_basic_block_same_succ)
1195         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1196         (print_cluster, debug_cluster, update_rep_bb)
1197         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1198         (all_clusters): New var.
1199         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1200         (merge_clusters, set_cluster): New function.
1201         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1202         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1203         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1204         (find_clusters_1, find_clusters): New function.
1205         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1206         (update_bbs): New var.
1207         (apply_clusters): New function.
1208         (update_debug_stmt, update_debug_stmts): New function.
1209         (tail_merge_optimize): New function.
1210         tree-pass.h (tail_merge_optimize): Declare.
1211         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1212         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1213         (tree-ssa-tail-merge.o): New rule.
1214         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1215         default at OPT_LEVELS_2_PLUS.
1216         * tree-ssa-sccvn.c (vn_valueize): Move to ...
1217         * tree-ssa-sccvn.h (vn_valueize): Here.
1218         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1219         * common.opt (ftree-tail-merge): New switch.
1220         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1221         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1222         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1223         (-ftree-tail-merge, max-tail-merge-comparisons)
1224         (max-tail-merge-iterations): New item.
1226 2011-09-27  Jan Hubicka  <jh@suse.cz>
1228         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1230 2011-09-27  Jan Hubicka  <jh@suse.cz>
1232         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1233         parameters passed by reference; handle loads from non-SSA scalars
1234         and update comments.
1236 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1238         PR rtl-optimization/50249
1239         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1240         instead of opnum and type.  All callers changed.  Remove useless
1241         declaration.
1242         Search forward for other reloads of the same type for the same operand
1243         using the same register; if any are found, return false.
1244         (reload_regs_reach_end_p): Same argument changes; all callers changed.
1246 2011-09-27  Andi Kleen  <ak@linux.intel.com>
1247             Jan Hubicka  <jh@suse.cz>
1249         * doc/invoke.texi (ffat-lto-objects): Document.
1250         * toplev.c (compile_file): Do not output assembly when doing slim lto;
1251         Output __gnu_slim_lto when doing slim lto.
1252         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1253         (cgraph_optimize): Return early when doing slim lto.
1254         * opts.c (finish_options): Complain about lack of linker plugin
1255         when doing slim lto.
1256         * common.opt (ffat-lto-objects): New.
1258 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1260         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1261         between signed and unsigned.
1263 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
1265         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1266         vectorization.
1267         (vectorizable_type_promotion): Likewise.
1268         (vect_analyze_stmt): Call vectorizable_type_demotion and
1269         vectorizable_type_promotion for basic blocks.
1270         (supportable_widening_operation): Don't assume loop vectorization.
1271         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1272         basic blocks.  Update vectorization factor for basic block
1273         vectorization.
1274         (vect_analyze_slp_instance): Allow multiple types for basic block
1275         vectorization.  Recheck unrolling factor after construction of SLP
1276         instance.
1278 2011-09-27  Richard Guenther  <rguenther@suse.de>
1280         * tree-object-size.c (compute_object_sizes): Fix dumping of
1281         folded statement.
1283 2011-09-27  Richard Guenther  <rguenther@suse.de>
1285         PR tree-optimization/50363
1286         * tree-ssa-pre.c (create_expression_by_pieces): Handle
1287         pointer conversions in POINTER_PLUS_EXPRs properly.
1289 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1291         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1292         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1293         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1294         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1295         that produce subreg moves.  Define using VQX iterators.
1297 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
1299         * config/avr/avr.md (ashrqi3): Split alternative "n"
1300         into its remaining parts C03, C04, C05, C06, C07 and describe
1301         impact in CC by attribute "cc" appropriately.
1302         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1303         by digging RTX.
1305 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1307         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1308         from 3 x MAX_MACHINE_MODE.
1309         (CONSTM1_RTX): Define.
1310         * emit-rtl.c (const_tiny_rtx): Change into array of
1311         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1312         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1313         CONSTM1_RTX.
1314         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1315         MODE_VECTOR_INT modes.
1316         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1317         Optimize if one operand is CONSTM1_RTX.
1318         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1319         into mask | x.
1321 2011-09-26  David S. Miller  <davem@davemloft.net>
1323         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1324         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1325         * config/sparc/visintrin.h: Update edge and pixel-compare
1326         intrinsics to return 'long' instead of 'int'.
1327         * doc/extend.texi: Update documentation to match.
1328         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1329         flat, allow any instruction.  Otherwise, when V9 allow parallels
1330         which consist only of sets to registers outside of %o0 to %o5.
1331         (sparc_vis_init_builtins): Update VIS builtin types for edge
1332         and pixel-compare.
1334         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1335         is enabled, mark %gsr as global.
1336         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1337         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1339         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1340         which will now define __VIS and __VIS__ when -mvis is enabled.
1341         * config/sparc/t-sparc: Likewise.
1342         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1343         and add t-sparc to tmake_file for all sparc targets.
1344         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1345         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1347         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1348         builtins for VIS vector addition and subtraction.
1349         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1350         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1351         __vis_fpsub32, __vis_fpsub32s): New.
1352         * doc/extend.texi: Document new VIS intrinsics.
1354 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1356         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1357         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1358         EQ/NE comparisons against +/-1 in the case of unused-after,
1359         non-ld-regs target.
1361 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
1363         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1364         gctx.into_ssa after push_gimplify_context.
1366         * gimple.c (gimple_build_call_valist): New function.
1367         * gimple.h (gimple_build_call_valist): New prototype.
1368         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1369         (update_gimple_call): Likewise.
1370         (update_call_from_tree): Use finish_update_gimple_call.
1371         * tree-ssa-propagate.h (update_gimple_call): New prototype.
1373 2011-09-26  Richard Guenther  <rguenther@suse.de>
1375         PR tree-optimization/50472
1376         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1377         volatile references.
1379 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
1381         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1382         * target.def: (addr_space_subset_p): Likewise.
1384 2011-09-26  Tom de Vries  <tom@codesourcery.com>
1386         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1387         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1388         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1389         of new var.
1391 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1393         PR target/50465
1394         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1395         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1396         output_reload_insisf.
1397         (adjust_len): Set default to "no".
1398         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
1399         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1400         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1401         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1402         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1403         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1404         *lshrsi3_const): Set attribute "adjust_len".
1405         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1406         (output_movsisf): Don't pass insn to output_reload_insisf.
1407         (adjust_insn_length): Handle new alternatives to adjust_len.
1408         Remove handling of ADJUST_LEN_YES.  Clean-up code.
1410 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
1412         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1413         may_trap_p to detect loads that may trap of fault.
1415 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1417         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1418         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1419         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
1420         prototype.
1421         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1422         * config/avr/avr.c: Rename output_reload_insisf_1 to
1423         output_reload_in_const.
1424         (avr_popcount_each_byte): Handle SFmode, too.
1425         (output_reload_in_const): Change so it can handle HI loads, too.
1426         Use avr_popcount_each_byte to work out if scratch register must be
1427         created on the fly.
1428         (output_reload_inhi): Rewrite using output_reload_in_const and...
1429         (output_movhi): ...use it to print constants' loads.
1430         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1432 2011-09-25  David S. Miller  <davem@davemloft.net>
1434         * config/sparc/constraints.md (C, P, Z): New constraints for
1435         const_doube, const_int, and const_vector "all ones" values.
1436         Make unused constraint letters comment match reality.
1437         * config/sparc/predicates.md (const_all_ones_operand,
1438         register_or_zero_or_all_ones_operand): New predicates.
1439         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1440         as well as zero constants when VIS.
1441         (sparc_legitimate_constant_p): Likewise.
1442         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1443         (movsf_insn): Likewise
1444         (movdi_insn_sp64): Add fone alternative.
1445         (movdf_insn_sp32_v9): Likewise.
1446         (movdf_insn_sp64): Likewise.
1448         * configure.ac: Add feature check to make sure the assembler
1449         supports the FMAF, HPC, and VIS 3.0 instructions found on
1450         Niagara-3 and later cpus.
1451         * configure: Rebuild.
1452         * config.in: Likewise.
1453         * config/sparc/sparc.opt: New option '-mfmaf'.
1454         * config/sparc/sparc.md: Add float fused multiply-add patterns.
1455         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1456         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1457         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1458         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1459         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1460         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
1461         disabled.
1462         (sparc_rtx_costs): Handle 'FMA'.
1463         * doc/invoke.texi: Document -mfmaf.
1465 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
1467         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1468         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1469         DECL_BY_REFERENCE parameters.
1471 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1473         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1474         if there is no outgoing edge.
1476         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1477         integral types.
1479 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1481         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1482         of vect_analyze_bb here.
1483         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1485 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1487         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1488         Allow not simple iv if analyzing basic block.
1489         (create_data_ref): Update call to dr_analyze_innermost.
1490         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1491         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1492         * tree-predcom.c (find_looparound_phi): Likewise.
1493         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1495 2011-09-24  David S. Miller  <davem@davemloft.net>
1497         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1498         (SPARC_GSR_REG): Define.
1499         (FIXED_REGISTERS): Mark GSR as fixed.
1500         (CALL_USED_REGISTERS): Mark GSR as call used.
1501         (HARD_REGNO_NREGS): GSR is always 1 register.
1502         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1503         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1504         (REGISTER_NAMES): Add "%gsr".
1505         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1506         (UNSPEC_WRGSR): New unspec.
1507         (GSR_REG): New constant.
1508         (type): Add new insn type 'gsr'.
1509         (fpack16_vis, fpackfix_vis, fpack32_vis,
1510         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1511         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1512         rdgsr_v8plus): New expanders and insns.
1513         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1514         using patterns which show that this is a plus in addition to a
1515         modification of GSR_REG, instead of an unspec.
1516         * config/sparc/ultra1_2.md: Handle 'gsr'.
1517         * config/sparc/ultra3.md: Likewise.
1518         * config/sparc/niagara.md: Likewise.
1519         * config/sparc/niagara2.md: Likewise.
1520         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1521         end of table.
1522         (sparc_option_override): Make -mvis imply -mv8plus.
1523         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1524         for %gsr.
1525         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1526         __builtin_vis_read_gsr.
1527         (sparc_expand_buildin): Handle builtins that take one argument and
1528         return void.
1529         (sparc_fold_builtin): Never fold writes to %gsr.
1530         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1531         * doc/extend.texi: Document new VIS intrinsics.
1533 2011-09-23  Jan Hubicka  <jh@suse.cz>
1535         * ipa-inline-transform.c (inline_call): Add comment.
1536         * ipa-inline.h (inline_param_summary): New structure and vector.
1537         (struct inline_edge_summary): Add param field.
1538         * ipa-inline-analysis.c (CHANGED): New constant.
1539         (add_clause): Handle CHANGED and NOT_CONSTANT.
1540         (predicate_probability): New function.
1541         (dump_condition): Dump CHANGED predicate.
1542         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1543         of unknown function wide invariant.
1544         (evaluate_conditions_for_edge): Handle change probabilities.
1545         (inline_edge_duplication_hook): Copy param summaries.
1546         (inline_edge_removal_hook): Free param summaries.
1547         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1548         sizes; dump param summaries.
1549         (will_be_nonconstant_predicate): Use CHANGED predicate.
1550         (record_modified_bb_info): New structure.
1551         (record_modified): New function.
1552         (param_change_prob): New function.
1553         (estimate_function_body_sizes): Compute param summaries.
1554         (estimate_edge_size_and_time): Add probability argument.
1555         (estimate_node_size_and_time): Add inline_param_summary argument;
1556         handle predicate probabilities.
1557         (remap_predicate): Fix formating.
1558         (remap_edge_change_prob): New function.
1559         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1560         (remap_edge_predicates): ... this one.
1561         (inline_merge_summary): Remap edge summaries; handle predicate
1562         probabilities; remove param summaries after we are done.
1563         (do_estimate_edge_time): Update.
1564         (do_estimate_edge_growth): Update.
1565         (read_inline_edge_summary): Read param info.
1566         (inline_read_summary): Fix formating.
1567         (write_inline_edge_summary): Write param summaries.
1569 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1571         * config/i386/i386.c (ix86_print_operand): Handle %~.
1572         (ix86_print_operand_punct_valid_p): Return true also for '~'.
1573         * config/i386/sse.md (i128): New mode_attr.
1574         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1575         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1576         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1577         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1578         patterns, use "<sseinsnmode>" for "mode" attribute.
1579         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1580         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1581         %~128 in the patterns, use "OI" for "mode" attribute.
1583 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1585         PR target/50447
1586         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1587         "tstsi", "compare".
1588         (*cmpqi_sign_extend): Use s8_operand.
1589         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1590         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1591         prototypes.
1592         (out_tsthi, out_tstsi): Remove prototypes.
1593         (avr_out_tsthi, avr_out_tstsi): New prototypes.
1594         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1595         (avr_asm_len): Negative length now sets *plen to -length.
1596         (compare_sign_p): Return bool instead of int.
1597         (compare_diff_p, compare_eq_p): Ditto and make static.
1598         (avr_out_tsthi): New function.
1599         (avr_out_tstsi): New function.
1600         (avr_out_compare): New function.
1601         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1602         ADJUST_LEN_COMPARE.
1604 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1606         PR target/50447
1607         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1608         (addsi3): Rewrite using QI scratch register.  Adjust text
1609         peepholes using plus:SI.
1610         (*addsi3_zero_extend.hi): New insn.
1611         (*subsi3_zero_extend.hi): New insn.
1612         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1613         (*subsi3_zero_extend): Ditto.
1614         (subsi3): Change predicate #2 to register_operand.
1615         * config/avr/avr-protos.h (avr_out_plus): New prototype.
1616         (avr_out_plus_1): New static function.
1617         (avr_out_plus): New function.
1618         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1620 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1622         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1623         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1625 2011-09-23  Ian Lance Taylor  <iant@google.com>
1627         * godump.c (go_define): Treat a single character in single quotes,
1628         or a string, as an operand.
1630 2011-09-23  Martin Jambor  <mjambor@suse.cz>
1632         * ipa-prop.h (jump_func_type): Updated comments.
1633         (ipa_known_type_data): New type.
1634         (ipa_jump_func): Use it to describe known type jump functions.
1635         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1636         reflect the new known type jump function contents.
1637         (compute_known_type_jump_func): Likewise.
1638         (combine_known_type_and_ancestor_jfs): Likewise.
1639         (try_make_edge_direct_virtual_call): Likewise.
1640         (ipa_write_jump_function): Likewise.
1641         (ipa_read_jump_function): Likewise.
1642         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1643         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1644         (propagate_accross_jump_function): Likewise.
1646 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1648         PR target/50446
1649         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1650         (rotlqi3_4): Turn insn into expander.
1651         (*rotlqi3): New insn.
1652         (rotlhi3, rotlsi3): Support rotate left/right by 1.
1653         (*rotlhi2.1, *rotlhi2.15): New insns.
1654         (*rotlsi2.1, *rotlsi2.31): New insns.
1655         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1657 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
1659         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1661 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1663         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1665 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1667         * reload.c (find_reloads): Set operand_mode to Pmode for address
1668         operands consisting of just a CONST_INT.
1670 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
1672         PR target/50482
1673         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1674         blendv, force op_true to register if it doesn't satisfy
1675         nonimmediate_operand predicate.
1677 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
1679         PR middle-end/50113
1680         PR middle-end/50061
1681         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1682         get the locate.where_pad value for register-only arguments.
1683         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1684         (arm_pad_reg_upward): Handle null types.
1686 2011-09-22  Jan Hubicka  <jh@suse.cz>
1688         * ipa-inline-analysis.c: Fix overly long lines.
1690 2011-09-22  Jan Hubicka  <jh@suse.cz>
1692         * ipa-inline-transform.c (inline_call): Always update jump functions
1693         after inlining.
1694         * ipa-inline.c (ipa_inline): Likewise; do not call
1695         ipa_create_all_structures_for_iinln.
1696         (ipa_inline): Always free jump functions.
1697         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1698         (remap_edge_predicates): Fix pasto.
1699         (inline_merge_summary): Remove nlined edge predicate; remove hack.
1700         (inline_analyze_function): Always initialize jump functions.
1701         (inline_generate_summary): Likewise.
1702         (inline_write_summary): Always write jump functions when ipa-cp
1703         is not doing that.
1704         (inline_read_summary): Always read jump functions when ipa-cp
1705         is not doing that.
1706         * ipa-prop.c (iinlining_processed_edges): Remove.
1707         (update_indirect_edges_after_inlining): Do not use
1708         iinlining_processed_edges; instead set param_index to -1.
1709         (propagate_info_to_inlined_callees): Only try to indirect inlining
1710         when asked to do so; update jump functions of indirect calls, too;
1711         remove jump functions of the inlined edge.
1712         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1713         (ipa_create_all_structures_for_iinln): Remove.
1714         (ipa_free_all_structures_after_iinln): Do not free
1715         iinlining_processed_edges.
1716         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1718 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
1720         * config/arm/predicates.md (expandable_comparison_operator): New
1721         predicate, extracted from...
1722         (arm_comparison_operator): ...here.
1723         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1724         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1725         (movdfcc): Use expandable_comparison_operator.
1727 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
1729         PR target/50447
1730         PR target/50465
1731         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1732         (avr_popcount_each_byte): New prototype.
1733         * config/avr/avr.c (avr_popcount): New static function.
1734         (avr_popcount_each_byte): New function.
1735         (avr_out_bitop): New function.
1736         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1737         avr_out_bitop.  Cleanup code.
1738         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1739         (Ca4, Co4, Cx4): New constraints.
1740         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1741         alternative.
1742         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1743         (andsi3, iorsi3, xorsi3): Ditto.
1744         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1746 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
1748         PR tree-optimization/50451
1749         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1750         constant operands in reduction.
1751         (vect_get_slp_defs): Don't create vector operand for NULL scalar
1752         operand.
1754 2011-09-22  David S. Miller  <davem@davemloft.net>
1756         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1757         fpack16, fpack32, fpackfix as const.
1759         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1760         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1761         constants.  Use them everywhere.
1763 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
1765         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1766         Added AND special case.  Adapted comments.
1767         (sh_rtx_costs): Added XOR and IOR case.
1769 2011-09-21  Jan Hubicka  <jh@suse.cz>
1771         * ipa-inline-analsis.c (compute_inline_parameters): Set
1772         cfun and current_function_decl.
1774 2011-09-21  Jan Hubicka  <jh@suse.cz>
1776         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1777         handled components in parameter of builtin_constant_p.
1778         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1780 2011-09-21  Jan Hubicka  <jh@suse.cz>
1782         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1783         * ipa-inline.h (estimate_edge_time): Fix pasto.
1784         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1786 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1788         * config/i386/i386.c (ix86_expand_sse_movcc): Use
1789         blendvps, blendvpd and pblendvb if possible.
1791 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
1793         PR target/50464
1794         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1795         operand 1 predicate to register_operand and operand 2 predicate
1796         to nonimmediate_operand.
1797         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1798         xop_pcmov, force op_true to register.  Also, force op_false to
1799         register if it doesn't satisfy nonimmediate_operand predicate.
1801 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1803         * config/i386/bmi2intrin.h (_mulx_u64): New.
1804         (_mulx_u32): Ditto.
1806 2011-09-21  Jan Hubicka  <jh@suse.cz>
1808         PR tree-optimization/50433
1809         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1810         Use get_base_address.
1812 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1814         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1815         nonimmediate_operand instead of register_operand predicate for operands
1816         1 and 2, force them into registers if expanding them as comparison.
1817         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
1818         V8HImode force into register just operand 1.
1820 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1822         PR target/45099
1823         * config/avr/avr.c (avr_function_arg_advance): Change error to
1824         warning if a fixed register is needed as function argument.
1826 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1828         PR target/50449
1829         PR target/50465
1830         * config/avr/avr.md (adjust_len): New insn attribute.
1831         (*reload_insi, *reload_insf): Use it.
1832         (*movsi, *movsf): Use new interface of output_movsisf.
1833         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1834         * config/avr/avr.c (output_movsisf): Ditto.
1835         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1836         lengths of insns *reload_insi, *reload_insf.
1837         (output_reload_insisf_1): New static function.
1838         (output_reload_insisf): Use it.
1840 2011-09-21  David S. Miller  <davem@davemloft.net>
1842         * config/sparc/sparc.c (def_builtin): Change from macro into function.
1843         (def_builtin_const): New.
1844         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1845         other than alignaddr and falignaddr.
1847         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1848         UNSPEC_FCMPEQ): New unspec codes.
1849         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1850         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1851         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1852         new pixel compare VIS patterns.
1853         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1854         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1855         __vis_fcmpeq16, __vis_fcmpeq32): New.
1856         * doc/extend.texi: Document new pixel compare VIS intrinsics.
1858 2011-09-21  Tom de Vries  <tom@codesourcery.com>
1860         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1862 2011-09-20  David S. Miller  <davem@davemloft.net>
1864         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1865         (aligneddrl<P:mode>_vis): New pattern.
1866         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1867         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1868         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1869         alignaddrl insn, and adjust edge operations for updated types.
1870         * config/sparc/visintrin.h: Likewise.
1871         * doc/extend.texi: Make typing in VIS documentation match reality.
1873 2011-09-20  Terry Guo  <terry.guo@arm.com>
1875         * config/arm/arm-arches.def: Add armv6s-m.
1876         * config/arm/arm-tables.opt: Regenerate.
1878 2011-09-20  Wei Guozhi  <carrot@google.com>
1880         PR rtl-optimization/49452
1881         * postreload.c (reload_combine): Invalidate use information when across
1882         volatile insn.
1884 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1886         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1887         Remove maintenance overhead.
1888         (haifa_sched_init, sched_finish): Update.
1890 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1892         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1893         to calculate unit, prefix_rep and prefix_data16 attributes.
1894         (*mov<mode>_internal): Ditto for unit attribute.
1895         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1896         (*movv2sf_internal): Ditto.
1897         * config/i386/sse.md (VI1248_256): Remove mode iterator.
1898         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1899         (*avx2_eq<mode>3): Ditto.
1900         (avx2_gt<mode>3): Ditto.
1902 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1904         * config/i386/i386.md (maxmin): New code iterator.
1905         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1906         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1907         code iterator.
1908         (*avx2_<maxmin:code><mode>3): Macroize isn from
1909         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1910         maxmin code iterator.
1911         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1912         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1913         <umaxmin:code>v16qi3.
1915 2011-09-19  Alan Modra  <amodra@gmail.com>
1916             Michael Meissner  <meissner@linux.vnet.ibm.com>
1918         PR target/50341
1919         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1920         split the load of the indirect function's TOC from the call to
1921         prevent the compiler from moving the load of the new TOC above
1922         code that references the current function's TOC.
1923         (call_indirect_aix<ptrsize>_internal): Ditto.
1924         (call_indirect_aix<ptrsize>_nor11): Ditto.
1925         (call_indirect_aix<ptrsize>_internal2): Ditto.
1926         (call_value_indirect_aix<ptrsize>): Ditto.
1927         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1928         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1929         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1931 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
1933         * config/i386/sse.md (*sse4_1_extractps): Change into
1934         define_insn_and_split, add =x 0 n and =x x n alternatives
1935         and split them after reload.
1937 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1939         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1941 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1943         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1945 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
1947         PR tree-optimization/50413
1948         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1949         a basic block if one of its data-refs can't be analyzed.
1951 2011-09-19  Paul Brook  <paul@codesourcery.com>
1953         * config/arm/predicates.md (shift_amount_operand): Check constant
1954         shift count is in range.
1955         (const_shift_operand): Remove.
1957 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1958             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1960         PR target/50091
1961         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1962         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1964 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1966         * config/i386/bmiintrin.h: Remove tmp.
1967         * config/i386/tbmintrin.h: Likewise.
1969 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1971         PR tree-optimization/50414
1972         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1973         MIN_EXPR.
1975 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1977         PR tree-optimization/50412
1978         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1979         acceses that require epilogue loop if vectorizing outer loop.
1981 2011-09-17  David S. Miller  <davem@davemloft.net>
1983         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1984         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1985         New unspecs.
1986         (define_attr type): New type 'edge'.
1987         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1988         edge32l_vis): New patterns.
1989         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1990         * config/sparc/ultra3.md: Likewise.
1991         * config/sparc/niagara.md: Likewise.
1992         * config/sparc/niagara2.md: Likewise.
1993         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1994         builtins for VIS edge instructions.
1995         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1996         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1997         intrinsics.
1998         (__v8qi, __v4qi): Make unsigned.
1999         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
2000         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
2001         __vis_fpack32): Fix types.
2002         * doc/extend.texi: Document new 'edge' VIS intrinsics.
2004         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
2005         divide costs.
2006         (niagara3_costs): New.
2007         (sparc_option_override): Use it.
2008         * gcc/config/sparc/niagara2.md: Adjust with more accurate
2009         Niagara-3 reservations.
2011 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
2013         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
2014         (sse2_avx, sseinsnmode): Add V2TI.
2015         (REDUC_SMINMAX_MODE): New mode iterator.
2016         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
2017         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
2018         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
2019         (sse2_lshrv1ti3): Rename to...
2020         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
2021         iterator.  Move before umaxmin expanders.
2022         * config/i386/i386.h (VALID_AVX256_REG_MODE,
2023         SSE_REG_MODE_P): Accept V2TImode.
2024         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
2025         V16HImode, V8SImode and V4DImode.
2027         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
2028         and V4DImode.
2029         (ix86_build_signbit_mask): Likewise.
2030         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
2031         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
2032         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
2033         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
2034         (<code><mode>3) ... this.
2035         (avx2_<code><mode>3 smaxmin expand): Rename to...
2036         (<code><mode>3) ... this.
2037         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
2038         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
2039         VI8_AVX2 mode iterator.
2040         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
2041         VI8_AVX2 mode iterator.
2042         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
2043         New expanders.
2045 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
2047         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
2048         throughout file.
2050 2011-09-16  David S. Miller  <davem@davemloft.net>
2052         * config/sparc/visintrin.h: New file.
2053         * config.gcc: Add it to extra_headers on sparc.
2055 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
2057         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
2058         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
2059         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
2060         reduc_smin_v4sf): Adjust callers.
2061         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
2062         New expanders.
2064         * config/i386/sse.md (vec_extract_hi_<mode>,
2065         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
2066         vextracti128 instead of vextractf128 for -mavx2 and
2067         integer vectors.  For V4DFmode fix up mode attribute.
2068         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
2069         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
2070         instead of V8SF mode attribute.
2071         (avx2_extracti128): Change into define_expand.
2072         * config/i386/i386.c (ix86_expand_vector_extract): Handle
2073         32-byte vector modes if TARGET_AVX.
2075 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2077         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
2078         (umulqi3_highpart, smulqi3_highpart): Ditto.
2079         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
2080         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
2081         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
2083 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2085         PR target/50358
2086         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2087         (*maddqi4, *maddqi4.const): New insns.
2088         (*msubqi4, *msubqi4.const): New insns.
2089         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2090         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
2091         HImode by 1 in the case of multiplying with a CONST_INT.
2092         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2094 2011-09-15   Jan Hubicka  <jh@suse.cz>
2096         PR lto/50430
2097         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2098         error_mark_node in the DECL_INITIAL of vtable.
2100 2011-09-15   Diego Novillo  <dnovillo@google.com>
2102         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2103         @SYSROOT_CFLAGS_FOR_TARGET@.
2104         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2105         * configure: Regenerate.
2106         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2107         Remove setting of GCC_UNDER_TEST.
2109 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2111         * config/i386/i386.c (output_fp_compare): Return %v prefixed
2112         instruction mnemonics for TARGET_AVX.
2114         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2115         "type" attribute calculation.
2116         (*movdf_internal): Ditto.
2117         (*movsf_internal): Ditto.
2119 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
2121         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2123 2011-09-15  Jason Merrill  <jason@redhat.com>
2125         PR c++/50361
2126         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2128 2011-09-15  Jan Hubicka  <jh@suse.cz>
2130         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2131         simplify obviously true clauses.
2132         (and_predicates, or_predicates): Add conditions parameter.
2133         (inline_duplication_hoook): Update.
2134         (mark_modified): New function.
2135         (unmodified_parm): New function.
2136         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2137         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2138         Use unmodified_parm.
2139         (estimate_function_body_sizes): Update.
2140         (remap_predicate): Update.
2142 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
2144         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2145         read-after-read dependencies in basic block SLP.
2147 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2149         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2150         throughout file.
2152 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2154         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2155         throughout file.
2157 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2159         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2160         throughout file.
2162 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2164         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2165         throughout file.
2166         * config/rs6000/constraints.md: Likewise.
2168 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2170         * config/microblaze/microblaze.md: Use match_test rather than
2171         eq/ne symbol_ref throughout file.
2173 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2175         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2176         throughout file.
2178 2011-09-14  Tom de Vries  <tom@codesourcery.com>
2180         PR middle-end/50251
2181         * explow.c (emit_stack_restore): Set crtl->need_drap if
2182         stack_restore is emitted.
2184 2011-09-14  Julian Brown  <julian@codesourcery.com>
2186         * config/arm/arm.c (arm_override_options): Add unaligned_access
2187         support.
2188         (arm_file_start): Emit attribute for unaligned access as appropriate.
2189         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2190         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2191         (insv, extzv): Add unaligned-access support.
2192         (extv): Change to expander. Likewise.
2193         (extzv_t1, extv_regsi): Add helpers.
2194         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2195         (unaligned_storesi, unaligned_storehi): New.
2196         (*extv_reg): New (previous extv implementation).
2197         * config/arm/arm.opt (munaligned_access): Add option.
2198         * config/arm/constraints.md (Uw): New constraint.
2199         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2200         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2201         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2202         volatile accesses when -fstrict-volatile-bitfields is in effect.
2203         (extract_bit_field_1): Likewise.
2205 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
2207         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2208         a scalar integer before applying integer-only optimisations to
2209         inner arithmetic.
2211 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2213         * config/mips/mips.c (mips_expand_epilogue): Generate a
2214         simple_return only if the return address is in r31.
2216 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2218         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2219         NULL for a jump that is a cc0 insn, pick the previous insn for
2220         move_before.
2222 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2224         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2225         throughout file.
2227 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2229         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2230         throughout file.
2232 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2234         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2235         symbol_ref throughout file.
2237 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2239         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2240         throughout file.
2242 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2244         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2245         throughout file.
2247 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2249         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2250         throughout file.
2251         * config/arm/neon.md: Likewise.
2252         * config/arm/vfp.md: Likewise.
2253         * config/arm/thumb2.md: Likewise.
2254         * config/arm/cortex-m4.md: Likewise.
2256 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2258         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2259         define_insn patterns for combine.
2261 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
2263         * reorg.c: Always define make_return_insns.
2265 2011-09-13  Jan Hubicka  <jh@suse.cz>
2267         PR other/49533
2268         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2270 2011-09-13  Jan Hubicka  <jh@suse.cz>
2272         PR other/49533
2273         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2275 2011-09-13  Paul Brook  <paul@codesourcery.com>
2277         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2278         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2279         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2280         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2281         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2282         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2283         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2284         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2285         enabling unwind tables.
2286         (c6x_debug_unwind_info): New function.
2287         (TARGET_ARM_EABI_UNWINDER): Define.
2288         (TARGET_DEBUG_UNWIND_INFO): Define.
2289         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2290         (TARGET_EXTRA_CFI_SECTION): Remove.
2291         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2292         * ginclude/unwind-arm-common.h: New file.
2294 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
2296         PR target/50358
2297         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2298         * config/avr/avr.md: (extend_s): New code attribute.
2299         (mul_r_d): New code attribute.
2300         (*maddqihi4, *umaddqihi4): New insns.
2301         (*msubqihi4, *umsubqihi4): New insns.
2302         (*usmaddqihi4, *sumaddqihi4): New insns.
2303         (*usmsubqihi4, *susubdqihi4): New insns.
2304         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2305         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2306         (*umsubqihi4.uconst.ashift): New insn-and-split.
2307         (*msubqihi4.sconst.ashift): New insn-and-split.
2308         (*sumaddqihi4.uconst): New insn-and-split.
2309         (*sumsubqihi4.uconst): New insn-and-split.
2310         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2311         PLUS:HI and MINUS:HI.
2313 2011-09-13  Revital Eres  <revital.eres@linaro.org>
2315         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2316         (optimize_sc): Adjust call to remove_node_from_ps.
2317         (sms_schedule): Add print info.
2319 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2321         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2322         flags specially.
2324 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2326         PR bootstrap/50010
2327         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2328         NOTE_INSN_CFI notes, with the exception of
2329         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2331 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2332             Richard Sandiford  <rdsandiford@googlemail.com>
2334         * config/mips/mips.c (mips_epilogue): New structure.
2335         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2336         restoring registers.
2337         (mips_epilogue_emit_cfa_restores): New function.
2338         (mips_epilogue_set_cfa): Likewise.
2339         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
2340         the current CFA register from the stack, redefine the CFA in terms
2341         of the stack pointer.
2342         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
2343         to the epilogue instructions.
2345 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
2347         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2348         argument.
2349         (mips16e_build_save_restore): Update accordingly.
2351 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2353         PR rtl-optimization/50212
2354         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2355         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2357         PR debug/50299
2358         * calls.c (load_register_parameters): Use use_reg_mode instead
2359         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2360         entry.
2361         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2362         for stack CALL_INSN_FUNCTION_USAGE uses.
2363         * expr.h (use_reg_mode): New prototype.
2364         (use_reg): Changed into inline around use_reg_mode.
2365         * expr.c (use_reg): Renamed to...
2366         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
2367         mode to that mode instead of VOIDmode.
2368         * var-tracking.c (prepare_call_arguments): Don't track parameters
2369         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2370         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
2371         EXPR_LIST mode.
2373 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
2375         PR target/43746
2376         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2377         (progmem_section): New Variable.
2378         (avr_asm_init_sections): Initialize it.
2379         (TARGET_ASM_SELECT_SECTION): Define to...
2380         (avr_asm_select_section): ... this new Function.
2381         (avr_replace_prefix): New Function.
2382         (avr_asm_function_rodata_section): Use it.
2383         (avr_insert_attributes): Don't add section attribute for PROGMEM.
2384         (avr_section_type_flags): Use avr_progmem_p instead of section
2385         name to detect if object is in PROGMEM.
2386         (avr_asm_named_section): Set section name prefix for objects in
2387         PROGMEM.
2389 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2391         PR bootstrap/50352
2392         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2393         sprintf format string.
2395 2011-09-12  Richard Guenther  <rguenther@suse.de>
2397         PR tree-optimization/50343
2398         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2399         that the reduction is over an SSA name before checking its definition.
2401 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2403         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2404         throughout file.
2406 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2408         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2409         throughout file.
2410         * config/mips/sb1.md: Likewise.
2411         * config/mips/predicates.md: Replace (match_test "!...")
2412         with (not (match_test "..."))
2413         * config/mips/constraints.md: Likewise.
2415 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
2417         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2418         * config/arm/arm-tables.opt: Regenerate.
2419         * config/arm/arm-tune.md: Regenerate.
2420         * config/arm/arm.c (arm_file_start): Output .arch directive when
2421         user passes -mcpu=generic-*.
2422         (arm_issue_rate): Add genericv7a support.
2423         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2424         (ASM_CPU_SPEC): New define.
2425         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2426         * config/arm/semi.h (ASM_SPEC): Likewise.
2427         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2428         and -mtune=generic-*.
2430 2011-09-09  Richard Guenther  <rguenther@suse.de>
2432         PR tree-optimization/50328
2433         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2434         constant or default-def operand.
2436 2011-09-09  Richard Guenther  <rguenther@suse.de>
2438         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2439         last statement.
2441 2011-09-09  Richard Guenther  <rguenther@suse.de>
2443         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2444         instead of a statement.
2445         * gimple-fold.c (fold_stmt_inplace): Likewise.
2446         * sese.c (graphite_copy_stmts_from_block): Adjust.
2447         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2448         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2449         fold_stmt.
2450         (forward_propagate_addr_into_variable_array_index): Likewise.
2451         (forward_propagate_addr_expr_1): adjust.
2452         (associate_plusminus): Likewise.
2453         (ssa_forward_propagate_and_combine): Likewise.
2454         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2455         (execute_cse_reciprocals): Likewise.
2456         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2458 2011-09-09  Nick Clifton  <nickc@redhat.com>
2460         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2461         Return a positive value to indicate that the bits at the
2462         bottom of the register should be cleared.
2464 2011-09-09  Richard Guenther  <rguenther@suse.de>
2466         * tree-ssa-operands.c (swap_tree_operands): Always adjust
2467         existing operand positions.
2469 2011-09-09  Richard Guenther  <rguenther@suse.de>
2471         PR middle-end/50333
2472         * tree-data-ref.c (split_constant_offset): Do not try to handle
2473         ternary ops.
2475 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
2477         PR tree-optimization/50318
2478         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2479         typo in use of mult_rhs1 and mult_rhs2.
2481 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
2483         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2484         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2486 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
2488         * config/arm/arm.md (push_multi): Emit predicates.
2489         (push_fp_multi): Likewise.
2490         * config/arm/arm.c (vfp_output_fstmd): Likewise.
2492 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2494         PR c++/33255 - Support -Wunused-local-typedefs warning
2495         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2496         (pushdecl): Use the new record_locally_defined_typedef.
2497         (store_parm_decls): Allocate cfun->language.
2498         (finish_function): Use the new maybe_warn_unused_local_typedefs,
2499         and free cfun->language.
2500         (c_push_function_context): Allocate cfun->language here only if needed.
2501         (c_pop_function_context): Likewise, mark cfun->language
2502         for collection only when it should be done.
2503         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2504         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2505         maybe_record_local_typedef_use.
2506         * doc/invoke.texi: Update documentation for
2507         -Wunused-local-typedefs.
2509 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
2511         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2512         (ix86_avoid_lea_for_add): Likewise.
2513         (ix86_avoid_lea_for_addr): Likewise.
2514         (ix86_split_lea_for_addr): Likewise.
2516         * config/i386/i386.c (LEA_MAX_STALL): New.
2517         (increase_distance): Likewise.
2518         (insn_defines_reg): Likewise.
2519         (insn_uses_reg_mem): Likewise.
2520         (distance_non_agu_define_in_bb): Likewise.
2521         (distance_agu_use_in_bb): Likewise.
2522         (ix86_lea_outperforms): Likewise.
2523         (ix86_ok_to_clobber_flags): Likewise.
2524         (ix86_avoid_lea_for_add): Likewise.
2525         (ix86_avoid_lea_for_addr): Likewise.
2526         (ix86_split_lea_for_addr): Likewise.
2527         (distance_non_agu_define): Search in pred BBs added.
2528         (distance_agu_use): Search in succ BBs added.
2529         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2530         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2531         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2533         * config/i386/i386.md: Split added to transform non destructive
2534         add into move and add.
2535         (lea_1): transformed into insn_and_split to avoid AGU stalls.
2536         (lea<mode>_2): Likewise.
2538 2011-09-08  Martin Jambor  <mjambor@suse.cz>
2540         PR tree-optimization/50287
2541         * ipa-split.c (split_function): Do not create SSA names for
2542         non-gimple-registers.
2544 2011-09-08  Richard Guenther  <rguenther@suse.de>
2546         PR tree-optimization/19831
2547         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2548         skip builtins with vdefs that do not really store something.
2549         (propagate_necessity): For calls to free that we can associate
2550         with an allocation function do not mark the freed pointer
2551         definition necessary.
2552         (eliminate_unnecessary_stmts): Remove a call to free if
2553         the associated call to an allocation function is not necessary.
2555 2011-09-08  Richard Guenther  <rguenther@suse.de>
2557         PR tree-optimization/19831
2558         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2559         allocation functions as necessary.
2561 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
2563         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2564         cut from ...
2565         (darwin_default_min_version): Amended to provide defaults
2566         for the cross directory case.
2567         (darwin_driver_init): call darwin_default_min_version unconditionally.
2568         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2569         * config/darwin9.h: Likewise.
2570         * config/darwin10.h: Likewise.
2571         * config/rs6000/darwin7.h: Likewise.
2573 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
2575         PR target/50310
2576         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2577         code early if TARGET_AVX.
2578         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2580 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2582         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2583         duplicates.
2585         PR target/50310
2586         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2587         "mode" attribute computation.
2589 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
2591         * regrename.c (struct du_head): Make nregs signed.
2592         (closed_chains): Remove.
2593         (create_new_chain): Return the new chain.
2594         (chain_from_id): New static function.
2595         (dump_def_use_chain): Change argument to be an int, indicating
2596         the first ID to print.  All callers changed.
2597         (merge_overlapping_regs): Use chain_from_id.  Assert that
2598         chains don't conflict with themselves.
2599         (rename_chains): Take no argument.  Iterate over id_to_chain
2600         rather to find chains to rename.  Clear tick before the main loop.
2601         (struct incoming_reg_info): New struct.
2602         (struct bb_rename_info): New struct.
2603         (init_rename_info, set_incoming_from_chain, merge_chains): New
2604         static functions.
2605         (regrename_analyze): New static function, broken out of
2606         regrename_optimize.  Record and make use of open chain information
2607         at basic block boundaries, and merge chains where possible.
2608         (scan_rtx_reg): Make this_nregs signed.  Don't update
2609         closed_chains.
2610         (build_def_use): Return a bool to indicate success.  All callers
2611         changed.  Don't initialize global data here.
2612         (regrename_optimize): Move most code out of here into
2613         regrename_analyze.
2614         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2615         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2616         static inline functions.
2617         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2619         * bb-reorder.c (insert_section_boundary_note): Don't check
2620         optimize_function_for_speed_p.
2621         (gate_handle_partition_blocks): Do it here instead.
2622         (gate_handle_reorder_blocks): Move preliminary checks here ...
2623         (rest_of_handle_reorder_blocks): ... from here.
2625 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2627         PR middle-end/50301
2628         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2629         function index bounds.
2630         (perhaps_add_new_callers): Likewise.
2632 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2634         PR tree-optimization/49911
2635         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2636         enumerations to the corresponding plain integer type.
2638 2011-09-07  Richard Guenther  <rguenther@suse.de>
2640         PR tree-optimization/50319
2641         * tree-if-conv.c (set_bb_predicate): Assert we only set
2642         canonical predicates.
2643         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
2644         around canonical predicates.
2645         (predicate_bbs): Do not re-gimplify already canonical
2646         predicates.  Properly unshare them though.
2647         (find_phi_replacement_condition): Simplify.
2649 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
2651         PR target/49030
2652         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2653         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2654         reusing the old code from get_arm_condition_code.  Return ARM_NV
2655         for invalid comparison codes.
2656         (get_arm_condition_code): Redefine in terms of
2657         maybe_get_arm_condition_code.
2658         * config/arm/predicates.md (arm_comparison_operator): Use
2659         maybe_get_arm_condition_code.
2661 2011-09-07  Richard Guenther  <rguenther@suse.de>
2663         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2664         Canonicalize negated predicates by swapping edges.
2665         (forward_propagate_into_cond): Likewise.
2667 2011-09-07  Richard Guenther  <rguenther@suse.de>
2669         PR tree-optimization/50213
2670         * tree-flow.h (simple_iv_increment_p): Declare.
2671         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
2672         POINTER_PLUS_EXPR.
2673         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2674         not propagate simple IV counter increments.
2676 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
2677             Iain Sandoe  <iains@gcc.gnu.org>
2679         * config/rs6000/rs6000.c (compute_save_world_info): Test
2680         cfun->has_nonlocal_label to determine if the out-of-line save
2681         world call may be used.
2683 2011-09-07  Nick Clifton  <nickc@redhat.com>
2685         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2686         label on the parallel part of the insn.
2688 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2690         PR debug/50191
2691         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2692         avoid_constant_pool_reference first instead of last.
2694 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2696         * doc/configfiles.texi (Configuration Files): Update documentation
2697         about tm_p.h and remove FIXME comment.
2699 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
2701         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2702         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2704 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
2706         * config/darwin10.h Remove duplicate LIB_SPEC.
2708 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
2710         PR middle-end/44382
2711         * target.def (reassociation_width): New hook.
2713         * doc/tm.texi.in (reassociation_width): Likewise.
2715         * doc/tm.texi (reassociation_width): Likewise.
2717         * doc/invoke.texi (tree-reassoc-width): New param documented.
2719         * hooks.h (hook_int_uint_mode_1): New default hook.
2721         * hooks.c (hook_int_uint_mode_1): Likewise.
2723         * config/i386/i386.h (ix86_tune_indices): Add
2724         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2726         (TARGET_REASSOC_INT_TO_PARALLEL): New.
2727         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2729         * config/i386/i386.c (initial_ix86_tune_features): Add
2730         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2732         (ix86_reassociation_width): New function.
2734         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2736         * tree-ssa-reassoc.c (get_required_cycles): New function.
2737         (get_reassociation_width): Likewise.
2738         (swap_ops_for_binary_stmt): Likewise.
2739         (rewrite_expr_tree_parallel): Likewise.
2741         (rewrite_expr_tree): Refactored.  Part of code moved into
2742         swap_ops_for_binary_stmt.
2744         (reassociate_bb): Now checks reassociation width to be used and
2745         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2747 2011-09-06  Richard Guenther  <rguenther@suse.de>
2749         PR tree-optimization/47025
2750         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2751         uses nothing.
2752         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2753         BUILT_IN_FREE.
2754         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2755         definitely points to.
2756         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2757         BUILT_IN_VA_START doesn't let its va_list argument escape.
2758         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2759         not make any previous stores necessary.
2761 2011-09-06  Martin Jambor  <mjambor@suse.cz>
2763         * ipa-inline.h (struct inline_summary): Move versionable flag...
2764         * cgraph.h (struct cgraph_local_info): ...here
2765         * ipa-cp.c (determine_versionability): Use the new versionable flag.
2766         (determine_versionability): Likewise.
2767         (ipcp_versionable_function_p): Likewise.
2768         (ipcp_generate_summary): Likewise.
2769         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2770         versionable flag.
2771         (compute_inline_parameters): Do not clear the versionable flag.
2772         (inline_read_section): Do not stream the versionable flag.
2773         (inline_write_summary): Likewise.
2774         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2775         (input_overwrite_node): Likewise.
2777 2011-09-06  Richard Guenther  <rguenther@suse.de>
2779         PR tree-optimization/48149
2780         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
2781         (vn_valueize): Move earlier.
2782         (valueize_expr): Use vn_valueize.
2783         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2784         operands.
2785         (simplify_unary_expression): Simplify.
2787 2011-09-06  Richard Guenther  <rguenther@suse.de>
2789         PR tree-optimization/48317
2790         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2791         trailing array.
2792         (sizeof_vn_nary_op): New inline function.
2793         (vn_nary_op_lookup_pieces): Adjust.
2794         (vn_nary_op_insert_pieces): Likewise.
2795         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2796         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
2797         any number of operands.
2798         (vn_nary_length_from_stmt): New function.
2799         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2800         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2801         sized temporary.
2802         (vn_nary_op_lookup): Likewise.
2803         (vn_nary_op_lookup_stmt): Likewise.
2804         (vn_nary_op_insert_into): Likewise.
2805         (vn_nary_op_insert_stmt): Likewise.
2806         (visit_use): Handle CONSTRUCTOR as nary.
2807         * tree-ssa-pre.c (phi_translate_1): Adjust.
2808         (create_expression_by_pieces): Likewise.
2809         (compute_avail): Likewise.
2811 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
2813          * config/arm/arm.c (arm_preferred_simd_mode): Check
2814         TARGET_NEON_VECTORIZE_DOUBLE instead of
2815         TARGET_NEON_VECTORIZE_QUAD.
2816         (arm_autovectorize_vector_sizes): Likewise.
2817         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2818         mask of mvectorize-with-neon-double.  Add RejectNegative.
2819         (mvectorize-with-neon-double): New.
2821 2011-09-06  Richard Guenther  <rguenther@suse.de>
2823         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2825 2011-09-06  Tom de Vries  <tom@codesourcery.com>
2827         * recog.c (asm_labels_ok): New function.
2828         (check_asm_operands): Use asm_labels_ok.
2830 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2832         PR target/49606
2833         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2834         (PMODE_INSN): New macro.
2835         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2836         (mips_got_load, mips_expand_synci_loop): Likewise.
2837         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2838         cprestore patterns.
2839         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
2840         copygp_mips16 patterns.
2841         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2842         and use_cprestore patterns.
2843         (mips_override_options): Check for incompatible -mabi and -mlong
2844         combinations.
2845         * config/mips/mips.md (unspec_got<mode>): Rename to...
2846         (unspec_got_<mode>): ...this.
2847         (copygp_mips16): Use the Pmode iterator.
2848         (potential_cprestore, cprestore, use_cprestore): Likewise.
2849         (clear_cache, indirect_jump): Use PMODE_INSN.
2850         (indirect_jump<mode>): Rename to...
2851         (indirect_jump_<mode>): ...this.
2852         (tablejump): Use PMODE_INSN.
2853         (tablejump<mode>): Rename to...
2854         (tablejump_<mode>): ...this.
2855         (exception_receiver): Handle restore_gp_si and restore_gp_di.
2856         (restore_gp): Use the Pmode iterator.
2857         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2858         PMODE_INSN.
2860 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2862         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2863         Fix the type of the BIT_AND_EXPR.
2865 2011-09-05  David S. Miller  <davem@davemloft.net>
2867         * config.host: Add driver-sparc.o and sparc/x-sparc on
2868         native sparc*-*-linux* builds.
2869         * config/sparc/driver-sparc.c: Correct Linux strings.
2870         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2871         * config/sparc/linux64.h: Likewise.
2872         * doc/invoke.texi: Document that Linux also supports
2873         -mcpu=native and -mtune=native on sparc.
2875         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2876         PROCESSOR_NIAGARA4): New.
2877         * config/sparc/sparc.opt: Handle new processor types.
2878         * config/sparc/sparc.md: Add to "cpu" attribute.
2879         * config/sparc/sparc.h (TARGET_CPU_niagara3,
2880         TARGET_CPU_niagara4): New, treat as niagara2.
2881         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2882         * config/sparc/sol2.h: Likewise.
2883         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2884         * config/sparc/sparc.c (sparc_option_override): Add
2885         niagara3 and niagara4 handling.
2886         (sparc32_initialize_trampoline): Likewise.
2887         (sparc64_initialize_trampoline): Likewise.
2888         (sparc_use_sched_lookahead): Likewise.
2889         (sparc_issue_rate): Likewise.
2890         (sparc_register_move_cost): Likewise.
2891         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2892         and niagara4 as appropriate.
2893         * doc/invoke.texi: Document new processor types.
2894         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2895         and --with-tune options.
2897         * config/sparc/sol2-64.h: Move ...
2898         * config/sparc/default-64.h: ... to here.  Update comment.
2899         * config.gcc: Update Solaris sparc to use default-64.h, also
2900         prefix this header into the list on sparc64-*-linux.
2901         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2902         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
2903         to MASK_HARD_QUAD.
2905 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2907         PR target/50289
2908         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2909         that contain global register variable.
2911 2011-09-05  Richard Guenther  <rguenther@suse.de>
2913         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2915 2011-09-05  Richard Guenther  <rguenther@suse.de>
2917         * stor-layout.c (layout_type): Use size_binop for array size
2918         calculations.
2920 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2922         * config/avr/avr.h (progmem_section): Remove Declaration.
2923         * config/avr/avr.c (progmem_section): Make static and rename to
2924         progmem_swtable_section.
2925         (avr_output_addr_vec_elt): No need to switch sections.
2926         (avr_asm_init_sections): Use output_section_asm_op as section
2927         callback for progmem_swtable_section.
2928         (avr_output_progmem_section_asm_op): Remove Function.
2929         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2930         (avr_asm_function_rodata_section): New static Function.
2931         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2932         alignment 2**1 for jump tables.
2934 2011-09-04  Jan Hubicka  <jh@suse.cz>
2936         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2937         parameter is SSA name.
2939 2011-09-04  Richard Guenther  <rguenther@suse.de>
2941         Revert
2942         2011-08-31  Richard Guenther  <rguenther@suse.de>
2944         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2945         special-casing.
2947 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
2949         PR debug/49901
2950         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2952 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
2953             Ira Rosen  <ira.rosen@linaro.org>
2955         PR tree-optimization/50208
2956         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2957         argument.  Check that def_stmt is inside the loop.
2958         (vect_recog_widen_mult_pattern): Update calls to
2959         vect_handle_widen_mult_by_cons.
2960         (vect_operation_fits_smaller_type): Check that def_stmt is
2961         inside the loop.
2963 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2965         * tree-vectorizer.c (vect_print_dump_info): Print line
2966         number when dumping to a file.
2967         (vectorize_loops): Add new messages to dump file.
2969 2011-09-03  Martin Jambor  <mjambor@suse.cz>
2971         * ipa-prop.h (ipa_jump_func_t): New typedef.
2972         (struct ipa_edge_args): Removed field argument_count, field
2973         jump_functions turned into a vector.
2974         (ipa_set_cs_argument_count): Removed.
2975         (ipa_get_cs_argument_count): Updated to work on vectors.
2976         (ipa_get_ith_jump_func): Likewise.
2977         * ipa-prop.c (ipa_count_arguments): Removed.
2978         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2979         jump functions.  Update caller.
2980         (compute_pass_through_member_ptrs): Likewise.
2981         (compute_cst_member_ptr_arguments): Likewise.
2982         (ipa_compute_jump_functions_for_edge): Get number of arguments from
2983         the statement, allocate vector.
2984         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2985         (duplicate_ipa_jump_func_array): Removed.
2986         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2987         (ipa_read_node_info): Allocate vector.
2989 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2991         PR middle-end/50232
2992         * config/pa/pa.md (return): Define "return" insn pattern.
2993         (epilogue): Use it when no epilogue is needed.
2994         * config/pa/pa.c (pa_can_use_return_insn): New function.
2995         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2997 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2999         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
3000         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
3001         Force at least BITS_PER_UNIT alignment on the new variable.
3003 2011-09-02  Gary Funck <gary@intrepid.com>
3005         * opts.c (print_specific_help): Fix off-by-one compare in
3006         assertion check.
3007         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3008         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
3009         Increase by +5 to allow for more languages.
3010         * optc-gen.awk: Generate #if that ensures that the number of
3011         languages is within the implementation-defined limit.
3013 2011-09-02  Michael Matz  <matz@suse.de>
3015         PR middle-end/50260
3016         * ipa-split.c (split_function): Call add_referenced_var.
3018         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
3019         (cond_if_else_store_replacement_1): Ditto.
3020         * tree-ssa-pre.c (get_representative_for): Ditto.
3021         (create_expression_by_pieces): Ditto.
3022         (insert_into_preds_of_block): Ditto.
3023         * tree-sra.c (create_access_replacement): Ditto.
3024         (get_replaced_param_substitute): Ditto.
3026 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
3028         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
3029         automata_options.
3030         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
3031         (l1w, s1w, l2w, s2w): Define in the main automaton.
3032         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
3033         units.
3034         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
3035         (c6x_unit_names): Add the new units.
3036         (c6x_unit_codes): New static array.
3037         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
3038         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
3039         UNIT_QID_SIDE_OFFSET): New macros.
3040         (RESERVATION_S2): Adjust value.
3041         (c6x_option_override): Compute c6x_unit_codes.
3042         (assign_reservations): Take the unit_mask of the last instruction
3043         into account.  Detect floating point reservations by looking for
3044         the new units.  Don't assign reservations if the field is already
3045         nonzero.
3046         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
3047         (init_sched_state): Initialize it.
3048         (c6x_clear_sched_context): Free it.
3049         (insn_set_clock): Clear reservation.
3050         (prev_cycle_state): New static variable.
3051         (c6x_init_sched_context): Save it.
3052         (c6x_sched_init): Allocate space for it and clear it.
3053         (c6x_sched_dfa_pre_cycle_insn): New static function.
3054         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
3055         (c6x_variable_issue): Only record units in the unit_mask that
3056         were not set at the start of the cycle.
3057         (c6x_variable_issue): Compute and store the unit_mask from the
3058         current state.
3059         (reorg_split_calls): Ensure the new information remains correct.
3060         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3061         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
3062         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
3063         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
3064         Add special reservations.
3065         * config/c6x/c6x-sched.md: Regenerate.
3067 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3069         * ipa-prop.h (ipa_node_params): Removed fields
3070         called_with_var_arguments and node_versionable.
3071         (ipa_set_called_with_variable_arg): Removed.
3072         (ipa_is_called_with_var_arguments): Likewise.
3073         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
3074         (determine_versionability): Do not check for type attributes and va
3075         builtins.  Record versionability into inline summary.
3076         (initialize_node_lattices): Do not check
3077         ipa_is_called_with_var_arguments.
3078         (propagate_constants_accross_call): Likewise, ignore arguments we do
3079         not have PARM_DECLs for, set variable flag for parameters that were
3080         not passed a value.
3081         (create_specialized_node): Dump info that we cannot change signature.
3082         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
3083         number of arguments.
3084         (ipa_make_edge_direct_to_target): Likewise.
3085         (ipa_update_after_lto_read): Likewise.
3086         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3087         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3088         they were remapped.
3090 2011-09-02  Richard Guenther  <rguenther@suse.de>
3092         PR tree-optimization/27460
3093         PR middle-end/29269
3094         * doc/md.texi (vcond): Document.
3095         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3096         optab with two modes.
3097         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3098         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3099         (vcond_optab): Adjust.
3100         (vcondu_optab): Likewise.
3101         (expand_vec_cond_expr_p): Adjust prototype.
3102         * optabs.c (get_vcond_icode): Adjust.
3103         (expand_vec_cond_expr_p): Likewise.
3104         (expand_vec_cond_expr): Likewise.
3105         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3106         vector type.
3107         (vectorizable_condition): Allow differing types for comparison
3108         and result.
3109         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3110         for the comparison.
3111         * config/i386/sse.md (vcond<mode>): Split to
3112         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3113         vcond<V_128:mode><VI124_128:mode> and
3114         vcondu<V_128:mode><VI124_128:mode>.
3115         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3116         (vconduv2di): Likewise.
3117         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3118         (vcondu<mode>): Likewise.
3119         * config/ia64/vect.md (vcond<mode>): Likewise.
3120         (vcondu<mode>): Likewise.
3121         (vcondv2sf): Likewise.
3122         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3123         * config/rs6000/paired.md (vcondv2sf): Likewise.
3124         * config/rs6000/vector.md (vcond<mode>): Likewise.
3125         (vcondu<mode>): Likewise.
3126         * config/spu/spu.md (vcond<mode>): Likewise.
3127         (vcondu<mode>): Likewise.
3129 2011-09-02  Richard Guenther  <rguenther@suse.de>
3131         * pretty-print.h (pp_unsigned_wide_integer): New.
3132         * tree-pretty-print.c (dump_generic_node): Print unsigned
3133         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3135 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
3137         PR target/49987
3138         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3139         valid CONST_VECTOR operands.
3140         (rs6000_expand_vector_init): Likewise.
3142 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3144         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3145         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3146         BINFO_VTABLE.  Parameter delta removed, all callers updated.
3147         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3148         BINFO_VTABLE.
3149         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3150         all calls.
3151         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3152         handling of thunk_delta.
3153         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3154         (devirtualization_time_bonus): Do not handle thunk deltas.
3155         (ipcp_discover_new_direct_edges): Likewise.
3156         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3157         (try_make_edge_direct_simple_call): Likewise.
3158         (try_make_edge_direct_virtual_call): Likewise.
3159         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3160         parameter set as unused.
3161         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3162         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3163         parameter set as unused.
3164         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3165         (input_edge_opt_summary): Likewise.
3166         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3167         BINFO_VIRTUALS at all.
3168         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3170 2011-09-02  Richard Guenther  <rguenther@suse.de>
3172         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3173         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3175 2011-08-31  Richard Guenther  <rguenther@suse.de>
3177         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3178         handling here, from ...
3179         (expand_expr_real_1): ... here.
3180         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3181         and VEC_COND_EXPR.
3182         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3183         a GIMPLE_TERNARY_RHS.
3184         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3185         and VEC_COND_EXPR here ...
3186         (verify_gimple_assign_single): ... not here.
3187         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3188         * tree-object-size.c (cond_expr_object_size): Adjust.
3189         (collect_object_sizes_for): Likewise.
3190         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3191         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3192         (ssa_forward_propagate_and_combine): Adjust.
3193         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3194         as ternary.
3195         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3196         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3197         * tree-vect-stmt.c (vectorizable_condition): Likewise.
3198         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3199         (extract_range_from_assignment): Likewise.
3201 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3203         * config/i386/i386.md: Use (match_test ...) for attribute tests.
3204         * config/i386/mmx.md: Likewise.
3205         * config/i386/sse.md: Likewise.
3206         * config/i386/predicates.md (call_insn_operand): Use
3207         (not (match_test "...")) instead of (match_test "!...")
3208         * config/i386/constraints.md (w): Likewise.
3210 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3212         * doc/md.texi: Describe the use of match_tests in attribute tests.
3213         * rtl.def (MATCH_TEST): Update commentary.
3214         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3215         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3217 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3219         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3220         (attr_string): Use copy_md_ptr_loc.
3222 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3224         PR middle-end/49886
3225         * ipa-inline-analysis.c (compute_inline_parameters): Set
3226         can_change_signature of noes with typde attributes.
3227         * ipa-split.c (split_function): Do not skip any arguments if
3228         can_change_signature is set.
3230 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3232         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3233         check removed.
3235 2011-08-31  Richard Guenther  <rguenther@suse.de>
3237         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3238         special-casing.
3240 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
3242         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3244 2011-08-31  Tom de Vries  <tom@codesourcery.com>
3246         PR middle-end/43513
3247         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3248         * tree-ssa-ccp.c (params.h): Include.
3249         (fold_builtin_alloca_for_var): New function.
3250         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3252 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
3254         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3255         Handle FMA option.
3257 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3259         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3260         b3 and b4 unsigned.
3262 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3264         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3265         when code is SET.
3267 2011-08-30  Richard Guenther  <rguenther@suse.de>
3269         PR middle-end/48571
3270         * gimple.h (maybe_fold_offset_to_address): Remove.
3271         (maybe_fold_offset_to_reference): Likewise.
3272         (maybe_fold_stmt_addition): Likewise.
3273         (may_propagate_address_into_dereference): Likewise.
3274         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3275         array references.
3276         * gimple-fold.c (canonicalize_constructor_val): Likewise.
3277         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3278         addresses instead.
3279         (may_propagate_address_into_dereference): Remove.
3280         (maybe_fold_offset_to_array_ref): Likewise.
3281         (maybe_fold_offset_to_reference): Likewise.
3282         (maybe_fold_offset_to_address): Likewise.
3283         (maybe_fold_stmt_addition): Likewise.
3284         (fold_gimple_assign): Do not reconstruct array references but
3285         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3286         MEM_REF addresses.
3287         (gimple_fold_stmt_to_constant_1): Likewise.
3288         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3289         * gimplify.c (gimplify_conversion): Likewise.
3290         (gimplify_expr): Likewise.
3292 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
3294         * config/i386/fmaintrin.h: New.
3295         * config.gcc: Add fmaintrin.h.
3296         * config/i386/i386.c
3297         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3298         <IX86_BUILTIN_VFMADDSD3>: Likewise.
3299         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3300         (*fmai_fmadd_<mode>): Likewise.
3301         (*fmai_fmsub_<mode>): Likewise.
3302         (*fmai_fnmadd_<mode>): Likewise.
3303         (*fmai_fnmsub_<mode>): Likewise.
3304         * config/i386/immintrin.h: Add fmaintrin.h.
3306 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
3308         * genautomata.c (NO_COMB_OPTION): New macro.
3309         (no_comb_flag): New static variable.
3310         (gen_automata_option): Handle NO_COMB_OPTION.
3311         (comb_vect_p): False if no_comb_flag.
3312         (add_vect): Move computation of min/max values.  Return early if
3313         no_comb_flag.
3314         * doc/md.texi (automata_option): Document no-comb-vect.
3316         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3317         "__x86.get_pc_thunk".
3319         * bb-reorder.c (insert_section_boundary_note): Only do it if
3320         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3322 2011-08-30  Christian Bruel  <christian.bruel@st.com>
3324         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3325         flag_profile_use.
3327 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3329         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3330         to off.  Document switch.
3331         * doc/invoke.texi (-msave-toc-indirect): Ditto.
3333 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3335         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3336         conditionals and comments inside macro arguments.
3338 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
3339             Richard Guenther  <rguenther@suse.de>
3341         * tree.h (constant_boolean_node): Adjust prototype.
3342         * fold-const.c (fold_convert_loc): Move aggregate conversion
3343         leeway down.
3344         (constant_boolean_node): Make value parameter boolean, add
3345         vector type handling.
3346         (fold_unary_loc): Use constant_boolean_node.
3347         (fold_binary_loc): Preserve types properly when folding
3348         COMPLEX_EXPR <__real x, __imag x>.
3349         * gimplify.c (gimplify_expr): Handle vector comparison.
3350         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3351         comparison.
3352         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3353         comparisons.
3355 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3357         PR middle-end/48722
3358         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3359         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3360         (verify_rtl_sharing): Likewise and verify_rtx_sharing
3361         in there too.
3362         (unshare_all_rtl_in_chain): For CALL_INSNs
3363         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3365 2011-08-29  Richard Guenther  <rguenther@suse.de>
3367         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3368         on the built ADDR_EXPR.
3370 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3372         PR debug/50215
3373         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3374         before adding ENTRY_VALUE to val->locs.
3376 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
3378         PR bootstrap/50218
3379         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3380         comp.
3382 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
3384         * doc/rtl.texi (simple_return): Document.
3385         (parallel, PATTERN): Here too.
3386         * doc/md.texi (return): Mention it's allowed to expand to simple_return
3387         in some cases.
3388         (simple_return): Document standard pattern.
3389         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3390         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3391         * reorg.c (function_return_label, function_simple_return_label):
3392         New static variables, replacing...
3393         (end_of_function_label): ... this.
3394         (simplejump_or_return_p): New static function.
3395         (optimize_skip, steal_delay_list_from_fallthrough,
3396         fill_slots_from_thread): Use it.
3397         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
3398         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3399         (find_end_label): Take a new arg which is one of the two return
3400         rtxs.  Depending on which, set either function_return_label or
3401         function_simple_return_label.  All callers changed.
3402         (make_return_insns): Make both kinds.
3403         (dbr_schedule): Adjust for two kinds of end labels.
3404         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3405         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3406         (gen_expand, gen_split): Use ANY_RETURN_P.
3407         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3408         * rtl.def (SIMPLE_RETURN): New code.
3409         * ifcvt.c (find_if_case_1): Be more careful about
3410         redirecting jumps to the EXIT_BLOCK.
3411         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3412         returnjump_p_1): Handle SIMPLE_RETURNs.
3413         * print-rtl.c (print_rtx): Likewise.
3414         * rtl.c (copy_rtx): Likewise.
3415         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3416         * combine.c (simplify_set): Likewise.
3417         * resource.c (find_dead_or_set_registers, mark_set_resources):
3418         Likewise.
3419         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3420         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3421         (init_emit_regs): Initialize simple_return_rtx.
3422         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3423         force_nonfallthru_and_redirect.
3424         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3425         (GR_SIMPLE_RETURN): New enum value.
3426         (simple_return_rtx): New macro.
3427         * basic-block.h (force_nonfallthru_and_redirect): Adjust
3428         declaration.
3429         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3430         argument.  All callers changed.  Be careful about what kinds of
3431         returnjumps to generate.
3432         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3433         ix86_pad_short_function): Likewise.
3434         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3435         of return.
3436         * config/mips/mips.md (any_return): New code_iterator.
3437         (optab): Add cases for return and simple_return.
3438         (return): Expand to a simple_return.
3439         (simple_return): New pattern.
3440         (*<optab>, *<optab>_internal for any_return): New patterns.
3441         (return_internal): Remove.
3442         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3443         a simple_return_internal.
3445 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3447         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3448         (vec_extract_lo_<mode>): Prevent both operands in memory.
3449         (vec_extract_lo_v16hi): Ditto.
3450         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3452 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3454         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3455         (*sse2_mulv4si3): Ditto.
3456         (mulv2di3): Ditto.
3457         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3458         notes to REG_EQUAL.
3460 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3462         PR target/50202
3463         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3464         when all outputs are unused.
3465         (sse4_2_pcmpistr): Ditto.
3467 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3469         * config/i386/i386.md (round<mode>2): New expander.
3470         * config/i386/i386.c (enum ix86_builtins): Add
3471         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3472         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3473         descriptions.
3474         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3475         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3477 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3479         PR middle-end/50083
3480         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3481         only when TARGET_C99_FUNCTIONS.
3482         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3483         <BUILT_IN_RINT{,F,L}>: Ditto.
3485 2011-08-26  Michael Matz  <matz@suse.de>
3486             Jakub Jelinek  <jakub@redhat.com>
3488         PR lto/50165
3489         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3490         don't call strlen twice, use memcpy.
3492 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
3494         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3495         * config/i386/bmiintrin.h: Likewise.
3496         * config/i386/lzcntintrin.h: Likewise.
3498         * config/i386/immintrin.h: Include <lzcntintrin.h>,
3499         <bmiintrin.h> and <bmi2intrin.h>.
3501 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3503         PR target/50166
3504         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3505         * configure: Regenerate.
3507 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3509         PR c/50179
3510         * c-typeck.c (c_process_expr_stmt): Skip over nops and
3511         call mark_exp_read even if exprv is ADDR_EXPR.
3513 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
3515         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3516         to df_set_dead_notes_for_mw.
3518 2011-08-26  Richard Guenther  <rguenther@suse.de>
3520         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3522 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
3523             Tom de Vries  <tom@codesourcery.com>
3525         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3526         (struct ivopts_data): Add loop_single_exit_p field.
3527         (niter_for_exit): Change parameter desc_p into return value.  Return
3528         desc if desc->may_be_zero.  Free desc if unused.
3529         (niter_for_single_dom_exit): Change return type.
3530         (find_induction_variables): Handle changed return type of
3531         niter_for_single_dom_exit.  Dump may_be_zero.
3532         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3533         (set_use_iv_cost): Add and handle comp parameter.
3534         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3535         comp argument to set_use_iv_cost.
3536         (strip_wrap_conserving_type_conversions, expr_equal_p)
3537         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3538         (may_eliminate_iv): Add comp parameter.  Handle new return type of
3539         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
3540         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3541         and may_eliminate_iv.
3542         (rewrite_use_compare): Move call to iv_elimination_compare to ...
3543         (may_eliminate_iv): Here.
3544         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3546 2011-08-26  Tom de Vries  <tom@codesourcery.com>
3548         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3549         accessing TREE_TYPE.
3551 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
3553         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3554         (*ior_scc_scc_cmp): Likewise
3555         (*and_scc_scc): Likewise.
3556         (*and_scc_scc_cmp): Likewise.
3557         (*and_scc_scc_nodom): Likewise.
3558         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3560 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3562         * rtlanal.c (nonzero_bits1): Handle CLRSB.
3564 2011-08-26  Richard Guenther  <rguenther@suse.de>
3566         * expr.c (string_constant): Handle &MEM_REF.
3568 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3570         * config/arm/arm.c (struct four_ints): New type.
3571         (count_insns_for_constant): Delete function.
3572         (find_best_start): Delete function.
3573         (optimal_immediate_sequence): New function.
3574         (optimal_immediate_sequence_1): New function.
3575         (arm_gen_constant): Move constant splitting code to
3576         optimal_immediate_sequence.
3577         Rewrite constant negation/invertion code.
3579 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3581         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3582         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3583         Remove prototype. Remove static function type.
3584         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3585         Add arch attribute.
3586         * config/arm/constraints.md (Pj, PJ): New constraints.
3588 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3590         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3591         ("cortex_a9_multiply_long"): New and use above.  Handle all
3592         long multiply cases.
3593         ("cortex_a9_multiply"): Handle smmul and smmulr.
3594         ("cortex_a9_mac"): Handle smmla.
3596 2011-08-25  Richard Henderson  <rth@redhat.com>
3598         PR 50132
3599         PR 49864
3600         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3601         non-constant stack adjutment.
3602         * expr.c (find_args_size_adjust): Break out from ...
3603         (fixup_args_size_notes): ... here.
3604         * rtl.h (find_args_size_adjust): Declare.
3606 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
3608         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3609         sse4 and sse4_noavx.
3610         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3611         (*pushdf_rex64): Change Y2 register constraint to x.
3612         (*movdf_internal_rex64): Ditto.
3613         (*zero_extendsidi2_rex64): Ditto.
3614         (*movdi_internal): Change Y2 register constraint to x
3615         and update "isa" attribute.
3616         (*pushdf): Ditto.
3617         (*movdf internal): Ditto.
3618         (zero_extendsidi2_1): Ditto.
3619         (*truncdfdf_mixed): Ditto.
3620         (*truncxfdf2_mixed): Ditto.
3621         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3622         register constraint to x.
3623         (*movv2sf_internal_rex64): Ditto.
3624         (*mov<mode>_internal): Change Y2 register constraint to x
3625         and add "isa" attribute.
3626         (*movv2sf_internal): Ditto.
3627         (*vec_extractv2si_1): Ditto.
3628         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3629         constraints to x and update "isa" attribute.
3630         (*vec_interleave_highv2df): Change Y3 registerconstraint
3631         to x and update "isa" attribute.
3632         (*vec_interleave_lowv2df): Ditto.
3633         (*vec_concatv2df): Change Y2 register constraint to x and
3634         update "isa" attribute.
3635         (sse2_loadld): Ditto.
3636         (*vec_extractv2di_1): Ditto.
3637         (*vec_dupv4si): Ditto.
3638         (*vec_dupv2di): Ditto.
3639         (*vec_concatv4si): Ditto.
3640         (vec_concatv2di): Ditto.
3641         * config/i386/constraints.md (Y2): Remove.
3642         (Y3): Ditto.
3643         (Y4): Ditto.
3645 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3647         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3648         dump_def_use_chain): Don't declare.
3649         (mark_conflict, create_new_chain): Move before users.
3650         (regrename_optimize): Move to near end of file.
3652 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3654         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3655         (secondary_input_reload_class): Remove Prototype.
3656         * config/avr/avr.c (byte_immediate_operand): Remove Function.
3657         * config/avr/avr.md (setmemhi): Use u8_operand.
3658         (strlenhi): Use const0_rtx for comparison.
3659         * config/avr/avr.h (avr_reg_order): Remove Declaration.
3661 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3663         * config/avr/avr.c (reg_class_tab): Make local to
3664         avr_regno_reg_class.  Return smallest register class available.
3666 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3668         * config/avr/avr.c (STR_PREFIX_P): New Define.
3669         (avr_asm_declare_function_name): Use it.
3670         (avr_asm_named_section): Use it.
3671         (avr_section_type_flags): Use it.
3673 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3675         * doc/md.texi (automata_option): Document collapse-ndfa.
3676         * genautomata.c (COLLAPSE_OPTION): New macro.
3677         (collapse_flag): New static variable.
3678         (struct description): New member normal_decls_num.
3679         (struct automaton): New members advance_ainsn and collapse_ainsn.
3680         (gen_automata_option): Check for COLLAPSE_OPTION.
3681         (collapse_ndfa_insn_decl): New static variable.
3682         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3683         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3684         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3685         necessary.  Use normal_decls_num rather than decls_num, remove
3686         test for special decls.
3687         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3688         (make_automaton); Likewise.  Use the new advance_cycle_insn member
3689         of struct automaton.
3690         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3691         is set.
3692         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3693         transition.  Create the necessary transitions for it.
3694         (create_ainsns): Return void.  Take an automaton_t argument, and
3695         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
3696         callers changed.
3697         (COLLAPSE_NDFA_VALUE_NAME): New macro.
3698         (output_tables): Output code to define it.
3699         (output_internal_insn_code_evaluation): Output code to accept
3700         const0_rtx as collapse-ndfa transition.
3701         (output_default_latencies, output_print_reservation_func,
3702         output_print_description): Reorganize loops to use normal_decls_num
3703         as loop bound; remove special case for advance_cycle_insn_decl.
3704         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3705         (check_automata_insn_issues): Check for collapse_ainsn.
3706         (expand_automate): Allocate sufficient space.  Initialize
3707         normal_decls_num.
3709 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3711         * config/avr/avr.md: Fix indentation from r177991.
3713 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3715         * regrename.c (struct du_head): Remove member terminated.
3716         (create_new_chain): Don't initialize it.
3717         (scan_rtx_reg): Don't set or test it, test the open_chains_set
3718         bitmap instead.
3719         (tick, this_tick): New global variables, moved out of
3720         regrename_optimize.
3721         (current_id, open_chains, closed_chains, open_chains_set,
3722         live_in_chains, live_hard_regs): Reorder declarations.
3723         (dump_def_use_chain): Move function earlier in the file.
3724         (rename_chains): New static function, broken out of
3725         regrename_optimize.
3726         (regrename_optimize): Use it.  Remove #if 0'ed code.
3728 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3730         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3732 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
3734         PR target/50172
3735         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3737 2011-08-24  Richard Guenther  <rguenther@suse.de>
3739         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3740         ref in the basic-block case.  Move stripping array-refs
3741         to the place we create an access-function for it.  Remove
3742         bogus stripping down a MEM_REF to its base.
3744 2011-08-24  Richard Guenther  <rguenther@suse.de>
3746         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3747         with -fno-strict-overflow.
3749 2011-08-24  Richard Guenther  <rguenther@suse.de>
3751         * tree-vectorizer.c (vect_print_dump_info): Avoid the
3752         file and location clutter when dumping to dump files.
3754 2011-08-24  Simon Baldwin  <simonb@google.com>
3756         * gengtype-state.c (write_state): Remove timestamped header line.
3758 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3760         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3761         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3762         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3763         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3764         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3765         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3766         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3767         rules.
3768         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3770 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3772         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3774 2011-08-24  Richard Guenther  <rguenther@suse.de>
3776         PR tree-optimization/50067
3777         * tree-data-ref.c (dr_analyze_indices): Do not add an access
3778         function for a MEM_REF base that has no evolution in the loop
3779         nest or that is not analyzable.
3781 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
3783         * ira.c (ira_init_register_move_cost): Check small subclasses
3784         through ira_reg_class_max_nregs and ira_available_class_regs.
3786 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3788         * config/i386/constraints.md (Yp): New register constraint.
3789         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3790         Yp register constraint.
3791         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3792         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3793         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3795 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3797         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3799 2011-08-23  Mark Heffernan  <meheff@google.com>
3801         PR middle-end/38509
3802         * common.opt (Wfree-nonheap-object): New option.
3803         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3804         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3805         to warning.
3806         (expand_builtin): Make warning conditional.
3808 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3810         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3811         (length_immediate): Handle imulx, ishiftx and rotatex.
3812         (imm_disp): Ditto.
3813         (isa): Add bmi2.
3814         (enabled): Handle bmi2.
3815         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3816         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
3817         (*bmi2_umulditi3_1): New insn pattern.
3818         (*bmi2_umulsidi3_1): Ditto.
3819         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3820         (*bmi2_ashl<mode>3_1): New insn pattern.
3821         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3822         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3823         (*bmi2_ashlsi3_1_zext): New insn pattern.
3824         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3825         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3826         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3827         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3828         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3829         flags dependency.
3830         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3831         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3832         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3833         flags dependency.
3834         (*bmi2_rorx<mode>3_1): New insn pattern.
3835         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3836         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3837         (*rotatert<mode>3_1 splitter): Ditto.
3838         (*bmi2_rorxsi3_1_zext): New insn pattern.
3839         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3840         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3841         (*rotatertsi3_1_zext splitter): Ditto.
3843 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3845         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3846         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3847         (ix86_handle_option): Handle OPT_mbmi2 case.
3848         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3849         (x86_64-*-*): Likewise.
3850         * config/i386/bmi2intrin.h: New file.
3851         * config/i386/cpuid.h (bit_BMI2): New.
3852         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3853         BMI2 feature.
3854         * config/i386/i386-c.c (ix86_target_macros_internal):
3855         Conditionally define __BMI2__.
3856         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3857         Handle BMI2 option.
3858         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3859         (print_reg): New code.
3860         (ix86_print_operand): Likewise.
3861         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3862         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3863         IX86_BUILTIN_PEXT64.
3864         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3865         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3866         IX86_BUILTIN_PEXT64.
3867         * config/i386/i386.h (TARGET_BMI2): New.
3868         * config/i386/i386.md (UNSPEC_PDEP): New.
3869         (UNSPEC_PEXT): Likewise.
3870         (*bmi2_bzhi_<mode>3): Likewise.
3871         (*bmi2_pdep_<mode>3): Likewise.
3872         (*bmi2_pext_<mode>3): Likewise.
3873         * config/i386/i386.opt (mbmi2): New.
3874         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3875         is defined.
3876         * doc/extend.texi: Document BMI2 built-in functions.
3877         * doc/invoke.texi: Document -mbmi2.
3879 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
3881         PR middle-end/50161
3882         * simplify-rtx.c (simplify_const_unary_operation): If
3883         op is CONST_INT, don't look at op_mode, but use instead mode.
3884         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3885         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3886         operation and TRUNCATE/ZERO_EXTEND if needed.
3887         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3888         Document that operand mode must be same as operation mode,
3889         or VOIDmode.
3890         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3891         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3892         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3893         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3894         use the mode of operand for the operation and add truncate
3895         or zero_extend around if needed.
3896         * config/c6x/c6x.md (ctzdi2): Likewise.
3897         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3899 2011-08-12  Michael Matz  <matz@suse.de>
3901         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3902         (gimple_expand_cfg): Merge alignment info for coalesced pointer
3903         SSA names.
3905 2011-08-23  Richard Guenther  <rguenther@suse.de>
3907         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3908         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3909         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3910         from ...
3911         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3912         (mem_refs_may_alias_p): Adjust.
3913         * tree-data-ref.h (dr_may_alias_p): Adjust.
3914         * tree-data-ref.c: Include tree-affine.h.
3915         (dr_analyze_indices): Do nothing for the non-loop case.
3916         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
3917         more cases in the non-loop case.
3918         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3919         calls to dr_may_alias_p.
3920         (write_alias_graph_to_ascii_ecc): Likewise.
3921         (write_alias_graph_to_ascii_dot): Likewise.
3922         (build_alias_set_optimal_p): Likewise.
3924 2011-08-23  Richard Guenther  <rguenther@suse.de>
3926         PR tree-optimization/50162
3927         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3929 2011-08-23  Richard Guenther  <rguenther@suse.de>
3931         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3932         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3933         (create_data_ref): Also dump access functions for the created data-ref.
3935 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
3936             Kirill Yukhin  <kirill.yukhin@intel.com>
3938         PR target/50155
3939         * config/i386/sse.md (VI_AVX2): New.
3940         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3941         (*<plusminus_insn><mode>3): Ditto.
3942         (<sse2_avx2>_andnot<mode>3): Ditto.
3943         (*andnot<mode>3): Fix order of cond operands.
3944         Add asserts for correct TARGET_xxx.
3945         (*<any_logic:code><mode>3): Ditto.
3947 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
3949         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3950         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3951         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3952         regclass argument type to reg_class_t. Change 'max' and 'v' vars
3953         and return types to unsigned char. Use reg_class_contents instead
3954         of class_contents.
3955         (TARGET_CLASS_MAX_NREGS): Define.
3957 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
3959         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3960         to make computed_jump_p return true.
3962 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3964         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3965         (PICFLAG_FOR_TARGET): Substitute.
3966         * aclocal.m4: Regenerate.
3967         * configure: Regenerate.
3969 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
3971         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3972         after reading in the pch.
3974 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
3976         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3977         * configure: Regenerated.
3979 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
3981         PR tree-optimization/50133
3982         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3983         from stmt instead of some statement around gsi.
3985         PR middle-end/50141
3986         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3987         innerdecl is a VAR_DECL.
3989 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3991         * config/i386/avx2intrin.h: New file.
3992         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3993         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3994         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3995         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3996         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3997         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3998         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3999         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
4000         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
4001         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
4002         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
4003         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
4004         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
4005         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
4006         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
4007         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
4008         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
4009         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
4010         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
4011         VOID_FTYPE_PV8SI_V8SI_V8SI,
4012         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
4013         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
4014         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
4015         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
4016         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
4017         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
4018         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
4019         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
4020         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
4021         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
4022         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
4023         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
4024         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
4025         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
4026         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
4027         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
4028         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
4029         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
4030         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
4031         V4DI_FTYPE_V4DI_INT_CONVERT,
4032         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
4033         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
4034         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4035         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4036         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4037         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4038         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4039         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4040         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4041         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4042         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4043         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4044         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4045         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4046         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4047         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4048         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4049         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4050         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4051         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4052         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4053         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4054         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4055         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4056         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4057         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4058         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4059         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4060         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4061         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4062         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4063         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4064         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4065         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4066         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4067         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4068         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4069         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4070         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4071         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4072         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4073         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4074         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4075         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4076         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4077         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4078         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4079         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4080         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4081         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4082         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4083         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4084         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4085         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4086         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4087         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4088         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4089         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4090         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4091         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4092         IX86_BUILTIN_VBROADCASTSS_PS256,
4093         IX86_BUILTIN_VBROADCASTSD_PD256,
4094         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4095         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4096         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4097         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4098         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4099         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4100         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4101         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4102         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4103         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4104         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4105         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4106         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4107         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4108         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4109         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4110         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4111         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4112         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4113         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4114         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4115         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4116         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4117         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4118         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4119         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4120         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4121         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4122         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4123         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4124         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4125         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
4126         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4127         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4128         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4129         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4130         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4131         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4132         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4133         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4134         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4135         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4136         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4137         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4138         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4139         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4140         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4141         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4142         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4143         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4144         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4145         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4146         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4147         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4148         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4149         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4150         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4151         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4152         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4153         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4154         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4155         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4156         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4157         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4158         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4159         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4160         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4161         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4162         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4163         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4164         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4165         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4166         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4167         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4168         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4169         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4170         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4171         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4172         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4173         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4174         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4175         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4176         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4177         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4178         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4179         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4180         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4181         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4182         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4183         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4184         IX86_BUILTIN_VBROADCASTSD_PD256,
4185         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4186         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4187         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4188         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4189         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4190         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4191         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4192         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4193         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4194         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4195         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4196         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4197         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4198         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4199         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4200         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4201         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4202         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4203         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4204         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4205         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4206         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4207         IX86_BUILTIN_GATHERDIV8SI.
4208         (ix86_preferred_simd_mode): Support AVX2 modes.
4209         (ix86_expand_args_builtin): Support AVX2 builtins.
4210         (ix86_expand_special_args_builtin): Likewise.
4211         (ix86_expand_builtin): Likewise.
4212         * config/i386/i386.md (UNSPEC_VPERMSI): New.
4213         (UNSPEC_VPERMDF): Likewise.
4214         (UNSPEC_VPERMSF): Likewise.
4215         (UNSPEC_VPERMDI): Likewise.
4216         (UNSPEC_VPERMTI): Likewise.
4217         (UNSPEC_GATHER): Likewise.
4218         (ssemodesuffix): Extend.
4219         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4220         is defined.
4221         * config/i386/predicates.md (const1248_operand): New.
4222         * config/i386/sse.md (VI1_AVX2): New mode iterator.
4223         (VI2_AVX2): Likewise.
4224         (VI4_AVX2): Likewise.
4225         (VI8_AVX2): Likewise.
4226         (VIMAX_AVX2): Likewise.
4227         (SSESCALARMODE): Likewise.
4228         (VI12_AVX2): Likewise.
4229         (VI24_AVX2): Likewise.
4230         (VI124_AVX2): Likewise.
4231         (VI248_AVX2): Likewise.
4232         (VI48_AVX2): Likewise.
4233         (VI4SD_AVX2): Likewise.
4234         (V48_AVX2): Likewise.
4235         (AVX256MODE2P): Likewise.
4236         (AVXMODE48P_DI): Likewise.
4237         (sse2_avx2): New mode attribute.
4238         (ssse3_avx2): Likewise.
4239         (sse4_1_avx2): Likewise.
4240         (avx_avx2): Likewise.
4241         (ssebytemode): Likewise.
4242         (AVXTOSSEMODE): Likewise.
4243         (AVXMODE48P_DI): Likewise.
4244         (gthrfirstp): Likewise.
4245         (gthrlastp): Likewise.
4246         (lshift): New code_iterator
4247         (lshift): New code attribute.
4248         (lshift): Likewise.
4249         (ssescalarmodesuffix): Update.
4250         (sseunpackmode): Likewise.
4251         (ssepackmode): Likewise.
4252         (avx2_vec_dupv4sf): New insn pattern.
4253         (avx2_vec_dupv8sf): Likewise.
4254         (avx2_interleave_highv4di): Likewise.
4255         (avx2_interleave_lowv4di): Likewise.
4256         (avx2_umulv4siv4di3): Likewise
4257         (*avx2_umulv4siv4di3): Likewise
4258         (avx2_pmaddwd): Likewise.
4259         (*avx2_pmaddwd): Likewise.
4260         (avx2_lshrqv4di3): Likewise.
4261         (avx2_lshlqv4di3): Likewise.
4262         (avx2_lshl<mode>3): Likewise.
4263         (avx2_<umaxmin:code><mode>3): Likewise.
4264         (*avx2_<umaxmin:code><mode>3): Likewise.
4265         (avx2_<smaxmin:code><mode>3): Likewise.
4266         (*avx2_<smaxmin:code><mode>3): Likewise.
4267         (avx2_eq<mode>3): Likewise.
4268         (*avx2_eq<mode>3): Likewise.
4269         (avx2_gt<mode>3): Likewise.
4270         (avx2_interleave_highv32qi): New.
4271         (avx2_interleave_lowv32qi): Likewise.
4272         (avx2_interleave_highv16hi): Likewise.
4273         (avx2_interleave_lowv16hi): Likewise.
4274         (avx2_interleave_highv8si): Likewise.
4275         (avx2_interleave_lowv8si): Likewise.
4276         (avx2_pshufd): Likewise.
4277         (avx2_pshufd_1): Likewise.
4278         (avx2_pshuflwv3): Likewise.
4279         (avx2_pshuflw_1): Likewise.
4280         (avx2_pshufhwv3): Likewise.
4281         (avx2_pshufhw_1): Likewise.
4282         (avx2_uavgv32qi3): Likewise.
4283         (*avx2_uavgv32qi3): Likewise.
4284         (avx2_uavgv16hi3): Likewise.
4285         (*avx2_uavgv16hi3): Likewise.
4286         (avx2_pmovmskb): Likewise.
4287         (avx2_phaddwv16hi3): Likewise.
4288         (avx2_phadddv8si3): Likewise.
4289         (avx2_phaddswv16hi3): Likewise.
4290         (avx2_phsubwv16hi3): Likewise.
4291         (avx2_phsubdv8si3): Likewise.
4292         (avx2_phsubswv16hi3): Likewise.
4293         (avx2_pmaddubsw256): Likewise.
4294         (avx2_umulhrswv16hi3): Likewise.
4295         (*avx2_umulhrswv16hi3): Likewise.
4296         (avx2_packusdw): Likewise.
4297         (avx2_pblendd<mode>): Likewise.
4298         (avx2_<code>v16qiv16hi2): Likewise.
4299         (avx2_<code>v8qiv8si2): Likewise.
4300         (avx2_<code>v8hiv8si2): Likewise.
4301         (avx2_<code>v4qiv4di2): Likewise.
4302         (avx2_<code>v4hiv4di2): Likewise.
4303         (avx2_<code>v4siv4di2): Likewise.
4304         (avx2_pbroadcast<mode>): Likewise.
4305         (avx2_permvarv8si): Likewise.
4306         (avx2_permv4df): Likewise.
4307         (avx2_permvarv8sf): Likewise.
4308         (avx2_permv4di): Likewise.
4309         (avx2_permv2ti): Likewise.
4310         (avx2_vec_dupv4df): Likewise.
4311         (avx2_vbroadcasti128_<mode>): Likewise.
4312         (avx2_vec_set_lo_v4di): Likewise.
4313         (avx2_vec_set_hi_v4di): Likewise.
4314         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4315         (avx2_extracti128): Likewise.
4316         (avx2_inserti128): Likewise.
4317         (avx2_ashrvv8si): Likewise.
4318         (avx2_ashrvv4si): Likewise.
4319         (avx2_<lshift>vv8si): Likewise.
4320         (avx2_<lshift>v<mode>): Likewise.
4321         (avx2_<lshift>vv2di): Likewise.
4322         (avx2_gathersi<mode>): Likewise.
4323         (*avx2_gathersi<mode>): Likewise.
4324         (avx2_gatherdi<mode>): Likewise.
4325         (*avx2_gatherdi<mode>): Likewise.
4326         (avx2_gatherdi<mode>256): Likewise.
4327         (*avx2_gatherdi<mode>256): Likewise.
4328         (<plusminus_insn><mode>3): Use VI mode iterator.
4329         (*<plusminus_insn><mode>3): Use VI mode iterator.
4330         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4331         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4332         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4333         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4334         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
4335         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
4336         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4337         Use VI2_AVX2 mode iterator.
4338         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4339         Use VI2_AVX2 mode iterator.
4340         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
4341         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
4342         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4343         Use VI4_AVX2 mode iterator.
4344         (ashr<mode>3): Use VI24_AVX2 mode iterator.
4345         (lshr<mode>3): Use VI248_AVX2 mode iterator.
4346         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4347         Use VIMAX_AVX2 mode iterator.
4348         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4349         Use VI mode iterator.
4350         (*andnot<mode>3): Update for AVX2.
4351         (*<any_logic:code><mode>3): Likewise.
4352         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4353         Use VI1_AVX mode iterator.
4354         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
4355         Use VI2_AVX mode iterator.
4356         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4357         Use VI1_AVX mode iterator.
4358         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4359         Use VI8_AVX2 mode iterator.
4360         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4361         Use VI1_AVX2 mode iterator.
4362         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4363         Use VI124_AVX2 mode iterator.
4364         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4365         Use SSESCALARMODE mode iterator.
4366         (abs<mode>2): Use VI124_AVX2 mode iterator.
4367         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4368         Use VI8_AVX2 mode iterator.
4369         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4370         Use VI1_AVX2 mode iterator.
4371         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4372         Use VI1_AVX2 mode iterator.
4373         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4374         Use VI2_AVX2 mode iterator.
4375         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4376         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4377         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4378         avx_maskstore<ssemodesuffix><avxsizesuffix>.
4379         Use V48_AVX2 mode iterator.
4380         * doc/extend.texi: Document AVX2 built-in functions.
4381         * doc/invoke.texi: Document -mavx2.
4383 2011-08-22  Matthias Klose <doko@debian.org>
4385         Revert:
4386         2011-07-11  Arthur Loiret  <aloiret@debian.org>
4387                     Matthias Klose <doko@debian.org>
4388         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4389         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4390         convention.
4391         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4393 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
4395         PR bootstrap/50146
4396         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4397         to #ifndef HONOR_REG_ALLOC_ORDER block.
4399 2011-08-21  Richard Henderson  <rth@redhat.com>
4401         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4402         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4403         * resource.c (next_insn_no_annul): Likewise.
4404         (mark_set_resources): Likewise.
4405         * reorg.c (delete_from_delay_slot): Likewise.
4406         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4407         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4409 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
4411         * config/i386/i386.md (any_div): Remove.
4412         (sgnprefix): Update for removal.
4413         (u): Ditto.
4415 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
4417         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4418         for ira_reg_class_max_nregs.  Increase pressure by 1.
4419         (mark_pseudo_regno_subword_dead): Use allocno class
4420         for ira_reg_class_max_nregs.
4422 2011-08-20  Richard Henderson  <rth@redhat.com>
4424         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4425         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4426         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4427         config/c6x/ltf.c: Adjust include path for soft-fp.
4429 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4431         PR other/46770
4432         * config.gcc (tm_file): Add initfini-array.h if
4433         .init_arrary/.fini_array are supported.
4435         * crtstuff.c: Don't generate .ctors nor .dtors sections if
4436         USE_INITFINI_ARRAY is defined.
4438         * output.h (default_elf_init_array_asm_out_constructor): New.
4439         (default_elf_fini_array_asm_out_destructor): Likewise.
4440         * varasm.c (elf_init_array_section): Likewise.
4441         (elf_fini_array_section): Likewise.
4442         (get_elf_initfini_array_priority_section): Likewise.
4443         (default_elf_init_array_asm_out_constructor): Likewise.
4444         (default_elf_fini_array_asm_out_destructor): Likewise.
4446         * config/initfini-array.h: New.
4448 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4450         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4451         OK for ST_REGS and FP_REGS before taking those classes into account.
4453 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4455         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4456         before checking for annulled branches.
4458 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4460         * config/i386/i386.c (ix86_binary_operator_ok): Use
4461         satisfies_constraint_L.
4463 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4464             Michael Matz  <matz@suse.de>
4466         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4467         trunc (a + copysign (nextafter (0.5, 0.0), a)).
4469 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
4471         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4472         * doc/tm.texi: Regenerate.
4473         * targhooks.c (default_preferred_output_reload_class): Don't use
4474         PREFERRED_OUTPUT_RELOAD_CLASS macro.
4475         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4477 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
4479         PR tree-optimization/48739
4480         * tree-ssa.c: Include cfgloop.h.
4481         (execute_update_addresses_taken): When updating ssa, if in loop closed
4482         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4483         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4485 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
4487         PR rtl-optimization/49936
4488         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4489         for calculation of max register move costs.
4491 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4493         * c-parser.c (c_parser_postfix_expression): Convert operands of
4494         __builtin_complex to their semantic types.
4496 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4498         PR middle-end/49721
4499         * explow.c (convert_memory_address_addr_space): Also permute the
4500         conversion and addition of constant for zero-extend.
4502 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4504         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4505         * doc/extend.texi (__builtin_complex): Document.
4507 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4509         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4510         beyond conversions.
4511         (convert_mult_to_widen): Convert constant inputs to the right type.
4512         (convert_plusminus_to_widen): Don't automatically reject inputs that
4513         are not an SSA_NAME.
4514         Convert constant inputs to the right type.
4516 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4518         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4519         to the correct type.
4521 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4523         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4524         unsigned inputs of different modes.
4525         (convert_plusminus_to_widen): Likewise.
4527 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4529         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4530         'type'.
4531         Use 'type' from caller, not inferred from 'rhs'.
4532         Don't reject non-conversion statements. Do return lhs in this case.
4533         (is_widening_mult_p): Add new argument 'type'.
4534         Use 'type' from caller, not inferred from 'stmt'.
4535         Pass type to is_widening_mult_rhs_p.
4536         (convert_mult_to_widen): Pass type to is_widening_mult_p.
4537         (convert_plusminus_to_widen): Likewise.
4539 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4541         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4542         Ensure the the larger type is the first operand.
4544 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4546         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4547         unsupported unsigned multiplies to signed.
4548         (convert_plusminus_to_widen): Likewise.
4550 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4552         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4553         conversion statement separating multiply-and-accumulate.
4555 2011-08-19  Richard Guenther  <rguenther@suse.de>
4557         PR tree-optimization/50067
4558         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4559         offset only if we accounted for it.
4561 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4563         * config/arm/arm.md (maddhidi4): Remove '*' from name.
4564         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4565         * optabs.c (find_widening_optab_handler_and_mode): New function.
4566         (expand_widen_pattern_expr): Use find_widening_optab_handler.
4567         (expand_binop_directly): Likewise.
4568         (expand_binop): Likewise.
4569         * optabs.h (find_widening_optab_handler): New macro define.
4570         (find_widening_optab_handler_and_mode): New prototype.
4571         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4572         type precision rules.
4573         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4574         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4575         (is_widening_mult_rhs_p): Allow widening by more than one mode.
4576         Explicitly disallow mis-matched input types.
4577         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4578         input types to fit the new handler.
4579         (convert_plusminus_to_widen): Likewise.
4581 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4583         * expr.c (expand_expr_real_2): Use widening_optab_handler.
4584         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4585         (gen_insn): $N now means $a must be wider than $b, not consecutive.
4586         * optabs.c (widened_mode): New function.
4587         (expand_widen_pattern_expr): Use widening_optab_handler.
4588         (expand_binop_directly): Likewise.
4589         (expand_binop): Likewise.
4590         * optabs.h (widening_optab_handlers): New struct.
4591         (optab_d): New member, 'widening'.
4592         (widening_optab_handler): New function.
4593         (set_widening_optab_handler): New function.
4594         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4595         widening_optab_handler.
4596         (convert_plusminus_to_widen): Likewise.
4598 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4600         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4601         pedantic.
4602         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4603         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4605 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4607         * opth-gen.awk: Do not declare target save/restore structures and
4608         functions if IN_RTS defined.
4610 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4612         PR target/49437
4613         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4614         when stack was realigned in interrupt handler prologue.
4616 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
4618         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4619         (quals_from_declspecs): Assert _Noreturn not present.
4620         (grokdeclarator): Handle _Noreturn.
4621         (build_null_declspecs): Initialize noreturn_p.
4622         (declspecs_add_scspec): Handle RID_NORETURN.
4623         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4624         (c_parser_attributes): Handle RID_NORETURN.
4625         * c-tree.h (struct c_declspecs): Add noreturn_p.
4626         * ginclude/stdnoreturn.h: New.
4627         * Makefile.in (USER_H): Add stdnoreturn.h.
4629 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4631         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4632         (OPTION_MASK_ISA_AVX_UNSET): Update.
4633         (OPTION_MASK_ISA_AVX2_UNSET): New.
4634         (ix86_handle_option): Handle OPT_mavx2 case.
4635         * config/i386/cpuid.h (bit_AVX2): New.
4636         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4637         AVX2 feature.
4638         * config/i386/i386-c.c (ix86_target_macros_internal):
4639         Conditionally define __AVX2__.
4640         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4641         Define "core-avx2" processor alias.  Handle avx2 option.
4642         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4643         * config/i386/i386.h (TARGET_AVX2): New.
4644         * config/i386/i386.opt (mavx2): New.
4645         * doc/invoke.texi: Document -mavx2.
4647 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
4649         PR rtl-optimization/49890
4650         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4651         subclasses of class which is superset of a pressure class.
4653 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4654             Igor Zamyatin <igor.zamyatin@intel.com>
4656         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4657         with HOST_WIDE_INT for isa_flag.
4658         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4659         isa variables.
4661         * config/i386/i386.c (ix86_target_string): Replace int with
4662         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
4663         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4664         (pta_flags): Removed.
4665         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4666         (pta): Use HOST_WIDE_INT on flags.
4667         (builtin_isa): Use HOST_WIDE_INT on isa.
4668         (ix86_add_new_builtins): Likewise.
4669         (def_builtin): Use HOST_WIDE_INT on mask.
4670         (def_builtin_const): Likewise.
4671         (builtin_description): Likewise.
4673         * config/i386/i386.opt (ix86_isa_flags): Replace int with
4674         HOST_WIDE_INT.
4675         (ix86_isa_flags_explicit): Likewise.
4676         (x_ix86_isa_flags_explicit): Likewise.
4678 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
4680         PR rtl-optimization/50107
4681         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4682         (ira_hard_reg_in_set_p): New.
4684         * ira-color.c (calculate_saved_nregs): New.
4685         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
4686         hard regs.
4687         (allocno_reload_assign, fast_allocation): Use
4688         ira_hard_reg_set_intersection_p instead of
4689         ira_hard_reg_not_in_set_p.
4691         * ira.c (setup_reg_renumber): Use
4692         ira_hard_reg_set_intersection_p instead of
4693         ira_hard_reg_not_in_set_p.
4694         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4695         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4697         * ira-costs.c (ira_tune_allocno_costs): Use
4698         ira_hard_reg_set_intersection_p instead of
4699         ira_hard_reg_not_in_set_p.
4701 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4702             Igor Zamyatin <igor.zamyatin@intel.com>
4704         * hwint.h (HOST_WIDE_INT_1): New.
4706         * opt-functions.awk (switch_bit_fields): Initialize the
4707         host_wide_int field.
4708         (host_wide_int_var_name): New.
4709         (var_type_struct): Check and return HOST_WIDE_INT.
4711         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4713         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4715         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
4716         check masks for HOST_WIDE_INT.
4718         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4719         (option_enabled): Likewise.
4720         (get_option_state): Likewise.
4722         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
4723         to HOST_WIDE_INT.
4725 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4726             Marc Glisse  <marc.glisse@normalesup.org>
4728         PR libstdc++-v3/1773
4729         * target.def (decl_mangling_context): New C++ hook.
4730         * doc/tm.texi: Regenerate.
4731         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4732         * config/sol2-protos.h: Group by source file.
4733         (solaris_cxx_decl_mangling_context): Declare.
4734         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4735         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4736         Use $<.
4737         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4738         Add sol2-stubs.o to extra_objs.
4740 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
4742         PR target/50009
4743         * stor-layout.c (update_alignment_for_field): Don't ICE on
4744         packed flexible array members if ms_bitfield_layout_p.
4746         PR target/50092
4747         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4748         on the result before returning it.
4750         PR debug/50017
4751         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4752         is a debug stmt, use location of the first non-debug stmt after it.
4754 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4756         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4757         (arm_size_rtx_costs): Likewise.
4759 2011-08-18  Richard Guenther  <rguenther@suse.de>
4761         * tree.h (tree_int_cst_msb): Remove.
4762         * tree.c (tree_int_cst_msb): Likewise.
4763         (tree_int_cst_sign_bit): Move from ...
4764         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4766 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4768         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4769         * doc/tm.texi: Regenerate.
4770         * target.def (rtx_costs): Add an opno parameter.
4771         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4772         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4773         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4774         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4775         * cse.c (COST_IN): Add an opno parameter.
4776         (notreg_cost): Likewise.  Update call to rtx_cost.
4777         (COST, fold_rtx): Update accordingly.
4778         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4779         * expmed.c (emit_store_flag): Likewise.
4780         * optabs.c (avoid_expensive_constant): Add an opno parameter.
4781         Update call to rtx_cost.
4782         (expand_binop_directly, expand_binop): Likewise.
4783         (expand_twoval_binop, prepare_cmp_insn): Likewise.
4784         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4785         (set_src_cost, get_full_set_src_cost): Update accordingly.
4786         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
4787         to target hook.
4788         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
4789         (default_adress_cost): Update calls to rtx_cost.
4791         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4792         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4793         (arm_rtx_costs): Add an opno parameter.
4794         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4795         adjust any recursive rtx-cost calls.
4796         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4797         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4798         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4799         * config/cris/cris.c (cris_rtx_costs): Likewise.
4800         * config/frv/frv.c (frv_rtx_costs): Likewise.
4801         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4802         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4803         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4804         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4805         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4806         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4807         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4808         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4809         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4810         * config/mep/mep.c (mep_rtx_cost): Likewise.
4811         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4812         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4813         (mips_zero_extend_cost): Add an opno parameter.
4814         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4815         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4816         to rtx_cost.
4817         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4818         rtx-cost calls.
4819         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4820         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4821         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4822         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4823         (rs6000_debug_rtx_costs): Likewise.
4824         * config/s390/s390.c (s390_rtx_costs): Likewise.
4825         * config/score/score-protos.h (score_rtx_costs): Likewise.
4826         * config/score/score.c (score_rtx_costs): Likewise.
4827         * config/sh/sh.c (andcosts): Update call to rtx_cost.
4828         (sh_rtx_costs): Add an opno parameter.
4829         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4830         * config/spu/spu.c (spu_rtx_costs): Likewise.
4831         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4832         * config/v850/v850.c (v850_rtx_costs): Likewise.
4833         * config/vax/vax.c (vax_rtx_costs): Likewise.
4834         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4836 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4838         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4839         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4840         rtx_cost.
4841         * calls.c (precompute_register_parameters): Likewise.
4842         * combine.c (expand_compound_operation, make_extraction): Likewise.
4843         (force_to_mode, distribute_and_simplify_rtx): Likewise.
4844         * dse.c (find_shift_sequence): Likewise.
4845         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4846         * expr.c (compress_float_constant): Likewise.
4847         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4848         * gcse.c (want_to_gcse_p): Likewise.
4849         * ifcvt.c (noce_try_sign_mask): Likewise.
4850         * loop-doloop.c (doloop_optimize): Likewise.
4851         * loop-invariant.c (create_new_invariant): Likewise.
4852         * optabs.c (avoid_expensive_constant): Likewise.
4853         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4854         (try_replace_in_use, reload_cse_move2add): Likewise.
4855         * reload1.c (calculate_elim_costs_all_insns): Likewise.
4856         (note_reg_elim_costly): Likewise.
4857         * rtlanal.c (insn_rtx_cost): Likewise.
4858         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4859         * stmt.c (lshift_cheap_p): Likewise.
4860         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4861         * config/avr/avr.c (final_prescan_insn): Likewise.
4862         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4863         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4865 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4867         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4868         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4869         * cfgloopanal.c (seq_cost): Likewise.
4870         * loop-invariant.c (create_new_invariant): Likewise.
4871         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4872         (reload_cse_move2add): Use get_full_set_rtx_cost.
4874 2011-08-18  Richard Guenther  <rguenther@suse.de>
4876         * expr.c (get_inner_reference): Fix typo in last change.
4878 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4879             Joseph Myers  <joseph@codesourcery.com>
4881         PR tree-optimization/49963
4882         * hwint.c (absu_hwi): Define.
4883         * hwint.h (absu_hwi): Declare.
4884         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4885         of abs_hwi.
4886         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4887         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4889 2011-08-18  Richard Guenther  <rguenther@suse.de>
4891         * expr.c (get_inner_reference): Sign-extend the constant
4892         twos-complement offset before doing arbitrary precision
4893         arithmetic on it.
4894         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4895         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4896         to get_constraint_for_ptr_offset.
4898 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4900         PR target/50068
4901         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4903 2011-08-17  Richard Guenther  <rguenther@suse.de>
4905         * tree.h (convert_to_ptrofftype_loc): New function.
4906         (convert_to_ptrofftype): Define.
4907         * builtins.c (expand_builtin_bzero): Use size_type_node.
4908         (fold_builtin_bzero): Likewise.
4909         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4910         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4911         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4912         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4913         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4914         * fold-const.c (build_range_check): Negate using the original type.
4915         (fold_unary_loc): Use fold_build_pointer_plus_loc.
4916         * gimple-fold.c (gimple_adjust_this_by_delta): Use
4917         convert_to_ptrofftype.
4918         * gimplify.c (gimplify_self_mod_expr): Likewise.
4919         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4920         (graphite_create_new_loop_guard): Likewise.
4921         * graphite-sese-to-poly.c (my_long_long): Remove.
4922         (scop_ivs_can_be_represented): Adjust.
4923         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4924         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4925         * tree-loop-distribution.c (build_size_arg_loc): Use
4926         size_type_node.
4927         (generate_memset_zero): Simplify.
4928         * tree-mudflap.c: Use fold_convert, not convert.
4929         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4930         its own type.
4931         (determine_offset): Likewise for DR_STEP.
4932         (valid_initializer_p): Likewise.
4933         * tree-profile.c (prepare_instrumented_value): Convert the pointer
4934         to an integer type of same size.
4935         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4936         to sizetype without need.
4937         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4938         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4939         * tree-ssa-loop-manip.c (create_iv): Likewise.
4940         (determine_exit_conditions): Adjust comment.
4941         * tree-ssa-pre.c (create_expression_by_pieces): Use
4942         convert_to_ptrofftype.
4943         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4944         * varasm.c (array_size_for_constructor): Compute using double_ints.
4946 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4948         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4949         when generating an integer result where possible.  Short-cut
4950         comparison against 0 also for QImode.
4952 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4954         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4955         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4956         prototype.
4957         * config/spu/spu.c (spu_legitimize_reload_address): New function.
4958         (spu_legitimate_address_p): Do not check displacement if the base
4959         is an eliminable stack register.
4961 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
4963         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4964         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4965         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4966         m32c_preferred_output_reload_class): Remove.
4967         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4968         Change rclass argument and return types to reg_class_t. Use
4969         reg_class_subset_p instead of class_sizes.
4970         (m32c_preferred_output_reload_class): Make static. Change rclass
4971         argument and return types to reg_class_t.
4972         (TARGET_PREFERRED_RELOAD_CLASS,
4973         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4975 2011-08-16  Kai Tietz  <ktietz@redhat.com>
4977         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4979 2011-08-16  Richard GUenther  <rguenther@suse.de>
4981         PR tree-optimization/50082
4982         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4983         warnings here, instead of ...
4984         (ssa_forward_propagate_and_combine): ... here.
4985         (forward_propagate_into_comparison_1): Adjust.
4986         (forward_propagate_into_comparison): Likewise.
4987         (forward_propagate_into_gimple_cond): Likewise.
4988         (forward_propagate_into_cond): Likewise.
4990 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4992         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4993         instead of ggc_alloc_zone_vec_rtvec_def.
4995 2011-08-16  Richard Guenther  <rguenther@suse.de>
4997         * tree.h (ptrofftype_p): New helper function.
4998         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4999         offset verification.
5000         (verify_gimple_assign_binary): Likewise.
5001         * tree.c (build2_stat): Likewise.
5002         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
5003         (reset_evolution_in_loop): Likewise.
5004         * tree-chrec.h (build_polynomial_chrec): Likewise.
5006 2011-08-16  Liang Wang  <lwang1@marvell.com>
5008         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
5009         ggc_alloc_zone_vec_rtvec_def.
5011 2011-08-16  Richard Guenther  <rguenther@suse.de>
5013         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
5014         helper factored out from ...
5015         (extract_range_from_binary_expr_1): ... here.  Re-structure
5016         to not glob handling too different tree codes.
5018 2011-08-15  Richard Henderson  <rth@redhat.com>
5020         PR middle-end/50006
5021         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
5022         setting out to include allocate_stack named pattern as well.
5023         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
5024         * stmt.c (expand_stack_restore): Likewise.
5026 2011-08-15  Richard Guenther  <rguenther@suse.de>
5028         PR middle-end/50082
5029         * fold-const.c (maybe_canonicalize_comparison_1): Properly
5030         convert the modified operand to the other operand type.
5031         (fold_comparison): Call maybe_canonicalize_comparison_1 with
5032         useless conversions stripped from comparison operands.
5034 2011-08-15  Richard Guenther  <rguenther@suse.de>
5036         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
5037         (extract_range_from_unary_expr_1): Restructure.
5039 2011-08-15  Richard Guenther  <rguenther@suse.de>
5041         PR tree-optimization/50058
5042         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
5043         copy matching.
5045 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5047         PR target/50022
5048         * config/arm/arm.c (output_move_double): Add 2 parameters
5049         to count the number of insns emitted and whether to emit or not.
5050         Use the flag to decide when to emit and count number of instructions
5051         that will be emitted.
5052         Handle case where output_move_double might be called for calculating
5053         lengths with an invalid constant.
5054         (arm_count_output_move_double_insns): Define.
5055         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
5056         (output_move_double): Adjust prototype.
5057         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
5058         output_move_double.
5059         ("*movdi_vfp_cortexa8"): Likewise and add attribute
5060         for ce_count.
5061         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
5062         ("*movdf_soft_insn"): Likewise.
5063         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
5064         ("*cirrus_thumb2_movdi"): Likewise.
5065         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
5066         ("*cirrus_movdf_hard_insn"): Likewise.
5067         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
5068         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
5069         ("mov<mode>_internal VMMX"): Likewise.
5070         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
5072 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
5074         * config/i386/i386.c (ix86_expand_round_sse4): New function.
5075         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
5076         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
5077         for TARGET_ROUND.
5079         (rint<mode>2): Simplify TARGET_ROUND check.
5080         (floor<mode>2): Ditto.
5081         (ceil<mode>2): Ditto.
5082         (btrunc<mode>2): Ditto.
5084 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
5086         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5087         as mmix_preferred_output_reload_class.
5089 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
5091         * PR target/49903
5092         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5093         (branch_unspec): New insn.
5094         (branch): Beauty farm.
5095         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
5096         to be IF_THEN_ELSE.
5097         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5098         New static functions.
5099         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
5100         Use CONST_INT_P.  Beauty.
5102 2011-08-12  Richard Henderson  <rth@redhat.com>
5104         PR rtl-opt/49994
5105         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5106         * sched-deps.c (init_deps): Clear it.
5107         (deps_analyze_insn): Consume it.
5108         (sched_analyze_insn): Fill it.
5110 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5112         PR target/48328
5113         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5114         for tbh instructions.
5116 2011-08-12  Diego Novillo  <dnovillo@google.com>
5118         * data-streamer.h (streamer_write_zero): Rename from output_zero.
5119         (streamer_write_uhwi): Rename from lto_output_uleb128.
5120         (streamer_write_hwi): Rename from output_sleb128.
5121         (streamer_write_string): Rename from lto_output_string.
5122         (streamer_string_index): Rename from lto_string_index.
5123         (streamer_write_string_with_length): Rename from
5124         lto_output_string_with_length.
5125         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5126         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5127         (streamer_read_string): Rename from lto_input_string.
5128         (streamer_read_indexed_string): Rename from input_string_internal.
5129         (streamer_read_uhwi): Rename from lto_input_uleb128.
5130         (streamer_read_hwi): Rename from lto_input_sleb128.
5131         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5132         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5133         (streamer_write_enum): Rename from lto_output_enum.
5134         (streamer_read_enum): Rename from lto_input_enum.
5135         (streamer_write_record_start): Rename from output_record_start.
5136         (streamer_read_record_start): Rename from input_record_start.
5137         (streamer_write_bitpack): Rename from lto_output_bitpack.
5138         (streamer_read_bitpack): Rename from lto_input_bitpack.
5139         (streamer_write_char_stream): Rename from lto_output_1_stream.
5140         (streamer_read_uchar): Rename from lto_input_1_unsigned.
5141         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5142         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5143         (streamer_read_string_cst): Rename from input_string_cst.
5144         (streamer_read_chain): Rename from lto_input_chain.
5145         (streamer_alloc_tree): Rename from lto_materialize_tree.
5146         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5147         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5148         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5149         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5150         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5151         (streamer_write_chain): Rename from lto_output_chain.
5152         (streamer_write_tree_header): Rename from lto_output_tree_header.
5153         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5154         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5155         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5156         (streamer_write_builtin): Rename from lto_output_builtin_tree.
5157         (streamer_check_handled_ts_structures): Rename from
5158         check_handled_ts_structures.
5159         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5160         (streamer_tree_cache_insert_at): Rename from
5161         lto_streamer_cache_insert_at.
5162         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5163         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5164         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5165         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5166         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5167         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5168         (write_identifier): Rename from output_identifier.
5169         (write_ts_common_tree_pointers): Rename from
5170         lto_output_ts_common_tree_pointers.
5171         (write_ts_vector_tree_pointers): Rename from
5172         lto_output_ts_vector_tree_pointers.
5173         (write_ts_complex_tree_pointers): Rename from
5174         lto_output_ts_complex_tree_pointers.
5175         (write_ts_decl_minimal_tree_pointers): Rename from
5176         lto_output_ts_decl_minimal_tree_pointers.
5177         (write_ts_decl_common_tree_pointers): Rename from
5178         lto_output_ts_decl_common_tree_pointers.
5179         (write_ts_decl_non_common_tree_pointers): Rename from
5180         lto_output_ts_decl_non_common_tree_pointers.
5181         (write_ts_decl_with_vis_tree_pointers): Rename from
5182         lto_output_ts_decl_with_vis_tree_pointers.
5183         (write_ts_field_decl_tree_pointers): Rename from
5184         lto_output_ts_field_decl_tree_pointers.
5185         (write_ts_function_decl_tree_pointers): Rename from
5186         lto_output_ts_function_decl_tree_pointers.
5187         (write_ts_type_common_tree_pointers): Rename from
5188         lto_output_ts_type_common_tree_pointers.
5189         (write_ts_type_non_common_tree_pointers): Rename from
5190         lto_output_ts_type_non_common_tree_pointers.
5191         (write_ts_list_tree_pointers): Rename from
5192         lto_output_ts_list_tree_pointers.
5193         (write_ts_vec_tree_pointers): Rename from
5194         lto_output_ts_vec_tree_pointers.
5195         (write_ts_exp_tree_pointers): Rename from
5196         lto_output_ts_exp_tree_pointers.
5197         (write_ts_block_tree_pointers): Rename from
5198         lto_output_ts_block_tree_pointers.
5199         (write_ts_binfo_tree_pointers): Rename from
5200         lto_output_ts_binfo_tree_pointers.
5201         (write_ts_constructor_tree_pointers): Rename from
5202         lto_output_ts_constructor_tree_pointers.
5203         (write_ts_target_option): Rename from lto_output_ts_target_option.
5204         (write_ts_translation_unit_decl_tree_pointers): Rename from
5205         lto_output_ts_translation_unit_decl_tree_pointers.
5206         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5207         Rename from lto_streamer_cache_add_to_node_array.
5208         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5209         (record_common_node): Rename from lto_record_common_node.
5211         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5212         declarations.
5213         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5214         function.
5215         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5216         unused function.
5217         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5218         (ipa-reference.o): Likewise.
5219         * lto-section-out.c: Include data-streamer.h.
5220         * ipa-reference.c: Include data-streamer.h.
5222 2011-08-12  Nick Clifton  <nickc@redhat.com>
5224         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5225         * doc/md.texi (cmpstrn): Note that the comparison stops if both
5226         fetched bytes are zero.
5227         (cmpstr): Likewise.
5228         (cmpmem): Note that the comparison does not stop if both of the
5229         fetched bytes are zero.
5231 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
5233         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5234         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5235         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5236         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5237         to integer_type_node.
5238         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5239         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5240         * builtins.c (expand_builtin_in): Ditto.
5241         (mathfn_built_in_1): Ditto.
5242         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5243         BUILT_IN_IFLOOR.
5244         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5245         BUILT_IN_IROUND.
5246         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5247         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5248         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5250 2011-08-12  Richard Guenther  <rguenther@suse.de>
5252         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5254 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
5256         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5258 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
5260         * config/arm/arm.c (get_label_padding): New function.
5261         (create_fix_barrier, arm_reorg): Use it.
5263 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
5265         PR target/49781
5266         * config/i386/i386.md (*lea_5_zext): New.
5267         (*lea_6_zext): Ditto.
5268         * config/i386/predicates.md (const_32bit_mask): New predicate.
5269         (lea_address_operand): Reject AND.
5270         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5271         const_32bit_mask immediate.
5272         (ix86_print_operand_address): Handle AND.
5273         (memory_address_length): Ditto.
5275 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
5276             Brian Hackett  <bhackett1024@gmail.com>
5278         * plugin.def: Add event for finish_decl.
5279         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5280         * c-decl.c (finish_decl): Invoke callbacks on above event.
5281         * doc/plugins.texi: Document above event.
5283 2011-08-11  Richard Guenther  <rguenther@suse.de>
5285         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5286         lookups, make looking through aggregate copies stronger.
5288 2011-08-11  Richard Henderson  <rth@redhat.com>
5290         PR bootstrap/50018
5291         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5293 2011-08-11  Richard Guenther  <rguenther@suse.de>
5295         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5296         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5297         (vrp_visit_stmt): Likewise.
5299 2011-08-11  Richard Guenther  <rguenther@suse.de>
5301         PR middle-end/50040
5302         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5303         load of the other piece with TREE_NO_WARNING.
5304         * tree-flow.h (warn_uninit): Adjust prototype.
5305         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5306         the base variable and the expression that is used separately.
5307         Properly query all TREE_NO_WARNING flags.
5308         (struct walk_data): Remove.
5309         (warn_uninitialized_var): Likewise.
5310         (warn_uninitialized_vars): Do not walk gimple pieces but simply
5311         look at all SSA uses of the statement.  Handle unused memory
5312         separately.
5313         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5315 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5317         * config/rx/rx.md (movsicc): Allow register to register transfers.
5318         (*movsicc): Likewise.
5319         (*stcc): Restrict this pattern to EQ and NE compares.
5320         (*stcc_reg): New pattern.  Works for any comparison but only for
5321         register transfers.
5323 2011-08-11   Diego Novillo  <dnovillo@google.com>
5325         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5326         Call stream_write_tree instead of output_record_start.
5327         (lto_output_ts_binfo_tree_pointers): Likewise.
5329         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5330         Convert it to a macro.
5331         (stream_read_tree): Likewise.
5333         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5334         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5336         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5337         and tree_read_bitfields.
5338         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5339         (lto_write_tree): Call it.
5340         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5341         * streamer-hooks.h (struct streamer_hooks): Remove fields
5342         name, is_streamable and alloc_tree. Update all users.
5343         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5344         (lto_materialize_tree): ... here.
5345         Handle CALL_EXPR codes.
5346         Remove call to lto_streamer_cache_append.
5347         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5348         * tree-streamer.h (tree_read_bitfields): Declare.
5350         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5351         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5352         * tree-streamer.h (stream_read_tree): New.  Replace all calls
5353         to lto_input_tree with it.
5354         (stream_write_tree): New.  Replace all calls to lto_output_tree,
5355         lto_output_tree_ref and lto_output_tree_or_ref with it.
5356         * lto-streamer-in.c (lto_read_tree): Inline code from
5357         lto_streamer_read_tree.
5358         (lto_input_tree): Move from tree-streamer-in.c.
5359         * lto-streamer-out.c (lto_output_tree_ref): Make static.
5360         Remove handling of NULL values for EXPR.
5361         Do not handle EXPRs that are not indexable.
5362         (lto_write_tree): Move from tree-streamer-out.c.
5363         Inline lto_streamer_write_tree.
5364         (lto_output_tree): Move from tree-streamer-out.c.
5365         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5366         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5367         (lto_preload_common_nodes): Likewise.
5368         Remove assertions and adjustments for nodes
5369         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5370         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5371         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5372         * lto-streamer.h (lto_input_tree): Declare.
5373         (lto_output_tree_ref): Remove.
5374         * streamer-hooks.h (struct streamer_hooks): Remove fields
5375         preload_common_nodes, indexable_with_decls_p,
5376         pack_value_fields, unpack_value_fields and output_tree_header.
5377         Update all users.
5378         * tree-streamer-in.c (lto_materialize_tree): Make extern.
5379         (lto_input_tree_pointers): Likewise.
5380         (lto_read_tree): Move to lto-streamer-in.c.
5381         (lto_input_integer_cst): Make extern.
5382         (lto_get_pickled_tree): Likewise.
5383         (lto_get_builtin_tree): Likewise.
5384         (lto_input_tree): Move to lto-streamer-in.c.
5385         * tree-streamer-out.c (pack_value_fields): Make extern.
5386         (lto_output_tree_or_ref): Remove.  Replace all callers with
5387         calls to stream_write_tree.
5388         (lto_output_builtin_tree): Make extern.
5389         (lto_streamer_write_tree): Inline into lto_write_tree.
5390         (lto_output_tree_pointers): Make extern.
5391         (lto_output_tree_header): Likewise.
5392         (lto_output_integer_cst): Likewise.
5393         (lto_write_tree): Move to lto-streamer-out.c.
5394         (lto_output_tree): Likewise.
5395         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5396         (preload_common_nodes): Likewise.
5397         (lto_streamer_cache_create): Call it.
5398         * tree-streamer.h: Include streamer-hooks.h.
5399         (stream_write_tree): New.
5400         (stream_read_tree): New.
5401         (lto_input_tree): Remove.
5402         (lto_materialize_tree): Declare.
5403         (lto_input_tree_pointers): Declare.
5404         (lto_get_pickled_tree): Declare.
5405         (lto_get_builtin_tree): Declare.
5406         (lto_input_integer_cst): Declare.
5407         (lto_output_tree_header): Declare.
5408         (pack_value_fields): Declare.
5409         (lto_output_tree_pointers): Declare.
5410         (lto_output_integer_cst): Declare.
5411         (lto_output_builtin_tree): Declare.
5413 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5415         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5416         only if producer writes to the register given by regno.
5418 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5419             Alexander Monakov  <amonakov@ispras.ru>
5421         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5422         (sched_get_condition_with_rev_uncached): ... this.  Factor out
5423         condition caching logic into ...
5424         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
5425         attempt to use cache for instructions with zero luid.
5426         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5427         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5429 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5431         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5432         get_seqno_for_a_jump.  Update the caller.
5433         (get_seqno_by_succs): New.  Use it ...
5434         (get_seqno_for_a_jump): ... here to find a seqno if looking at
5435         predecessors was not sufficient.
5436         (get_seqno_by_preds): Include head in iteration range, exclude insn.
5438 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5440         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5442 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5444         * sel-sched-ir.h (register_unavailable_p): Declare.
5445         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
5446         (set_unavailable_target_for_expr): ... here to properly test
5447         availability of a register.
5448         (speculate_expr): Ditto.
5449         * sel-sched.c (substitute_reg_in_expr): Ditto.
5450         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5452 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5454         * sel-sched.c (verify_target_availability): Fix usage of
5455         hard_regno_nregs.
5457 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5459         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5460         recognized by cannot_copy_insn_p hook and volatile instructions.
5462 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5464         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5466 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
5468         * doc/md.texi (define_bypass): Say that the instruction names can
5469         be filename-style globs.
5470         * Makefile.in (FNMATCH_H): Define.
5471         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5472         * genattrtab.c: Include fnmatch.h.
5473         (bypass_list): Change field name from "insn" to "pattern".
5474         (gen_bypass_1): Update accordingly.
5475         (process_bypasses): Use fnmatch to check for matches between
5476         insn reservations and define_bypasses.
5477         * genautomata.c: Include fnmatch.h.
5478         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5479         and out_pattern respectively.
5480         (gen_bypass, insert_bypass): Update accordingly.
5481         (for_each_matching_insn, process_bypass_2, process_bypass_1)
5482         (process_bypass): New functions.
5483         (process_decls): Use process_bypass.  Update after field name changes.
5485 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
5487         PR target/49687
5488         * config/avr/avr.md (smulqi3_highpart): New insn.
5489         (umulqi3_highpart): New insn.
5490         (*subqi3.ashiftrt7): New insn.
5491         (smulhi3_highpart): New expander.
5492         (umulhi3_highpart): Nex expander.
5493         (*smulhi3_highpart_call): New insn.
5494         (*umulhi3_highpart_call): New insn.
5495         (extend_u): New code attribute.
5496         (extend_prefix): Rename code attribute to extend_su.
5497         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5498         widening QI/HI multiply.
5500 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
5502         PR tree-optimization/50039
5503         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5504         that DEF_STMT has a stmt_vec_info.
5506 2011-08-10  Richard Guenther  <rguenther@suse.de>
5508         * tree.h (can_trust_pointer_alignment): Remove.
5509         * builtins.c (can_trust_pointer_alignment): Remove.
5511 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5513         * c-typeck.c (scalar_to_vector): New function. Try scalar to
5514         vector conversion.
5515         (stv_conv): New enum for scalar_to_vector return type.
5516         (build_binary_op): Adjust.
5517         * doc/extend.texi: Description of scalar to vector expansion.
5519 2011-08-10  Richard Guenther  <rguenther@suse.de>
5521         * tree.h (get_pointer_alignment): Remove max-align argument.
5522         (get_object_alignment): Likewise.
5523         * builtins.c (get_object_alignment_1): Adjust.
5524         (get_object_alignment): Remove max-align argument.
5525         (get_pointer_alignment): Likewise.
5526         (expand_builtin_strlen): Adjust.
5527         (expand_builtin_memcpy): Likewise.
5528         (expand_builtin_mempcpy_args): Likewise.
5529         (expand_builtin_strncpy): Likewise.
5530         (expand_builtin_memset_args): Likewise.
5531         (expand_builtin_memcmp): Likewise.
5532         (expand_builtin_strcmp): Likewise.
5533         (expand_builtin_strncmp): Likewise.
5534         (get_builtin_sync_mem): Likewise.
5535         (fold_builtin_memset): Likewise.
5536         (fold_builtin_memory_op): Likewise.
5537         (expand_builtin_memory_chk): Likewise.
5538         * emit-rtl.c (get_mem_align_offset): Likewise.
5539         (set_mem_attributes_minus_bitpos): Likewise.
5540         * expr.c (expand_assignment): Likewise.
5541         (expand_expr_real_1): Likewise.
5542         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5543         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5544         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5545         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5546         * value-prof.c (gimple_stringops_transform): Likewise.
5548 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
5550         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5551         * doc/tm.texi: Regenerate.
5553 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
5555         PR target/29560
5556         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5557         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5558         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5559         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5560         shift target is unused.
5562 2011-08-10  Richard Guenther  <rguenther@suse.de>
5564         PR tree-optimization/49937
5565         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5566         using get_object_alignment_1.
5568 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5570         * config/i386/i386.c (ix86_emit_i387_round): New function.
5571         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5572         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5573         Use ix86_emit_i387_round to expand round function for i387 math.
5574         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5575         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5577 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5579         * config/sync.c: Move to ../libgcc.
5580         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5581         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5582         Remove.
5584 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5586         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5587         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5588         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5589         Change 'from' and 'to' arguments type to reg_class_t.
5590         (TARGET_REGISTER_MOVE_COST): Define.
5592 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
5594         PR target/50026
5595         Revert:
5596         PR rtl-optimization/49990
5597         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5598         ignore classes which can not change mode.
5599         (find_costs_and_classes): Ditto.
5601 2011-08-09  Richard Guenther  <rguenther@suse.de>
5603         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5604         information for ranges with only negative values.
5605         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5606         BIT_AND_EXPR handling to handle ranges with negative values.
5608 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5610         * config/i386/i386.c: Remove traling spaces.
5611         * config/i386/sse.md: Likewise.
5612         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5613         (*fma_fmsub_<mode>): Likewise.
5614         (*fma_fnmadd_<mode>): Likewise.
5615         (*fma_fnmsub_<mode>): Likewise.
5617 2011-08-09  Nick Clifton  <nickc@redhat.com>
5619         * config/rx/rx.md: Disable extender peepholes at -O3.
5621 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5623         PR target/49781
5624         * config/i386/i386.md (reload_noff_load): New.
5625         (reload_noff_store): Ditto.
5626         * config/i386/i386.c (ix86_secondary_reload): Use
5627         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5628         double-word moves from/to non-offsetable addresses instead of
5629         generating XMM temporary.
5631 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5633         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5635 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
5637         PR tree-optimization/50014
5638         * tree-vect-loop.c (vectorizable_reduction): Get def type before
5639         calling vect_get_vec_def_for_stmt_copy ().
5641 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
5643         PR rtl-optimization/49990
5644         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5645         ignore classes which can not change mode.
5646         (find_costs_and_classes): Ditto.
5648 2011-08-08  Richard Henderson  <rth@redhat.com>
5650         PR middle-end/49990
5651         * config/i386/i386.c (ix86_expand_prologue): Call
5652         for SEH target gen_prologue_use instead of gen_blockage
5653         at prologue's end.
5655 2011-08-08  Martin Jambor  <mjambor@suse.cz>
5657         PR middle-end/49923
5658         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5659         memory alignment.
5661 2011-08-08   Diego Novillo  <dnovillo@google.com>
5663         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5664         (DATA_STREAMER_H): New.
5665         (GIMPLE_STREAMER_H): New.
5666         (TREE_STREAMER_H): New.
5667         (STREAMER_HOOKS_H): New.
5668         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5669         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5670         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5671         (data-streamer.o): New.
5672         (data-streamer-in.o): New.
5673         (data-streamer-out.o): New.
5674         (gimple-streamer-in.o): New.
5675         (gimple-streamer-out.o): New.
5676         (streamer-hooks.o): New.
5677         (tree-streamer.o): New.
5678         (tree-streamer-in.o): New.
5679         (tree-streamer-out.o): New.
5680         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5681         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5682         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5683         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5684         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5685         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5686         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5687         (ipa-inline-analysis.o): Likewise.
5688         (ipa-pure-const.o): Likewise.
5689         * data-streamer-in.c: New.
5690         * data-streamer-out.c: New.
5691         * data-streamer.c: New.
5692         * data-streamer.h: New.
5693         * gimple-streamer-in.c: New.
5694         * gimple-streamer-out.c: New.
5695         * gimple-streamer.h: New.
5696         * ipa-inline-analysis.c: Include data-streamer.h.
5697         * ipa-prop.c: Include data-streamer.h.
5698         * ipa-pure-const.c: Include data-streamer.h.
5699         * lto-cgraph.c: Include data-streamer.h.
5700         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5701         (lto_input_widest_uint_uleb128): Likewise.
5702         (lto_input_sleb128): Likewise.
5703         (bp_unpack_var_len_unsigned): Likewise.
5704         (bp_unpack_var_len_int): Likewise.
5705         * lto-section-out.c (lto_output_uleb128_stream): Move to
5706         data-streamer-out.c.
5707         (lto_output_widest_uint_uleb128_stream): Likewise.
5708         (lto_output_sleb128_stream): Likewise.
5709         (bp_pack_var_len_unsigned): Likewise.
5710         (bp_pack_var_len_int): Likewise.
5711         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5712         (struct string_slot): Remove.  Update all users.
5713         (lto_tag_check_set): Make extern.
5714         (lto_tag_check_range): Move to lto-streamer.h.
5715         (lto_tag_check): Likewise.
5716         (hash_string_slot_node): Remove.  Update all users.
5717         (eq_string_slot_node): Remove.  Update all users.
5718         (string_for_index): Move to data-streamer-in.c
5719         (input_string_internal): Likewise.
5720         (input_string_cst): Move to tree-streamer-in.c.
5721         (input_identifier): Likewise.
5722         (lto_input_string): Move to data-streamer-in.c
5723         (input_record_start): Move to data-streamer.h
5724         (canon_file_name): Use new definition of struct string_slot
5725         from data-streamer.h.  Set S_SLOT.LEN.
5726         (lto_input_location): Make extern.
5727         (lto_input_chain): Move to tree-streamer-in.c.
5728         (lto_init_eh): Make extern.
5729         (input_phi): Move to gimple-streamer-in.c.
5730         (input_gimple_stmt): Likewise.
5731         (input_bb): Likewise.
5732         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5733         (unpack_ts_real_cst_value_fields): Likewise.
5734         (unpack_ts_fixed_cst_value_fields): Likewise.
5735         (unpack_ts_decl_common_value_fields): Likewise.
5736         (unpack_ts_decl_wrtl_value_fields): Likewise.
5737         (unpack_ts_decl_with_vis_value_fields): Likewise.
5738         (unpack_ts_function_decl_value_fields): Likewise.
5739         (unpack_ts_type_common_value_fields): Likewise.
5740         (unpack_ts_block_value_fields): Likewise.
5741         (unpack_ts_translation_unit_decl_value_fields): Likewise.
5742         (unpack_value_fields): Likewise.
5743         (lto_materialize_tree): Likewise.
5744         (lto_input_ts_common_tree_pointers): Likewise.
5745         (lto_input_ts_vector_tree_pointers): Likewise.
5746         (lto_input_ts_complex_tree_pointers): Likewise.
5747         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5748         (lto_input_ts_decl_common_tree_pointers): Likewise.
5749         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5750         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5751         (lto_input_ts_field_decl_tree_pointers): Likewise.
5752         (lto_input_ts_function_decl_tree_pointers): Likewise.
5753         (lto_input_ts_type_common_tree_pointers): Likewise.
5754         (lto_input_ts_type_non_common_tree_pointers): Likewise.
5755         (lto_input_ts_list_tree_pointers): Likewise.
5756         (lto_input_ts_vec_tree_pointers): Likewise.
5757         (lto_input_ts_exp_tree_pointers): Likewise.
5758         (lto_input_ts_block_tree_pointers): Likewise.
5759         (lto_input_ts_binfo_tree_pointers): Likewise.
5760         (lto_input_ts_constructor_tree_pointers): Likewise.
5761         (lto_input_ts_target_option): Likewise.
5762         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5763         (lto_input_tree_pointers): Likewise.
5764         (lto_get_pickled_tree): Likewise.
5765         (lto_get_builtin_tree): Likewise.
5766         (lto_read_tree): Likewise.
5767         (lto_input_integer_cst): Likewise.
5768         (lto_input_tree): Likewise.
5769         * lto-streamer-out.c: Include data-streamer.h,
5770         gimple-streamer.h and streamer-hooks.h.
5771         (struct string_slot): Move to data-streamer.h.
5772         (hash_string_slot_node): Likewise.
5773         (eq_string_slot_node): Likewise.
5774         (lto_string_index): Move to data-streamer-out.c.
5775         (lto_output_string_with_length): Likewise.
5776         (lto_output_string): Likewise.
5777         (output_string_cst): Move to tree-streamer-out.c.
5778         (output_identifier): Likewise.
5779         (output_zero): Move to data-streamer-out.c
5780         (output_uleb128): Likewise.
5781         (output_sleb128): Likewise.
5782         (output_record_start): Move to data-streamer.h
5783         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5784         (pack_ts_real_cst_value_fields): Likewise.
5785         (pack_ts_fixed_cst_value_fields): Likewise.
5786         (pack_ts_decl_common_value_fields): Likewise.
5787         (pack_ts_decl_wrtl_value_fields): Likewise.
5788         (pack_ts_decl_with_vis_value_fields): Likewise.
5789         (pack_ts_function_decl_value_fields): Likewise.
5790         (pack_ts_type_common_value_fields): Likewise.
5791         (pack_ts_block_value_fields): Likewise.
5792         (pack_ts_translation_unit_decl_value_fields): Likewise.
5793         (pack_value_fields): Likewise.
5794         (lto_output_chain): Likewise.
5795         (lto_output_ts_common_tree_pointers): Likewise.
5796         (lto_output_ts_vector_tree_pointers): Likewise.
5797         (lto_output_ts_complex_tree_pointers): Likewise.
5798         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5799         (lto_output_ts_decl_common_tree_pointers): Likewise.
5800         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5801         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5802         (lto_output_ts_field_decl_tree_pointers): Likewise.
5803         (lto_output_ts_function_decl_tree_pointers): Likewise.
5804         (lto_output_ts_type_common_tree_pointers): Likewise.
5805         (lto_output_ts_type_non_common_tree_pointers): Likewise.
5806         (lto_output_ts_list_tree_pointers): Likewise.
5807         (lto_output_ts_vec_tree_pointers): Likewise.
5808         (lto_output_ts_exp_tree_pointers): Likewise.
5809         (lto_output_ts_block_tree_pointers): Likewise.
5810         (lto_output_ts_binfo_tree_pointers): Likewise.
5811         (lto_output_ts_constructor_tree_pointers): Likewise.
5812         (lto_output_ts_target_option): Likewise.
5813         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5814         (lto_output_tree_pointers): Likewise.
5815         (lto_output_tree_header): Likewise.
5816         (lto_output_builtin_tree): Likewise.
5817         (lto_write_tree): Likewise.
5818         (lto_output_integer_cst): Likewise.
5819         (lto_output_tree): Likewise.
5820         (output_phi): Move to gimple-streamer-out.c.
5821         (output_gimple_stmt): Likewise.
5822         (output_bb): Likewise.
5823         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5824         (streamer_hooks): Move to streamer-hooks.c.
5825         (check_handled_ts_structures): Move to tree-streamer.c
5826         (lto_streamer_cache_add_to_node_array): Likewise.
5827         (lto_streamer_cache_insert_1): Likewise.
5828         (lto_streamer_cache_insert): Likewise.
5829         (lto_streamer_cache_insert_at): Likewise.
5830         (lto_streamer_cache_append): Likewise.
5831         (lto_streamer_cache_lookup): Likewise.
5832         (lto_streamer_cache_get): Likewise.
5833         (lto_record_common_node): Likewise.
5834         (lto_preload_common_nodes): Likewise.
5835         (lto_streamer_cache_create): Likewise.
5836         (lto_streamer_cache_delete): Likewise.
5837         (streamer_hooks_init): Move to streamer-hooks.c.
5838         * lto-streamer.h: Include diagnostic.h
5839         (struct output_block, struct lto_input_block,
5840         struct data_in, struct bitpack_d): Remove forward declarations.
5841         (struct bitpack_d): Move to data-streamer.h.
5842         (struct lto_streamer_cache_d): Move to tree-streamer.h.
5843         (struct streamer_hooks): Move to streamer-hooks.h.
5844         (bp_pack_var_len_unsigned): Move to data-streamer.h.
5845         (bp_pack_var_len_int): Likewise.
5846         (bp_unpack_var_len_unsigned): Likewise.
5847         (bp_unpack_var_len_int): Likewise.
5848         (lto_input_location): Declare.
5849         (lto_tag_check_set): Declare.
5850         (lto_init_eh): Declare.
5851         (lto_output_tree_ref): Declare.
5852         (lto_output_location): Declare.
5853         (bitpack_create): Move to data-streamer.h.
5854         (bp_pack_value): Likewise.
5855         (lto_output_bitpack): Likewise.
5856         (lto_input_bitpack): Likewise.
5857         (bp_unpack_value): Likewise.
5858         (lto_output_1_stream): Likewise.
5859         (lto_input_1_unsigned): Likewise.
5860         (lto_output_int_in_range): Likewise.
5861         (lto_input_int_in_range): Likewise.
5862         (bp_pack_int_in_range): Likewise.
5863         (bp_unpack_int_in_range): Likewise.
5864         (lto_output_enum): Likewise.
5865         (lto_input_enum): Likewise.
5866         (bp_pack_enum): Likewise.
5867         (bp_unpack_enum): Likewise.
5868         * streamer-hooks.c: New.
5869         * streamer-hooks.h: New.
5870         * tree-streamer-in.c: New.
5871         * tree-streamer-out.c: New.
5872         * tree-streamer.c: New.
5873         * tree-streamer.h: New.
5875 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5877         * gthr-posix95.h: Remove.
5878         * gthr.h [_PTHREADS95]: Remove.
5879         * configure.ac (enable_threads): Remove posix95.
5880         * configure: Regenerate.
5881         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5883 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
5885         PR target/49781
5886         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5887         SImode addresses.
5888         (ix86_print_operand_address): Handle zero-extended addresses.
5889         (memory_address_length): Add length of addr32 prefix for
5890         zero-extended addresses.
5891         (ix86_secondary_reload): Handle moves to/from double-word general
5892         registers from/to zero-extended addresses.
5893         * config/i386/predicates.md (lea_address_operand): Reject
5894         zero-extended operands.
5896 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5898         PR other/48007
5899         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5901         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5902         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5904         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5905         (_Unwind_Context_Reg_Val): Likewise.
5906         (_Unwind_Get_Unwind_Word): Likewise.
5907         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5908         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5909         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5910         for EXTENDED_CONTEXT_BIT.
5911         (__frame_state_for): Likewise.
5912         (uw_init_context_1): Likewise.
5913         (_Unwind_GetGR): Updated.
5914         (_Unwind_SetGR): Likewise.
5915         (_Unwind_GetGRPtr): Likewise.
5916         (_Unwind_SetGRPtr): Likewise.
5917         (_Unwind_SetGRValue): Likewise.
5918         (_Unwind_GRByValue): Likewise.
5919         (uw_install_context_1): Likewise.
5921         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5922         ASSUME_EXTENDED_UNWIND_CONTEXT.
5923         * doc/tm.texi: Regenerated.
5925 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5927         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5929 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5931         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5932         Linux/GNU-specific.
5933         (DEC Alpha Options, -mtune): Likewise.
5934         (MIPS Options, -march): native is supported on IRIX.
5936 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5938         * config/sparc/driver-sparc.c: New file.
5939         * config/sparc/x-sparc: New file.
5940         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5941         * config/sparc/sparc.opt (native): New value for enum processor_type.
5942         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5943         * config/sparc/sparc.c (sparc_option_override): Abort if
5944         PROCESSOR_NATIVE gets here.
5945         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5946         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5947         DRIVER_SELF_SPECS): Define.
5948         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5949         (SPARC Options, -mtune): Likewise.
5950         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5951         Substitute result.
5952         * configure: Regenerate.
5953         * Makefile.in (EXTRA_GCC_LIBS): Set.
5954         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5955         (cpp$(exeext)): Likewise.
5957 2011-08-08  Richard Guenther  <rguenther@suse.de>
5959         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5960         split out from ...
5961         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
5962         by composition.
5964 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
5966         PR tree-optimization/50005
5967         * ipa-inline-analysis (remap_predicate): Add cast to
5968         silence signed/unsigned comparison warning.
5970 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5972         * modulo-sched.c (get_sched_window): Use a table for the debug output.
5973         Print the current ii.
5974         (sms_schedule_by_order): Reduce whitespace in dump line.
5976 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5978         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5979         and one loop for successors.  Fix upper bound of memory range.
5981 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5983         PR target/50001
5984         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5985         (TARGET_INSTANTIATE_DECLS): New define.
5987 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
5988             Mikael Morin   <mikael.morin@sfr.fr>
5990         * Makefile.in (INCLUDES_FOR_TARGET): New.
5991         (LIBGCC2_CFLAGS): Use it.
5992         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5994 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5996         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5997         frame->save_regs_using_mov calculation.
5999 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6001         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
6002         * config/i386/sse.md (castmode): New mode attribute.
6003         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
6004         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
6006 2011-08-05  Jan Hubicka  <jh@suse.cz>
6008         PR middle-end/49494
6009         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
6011 2011-08-05  Jan Hubicka  <jh@suse.cz>
6013         PR middle-end/49500
6014         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
6015         handle aliases.
6016         (create_emultls_var):New function.
6017         (ipa_lower_emutls): Handle aliases correctly.
6019 2011-08-05  Jan Hubicka  <jh@suse.cz>
6021         PR middle-end/49735
6022         * ipa-inline.c (recursive_inlining): Look through aliases.
6024 2011-08-05  Jason Merrill  <jason@redhat.com>
6026         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
6027         declarations to beginning of function.
6029 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6031         PR rtl-optimization/49900
6032         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
6033         ensure basic blocks stay in the same order.
6035 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
6037         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
6038         store_bit_field.
6039         (s390_expand_atomic): Same.
6041 2011-08-05  Richard Henderson  <rth@redhat.com>
6043         PR rtl-opt/49977
6044         * dwarf2cfi.c (scan_insn_after): Split out of ...
6045         (scan_trace): ... here.  Correctly place notes wrt sequences.
6047 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6048             Richard Henderson  <rth@redhat.com>
6050         PR rtl-opt/49982
6051         * expr.c (fixup_args_size_notes): Look through no-op moves.
6053 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6055         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
6056         of "m" for operand 0.  Add type and mode attribute.
6057         (*pushxf_nointeger"): Use "<" constraint for operand 0.
6058         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
6059         constraint instead of "o" for opreand 1.
6060         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
6061         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
6062         operand 0, alternative 4.
6063         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
6065 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6067         * config/i386/predicates.md (lea_address_operand): Rename from
6068         no_seg_address_operand.
6069         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
6070         (*lea_1_zext): Ditto.
6071         (*lea_2): Ditto.
6072         (*lea_2_zext): Ditto.
6074 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6076         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
6077         parts.base and parts.index.
6078         * config/i386/predicates.md (aligned_operand): Ditto.
6079         (cmpxchg8b_pic_memory_operand): Ditto.
6081 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6083         * config/soft-fp: Move to ../libgcc.
6084         * Makefile.in (SFP_MACHINE): Remove.
6085         (libgcc-support): Remove $(SFP_MACHINE) dependency.
6086         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6087         * config/arm/t-arm-softfp: Move to
6088         ../libgcc/config/arm/t-softfp.
6089         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6090         * config/c6x/t-c6x-softfp: Remove.
6091         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6092         * config/i386/t-fprules-softfp: Move to
6093         ../libgcc/config/t-softfp-tf.
6094         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6095         * config/ia64/t-fprules-softfp: Remove.
6096         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6097         * config/lm32/t-fprules-softfp: Remove.
6098         * config/moxie/sfp-machine.h: Remove.
6099         * config/moxie/t-moxie-softfp: Remove.
6100         * config/rs6000/darwin-ldouble-format: Move to
6101         ../libgcc/config/rs6000/ibm-ldouble-format.
6102         * config/rs6000/darwin-ldouble.c: Move to
6103         ../libgcc/config/rs6000/ibm-ldouble.c
6104         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6105         * config/rs6000/libgcc-ppc64.ver: Likewise.
6106         * config/rs6000/sfp-machine.h: Likewise.
6107         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6108         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6109         (LIB2FUNCS_EXTRA): Remove.
6110         (TARGET_LIBGCC2_CFLAGS): Remove.
6111         * config/rs6000/t-aix52: Likewise
6112         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6113         $(srcdir)/config/rs6000/darwin-ldouble.c.
6114         (SHLIB_MAPFILES): Remove.
6115         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6116         $(srcdir)/config/rs6000/darwin-ldouble.c.
6117         * config/rs6000/t-fprules-softfp: Move to
6118         ../libgcc/config/t-softfp-sfdf.
6119         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6120         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6121         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6122         $(srcdir)/config/rs6000/darwin-ldouble.c.
6123         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6124         * config/score/t-score-softfp: Remove.
6125         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6126         soft-fp/t-softfp from tmake_file.
6127         (arm*-*-uclinux*): Likewise.
6128         (arm*-*-ecos-elf): Likewise.
6129         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6130         (arm*-*-rtems*): Likewise.
6131         (arm*-*-elf): Likewise.
6132         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6133         tmake_file.
6134         (moxie-*-uclinux*): Likewise.
6135         (moxie-*-rtems*): Likewise.
6136         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6137         tmake_file.
6138         (lm32-*-rtems*): Likewise.
6139         (lm32-*-uclinux*): Likewise.
6140         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6141         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6142         (powerpc-*-linux*, powerpc64-*-linux*): Remove
6143         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6144         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6145         tmake_file.
6146         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6147         tmake_file.
6148         (tic6x-*-uclinux): Likewise.
6149         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6150         soft-fp/t-softfp from tmake_file.
6151         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6152         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6153         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6154         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6155         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6157 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6159         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6160         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6161         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6162         TPBIT, TPBIT_FUNCS.
6163         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6164         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6165         Remove.
6166         * config/arm/t-vxworks: Likewise.
6167         * config/arm/t-wince-pe: Likewise.
6168         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6169         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6170         * config/bfin/t-bfin-elf: Likewise.
6171         * config/bfin/t-bfin-linux: Likewise.
6172         * config/bfin/t-bfin-uclinux: Likewise.
6173         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6174         Remove.
6175         * config/fr30/t-fr30: Likewise.
6176         * config/frv/t-frv: Likewise.
6177         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6178         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6179         * config/m32c/t-m32c: Likewise.
6180         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6181         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6182         * config/mcore/t-mcore: Likewise.
6183         * config/mep/t-mep: Likewise.
6184         * config/microblaze/t-microblaze: Likewise.
6185         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6186         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6187         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6188         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6189         * config/mn10300/t-linux: Remove.
6190         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6191         * config/pdp11/t-pdp11: Likewise.
6192         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6193         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6194         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6195         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6196         * config/rs6000/t-aix52: Likewise.
6197         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6198         $(srcdir)/config/rs6000/ppc64-fp.c.
6199         * config/rs6000/t-fprules-fpbit: Remove.
6200         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6201         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6202         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6203         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6204         * config/sparc/t-elf: Likewise.
6205         * config/sparc/t-leon: Likewise.
6206         * config/sparc/t-leon3: Likewise.
6207         * config/spu/t-spu-elf: Likewise.
6208         (DPBIT_FUNCS): Remove.
6209         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6210         * config/v850/t-v850: Likewise.
6211         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6212         (avr-*-*): Likewise.
6213         (h8300-*-rtems*): Set libgcc_tm_file.
6214         (h8300-*-elf*): Likewise.
6215         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6216         tmake_file.
6217         (powerpc-*-eabisim*): Likewise.
6218         (powerpc-*-elf*): Likewise.
6219         (powerpc-*-eabialtivec*): Likewise.
6220         (powerpc-xilinx-eabi*): Likewise.
6221         (powerpc-*-eabi*): Likewise.
6222         (powerpc-*-rtems*): Likewise.
6223         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6224         (powerpcle-*-elf*): Likewise.
6225         (powerpcle-*-eabisim*): Likewise.
6226         (powerpcle-*-eabi*): Likewise.
6227         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6228         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6229         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6230         Remove.
6232 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6234         * Makefile.in (UNWIND_H): Remove.
6235         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6236         ../libgcc/Makefile.in.
6237         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6238         (LIBUNWINDDEP): Remove.
6239         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6240         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6241         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6242         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6243         Don't copy $(UNWIND_H).
6244         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6245         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6246         * aclocal.m4: Regenerate.
6247         * configure: Regenerate.
6248         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6249         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6250         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6251         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6252         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6253         * config/arm/libunwind.S, config/arm/pr-support.c,
6254         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6255         ../libgcc/config/arm.
6256         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6257         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6258         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6259         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6260         ($(T)frvend$(objext)): Likewise.
6261         * config/ia64/t-glibc (LIB2ADDEH): Remove.
6262         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6263         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6264         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6265         ../libgcc/config/ia64.
6266         * config/ia64/t-hpux (LIB2ADDEH): Remove.
6267         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6268         * config/ia64/t-vms (LIB2ADDEH): Remove.
6269         * config/ia64/vms.h (UNW_IVMS_MODE,
6270         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6271         * config/picochip/t-picochip (LIB2ADDEH): Remove.
6272         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6273         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6274         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6275         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6276         $(srcdir)/../libgcc to refer to unwinder sources.
6277         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6278         * config/t-darwin (LIB2ADDEH): Remove.
6279         * config/t-freebsd (LIB2ADDEH): Remove.
6280         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6281         * config/t-libunwind-elf: Move to ../libgcc/config.
6282         * config/t-linux (LIB2ADDEH): Remove.
6283         * config/t-sol2 (LIB2ADDEH): Remove.
6284         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6285         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6287 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
6289         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6291         * doc/invoke.texi: Document core-avx-i.
6293 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6295         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6297 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
6299         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6300         result of multiple results reduction when extracting the final
6301         value using scalar code.
6303 2011-08-05  Richard Guenther  <rguenther@suse.de>
6305         PR tree-optimization/49984
6306         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6308 2011-08-05  Richard Guenther  <rguenther@suse.de>
6310         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6311         return true for constant integer ranges.
6312         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6313         BIT_IOR_EXPR handling.
6315 2011-08-04  Kai Tietz  <ktietz@redhat.com>
6317         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6318         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6320 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
6322         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6323         pattern def statement, and its access macro.
6324         (NUM_PATTERNS): Set to 5.
6325         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6326         pattern def statement.
6327         (vect_transform_loop): Likewise.
6328         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6329         function vect_recog_over_widening_pattern ().
6330         (vect_operation_fits_smaller_type): New function.
6331         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6332         Likewise.
6333         (vect_pattern_recog_1): Move the code that marks pattern
6334         statements to vect_mark_pattern_stmts (), and call it.  Update
6335         documentation.
6336         * tree-vect-stmts.c (vect_supportable_shift): New function.
6337         (vect_analyze_stmt): Handle pattern def statement.
6338         (new_stmt_vec_info): Initialize pattern def statement.
6340 2011-08-04  Richard Henderson  <rth@redhat.com>
6342         PR target/49964
6343         * config/i386/i386.c (ix86_expand_call): Don't create nested
6344         PARALLELs for TARGET_VZEROUPPER.
6345         (ix86_split_call_vzeroupper): Fix extraction of the original call.
6346         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6347         recognize nested PARALLELs.
6348         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6349         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6350         *sibcall_value_pop_vzeroupper): Likewise.
6352 2011-08-04  Richard Henderson  <rth@redhat.com>
6354         PR middle-end/49968
6355         * calls.c (expand_call): Use fixup_args_size_notes for
6356         emit_stack_restore.
6357         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6358         in non-standard modes.
6360 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6362         * gcc.c (self_spec): New variable.
6363         (static_specs): Add self_spec.
6364         (main): Call do_self_spec on "self_spec" specs after reading
6365         user specs files.  Move compare_debug handling right after that.
6367 2011-08-04  Richard Guenther  <rguenther@suse.de>
6369         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6370         (value_range_nonnegative_p): New function.
6371         (ssa_name_nonnegative_p): Use it.
6372         (value_range_constant_singleton): New function.
6373         (op_with_constant_singleton_value_range): Use it.
6374         (extract_range_from_binary_expr_1): New function, split out from ...
6375         (extract_range_from_binary_expr): ... this.  Remove fallback
6376         constant folding done here.
6378 2011-08-04  Richard Guenther  <rguenther@suse.de>
6380         PR tree-optimization/49806
6381         * tree-vrp.c (op_with_boolean_value_range_p): New function.
6382         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
6383         a new statement for a final conversion to bool.
6385 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
6387         * gengtype-state.c: Include "bconfig.h" if
6388         GENERATOR_FILE is defined, "config.h" otherwise.
6389         * gengtype.c: Likewise.
6390         * gengtype-lex.l: Likewise.
6391         * gengtype-parse.c: Likewise.
6392         * Makefile.in (gengtype-lex.o-warn): New variable.
6393         (plugin_resourcesdir): Likewise.
6394         (plugin_bindir): Likewise.
6395         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6396         (MOSTLYCLEANFILES): Add gengtype$(exeext).
6397         (native): Depend on gengtype$(exeext) is $enable_plugin
6398         is set to "yes".
6399         (gtype.state): Depend on s-gtype. Use temporary file.
6400         (gengtype-lex.o): New rule.
6401         (gengtype-parse.o): Likewise.
6402         (gengtype-state.o): Likewise.
6403         (gengtype$(exeext)): Likewise.
6404         (install-gengtype): Likewise.
6405         (gengtype.o): Likewise.
6406         (build/gengtype.o): Depend on version.h.
6407         (build/gengtype-state): Depend on double-int.h, version.h,
6408         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6409         (install-plugin): Depend on install-gengtype.
6411 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6413         PR middle-end/49905
6414         * tree.h (init_attributes): New prototype.
6415         * attribs.c (init_attributes): No longer static.
6417 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6419         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6420         maybe_suffix.
6422 2011-08-03   David Li  <davidxl@google.com>
6424         * tree-optimize.c (execute_fixup_cfg): Fix up entry
6425         outgoing edge counts after inlining.
6427 2011-08-03   David Li  <davidxl@google.com>
6429         * profile.c (compute_branch_probabilities): Compute
6430         function frequency after profile annotation.
6432 2011-08-04  Alan Modra  <amodra@gmail.com>
6434         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6435         use_backchain_to_restore_sp initialisation.
6436         (rs6000_legitimate_offset_address_p): Simplify offset test.
6438 2011-08-03  Richard Henderson  <rth@redhat.com>
6440         * config/spu/spu.md: Use define_c_enum instead of define_constants.
6441         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6442         (UNSPECV_NOP): New.
6444 2011-08-03  Richard Henderson  <rth@redhat.com>
6446         PR target/34888
6447         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6449 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
6451         PR tree-optimization/49948
6452         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6454 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
6456         * config/m32c/m32c.c (class_sizes): Remove.
6457         (reduce_class): Change arguments and return type to reg_class_t.
6458         Change type cc var to HARD_REG_SET. Change type best var to
6459         reg_class_t. Change type best_size var to unsigned int. Remove
6460         initialization class_sizes var. Use reg_class_size array instead
6461         of class_sizes. Use reg_class_contents array instead
6462         of class_contents.
6464 2011-08-03  Richard Guenther  <rguenther@suse.de>
6466         PR middle-end/49958
6467         * fold-const.c (fold_binary_loc): Only associate
6468         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6469         overflow wraps.
6471 2011-08-03  Alan Modra  <amodra@gmail.com>
6473         PR rtl-optimization/49941
6474         * jump.c (mark_jump_label): Comment.
6475         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6476         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6477         (mark_used_flags): Don't mark RETURN.
6479 2011-08-03  Richard Guenther  <rguenther@suse.de>
6481         PR tree-optimization/49938
6482         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6483         deal with a POLYNOMIAL_CHREC.
6485 2011-08-03  Revital Eres  <revital.eres@linaro.org>
6487         * modulo-sched.c (calculate_stage_count,
6488         calculate_must_precede_follow, get_sched_window,
6489         try_scheduling_node_in_cycle, remove_node_from_ps): Add
6490         declaration.
6491         (update_node_sched_params, set_must_precede_follow, optimize_sc):
6492         New functions.
6493         (reset_sched_times): Call update_node_sched_params.
6494         (sms_schedule): Call optimize_sc.
6495         (get_sched_window): Change function arguments.
6496         (sms_schedule_by_order): Update call to get_sched_window.
6497         Call set_must_precede_follow.
6498         (calculate_stage_count): Add function argument.
6500 2011-08-02  Richard Henderson  <rth@redhat.com>
6502         PR target/49864
6503         PR target/49879
6504         * reg-notes.def (REG_ARGS_SIZE): New.
6505         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6506         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6507         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6508         different stack levels.
6509         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6510         (maybe_move_args_size_note): New.
6511         (combine_stack_adjustments_for_block): Use it.
6512         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6513         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6514         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6515         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6516         (cur_cfa): New.
6517         (queued_args_size): Remove.
6518         (add_cfi_args_size): Assert size is non-negative.
6519         (stack_adjust_offset, dwarf2out_args_size): Remove.
6520         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6521         (notice_args_size, notice_eh_throw): New.
6522         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6523         (dwarf2out_frame_debug_adjust_cfa): Likewise.
6524         (dwarf2out_frame_debug_cfa_offset): Likewise.
6525         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
6526         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6527         (change_cfi_row): Don't emit args_size.
6528         (maybe_record_trace_start_abnormal): Split out from ...
6529         (maybe_record_trace_start): Here.  Set args_size_undefined.
6530         (create_trace_edges): Update to match.
6531         (scan_trace): Handle REG_ARGS_SIZE.
6532         (connect_traces): Connect args_size between EH insns.
6533         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6534         * explow.c (suppress_reg_args_size): New.
6535         (adjust_stack_1): Split out from ...
6536         (adjust_stack): ... here.
6537         (anti_adjust_stack): Use it.
6538         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6539         * expr.c (mem_autoinc_base): New.
6540         (fixup_args_size_notes): New.
6541         (emit_single_push_insn_1): Rename from emit_single_push_insn.
6542         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
6543         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6544         * reload1.c (reload_as_needed): Likewise.
6545         * rtl.h (fixup_args_size_notes): Declare.
6547 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
6549         PR bootstrap/49914
6550         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6551         of abs.
6552         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6553         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6555 2011-08-02  Richard Henderson  <rth@redhat.com>
6557         * config/h8300/h8300.c (push, pop): Return the insn.
6558         (h8300_swap_into_er6): Generate correct unwind info.
6559         (h8300_swap_out_of_er6): Likewise.
6560         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6561         complex cfa expression.
6562         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6564 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6566         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6568 2011-08-02  Richard Henderson  <rth@redhat.com>
6570         PR target/49878
6571         * config/h8300/h8300.c (h8300_move_ok): New.
6572         * config/h8300/h8300-protos.h: Declare it.
6573         * config/h8300/h8300.md (P): New mode iterator.
6574         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6575         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6576         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6577         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6578         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6579         and pushqi1_h8300hs_normal; use PRE_MODIFY and
6580         register_no_sp_elim_operand.
6581         (*pushhi1_h8300hs_<P>): Similarly.
6582         (pushqi1, pushhi1, pushhi1_h8300): Remove.
6583         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6585 2011-08-02  Richard Henderson  <rth@redhat.com>
6587         PR target/49881
6588         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6590 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
6592         * c-parser.c (enum c_parser_prec): New enum, moved from within
6593         c_parser_binary_expression.
6594         (c_parser_binary_expression): Add PREC argument.  Stop parsing
6595         if operator has lower or equal precedence than PREC.
6596         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6597         callers.
6598         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6599         Adjust c_finish_omp_atomic caller.
6600         (c_parser_omp_taskyield): New function.
6601         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6602         (c_parser_omp_clause_name): Handle final and mergeable clauses.
6603         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6604         functions.
6605         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6606         and PRAGMA_OMP_CLAUSE_MERGEABLE.
6607         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6608         (c_parser_omp_clause_reduction): Handle min and max.
6609         * c-typeck.c (c_finish_omp_clauses): Don't complain about
6610         const qualified predetermined vars in firstprivate clause.
6611         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6612         Handle MIN_EXPR and MAX_EXPR.
6613         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6614         and OMP_CLAUSE_MERGEABLE.
6615         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6616         and OMP_ATOMIC_CAPTURE_NEW.
6617         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6618         OMP_CLAUSE_MERGEABLE.
6619         (omp_clause_code_name): Likewise.
6620         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6621         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6622         and OMP_CLAUSE_MERGEABLE.
6623         (OMP_CLAUSE_FINAL_EXPR): Define.
6624         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6625         OMP_CLAUSE_MERGEABLE.
6626         (expand_task_call): Likewise.
6627         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6628         (expand_omp_atomic_fetch_op): Handle cases where old or new
6629         value is needed afterwards.
6630         (expand_omp_atomic): Call expand_omp_atomic_load resp.
6631         expand_omp_atomic_store.
6632         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6633         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6634         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6635         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6636         * tree-nested.c (convert_nonlocal_omp_clauses,
6637         convert_local_omp_clauses): Likewise.
6638         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6639         OMP_ATOMIC_CAPTURE_NEW): New.
6640         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6641         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6642         New inlines.
6643         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6644         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6645         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6647 2011-08-02  Kai Tietz  <ktietz@redhat.com>
6649         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6650         boolean-type.
6651         (ssa_forward_propagate_and_combine): Interprete result of
6652         forward_propagate_comparison.
6653         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6654         boolean-typed operands for comparisons.
6656 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
6658         * config/avr/libgcc.S: Gather related function in the
6659         same input section.
6660         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6661         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6662         references.
6663         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6664         __udivmodsi4, __divmodsi4, __prologue_saves__,
6665         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6666         __do_copy_data, __do_clear_bss, __do_global_ctors,
6667         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6669 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
6671         PR target/47766
6672         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6673         (stack_protect_test): The pattern compares ptr_mode value.
6675 2011-08-02  Alan Modra  <amodra@gmail.com>
6677         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6678         note for save_LR_around_toc_setup sequence.
6680 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6682         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6684 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
6685             Joseph Myers  <joseph@codesourcery.com>
6687         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6688         * hwint.c: Include diagnostic-core.h.
6689         (abs_hwi): New.
6690         (gcd): Moved here...
6691         (pos_mul_hwi): New.
6692         (mul_hwi): New.
6693         (least_common_multiple): Moved here...
6694         * hwint.h (gcd): ... from here.
6695         (least_common_multiple): ... from here.
6696         (HOST_WIDE_INT_MIN): New.
6697         (HOST_WIDE_INT_MAX): New.
6698         (abs_hwi): Declared.
6699         (gcd): Declared.
6700         (pos_mul_hwi): Declared.
6701         (mul_hwi): Declared.
6702         (least_common_multiple): Declared.
6703         * omega.c (check_pos_mul): Removed.
6704         (check_mul): Removed.
6705         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6706         mul_hwi instead of check_mul.
6708 2011-08-01  Richard Henderson  <rth@redhat.com>
6710         PR target/49881
6711         * config/avr/avr.h (PUSH_ROUNDING): New.
6712         * config/avr/avr.md (pushqi1): Rename from *pushqi.
6713         (*pushhi, *pushsi, *pushsf): Remove.
6714         (MPUSH): New mode iterator.
6715         (push<MPUSH>1): New expander.
6717 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
6719         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6720         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6721         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6722         mmix_preferred_output_reload_class): Remove.
6723         * config/mmix/mmix.c (mmix_preferred_reload_class,
6724         mmix_preferred_output_reload_class): Make static. Change rclass
6725         argument and return type to reg_class_t.
6726         (TARGET_PREFERRED_RELOAD_CLASS,
6727         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6729 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6731         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6732         handling.
6734 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6736         PR target/47766
6737         * config/i386/i386.md (PTR): New.
6738         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6739         (stack_protect_test): Likewise.
6740         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6741         (stack_tls_protect_set_<mode>): Likewise.
6742         (stack_tls_protect_test_<mode>): Likewise.
6744 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
6746         PR target/49927
6747         * config/i386/i386.c (ix86_address_subreg_operand): New.
6748         (ix86_decompose_address): Use ix86_address_subreg_operand.
6749         (ix86_legitimate_address_p): Do not assert that subregs satisfy
6750         register_no_elim_operand in DImode.
6752 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
6754         PR tree-optimization/49926
6755         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6756         in a chain doesn't have uses both inside and outside the loop.
6758 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6760         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6761         * config/avr/avr-devices.c (avr_mcu_types): Use it.
6762         * config/avr/avr-mcus.def (AVR_MCU): Use it.
6763         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6764         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6765         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6766         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6767         to detect if XJMP must not be skipped.
6769 2011-08-02  Alan Modra  <amodra@gmail.com>
6771         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6772         Delete.
6773         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6774         (rs6000_emit_prologue): Don't prematurely return when
6775         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
6776         save_toc_in_prologue case.
6777         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6778         calls_alloca.
6780 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6782         * config/avr/avr-devices.c: Delete SVN property svn:executable.
6783         * config/avr/predicates.md: Ditto.
6784         * config/avr/driver-avr.c: Ditto.
6785         * config/avr/genopt.sh: Set SVN property svn:executable to *.
6787 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6789         * calls.c (emit_library_call_value_1): Declare size only if
6790         BLOCK_REG_PADDING is defined.
6792 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
6794         PR target/49547
6795         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6796         (x86_64-*-*): Likewise.
6797         * config/i386/i386.opt (mlzcnt): New.
6798         * config/i386/abmintrin.h: File removed.
6799         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6800         * config/i386/lzcntintrin.h: ... here.  New file.
6801         (__lzcnt): Rename to ...
6802         (__lzcnt32): ... this.
6803         * config/i386/bmiintrin.h (head): Update copyright year.
6804         (__lzcnt_u16): Removed.
6805         (__lzcnt_u32): Likewise.
6806         (__lzcnt_u64): Likewise.
6807         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6808         is defined, remove abmintrin.h.
6809         * config/i386/cpuid.h (bit_LZCNT): New.
6810         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6811         LZCNT feature.
6812         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6813         __LZCNT__ if needed.
6814         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6815         (ix86_option_override_internal): Handle LZCNT option.
6816         (ix86_valid_target_attribute_inner_p): Likewise.
6817         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6818         * config/i386/i386.h (TARGET_LZCNT): New.
6819         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6820         * config/i386/i386.md (clz<mode>2): Update insn constraint.
6821         (clz<mode>2_lzcnt): Likewise.
6822         * doc/invoke.texi: Mention -mlzcnt option.
6823         * doc/extend.texi: Likewise.
6825 2011-08-01  Julian Brown  <julian@codesourcery.com>
6827         * configure.ac (fixed-point): Add ARM support.
6828         * configure: Regenerate.
6829         * config/arm/arm.c (arm_fixed_mode_set): New struct.
6830         (arm_set_fixed_optab_libfunc): New.
6831         (arm_set_fixed_conv_libfunc): New.
6832         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6833         ARM-specific names.
6834         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6835         return values in SImode.
6836         (arm_return_in_msb): Return fixed-point types in the msb.
6837         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6838         upwards.
6839         (arm_scalar_mode_supported_p): Support fixed-point modes.
6840         (arm_vector_mode_supported_p): Support vector fixed-point modes.
6841         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6842         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6843         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6844         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6845         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6846         New mode iterators.
6847         (qaddsub_suf): New mode attribute.
6848         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6849         vector modes.
6850         * config/arm/predicates.md (sat_shift_operator): New predicate.
6851         * config/arm/arm-fixed.md: New.
6852         * config/arm/arm.md: Include arm-fixed.md.
6853         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6855 2011-08-01  Julian Brown  <julian@codesourcery.com>
6857         * calls.c (emit_library_call_value_1): Support padding for libcall
6858         arguments and return values.
6859         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6860         downwards in big-endian mode.
6862 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6864         PR debug/49887
6865         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6866         * config/sol2-protos.h: Likewise.
6867         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6868         solaris_code_end.
6869         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6870         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6871         solaris_file_end.
6872         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6874 2011-08-01  Julian Brown  <julian@codesourcery.com>
6876         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6878 2011-08-01  Julian Brown  <julian@codesourcery.com>
6880         * final.c (output_addr_const): Print fixed-point constants as
6881         decimal not hex.
6883 2011-08-01  Richard Guenther  <rguenther@suse.de>
6885         * stor-layout.c (initialize_sizetypes): Properly sign-extend
6886         bitsiztype TYPE_MAX_VALUE.
6888 2011-08-01  Julian Brown  <julian@codesourcery.com>
6890         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6891         comparison helpers.
6893 2011-07-31  Richard Henderson  <rth@redhat.com>
6895         * config/h8300/crti.asm: Add flags to .section directive.
6896         * config/h8300/crtn.asm: Likewise.
6898 2011-07-31  Richard Henderson  <rth@redhat.com>
6900         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6901         * tree.c (build_common_tree_nodes): Likewise.
6903 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6905         PR target/49880
6906         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6907         (divsi3_i1): Likewise.
6909 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6911         PR tree-optimization/49749
6912         * tree-ssa-reassoc.c (get_rank): New forward declaration.
6913         (PHI_LOOP_BIAS): New macro.
6914         (phi_rank): New function.
6915         (loop_carried_phi): Likewise.
6916         (propagate_rank): Likewise.
6917         (get_rank): Add calls to phi_rank and propagate_rank.
6919 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6921         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6922         of TARGET_64BIT.
6923         (PTRDIFF_TYPE): Likewise.
6925 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
6927         PR target/49920
6928         * config/i386/i386.md (strset): Do not expand strset_singleop
6929         when %eax or $edi are fixed.
6930         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6931         (*strsetsi_1): Ditto.
6932         (*strsethi_1): Ditto.
6933         (*strsetqi_1): Ditto.
6934         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6935         (*rep_stossi): Ditto.
6936         (*rep_stosqi): Ditto.
6937         (*strlenqi_1): Ditto.
6938         (cmpstrnsi): Also fail when %ecx is fixed.
6939         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6940         (*cmpstrnqi_1): Ditto.
6941         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6942         (*strmovsi_1): Ditto.
6943         (*strmovhi_1): Ditto.
6944         (*strmovqi_1): Ditto.
6945         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6946         (*rep_movsi): Ditto.
6947         (*rep_movqi): Ditto.
6949 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
6951         PR target/47908
6952         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6953         Disable instruction scheduling for non-ColdFire targets.
6954         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6956 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6958         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6959         of anti-dep edge from a branch.
6960         (add_cross_iteration_register_deps): Create anti-dep edge from
6961         a branch.
6963 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6965         * modulo-sched.c: Change comment.
6966         (reset_sched_times): Fix print message.
6967         (print_partial_schedule): Add print info.
6969 2011-07-31  Tom de Vries  <tom@codesourcery.com>
6971         PR middle-end/43513
6972         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6973         get_object_alignment and TYPE_ALIGN.
6975 2011-07-30  Tom de Vries  <tom@codesourcery.com>
6977         PR middle-end/43513
6978         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6979         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6981 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6983         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6984         <sys/sbd.h>.
6985         (cpu_types): New array.
6986         (cputype): New function.
6987         (host_detect_local_cpu): Only define buf, f if !__sgi__.
6988         Use scaninvent instead of /proc/cpuinfo if __sgi__.
6989         * config.host: Also use driver-native.o, mips/x-native on
6990         mips-sgi-irix*.
6991         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6992         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6993         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6995 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
6997         PR middle-end/49897
6998         PR middle-end/49898
6999         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
7000         in nested parallel and outer is a gimple_reg, mark it as addressable
7001         and set its bit in task_shared_vars bitmap too.
7003 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7005         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
7007 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7009         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
7010         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
7011         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
7012         AMASK_LOCKPFTCHOK): Define.
7013         (host_detect_local_cpu): Remove buf, f, cpu_names.
7014         Define cpu_types, implver, amask.
7015         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
7016         native CPU.
7017         * config.host: Also use driver-alpha.o, alpha/x-alpha on
7018         alpha*-dec-osf*.
7019         * config/alpha/osf5.h [__alpha__ || __alpha]
7020         (host_detect_local_cpu): Declare.
7021         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
7022         (DRIVER_SELF_SPECS): Define.
7024 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7026         PR target/47715
7027         * config/i386/i386.md (*load_tp_x32): New.
7028         (*load_tp_x32_zext): Ditto.
7029         (*add_tp_x32): Ditto.
7030         (*add_tp_x32_zext): Ditto.
7031         (*load_tp_<mode>): Disable for TARGET_X32 targets.
7032         (*add_tp_<mode>): Ditto.
7033         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
7034         ptr_mode and convert to Pmode if needed.
7036 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7038         PR target/49687
7039         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
7040         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
7041         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
7042         Add X to register footprint: Clobber r26/r27.
7044 2011-07-29  Richard Guenther  <rguenther@suse.de>
7046         * builtins.c (fold_builtin_signbit): Build the comparison
7047         with a proper type.
7049 2011-07-29  Richard Guenther  <rguenther@suse.de>
7051         PR tree-optimization/49893
7052         * tree-predcom.c (suitable_reference_p): Volatile references
7053         are not suitable.
7055 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7057         PR target/49313
7058         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7059         (__ctzsi2): Result for 0 may be undefined.
7060         (__ctzhi2): Result for 0 may be undefined.
7061         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7062         (__popcountsi2): Ditto. And don't clobber r26.
7063         (__popcountdi2): Ditto. And don't clobber r27.
7064         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7065         (parityhi2): New expand.
7066         (paritysi2): New expand.
7067         (popcounthi2): New expand.
7068         (popcountsi2): New expand.
7069         (clzhi2): New expand.
7070         (clzsi2): New expand.
7071         (ctzhi2): New expand.
7072         (ctzsi2): New expand.
7073         (ffshi2): New expand.
7074         (ffssi2): New expand.
7075         (copysignsf3): New insn.
7076         (bswapsi2): New expand.
7077         (*parityhi2.libgcc): New insn.
7078         (*parityqihi2.libgcc): New insn.
7079         (*paritysihi2.libgcc): New insn.
7080         (*popcounthi2.libgcc): New insn.
7081         (*popcountsi2.libgcc): New insn.
7082         (*popcountqi2.libgcc): New insn.
7083         (*popcountqihi2.libgcc): New insn-and-split.
7084         (*clzhi2.libgcc): New insn.
7085         (*clzsihi2.libgcc): New insn.
7086         (*ctzhi2.libgcc): New insn.
7087         (*ctzsihi2.libgcc): New insn.
7088         (*ffshi2.libgcc): New insn.
7089         (*ffssihi2.libgcc): New insn.
7090         (*bswapsi2.libgcc): New insn.
7092 2011-07-29  Richard Guenther  <rguenther@suse.de>
7094         * tree-vrp.c (get_value_range): Only set parameter default
7095         definitions to varying, leave others at undefined.
7096         (extract_range_from_binary_expr): Fix undefined handling.
7097         (vrp_visit_phi_node): Handle merged undefined state.
7099 2011-07-29  Wei Guozhi  <carrot@google.com>
7101         PR rtl-optimization/49799
7102         * combine.c (make_compound_operation): Check if the bit field is valid
7103         before change it to bit field extraction.
7105 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7107         PR rtl-optimization/49891
7108         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7109         newly created returnjumps.
7111 2011-07-28  DJ Delorie  <dj@redhat.com>
7113         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7114         local frame in a naked function, and produce a suitable error for
7115         that specific case.
7117         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7118         registers to be reloaded in HI classes when the target is HI.
7120 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7122         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7123         bound_one, bound_two.
7125 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7127         PR middle-end/48648
7128         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7129         CLAST assignments.
7130         (translate_clast): Same.
7131         (translate_clast_assignment): New.
7133 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7135         PR tree-optimization/49876
7136         * sese.c (rename_uses): Do not return false on gloog_error: set
7137         the new_expr to integer_zero_node and continue code generation.
7138         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7140 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7142         PR debug/49846
7143         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7144         arguments also check if they aren't initialized with a MODE_INT
7145         mode of the same size.
7147 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
7149         * expr.c (get_bit_range): Handle *MEM_REF's.
7151 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
7153         * rtlanal.c (tablejump_p): False for returns.
7154         * reorg.c (first_active_target_insn): New static function.
7155         (find_end_label): Set JUMP_LABEL for a new returnjump.
7156         (optimize_skip, get_jump_flags, rare_destination,
7157         mostly_true_jump, get_branch_condition,
7158         steal_delay_list_from_target, own_thread_p,
7159         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7160         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7161         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7162         * jump.c (delete_related_insns): Likewise.
7163         (jump_to_label_p): New function.
7164         (redirect_target): New static function.
7165         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
7166         (redirect_jump_1): Assert that the new label is nonnull.
7167         (redirect_jump): Likewise.
7168         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7169         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7170         exit block.
7171         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
7172         changed.  Ensure that the right label is passed to redirect_jump.
7173         * function.c (emit_return_into_block,
7174         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7175         ret_rtx in their JUMP_LABEL.
7176         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7177         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7178         pass ret_rtx as label.
7179         * cfglayout.c (fixup_reorder_chain): Use
7180         force_nonfallthru_and_redirect rather than force_nonfallthru.
7181         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7182         * rtl.h (ANY_RETURN_P): New macro.
7183         (jump_to_label_p): Declare.
7184         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7185         JUMP_LABELs.
7186         (mark_target_live_regs): Likewise.
7187         * basic-block.h (force_nonfallthru_and_redirect): Declare.
7188         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7189         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7190         alpha_tablejump_best_label): Remove functions.
7191         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7192         alpha_tablejump_best_label): Remove declarations.
7193         * config/sh/sh.c (barrier_align, split_branches): Adjust for
7194         ret_rtx in JUMP_LABELs.
7195         * config/arm/arm.c (is_jump_table): Likewise.
7197 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7199         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7200         special predicate.  Remove explicit mode checks.
7202 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7204         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7205         DW_AT_data_member_location containing just DW_OP_plus_uconst.
7207         PR debug/49871
7208         * dwarf2out.c (size_of_die, value_format, output_die): Use
7209         DW_FORM_udata instead of DW_FORM_data[48] for
7210         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7212 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7214         * config/i386/i386.md (*tls_global_dynamic_64): Update
7215         length attribute.
7217 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7219         PR target/47715
7220         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7221         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
7222         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7223         (tls_dynamic_gnu2_64): Ditto.
7224         (*tls_dynamic_gnu2_lea_64): Ditto.
7225         (*tls_dynamic_gnu2_call_64): Ditto.
7226         (*tls_dynamic_gnu2_combine_64): Ditto.
7228 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7230         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7232 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7234         PR target/47364
7235         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7237 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7239         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7240         before the core constraints. Adjust attributes.
7241         ("*thumb2_movdf_vfp"): Likewise.
7243 2011-07-28  Kai Tietz  <ktietz@redhat.com>
7245         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7246         (simplify_truth_ops_using_ranges): Likewise.
7247         (build_assert_expr_for): Likewise.
7248         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7249         and handle BIT_NOT_EXPR for truth-operation.
7251 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7253         PR target/49313
7254         Undo r176835 from trunk
7255         2011-07-27  Georg-Johann Lay
7257 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7259         PR target/49687
7260         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7261         Add _muluhisi3, _mulshisi3, _usmulhisi3.
7262         * config/avr/libgcc.S (__mulsi3): Rewrite.
7263         (__mulhisi3): Rewrite.
7264         (__umulhisi3): Rewrite.
7265         (__usmulhisi3): New.
7266         (__muluhisi3): New.
7267         (__mulshisi3): New.
7268         (__mulohisi3): New.
7269         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7270         declare.
7271         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7272         (pseudo_register_or_const_int_operand): New.
7273         (combine_pseudo_register_operand): New.
7274         (u16_operand): New.
7275         (s16_operand): New.
7276         (o16_operand): New.
7277         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7278         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7279         (any_extend, any_extend2): New code iterators.
7280         (extend_prefix): New code attribute.
7281         (mulsi3): Rewrite. Turn insn to expander.
7282         (mulhisi3): Ditto.
7283         (umulhisi3): Ditto.
7284         (usmulhisi3): New expander.
7285         (*mulsi3): New insn-and-split.
7286         (mulu<mode>si3): New insn-and-split.
7287         (muls<mode>si3): New insn-and-split.
7288         (mulohisi3): New insn-and-split.
7289         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7290         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7291         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7292         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7293         insn-and-split.
7294         (*mulsi3_call): Rewrite.
7295         (*mulhisi3_call): Rewrite.
7296         (*umulhisi3_call): Rewrite.
7297         (*usmulhisi3_call): New insn.
7298         (*muluhisi3_call): New insn.
7299         (*mulshisi3_call): New insn.
7300         (*mulohisi3_call): New insn.
7301         (extendqihi2): Use combine_pseudo_register_operand as predicate
7302         for operand 1.
7303         (extendqisi2): Ditto.
7304         (zero_extendqihi2): Ditto.
7305         (zero_extendqisi2): Ditto.
7306         (zero_extendhisi2): Ditto.
7307         (extendhisi2): Ditto. Don't early-clobber operand 0.
7309 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7311         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7313 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7315         PR tree-optimization/49471
7316         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7317         iv only when the largest type is unsigned.  Do not call
7318         lang_hooks.types.type_for_size.
7320 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7322         PR middle-end/45450
7323         * graphite-poly.c (apply_poly_transforms): Disable legality check
7324         after an openscop read.
7326 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7328         PR middle-end/47691
7329         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7330         copy_bb_and_scalar_dependences.
7331         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
7332         (graphite_copy_stmts_from_block): Update call to rename_uses.
7333         (copy_bb_and_scalar_dependences): Update call to
7334         graphite_copy_stmts_from_block.
7335         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7337 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
7339         PR target/49313
7340         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7341         (__ctzsi2): Result for 0 may be undefined.
7342         (__ctzhi2): Result for 0 may be undefined.
7343         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7344         (__popcountsi2): Ditto. And don't clobber r26.
7345         (__popcountdi2): Ditto. And don't clobber r27.
7346         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7347         (parityhi2): New expand.
7348         (paritysi2): New expand.
7349         (popcounthi2): New expand.
7350         (popcountsi2): New expand.
7351         (clzhi2): New expand.
7352         (clzsi2): New expand.
7353         (ctzhi2): New expand.
7354         (ctzsi2): New expand.
7355         (ffshi2): New expand.
7356         (ffssi2): New expand.
7357         (copysignsf3): New insn.
7358         (bswapsi2): New expand.
7359         (*parityhi2.libgcc): New insn.
7360         (*parityqihi2.libgcc): New insn.
7361         (*paritysihi2.libgcc): New insn.
7362         (*popcounthi2.libgcc): New insn.
7363         (*popcountsi2.libgcc): New insn.
7364         (*popcountqi2.libgcc): New insn.
7365         (*popcountqihi2.libgcc): New insn-and-split.
7366         (*clzhi2.libgcc): New insn.
7367         (*clzsihi2.libgcc): New insn.
7368         (*ctzhi2.libgcc): New insn.
7369         (*ctzsihi2.libgcc): New insn.
7370         (*ffshi2.libgcc): New insn.
7371         (*ffssihi2.libgcc): New insn.
7372         (*bswapsi2.libgcc): New insn.
7374 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7376         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7377         the mode of symbolic_opreand RTXes.
7379 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7381         * config/i386/predicates.md (x86_64_movabs_operand): Return false
7382         for pic_32bit_operand RTXes.
7383         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7384         in DImode.
7386 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7388         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7389         for 32-bit, too.
7390         (ix86_handle_abi_attribute): Allow function attributes
7391         ms_abi/sysv_abi in 32-bit mode, too.
7392         * doc/extend.texi: Adjust attribute documentation.
7394         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7395         expression handling.
7396         (and_var_with_comparison_1): Likewise.
7398 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
7400         * params.h (ALLOW_STORE_DATA_RACES): New.
7401         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7402         * Makefile.in (expr.o): Depend on PARAMS_H.
7403         * machmode.h (get_best_mode): Add argument.
7404         * fold-const.c (optimize_bit_field_compare): Add argument to
7405         get_best_mode.
7406         (fold_truthop): Same.
7407         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7408         * expr.c (emit_group_store): Same.
7409         (copy_blkmode_from_reg): Same.
7410         (write_complex_part): Same.
7411         (optimize_bitfield_assignment_op): Add argument.
7412         Add argument to get_best_mode.
7413         (get_bit_range): New.
7414         (expand_assignment): Calculate maxbits and pass it down accordingly.
7415         (store_field): New argument.
7416         (expand_expr_real_2): New argument to store_field.  Include params.h.
7417         * expr.h (store_bit_field): New argument.
7418         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7419         into account maxbits.
7420         * calls.c (store_unaligned_arguments_into_pseudos): New argument
7421         to store_bit_field.
7422         * expmed.c (store_bit_field_1): New argument.  Use it.
7423         (store_bit_field): Same.
7424         (store_fixed_bit_field): Same.
7425         (store_split_bit_field): Same.
7426         (extract_bit_field_1): Pass new argument to get_best_mode.
7427         (extract_bit_field): Same.
7428         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7429         * doc/invoke.texi: Document parameter allow-store-data-races.
7431 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
7433         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7435 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7437         * tree-vrp.c (extract_range_from_binary_expr): Remove
7438         TRUTH-binary cases and add new bitwise-cases.
7439         (extract_range_from_assignment): Likewise.
7440         (register_edge_assert_for_1): Likeiwise.
7441         (register_edge_assert_for): Likewise.
7442         (simplify_truth_ops_using_ranges): Likewise.
7443         (simplify_stmt_using_ranges): Likewise.
7445 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
7447         PR target/47372
7448         * config/i386/i386.c (ix86_delegitimize_address): Call
7449         simplify_gen_subreg for PIC with mode of x only if modes of
7450         x and orig_x are different.
7452 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
7454         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7455         to GC allocated copy of the string.
7456         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7457         before .debug_line, not after it.
7459 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7461         PR middle-end/47046
7462         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7463         evolution_function_is_affine_p on CHREC_RIGHT.
7465 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7467         * tree-data-ref.c (max_stmt_executions_tree): Do not call
7468         lang_hooks.types.type_for_size.
7470 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7472         PR middle-end/47653
7473         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7474         loops using wrapping semantics.
7476 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7478         PR middle-end/48805
7479         * tree-scalar-evolution.c (instantiate_scev_r): Return
7480         chrec_dont_know for ADDR_EXPR.
7482 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7483             H.J. Lu  <hongjiu.lu@intel.com>
7485         PR target/47369
7486         PR target/49853
7487         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7488         if legitimize_tls_address returned operand in wrong mode. Allow
7489         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
7490         if legitimize_pic_address returned operand in wrong mode.
7492 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7494         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7495         return false for invariants.
7497 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7499         * config/i386/i386.md (add->lea splitter): Implement using SWI
7500         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
7501         (add->lea zext splitter): Change operand 2 predicate to
7502         x86_64_nonmemory_operand.
7504 2011-07-26  Richard Guenther  <rguenther@suse.de>
7506         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7507         frequency makes everything hot.
7509 2011-07-26  Richard Guenther  <rguenther@suse.de>
7511         PR tree-optimization/49840
7512         * tree-vrp.c (range_fits_type_p): Properly handle full
7513         double-int precision.
7515 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7517         PR bootstrap/49786
7518         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7519         counts.
7520         (update_specialized_profile): Likewise.
7522 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7523             H.J. Lu  <hongjiu.lu@intel.com>
7525         PR target/47381
7526         PR target/49832
7527         PR target/49833
7528         * config/i386/i386.md (i): Change SImode attribute to "e".
7529         (g): Change SImode attribute to "rme".
7530         (di): Change SImode attribute to "nF".
7531         (general_operand): Change SImode attribute to x86_64_general_operand.
7532         (general_szext_operand): Change SImode attribute to
7533         x86_64_szext_general_operand.
7534         (immediate_operand): Change SImode attribute to
7535         x86_64_immediate_operand.
7536         (nonmemory_operand): Change SImode attribute to
7537         x86_64_nonmemory_operand.
7538         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7539         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
7540         (*lea_1): Use SWI48 mode iterator.
7541         (*lea_1_zext): New insn pattern.
7542         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7543         (*bt<mode>): Ditto.
7544         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7545         Update operand constraints.
7546         (addsi_1_zext): Ditto.
7547         (*add<mode>2): Ditto.
7548         (*addsi_3_zext): Ditto.
7549         (*subsi_1_zext): Ditto.
7550         (*subsi_2_zext): Ditto.
7551         (*subsi_3_zext): Ditto.
7552         (*addsi3_carry_zext): Ditto.
7553         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7554         (*mulsi3_1_zext): Ditto.
7555         (*andsi_1): Ditto.
7556         (*andsi_1_zext): Ditto.
7557         (*andsi_2_zext): Ditto.
7558         (*<any_or:code>si_1_zext): Ditto.
7559         (*<any_or:code>si_2_zext): Ditto.
7560         (*test<mode>_1): Use <general_operand> predicate for operand 1.
7561         (*and<mode>_2): Ditto.
7562         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
7563         (add->lea splitter): Check operand modes in insn constraint.  Extend
7564         operands less than SImode wide to SImode.
7565         (add->lea zext splitter): Do not extend input operands to DImode.
7566         (*lea_general_1): Handle only QImode and HImode operands.
7567         (*lea_general_2): Ditto.
7568         (*lea_general_3): Ditto.
7569         (*lea_general_1_zext): Remove.
7570         (*lea_general_2_zext): Ditto.
7571         (*lea_general_3_zext): Ditto.
7572         (*lea_general_4): Check operand modes in insn constraint.  Extend
7573         operands less than SImode wide to SImode.
7574         (ashift->lea splitter): Ditto.
7575         * config/i386/i386.c (ix86_print_operand_address): Print address
7576         registers with 'q' modifier on 64bit targets.
7577         * config/i386/predicates.md (pic_32bit_opreand): Define as special
7578         predicate.  Reject non-SI and non-DI modes.
7580 2011-07-25  Andrew Pinski  <apinski@cavium.com>
7582         PR tree-opt/49671
7583         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7584         TREE_THIS_NOTRAP into the inner most MEM_REF.
7585         Always copy TREE_THIS_VOLATILE.
7586         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7587         arguments are not volatile references.
7589 2011-07-25  Richard Henderson  <rth@redhat.com>
7591         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7592         * final.c (final_scan_insn): Don't test for it.
7593         (rest_of_clean_state): Likewise.
7595 2011-07-25  Richard Henderson  <rth@redhat.com>
7597         PR debug/49841
7598         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7599         (emit_frame_save): Likewise.
7600         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7601         insn onto a dummy blockage insn after the join label.
7603 2011-07-25  Richard Henderson  <rth@redhat.com>
7605         * dwarf2cfi.c (dw_trace_info): Add ID member.
7606         (get_trace_index): Remove.  Change users to use ID member.
7607         (before_next_cfi_note): New.
7608         (connect_traces): Remove unreachable traces before the main loop.
7609         Look across one trace and generate remember/restore_state if needed.
7611 2011-07-25  Richard Henderson  <rth@redhat.com>
7613         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7615 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
7617         * genattr.c (write_upcase, gen_attr <enum definition writing>):
7618         Move to ...
7619         * genattr-common.c ... here.
7620         (main): Call gen_attr.
7621         * optc-gen.awk: Make generated program include insn-attr-common.h .
7622         * Makefile.in (oprions.o): Depend on insn-attr-common.h
7624 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7626         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7627         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7628         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7629         m32c_print_operand, m32c_print_operand_address): Remove.
7630         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7631         Change return type to bool. Change argument type to bool.
7632         (m32c_print_operand, m32c_print_operand_address): Make static.
7633         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7634         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7636 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7638         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7639         attributes): Document mmap.
7641 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7643         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7644         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7645         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7646         mmix_print_operand, mmix_print_operand_address): Remove.
7647         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7648         Change return type to bool. Change argument type to bool.
7649         (mmix_print_operand, mmix_print_operand_address): Make static.
7650         (mmix_intval, mmix_output_condition): Change 'x' argument type
7651         to const_rtx.
7652         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7653         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7655 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
7657         PR target/39386
7658         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7659         shift counter for x << x and x >> x shifts.
7661 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7663         PR target/47124
7664         * config.gcc: Reject *-*-solaris2 configuration.
7666 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
7668         PR tree-optimization/49809
7669         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7670         gimple_get_lhs instead of gimple_assign_lhs.
7672 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7674         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7676 2011-07-25  Richard Guenther  <rguenther@suse.de>
7678         PR tree-optimization/49822
7679         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7680         more.  Make sure to preserve stmts with side-effects.  Properly
7681         handle virtual defs, follow a longer def chain.
7683 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
7685         PR plugins/45348
7686         PR plugins/48425
7687         PR plugins/46577
7688         * Makefile.in: Do not flatten c-family directory when installing
7689         plugin headers.
7691 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7693         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7694         original nodes if we are dealing with virtual clones.
7696 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
7698         * common/config/c6x/c6x-common.c: New file.
7700 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
7702         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7704 2011-07-25  Richard Guenther  <rguenther@suse.de>
7706         PR tree-optimization/49715
7707         * tree-vrp.c: Include expr.h and optabs.h.
7708         (range_fits_type_): New function.
7709         (simplify_float_conversion_using_ranges): Likewise.
7710         (simplify_stmt_using_ranges): Call it.
7711         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7712         * optabs.c (can_float_p): Export.
7713         * optabs.h (can_float_p): Declare.
7715 2011-07-25  Richard Guenther  <rguenther@suse.de>
7717         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7718         (get_value_range): For out-of-range SSA names or names created
7719         after propagation return a read-only varying range.
7720         (dump_all_value_ranges): Adjust.
7721         (vrp_initialize): Likewise.
7722         (vrp_finalize): Likewise.
7724 2011-07-24  Richard Henderson  <rth@redhat.com>
7726         PR debug/49831
7727         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
7728         them entirely.
7730 2011-07-24  Richard Henderson  <rth@redhat.com>
7732         PR debug/49825
7733         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7734         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7736 2011-07-24  Richard Henderson  <rth@redhat.com>
7738         PR debug/49827
7739         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7741 2011-07-24  Richard Henderson  <rth@redhat.com>
7743         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7744         Zero args_size for abnormal edges.  Adjust all callers.
7746 2011-07-24  Richard Henderson  <rth@redhat.com>
7748         PR debug/49825
7749         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7751 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7753         PR bootstrap/49835
7754         * collect2.c (demangle_flag): Removed.
7756 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
7758         * configure.ac (demangler_in_ld): Default to yes.
7759         * configure: Regenerated.
7760         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7761         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7762         --no-demangle options straight through to ld.  When
7763         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7764         way that has the intended effect on Windows.
7766 2011-07-23  Richard Henderson  <rth@redhat.com>
7768         * dwarf2cfi.c: Include basic-block.h.
7769         (dw_label_info): Remove.
7770         (trace_work_list, trace_index): New.
7771         (remember_row, emit_cfa_remember): Remove.
7772         (dw_trace_info_hash, dw_trace_info_eq): New.
7773         (get_trace_index, get_trace_info): New.
7774         (save_point_p): New.
7775         (free_cfi_row): Remove.
7776         (add_cfi): Do not emit DW_CFA_remember_state.
7777         (cfa_row_equal_p): New.
7778         (barrier_args_size): Remove.
7779         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7780         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7781         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7782         (dwarf2out_cfi_begin_epilogue): Remove.
7783         (dwarf2out_frame_debug_restore_state): Remove.
7784         (connect_traces, create_pseudo_cfg): New.
7785         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7786         * Makefile.in (dwarf2cfi.o): Update.
7788 2011-07-23  Richard Henderson  <rth@redhat.com>
7790         * dwarf2cfi.c (dw_trace_info): New.
7791         (dw_label_info): New.
7792         (cie_return_save): New.
7793         (cur_trace): New.
7794         (queued_args_size): Rename from args_size.  Update all users.
7795         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7796         (def_cfa_1): Use cur_trace instead of cfa_*.
7797         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7798         (clobbers_queued_reg_save, reg_saved_in): Likewise.
7799         (dwarf2out_frame_debug_expr): Likewise.
7800         (create_cie_data): Split out from ...
7801         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
7803 2011-07-23  Richard Henderson  <rth@redhat.com>
7805         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7806         Update all users to match.
7807         (execute_dwarf2_frame): Free reg_saved_in_data.
7809 2011-07-23  Richard Henderson  <rth@redhat.com>
7811         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
7812         (queued_reg_saves): Don't GTY.  Change to a VEC.
7813         (queue_reg_save): Update to match.
7814         (dwarf2out_flush_queued_reg_saves): Likewise.
7815         (clobbers_queued_reg_save): Likewise.
7816         (reg_saved_in): Likewise.
7817         (execute_dwarf2_frame): Free queued_reg_saves.
7819 2011-07-23  Richard Henderson  <rth@redhat.com>
7821         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
7823 2011-07-23  Richard Henderson  <rth@redhat.com>
7825         * dwarf2cfi.c (add_cfi_args_size): Split out from...
7826         (dwarf2out_args_size): ... here.
7827         (add_cfi_restore): Split out from ...
7828         (dwarf2out_frame_debug_cfa_restore): ... here.
7829         (def_cfa_0): Split out from ...
7830         (def_cfa_1): ... here.
7831         (cfi_oprnd_equal_p, cfi_equal_p): New.
7832         (change_cfi_row): New.
7833         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7834         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7835         (output_cfis): Remove.
7836         * dwarf2out.c (output_fde): Simplify output_cfi loop.
7837         (dwarf2out_switch_text_section): Don't call output_cfis.
7838         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7839         * dwarf2out.h: Update decls.
7840         (enum dw_val_class): Add dw_val_class_none.
7842 2011-07-23  Richard Henderson  <rth@redhat.com>
7844         * dwarf2cfi.c (update_row_reg_save): New.
7845         (dwarf2out_frame_debug_cfa_expression): Use it.
7846         (dwarf2out_frame_debug_cfa_restore): Likewise.
7847         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
7849 2011-07-23  Richard Henderson  <rth@redhat.com>
7851         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
7853 2011-07-23  Richard Henderson  <rth@redhat.com>
7855         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7856         (cie_cfi_row): New.
7857         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7858         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7859         (cur_row, remember_row): New.
7860         (def_cfa_1): Use cur_row instead of the old_* variables.
7861         (dwarf2out_frame_debug_restore_state): Similarly.
7862         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7863         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7864         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7865         (dwarf2out_frame_debug_cfa_offset): Likewise.
7866         (dwarf2out_frame_debug_expr): Likewise.
7867         (execute_dwarf2_frame): Set up cur_row.
7868         * dwarf2out.h (struct cfa_loc): Mark for GTY.
7870 2011-07-23  Richard Henderson  <rth@redhat.com>
7872         * basic-block.h (EDGE_PRESERVE): New.
7873         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7874         * bb-reorder.c: Include except.h.
7875         (fix_up_crossing_landing_pad): New.
7876         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7877         landing pads in the right partition.  Duplicate as necessary.
7878         (partition_hot_cold_basic_blocks): Fix up DF info after
7879         duplicating landing pads.
7880         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7881         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7882         is set properly.  Validate that EH edges are not CROSSING.
7883         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7884         (dw2_build_landing_pads): ... here.
7885         (convert_to_eh_region_ranges): Remove code to fixup crossing
7886         landing pads.
7887         * except.h (expand_dw2_landing_pad_for_region): Declare.
7888         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7890 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
7892         PR target/49816
7893         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7895 2011-07-22  Jason Merrill  <jason@redhat.com>
7897         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7899 2011-07-22  Richard Henderson  <rth@redhat.com>
7901         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7903 2011-07-22  Richard Henderson  <rth@redhat.com>
7905         * jump.c (maybe_propagate_label_ref): Split out of...
7906         (mark_all_labels): ... here.  Do not attempt label_ref
7907         propagation while in cfglayout mode.
7909 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7911         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7912         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7913         (dwarf_attr_name): Handle DW_AT_GNU_macros.
7914         (dwarf2out_define): If the vector is empty and
7915         lineno is 0, emit a dummy entry first.
7916         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
7917         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7918         optimize_macinfo_range): New functions.
7919         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
7920         mergeable, optimize longer strings using
7921         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7922         optimize longer sequences of define/undef ops from headers
7923         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
7924         emit a section headers.
7925         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7926         and macinfo_section_label to DEBUG_MACRO_SECTION
7927         resp. DEBUG_MACRO_SECTION_LABEL.
7928         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7929         instead of DW_AT_macro_info.
7931         PR other/32998
7932         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7933         options.
7934         * dwarf2out.c: Include opts.h.
7935         (dchar_p): New typedef.  Define heap VEC for it.
7936         (producer_string): New variable.
7937         (gen_producer_string): New function.
7938         (gen_compile_unit_die): Use it.
7939         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7940         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7941         * doc/invoke.texi: Document -grecord-gcc-switches and
7942         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7943         to -frecord-gcc-switches description.
7945 2011-07-22  Jason Merrill  <jason@redhat.com>
7947         PR c++/30112
7948         * c-decl.c (c_linkage_bindings): Define.
7950 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
7952         PR debug/49815
7953         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7955 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
7957         * config/i386/i386.c (ix86_option_override_internal): Disallow
7958         MS ABI in x32 mode.
7959         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7960         only for TARGET_LP64.
7961         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7963 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7965         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7966         avoid warnings when GCC is built with a C++ compiler.
7968 2011-07-22  Martin Jambor  <mjambor@suse.cz>
7970         PR lto/49796
7971         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7972         if decl node is in another partition, call cgraph_get_node only once.
7974 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
7976         * config.gcc (x86_64-*-linux*): Set
7977         default_gnu_indirect_function to yes.
7979 2011-07-22  Richard Guenther  <rguenther@suse.de>
7981         PR tree-optimization/45819
7982         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7983         preserve volatile and notrap flags.
7985 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7986             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7988         PR bootstrap/49794
7989         * configure.ac: Test AM_ICONV with CXX.
7990         * configure: Regenerate.
7991         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7993 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7995         PR bootstrap/49797
7996         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7997         (set_cloog_options): Use it.
7999 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8001         PR c++/49756
8002         * gcc.c (main): Call stack_limit_increase (64MB).
8003         * toplev.c (toplev_main): Likewise.
8005 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8007         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
8008         instead of force_reg.
8010 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8012         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
8013         needed and use force_reg after convert.
8014         (ix86_expand_call): Likewise.
8015         (ix86_expand_special_args_builtin): Likewise.
8016         (ix86_expand_builtin): Likewise.
8018 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8020         PR middle-end/47654
8021         PR middle-end/49649
8022         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
8023         in parameter.  Initialize v1 and v2 based on the values returned
8024         by clast_name_to_lb_ub.
8025         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
8026         values.
8027         (type_for_clast_bin): Same.
8028         (type_for_clast_expr): Same.
8029         (type_for_clast_eq): Update calls to type_for_clast_expr.
8030         (type_for_clast_for): Same.
8031         (build_iv_mapping): Same.
8032         * graphite-ppl.h (value_min): New.
8034 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8036         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
8037         types whenever possible.
8039 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8041         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
8042         and ub fields.
8043         (new_clast_name_index): Add lb and ub parameters.
8044         (free_clast_name_index): New.
8045         (clast_name_to_lb_ub): New.
8046         (save_clast_name_index): Add lb and ub parameters.
8047         (compute_bounds_for_param): New.
8048         (type_for_level): Removed.
8049         (type_for_clast_for): Removed level parameter.  Do not call
8050         type_for_level.
8051         (graphite_create_new_loop): Store the lb and ub for the clast_name
8052         of the iterator of the loop that has been generated.
8053         (graphite_create_new_loop_guard): Remove parameter level.
8054         (create_params_index): Store the lb and ub of each parameter.
8055         (gloog): Use free_clast_name_index.  Pass to create_params_index
8056         the current scop.
8058 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8060         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
8061         (max_precision_type): Inline max_signed_precision_type.
8062         (type_for_clast_red): Use max_precision_type.
8063         (type_for_clast_bin): Same.
8064         (type_for_clast_for): Same.
8066 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8068         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
8069         type_for_interval.
8070         (gcc_type_for_value): Renamed type_for_value.
8071         (gcc_type_for_clast_term): Renamed type_for_clast_term.
8072         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
8073         (gcc_type_for_clast_red): Renamed type_for_clast_red.
8074         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
8075         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
8076         (graphite_translate_clast_equation): Update calls.
8077         (compute_type_for_level): Renamed type_for_level.
8078         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
8079         (build_iv_mapping): Update calls.
8080         (graphite_create_new_loop_guard): Same.
8082 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8084         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
8085         comment.
8087 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8089         * graphite-clast-to-gimple.c (struct ivs_params): New.
8090         (clast_name_to_gcc): Use ivs_params to pass around parameters.
8091         (clast_to_gcc_expression): Same.
8092         (clast_to_gcc_expression_red): Same.
8093         (gcc_type_for_clast_term): Same.
8094         (gcc_type_for_clast_expr): Same.
8095         (gcc_type_for_clast_red): Same.
8096         (gcc_type_for_clast_bin): Same.
8097         (gcc_type_for_clast_eq): Same.
8098         (graphite_translate_clast_equation): Same.
8099         (graphite_create_guard_cond_expr): Same.
8100         (graphite_create_new_guard): Same.
8101         (graphite_create_new_loop): Same.
8102         (build_iv_mapping): Same.
8103         (translate_clast_user): Same.
8104         (graphite_create_new_loop_guard): Same.
8105         (translate_clast): Same.
8106         (translate_clast_for_loop): Same.
8107         (translate_clast_for): Same.
8108         (translate_clast_guard): Same.
8109         (initialize_cloog_names): Fix typo.
8110         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8112 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8114         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8115         (new_clast_name_index): Add level parameter.
8116         (clast_name_to_level): New.
8117         (save_clast_name_index): Add level parameter.
8118         (newivs_to_depth_to_newiv): Removed.
8119         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8120         (graphite_create_new_loop): Add level parameter.  Pass level to
8121         save_clast_name_index.
8122         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8123         (create_params_index): Pass level to save_clast_name_index.
8125 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8127         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8128         recompute type, lb, and ub.  Get them from...
8129         (graphite_create_new_loop_guard): ...here.  Pass in parameter
8130         pointers to type, lb, and ub.
8131         (translate_clast_for_loop): Update function calls.
8132         (translate_clast_for): Same.
8134 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8136         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8137         psct_dynamic_dim.
8138         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8139         (gcc_type_for_iv_of_clast_loop): Update use of level.
8140         (gloog): Start counting nesting level from 0.
8141         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8142         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8143         psct_dynamic_dim on level.
8145 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8147         * config/i386/i386.c (ix86_legitimize_address): Convert to
8148         Pmode if needed.
8150 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8152         * config/i386/i386.c (function_value_64): Always return pointers
8153         in Pmode.
8154         (ix86_promote_function_mode): New.
8155         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8157 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8159         PR tree-optimization/49749
8160         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8161         remove no-longer-used maxrank variable.
8163 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8165         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8167 2011-07-21  Jason Merrill  <jason@redhat.com>
8169         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8170         * recog.h (struct insn_data_d): Check it instead of
8171         HAVE_DESIGNATED_INITIALIZERS.
8172         * genoutput.c (output_insn_data): Likewise.
8174 2011-07-21  Richard Guenther  <rguenther@suse.de>
8176         PR tree-optimization/49770
8177         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8178         valueized any operand.  Renamed from ...
8179         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
8180         (valueize_shared_reference_ops_from_ref): Return whether we
8181         valueized any operand.
8182         (vn_reference_lookup): Only when we valueized any operand
8183         use the valueized reference for alias analysis.  Do not preserve
8184         the original reference tree in this case.
8186 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
8188         * config/i386/i386.c (ix86_decompose_address): Reject all but
8189         register operands and subregs of DImode hard registers in index.
8191 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8193         * fold-const.c (fold_unary_loc): Preserve indirect
8194         comparison cast to none-boolean type.
8195         * tree-ssa.c (useless_type_conversion_p): Preserve cast
8196         from/to boolean-type.
8197         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8198         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8199         * tree-cfg.c (verify_gimple_comparison): Check result
8200         type of comparison expression.
8201         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8202         of condition result and disallow type-cast sinking into comparison.
8204 2011-07-21  Richard Guenther  <rguenther@suse.de>
8206         * tree-ssa-forwprop.c (combine_conversions): Return whether
8207         we have to run cfg-cleanup.  Properly remove dead stmts.
8208         (ssa_forward_propagate_and_combine): Adjust.
8210 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
8212         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8214 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8216         * tree-ssa-propagate.c (substitute_and_fold): Use
8217         do_dce flag to deside, if BB's statements are scanned
8218         in last to first, or first to last order.
8220 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8222         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8224 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
8225             Uros Bizjak  <ubizjak@gmail.com>
8226             Richard Henderson  <rth@redhat.com>
8228         * config/i386/constraints.md (w): New.
8230         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8231         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8233         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8234         instead of TARGET_64BIT.
8236         * config/i386/i386.md (indirect_jump): Replace
8237         nonimmediate_operand with indirect_branch_operand.
8238         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
8239         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8240         Convert operand 0 to Pmode for x32 if not PIC.
8241         (*tablejump_1): Replace nonimmediate_operand with
8242         indirect_branch_operand.  Replace constraint "m" with "w".
8243         (*call_vzeroupper): Replace constraint "m" with "w".
8244         (*call): Likewise.
8245         (*call_rex64_ms_sysv_vzeroupper): Likewise.
8246         (*call_rex64_ms_sysv): Likewise.
8247         (*call_value_vzeroupper): Likewise.
8248         (*call_value): Likewise.
8249         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8250         (*call_value_rex64_ms_sysv): Likewise.
8251         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8253         * config/i386/predicates.md (indirect_branch_operand): New.
8254         (call_insn_operand): Support x32.
8256 2011-07-20  Michael Eager  <eager@eagercon.com>
8258         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8260 2011-07-20  Richard Henderson  <rth@redhat.com>
8262         * cfg.c (dump_bb_info): Dump basic_block->flags.
8263         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8265 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8267         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8268         of DImode hard registers in index.
8269         (ix86_legitimate_address_p): Allow subregs of base and index to span
8270         more than a word.  Assert that subregs of base and index satisfy
8271         register_no_elim_operand predicates.  Reject addresses where
8272         base and index have different modes.
8274 2011-07-20  Robert Millan  <rmh@gnu.org>
8276         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8278 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8280         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8281         removing now-unnecessary assignment.
8283 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8285         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8286         memory address space to the type's address space.
8288 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8290         PR target/36467
8291         PR target/49687
8292         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8293         and expand appropriately if there is a CONST_INT in operand2.
8294         (usmulqihi3): New insn.
8295         (*sumulqihi3): New insn.
8296         (*osmulqihi3): New insn.
8297         (*oumulqihi3): New insn.
8298         (*muluqihi3.uconst): New insn_and_split.
8299         (*muluqihi3.sconst): New insn_and_split.
8300         (*mulsqihi3.sconst): New insn_and_split.
8301         (*mulsqihi3.uconst): New insn_and_split.
8302         (*mulsqihi3.oconst): New insn_and_split.
8303         (*ashifthi3.signx.const): New insn_and_split.
8304         (*ashifthi3.signx.const7): New insn_and_split.
8305         (*ashifthi3.zerox.const): New insn_and_split.
8306         (mulsqihi3): New insn.
8307         (muluqihi3): New insn.
8308         (muloqihi3): New insn.
8309         * config/avr/predicates.md (const_2_to_7_operand): New.
8310         (const_2_to_6_operand): New.
8311         (u8_operand): New.
8312         (s8_operand): New.
8313         (o8_operand): New.
8314         (s9_operand): New.
8315         (register_or_s9_operand): New.
8317 2011-07-20  Kai Tietz  <ktietz@redhat.com>
8319         * builtins.c (fold_builtin_expect): See through the cast
8320         from truthvalue_type_node to long.
8322 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8324         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8325         where we can use them from the standard and altivec instruction
8326         sets, instead of always using the 3 operand VSX forms that require
8327         the destination to overlap one of the inputs.
8328         (vsx_fms*): Ditto.
8329         (vsx_fnma*): Ditto.
8330         (vsx_fnms*): Ditto.
8332         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8333         for DF types.
8334         (fmsdf4_fpr): Ditto.
8335         (nfmadf4_fpr): Ditto.
8336         (nfmsdf4_fpr): Ditto.
8338 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
8340         * genrecog.c (make_insn_sequence): Correct position numbering
8341         when filtering out match_scratch and match_dup.
8343 2011-07-20  Richard Guenther  <rguenther@suse.de>
8345         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8346         against already removed statements.
8347         (forward_propagate_into_comparison): Remove dead defining stmts.
8348         (forward_propagate_into_gimple_cond): Likewise.
8349         (forward_propagate_into_cond): Simplify.
8350         (ssa_forward_propagate_and_combine): Handle changed cfg from
8351         forward_propagate_into_comparison.
8352         * tree-ssa-phiopt.c (conditional_replacement): Use proper
8353         locations for newly built statements.
8355 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8357         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8359 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8361         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8362         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8364 2011-07-20  Richard Guenther  <rguenther@suse.de>
8366         PR middle-end/18908
8367         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8368         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8369         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
8371 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
8373         * config/frv/frv.c (frv_register_move_cost): Define explicitly
8374         costs for subclasses of GR_REGS.
8376 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8378         PR target/49780
8379         * config/i386/predicates.md (no_seg_addres_operand): No more special.
8380         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8381         of DImode hard registers in base.
8382         (ix86_legitimate_address_p): Allow SImode and DImode base and index
8383         registers.
8385 2011-07-20  Richard Guenther  <rguenther@suse.de>
8387         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8388         (unify_nodes): Deal with that.
8389         (solve_graph): Likewise.
8391 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
8393         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8394         canonicalize left operand from ZERO_EXTEND to AND.
8396 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
8398         * target.def (class_max_nregs): New hook.
8399         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8400         * doc/tm.texi: Regenerate.
8401         * targhooks.c (default_class_max_nregs): New function.
8402         * targhooks.h (default_class_max_nregs): Declare.
8403         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8404         x_ira_reg_class_min_nregs arrays to unsigned char.
8405         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8406         hook instead of CLASS_MAX_NREGS macro.
8407         * reginfo.c (restore_register_info): Ditto.
8408         * ira-conflicts.c (process_regs_for_copy): Use
8409         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8410         Change type rclass and aclass vars to reg_class_t.
8411         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8412         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8413         reg_class_t.
8414         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8415         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8417         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8418         * config/i386/i386.c (ix86_class_max_nregs): New function.
8419         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8420         instead of CLASS_MAX_NREGS macro.
8421         (TARGET_CLASS_MAX_NREGS): Define.
8422         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8423         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8424         * config/avr/avr.c (class_max_nregs): Remove function.
8425         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8426         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8427         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8428         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8429         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8430         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8431         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8432         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8433         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8434         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8435         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8436         * config/score/score.h (CLASS_MAX_NREGS): Remove.
8437         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8438         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8439         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8441 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
8443         * cif-code.def (OVERWRITABLE): Fix typo and move around.
8444         (TARGET_OPTIMIZATION_MISMATCH): Delete.
8445         (EH_PERSONALITY): Fix typo.
8446         (NON_CALL_EXCEPTIONS): Fix message.
8447         (OPTIMIZATION_MISMATCH): Adjust message.
8448         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8450 2011-07-19  Ian Lance Taylor  <iant@google.com>
8452         * doc/install.texi (Configuration): Document
8453         --enable-build-poststage1-with-cxx.
8455 2011-07-19  Robert Millan  <rmh@gnu.org>
8457         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
8458         (GLIBC_DYNAMIC_LINKER): Remove.
8460         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
8461         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8462         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8463         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8464         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8465         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8467         * config/mips/linux.h: Remove everything except for ...
8468         (GLIBC_DYNAMIC_LINKER): ... this macro.
8470         * config/mips/linux64.h: Remove everything except for ...
8471         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8472         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8473         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8474         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8475         (GNU_USER_LINK_EMULATIONN32): New macros.
8477         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8478         Use the new headers.
8480 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8482         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8483         Add offset_known_p and size_known_p fields.
8484         (MEM_OFFSET_KNOWN_P): Update accordingly.
8485         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8486         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8487         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8488         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8489         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8490         (init_emit_regs): Likewise.
8492 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8494         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8495         (MEM_OFFSET): Change from returning an rtx to returning a
8496         HOST_WIDE_INT.
8497         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8498         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8499         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8500         (clear_mem_offset): Declare.
8501         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8502         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8503         MEM_OFFSET to get a HOST_WIDE_INT offset.
8504         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
8505         (adjust_offset_for_component_ref): Take a bool "known_p"
8506         parameter and a HOST_WIDE_INT "offset" parameter.
8507         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8508         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8509         than an rtx.  Use clear_mem_offset to clear the offset.
8510         * cfgcleanup.c (merge_memattrs): Likewise.
8511         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8512         * function.c (assign_parm_find_stack_rtl): Likewise.
8513         (assign_parm_setup_stack): Likewise.
8514         * print-rtl.c (print_rtx): Likewise.
8515         * reload.c (find_reloads_subreg_address): Likewise.
8516         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8517         * var-tracking.c (INT_MEM_OFFSET): Likewise.
8518         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8519         (get_mem_align_offset): Likewise.
8520         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8521         (clear_mem_offset): New function.
8522         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8523         offset rather than an rtx.  Assume both the expressio and offset
8524         are available.
8525         (r10k_needs_protection_p_1): Update accordingly, checking the
8526         expression and offset availability here instead.
8528 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8530         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8531         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8532         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8533         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8534         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8535         (clear_mem_size): Declare.
8536         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8537         (clear_mem_size): New function.
8538         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8539         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8540         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
8541         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
8542         to clear the size.
8543         (nonoverlapping_memrefs_p): Likewise.
8544         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8545         (expand_builtin_init_trampoline): Likewise.
8546         * calls.c (compute_argument_addresses): Likewise.
8547         * cfgcleanup.c (merge_memattrs): Likewise.
8548         * dce.c (find_call_stack_args): Likewise.
8549         * dse.c (record_store, scan_insn): Likewise.
8550         * dwarf2out.c (dw_sra_loc_expr): Likewise.
8551         * expr.c (emit_block_move_hints): Likewise.
8552         * function.c (assign_parm_find_stack_rtl): Likewise.
8553         * print-rtl.c (print_rtx): Likewise.
8554         * reload.c (find_reloads_subreg_address): Likewise.
8555         * rtlanal.c (may_trap_p_1): Likewise.
8556         * var-tracking.c (track_expr_p): Likewise.
8557         * varasm.c (assemble_trampoline_template): Likewise.
8558         * config/arm/arm.c (arm_print_operand): Likewise.
8559         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8560         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8561         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8562         (expand_constant_setmem_prologue): Likewise.
8563         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8564         * config/rs6000/rs6000.c (expand_block_move): Likewise.
8565         (adjacent_mem_locations): Likewise.
8566         * config/s390/s390.c (s390_expand_setmem): Likewise.
8567         (s390_expand_insv): Likewise.
8568         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8569         (*extendqi<mode>2_short_displ): Likewise.
8570         * config/sh/sh.c (expand_block_move): Likewise.
8571         * config/sh/sh.md (extv, extzv): Likewise.
8573 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8575         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8576         (mem_attrs_htab_eq): ...here.
8577         (find_mem_attrs): Replace with...
8578         (set_mem_attrs): ...this function.  Take a mem_attrs structure
8579         rather than individual fields.
8580         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8581         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8582         (set_mem_size, change_address, adjust_address_1, offset_address)
8583         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8584         Update accordingly.
8586 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8588         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8589         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8590         Provide a dummy definition of MEM_ADDR_SPACE for generators.
8591         (target_rtl): Add x_mode_mem_attrs.
8592         (mode_mem_attrs): New macro.
8593         (get_mem_attrs): New function.
8594         * emit-rtl.c (get_mem_attrs): Rename to...
8595         (find_mem_attrs): ...this.
8596         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8597         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8598         (set_mem_size, change_address, adjust_address_1, offset_address)
8599         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8600         Update accordingly.
8601         (init_emit_regs): Initialize mode_mem_attrs.
8603 2011-07-19  Richard Guenther  <rguenther@suse.de>
8605         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8606         TRUTH_*_EXPR handling.
8607         * tree-ssa-operands.c (get_expr_operands): Likewise.
8608         * tree-ssa-pre.c (fully_constant_expression): Likewise.
8609         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8610         Likewise.
8611         (is_and_or_or): Likewise.
8612         (is_norm_cond_subset_of): Likewise.
8614 2011-07-19  Richard Guenther  <rguenther@suse.de>
8616         * tree.h (fold_build_pointer_plus_loc): New helper function.
8617         (fold_build_pointer_plus_hwi_loc): Likewise.
8618         (fold_build_pointer_plus): Define.
8619         (fold_build_pointer_plus_hwi): Likewise.
8620         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8621         (fold_builtin_memory_op): Likewise.
8622         (fold_builtin_stpcpy): Likewise.
8623         (fold_builtin_memchr): Likewise.
8624         (fold_builtin_strstr): Likewise.
8625         (fold_builtin_strchr): Likewise.
8626         (fold_builtin_strrchr): Likewise.
8627         (fold_builtin_strpbrk): Likewise.
8628         (fold_builtin_strcat): Likewise.
8629         (expand_builtin_memory_chk): Likewise.
8630         (fold_builtin_memory_chk): Likewise.
8631         * c-typeck.c (build_unary_op): Likewise.
8632         * cgraphunit.c (thunk_adjust): Likewise.
8633         * fold-const.c (build_range_check): Likewise.
8634         (fold_binary_loc): Likewise.
8635         * omp-low.c (extract_omp_for_data): Likewise.
8636         (expand_omp_for_generic): Likewise.
8637         (expand_omp_for_static_nochunk): Likewise.
8638         (expand_omp_for_static_chunk): Likewise.
8639         * tree-affine.c (add_elt_to_tree): Likewise.
8640         * tree-data-ref.c (split_constant_offset_1): Likewise.
8641         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8642         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8643         * tree-predcom.c (ref_at_iteration): Likewise.
8644         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8645         (add_to_parts): Likewise.
8646         (create_mem_ref): Likewise.
8647         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8648         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8649         (number_of_iterations_le): Likewise.
8650         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8651         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8652         (vect_create_addr_base_for_vector_ref): Likewise.
8653         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8654         (vect_create_cond_for_alias_checks): Likewise.
8655         * tree-vrp.c (extract_range_from_assert): Likewise.
8656         * config/alpha/alpha.c (alpha_va_start): Likewise.
8657         (alpha_gimplify_va_arg_1): Likewise.
8658         * config/i386/i386.c (ix86_va_start): Likewise.
8659         (ix86_gimplify_va_arg): Likewise.
8660         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8661         * config/mep/mep.c (mep_expand_va_start): Likewise.
8662         (mep_gimplify_va_arg_expr): Likewise.
8663         * config/mips/mips.c (mips_va_start): Likewise.
8664         (mips_gimplify_va_arg_expr): Likewise.
8665         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8666         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8667         (rs6000_gimplify_va_arg): Likewise.
8668         * config/s390/s390.c (s390_va_start): Likewise.
8669         (s390_gimplify_va_arg): Likewise.
8670         * config/sh/sh.c (sh_va_start): Likewise.
8671         (sh_gimplify_va_arg_expr): Likewise.
8672         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8673         * config/spu/spu.c (spu_va_start): Likewise.
8674         (spu_gimplify_va_arg_expr): Likewise.
8675         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8676         Likewise.
8677         (xstormy16_gimplify_va_arg_expr): Likewise.
8678         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8679         (xtensa_gimplify_va_arg_expr): Likewise.
8681 2011-07-19  Richard Guenther  <rguenther@suse.de>
8683         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8684         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8685         handling.
8687         PR middle-end/18908
8688         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8689         result of BIT_*_EXPR to bitfield precision.
8691 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
8693         PR tree-optimization/49742
8694         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8695         as a potential write.
8697 2011-07-19  Richard Guenther  <rguenther@suse.de>
8699         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8700         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8701         (forward_propagate_comparison): Simplify, remove obsolete code.
8703 2011-07-19  Richard Guenther  <rguenther@suse.de>
8705         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8706         BIT_XOR_EXPR, same as the RTL expander does.
8707         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8708         (verify_gimple_assign_unary): Likewise.
8709         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8710         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8711         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8713 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
8715         PR tree-optimization/49768
8716         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8717         if offset is smaller than bitoffset, but offset+size is bigger
8718         than bitoffset.
8720 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
8722         PR tree-optimization/49771
8723         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8724         zero step, set segment length to the size of the data-ref's type.
8726 2011-07-18  Martin Jambor  <mjambor@suse.cz>
8728         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8729         comments.
8730         (ipcp_values_pool): Declare.
8731         (ipcp_sources_pool): Likewise.
8732         (ipcp_lattice): Changed to forward declaration.
8733         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8734         cannot_devirtualize.
8735         (ipa_node_params): New fields descriptors, lattices, known_vals,
8736         clone_for_all_contexts and node dead, removed fields params and
8737         count_scale.
8738         (ipa_set_param_count): Removed.
8739         (ipa_get_param_count): Made to work with descriptors vector.
8740         (ipa_get_param): Updated.
8741         (ipa_param_cannot_devirtualize_p): Removed.
8742         (ipa_param_types_vec_empty): Likewise.
8743         (ipa_set_param_used): New function.
8744         (ipa_get_param_used): Updated to use descriptors vector.
8745         (ipa_func_list): Removed.
8746         (ipa_init_func_list): Removed declaration.
8747         (ipa_push_func_to_list_1): Likewise.
8748         (ipa_pop_func_from_list): Likewise.
8749         (ipa_push_func_to_list): Removed.
8750         (ipa_lattice_from_jfunc): Remove declaration.
8751         (ipa_get_jf_pass_through_result): Declare.
8752         (ipa_get_jf_ancestor_result): Likewise.
8753         (ipa_value_from_jfunc): Likewise.
8754         (ipa_get_lattice): Update.
8755         (ipa_lat_is_single_const): New function.
8756         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8757         (ipa_init_func_list): Likewise.
8758         (ipa_pop_func_from_list): Likewise.
8759         (ipa_get_param_decl_index): Fix coding style.
8760         (count_formal_params): Removed.
8761         (count_formal_params_1): Renamed to count_formal_params.
8762         (ipa_populate_param_decls): Update to use descriptors vector.
8763         (ipa_initialize_node_params): Likewise.
8764         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8765         (ipa_analyze_params_uses): Likewise.
8766         (ipa_free_node_params_substructures): Likewise and free also lattices
8767         and known values.
8768         (duplicate_array): Removed.
8769         (ipa_edge_duplication_hook): Add the new edge to the list of edge
8770         clones.
8771         (ipa_node_duplication_hook): Update to use new lattices.
8772         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8773         (ipa_free_all_structures_after_iinln): Likewise.
8774         (ipa_write_node_info): Update to use new lattices.
8775         (ipa_read_node_info): Likewise.
8776         (ipa_get_jf_pass_through_result): New function.
8777         (ipa_get_jf_ancestor_result): Likewise.
8778         (ipa_value_from_jfunc): Likewise.
8779         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8780         * ipa-cp.c: Reimplemented.
8781         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8782         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8783         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8784         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8785         * doc/invoke.texi (devirt-type-list-size): Removed description.
8786         (ipa-cp-value-list-size): Added description.
8788 2011-07-18  Richard Henderson  <rth@redhat.com>
8790         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8791         before calling create_basic_block.
8793 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
8795         PR middle-end/49675
8796         * tree.c (build_common_builtin_nodes): Register
8797         __builtin_return_address, __cyg_profile_func_enter
8798         and __cyg_profile_func_exit.
8800 2011-07-18  Richard Henderson  <rth@redhat.com>
8802         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8803         (add_labels_and_missing_jumps): ... here.
8804         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8806 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
8808         PR target/47744
8809         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8810         of DImode hard registers in PLUS address chains.
8812 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8814         PR bootstrap/49769
8815         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8816         (alpha*-*-freebsd*): Likewise.
8817         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8818         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8819         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8820         crtprec80.o, crtfastmath.o to extra_parts for all targets.
8821         (ia64*-*-elf*): Remove extra_parts.
8822         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8823         (sparc64-*-linux*): Likewise.
8824         (sparc64-*-freebsd*): Likewise.
8826         Revert:
8827         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8828         (ia64*-*-linux*): Likewise.
8829         (mips64*-*-linux*): Likewise.
8830         (mips*-*-linux*): Likewise.
8832 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
8834         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8836 2011-07-18  Richard Guenther  <rguenther@suse.de>
8838         * gimplify.c (gimplify_expr): Use input_location, not saved_location
8839         when building new trees.
8841 2011-07-18  Richard Guenther  <rguenther@suse.de>
8843         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8844         expansion result to bitfield precision if required.
8846 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8848         * config.gcc (i[3456x]86-*-netware*): Remove.
8850         * gthr-nks.h: Remove.
8851         * configure.ac (enable_threads): Remove nks.
8852         * configure: Regenerate.
8854         * config/i386/i386.c (ix86_encode_section_info): Remove netware
8855         reference.
8856         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8857         <netware.h> reference.
8859         * config/i386/netware-libgcc.c,
8860         gcc/config/i386/netware-libgcc.def,
8861         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8862         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8863         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8864         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8866         * doc/extend.texi (Function Attributes,
8867         callee_pop_aggregate_return): Remove i?86-netware reference.
8868         * doc/install.texi (Configuration, --enable-threads): Remove nks.
8870 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8872         PR target/49746
8873         Revert:
8874         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8876         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8877         patterns.
8879 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
8881         PR middle-end/49732
8882         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8884 2011-07-16  Matthias Klose  <doko@ubuntu.com>
8886         * doc/install.texi: Document --enable-static-libjava.
8888 2011-07-15  Richard Henderson  <rth@redhat.com>
8890         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8891         Replace all three arguments by returning a VEC of edges.
8892         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8893         pointers and counts.
8894         (fix_edges_for_rarely_executed_code): Merge ...
8895         (rest_of_handle_partition_blocks): ... into...
8896         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
8897         any work was performed.
8898         (pass_partition_blocks): Clear todo_flags_finish.
8900 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
8901             Jakub Jelinek  <jakub@redhat.com>
8902             Jonathan Wakely  <jwakely.gcc@gmail.com>
8904         PR libstdc++/49745
8905         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8906         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8908 2011-07-15  Jason Merrill  <jason@redhat.com>
8910         PR testsuite/49741
8911         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8912         rather than --tool_opts.
8914 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
8916         * doc/plugins.texi (Building GCC plugins): gengtype needs its
8917         corresponding gtype.state.
8919 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8921         PR target/49723
8922         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8924 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8926         PR target/48220
8927         * doc/md.texi (Standard Names): Document window_save.
8928         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8929         expand_debug_expr and expand_debug_source_expr.  If the target has
8930         a window_save instruction, adjust the ENTRY_VALUE_EXP.
8931         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8932         SSA_NAME_VAR is a parameter.
8933         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8934         * var-tracking.c (parm_reg_t): New type and associated vector type.
8935         (windowed_parm_regs): New variable.
8936         (adjust_insn): If the target has a window_save instruction and this
8937         is the instruction, make its effect on parameter registers explicit.
8938         (next_non_note_insn_var_location): New function.
8939         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8940         (vt_add_function_parameter): If the target has a window_save insn,
8941         adjust the incoming RTL and record that in windowed_parm_regs.
8942         (vt_finalize): Free windowed_parm_regs.
8944 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8946         * doc/invoke.texi (C6X Options): New section.
8947         * doc/md.texi (TI C6X family): New section.
8948         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8949         tic6x-*-uclinux.
8950         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8951         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8952         Provide C6X definitions.
8953         * config/c6x/c6x.md: New file.
8954         * config/c6x/constraints.md: New file.
8955         * config/c6x/predicates.md: New file.
8956         * config/c6x/c6x-sched.md.in: New file.
8957         * config/c6x/c6x-sched.md: New file.
8958         * config/c6x/gensched.sh: New file.
8959         * config/c6x/c6x-mult.md.in: New file.
8960         * config/c6x/genmult.sh: New file.
8961         * config/c6x/c6x-mult.md: New file.
8962         * config/c6x/sync.md: New file.
8963         * config/c6x/c6x-protos.h: New file.
8964         * config/c6x/sfp-machine.h: New file.
8965         * config/c6x/c6x.c: New file.
8966         * config/c6x/c6x.h: New file.
8967         * config/c6x/crti.s: New file.
8968         * config/c6x/crtn.s: New file.
8969         * config/c6x/lib1funcs.asm: New file.
8970         * config/c6x/c6x-modes.def: New file.
8971         * config/c6x/genopt.sh: New file.
8972         * config/c6x/c6x.opt: New file.
8973         * config/c6x/c6x-tables.opt: New file.
8974         * config/c6x/c6x-opts.h: New file.
8975         * config/c6x/c6x-isas.def: New file.
8976         * config/c6x/elf.h: New file.
8977         * config/c6x/elf-common.h: New file.
8978         * config/c6x/uclinux-elf.h: New file.
8979         * config/c6x/t-c6x: New file.
8980         * config/c6x/t-c6x-elf: New file.
8981         * config/c6x/t-c6x-uclinux: New file.
8982         * config/c6x/t-c6x-softfp: New file.
8983         * config/c6x/gtd.c: New file.
8984         * config/c6x/gtf.c: New file.
8985         * config/c6x/ltd.c: New file.
8986         * config/c6x/ltf.c: New file.
8987         * config/c6x/ged.c: New file.
8988         * config/c6x/gef.c: New file.
8989         * config/c6x/led.c: New file.
8990         * config/c6x/lef.c: New file.
8991         * config/c6x/eqd.c: New file.
8992         * config/c6x/eqf.c: New file.
8993         * config/c6x/libgcc-c6xeabi.ver: New file.
8995         Revert
8996         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8997         PR rtl-optimization/11320
8998         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8999         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9000         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9001         current_sched_info->compute_jump_reg_dependencies. Record which
9002         registers are used and which registers are set by the jump.
9003         Clear deps->reg_conditional_sets after a barrier.
9004         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9005         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9006         (init_deps): Initialize reg_conditional_sets.
9007         (free_deps): Clear reg_conditional_sets.
9008         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9009         Mark registers live on entry of the fallthrough block and conditionally
9010         set as set by the jump. Mark registers live on entry of non-fallthrough
9011         blocks as used by the jump.
9012         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9013         Mark new parameters as unused.
9015 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
9017         PR tree-opt/49309
9018         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
9019         Use fold_build2_loc instead of build2.
9020         Use the correct type for the new tree.
9022 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9024         PR rtl-optimization/11320
9025         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
9026         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
9028 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9030         PR target/49487
9031         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
9032         of REG.
9033         (*rotw<mode>): Use const_int_operand for operand2.
9034         Use match_scatch for operand3.
9035         (*rotb<mode>): Ditto
9036         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
9038 2011-07-14  Richard Guenther  <rguenther@suse.de>
9040         PR tree-optimization/49651
9041         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9042         handle dereferences with subvariables.
9044 2011-07-14  Richard Guenther  <rguenther@suse.de>
9046         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
9047         (fold_stmt_1): Do it here directly on gimple and as a first thing.
9049 2011-07-14  Richard Guenther  <rguenther@suse.de>
9051         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
9052         not bool_var when folding bool_var != 1 or bool_var == 0.
9054 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9056         * haifa-sched.c (schedule_insns): Remove outdated comment.
9057         (schedule_block): When computing a known value for TODO_SPEC,
9058         just set it rather than using logical operations.
9059         (try_ready): Likewise.  Use a local variable rather than a
9060         pointer to TODO_SPEC.  Reorder an if statement to move the
9061         easy case to the then block.
9062         * sched-deps.c (dep_spec_p): New static function.
9063         (update_dep): Use it to decide whether to call
9064         change_spec_dep_to_hard.
9065         (get_back_and_forw_lists): Use it.
9066         (sd_resolve_dep): Likewise.
9067         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
9068         (haifa_note_mem_dep): Likewise.
9069         (check_dep): Likewise.
9070         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
9071         (sched_free_deps): Free in two passes.
9073 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
9075         PR middle-end/49736
9076         * expr.c (all_zeros_p): Undo bogus part of last change.
9078 2011-07-14  Matthias Klose <doko@ubuntu.com>
9080         * doc/extend.texi (optimize attribute): Fix typo.
9082 2011-07-14  Richard Guenther  <rguenther@suse.de>
9084         * gimplify.c (gimplify_expr): Only do required conversions.
9086 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9088         PR target/43746
9089         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9090         i.e. use default_elf_select_section.
9091         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9092         (READONLY_DATA_SECTION_ASM_OP): Remove.
9093         (TARGET_ASM_NAMED_SECTION): Move from here...
9094         * config/avr/avr.c: ...to here.
9095         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9096         (avr_asm_named_section): Make static.
9098 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9100         PR bootstrap/49739
9101         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9102         and crtfastmath.o for Linux/x86.
9104 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9106         * haifa-sched.c: Include "hashtab.h"
9107         (sched_no_dce): New global variable.
9108         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9109         SHADOW_P): New macros.
9110         (last_clock_var, cycle_issued_insns): Move declarations.
9111         (must_backtrack): New static variable.
9112         (struct delay_pair): New structure.
9113         (delay_htab, delay_htab_i2): New static variables.
9114         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9115         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9116         functions.
9117         (dep_cost_1): If delay pairs exist, try to look up the insns and
9118         use the correct pair delay if we find them.
9119         (rank-for_schedule): Tweak priority for insns that must be scheduled
9120         soon to avoid backtracking.
9121         (queue_insn): Detect conditions which force backtracking.
9122         (ready_add): Likewise.
9123         (struct sched_block_state): Add member shadows_only_p.
9124         (struct haifa_save_data): New structure.
9125         (backtrack_queue): New static variable.
9126         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9127         unschedule_insns_until, restore_last_backtrack_point,
9128         free_topmost_backtrack_point, free_backtrack_queue,
9129         estimate_insn_tick, estimate_shadow_tick): New functions.
9130         (prune_ready_list): New arg shadows_only_p.  All callers changed.
9131         If true, remove everything that isn't SHADOW_P.  Look up delay
9132         pairs and estimate ticks to avoid scheduling the first insn too early.
9133         (verify_shadows): New function.
9134         (schedule_block): Add machinery to enable backtracking.
9135         (sched_init): Take sched_no_dce into account when setting
9136         DF_LR_RUN_DCE.
9137         (free_delay_pairs): New function.
9138         (init_h_i_d): Initialize INSN_EXACT_TICK.
9139         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9140         * sched-deps.c (sd_unresolve_dep): New function.
9141         * sched-int. (struct haifa_sched_info): New fields save_state
9142         and restore_state.
9143         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9144         feeds_backtrack_insn and shadow_p.
9145         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9146         (sched_no_dce): Declare variable.
9147         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9148         sd_unresolve_dep): Declare functions.
9149         * modulo-sched.c (sms_sched_info): Clear the two new fields.
9150         * sched-rgn.c (rgn_const_sched_info): Likewise.
9151         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9152         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9153         (ebb_sched_info): Add them for the two new fields.
9154         (add_deps_for_risky_insns): Call add_delay_dependencies.
9156 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9158         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9159         Rename -mr11.
9160         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9161         (rs6000_call_indirect_aix): Ditto.
9162         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9163         (call_indirect_aix<ptrsize>_internal): Ditto.
9164         (call_indirect_aix<ptrsize>_nor11): Ditto.
9165         (call_indirect_aix<ptrsize>_internal2): Ditto.
9166         (call_value_indirect_aix<ptrsize>): Ditto.
9167         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9168         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9169         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9170         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9172 2011-07-13  Jason Merrill  <jason@redhat.com>
9174         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9176 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9178         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9179         * config/spu/spu.md ("clrsb<mode>2"): New expander.
9181 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
9183         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9184         * configure: Regenerate.
9186 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9188         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9189         (asm_file_start): Remove.
9190         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9191         free_bb_for_insn around code that modifies insns before
9192         restarting df analysis.
9194 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9196         PR target/49541
9197         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
9198         (LINK_SPEC): ... here.
9200 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9202         * haifa-sched.c (struct sched_block_state): New.
9203         (schedule_block): Move some local variables into such a structure.
9205 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9207         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9208         * config/i386/t-crtpc: Remove.
9209         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9210         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9211         tmake_file.
9212         (x86_64-*-darwin*): Likewise.
9213         (i[34567]86-*-linux*): Likewise.
9214         (x86_64-*-linux*): Likewise.
9216         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9217         Handle -mpc32, -mpc64, -mpc80.
9219 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9221         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9222         * config/alpha/t-crtfm: Remove.
9223         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9224         * config/i386/t-crtfm: Remove.
9225         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9226         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9227         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9228         * config/sparc/t-crtfm: Remove.
9230         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9231         (alpha*-*-freebsd*): Likewise.
9232         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9233         (x86_64-*-darwin*): Likewise.
9234         (i[34567]86-*-linux*): Likewise.
9235         (x86_64-*-linux*): Likewise.
9236         (x86_64-*-mingw*): Likewise.
9237         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9238         (ia64*-*-freebsd*): Likewise.
9239         (ia64*-*-linux*): Likewise.
9240         (mips64*-*-linux*): Likewise.
9241         (mips*-*-linux*): Likewise.
9242         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9243         (sparc64-*-linux*): Likewise.
9244         (sparc64-*-freebsd*): Likewise.
9246 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9248         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9249         * config/darwin-crt3.c: Move to ../libgcc/config.
9250         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9251         ($(T)crt3$(objext)): Remove.
9252         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9253         ($(T)crt2$(objext)): Remove.
9254         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9255         (powerpc64-*-darwin*): Likewise.
9257 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9259         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9261         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9262         (addsi_1_zext): This.
9264 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9266         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9267         * doc/tm.texi: Regenerate.
9268         * target.def (mergeable_rodata_prefix): New defhookpod.
9269         * varasm.c (mergeable_string_section, mergeable_constant_section):
9270         Use it. Allocate name with alloca.
9272 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9274         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9276 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9278         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9279         overlap check.
9281 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9283         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
9284         (count_type_elements): Delete.
9285         (complete_ctor_at_level_p): Declare.
9286         * expr.c (flexible_array_member_p): New function, split out from...
9287         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
9288         parameter with for_ctor_p.  When for_ctor_p is true, return the
9289         number of elements that should appear in the top-level constructor,
9290         otherwise return an estimate of the number of scalars.
9291         (categorize_ctor_elements): Replace p_must_clear with p_complete.
9292         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
9293         (complete_ctor_at_level_p): New function, borrowing union logic
9294         from old categorize_ctor_elements_1.
9295         (mostly_zeros_p): Return true if the constructor is not complete.
9296         (all_zeros_p): Update call to categorize_ctor_elements.
9297         * gimplify.c (gimplify_init_constructor): Update call to
9298         categorize_ctor_elements.  Don't call count_type_elements.
9299         Unconditionally prevent clearing for variable-sized types,
9300         otherwise rely on categorize_ctor_elements to detect
9301         incomplete initializers.
9303 2011-07-13  Richard Guenther  <rguenther@suse.de>
9305         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9306         the final type is integral.
9308 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9310         * sched-int.h (struct _dep): Add member cost.
9311         (DEP_COST, UNKNOWN_DEP_COST): New macros.
9312         * sched-deps.c (init_dep_1): Initialize DEP_COST.
9313         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9314         (sched_change_pattern): Reset it for dependent insns.
9316 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9318         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9319         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9320         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9321         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9322         (CRT0_S, MCRT0_S): Remove.
9323         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9324         Remove.
9325         (s-crt0): Remove.
9326         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9328 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9330         * cse.c (insert_with_costs): Put semi-colon after empty loop body
9331         on the next line.
9332         * emit-rtl.c (push_to_sequence): Likewise.
9333         * haifa-sched.c (max_issue): Likewise.
9334         * matrix-reorg.c (add_allocation_site): Likewise.
9335         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9336         * reload.c (alternative_allows_const_pool_ref): Likewise.
9337         * sched-rgn.c (rgn_add_block): Likewise.
9338         (rgn_fix_recovery_cfg): Likewise.
9339         * tree.c (attribute_list_contained): Likewise.
9341 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
9343         * config/i386/i386.c: Tidy processor feature bitmasks.
9344         (m_P4_NOCONA): New.
9346 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
9348         PR rtl-opt/49474
9349         * cprop.c (find_implicit_sets): Correct the condition.
9351 2011-07-12  Richard Henderson  <rth@redhat.com>
9353         PR target/49713
9354         * dwarf2out.h (dwarf_frame_regnum): Remove.
9355         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
9356         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
9357         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9358         (execute_dwarf2_frame): Initialize them.
9359         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9360         users of the macros with the variables.
9361         (expand_builtin_dwarf_sp_column): Revert last change.
9362         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
9363         result of DWARF_FRAME_REGNUM into a local variable.
9365 2011-07-12  Richard Henderson  <rth@redhat.com>
9367         PR target/49714
9368         * config/i386/i386.c (x86_output_mi_thunk): Use
9369         machopic_indirect_call_target instead of machopic_indirection_name
9370         directly.
9372 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
9373             Eric Botcazou  <ebotcazou@adacore.com>
9375         * prefix.h: Wrap up in extern "C" block.
9377 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
9379         AMD bdver2 Enablement
9380         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9381         (case ${target}): Add bdver2.
9382         * config/i386/driver-i386.c (host_detect_local_cpu): Let
9383         -march=native recognize bdver2 processors.
9384         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9385         bdver2 def_and_undef
9386         * config/i386/i386.c (struct processor_costs bdver2_cost): New
9387         bdver2 cost table.
9388         (m_BDVER2): New definition.
9389         (m_AMD_MULTIPLE): Includes m_BDVER2.
9390         (initial_ix86_tune_features): Add bdver2 tuning.
9391         (processor_target_table): Add bdver2 entry.
9392         (static const char *const cpu_names): Add bdver2 entry.
9393         (ix86_option_override_internal): Add bdver2 instruction sets.
9394         (ix86_issue_rate): Add bdver2.
9395         (ix86_adjust_cost): Add bdver2.
9396         (has_dispatch): Add bdver2.
9397         * config/i386/i386.h (TARGET_BDVER2): New definition.
9398         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9399         (enum processor_type): Add PROCESSOR_BDVER2.
9400         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9401         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9402         description.
9404 2011-07-12  Richard Henderson  <rth@redhat.com>
9406         PR target/49714
9407         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9408         destination address in memory on some paths.
9410 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
9412         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9413         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9414         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9415         * function.c (locate_and_pad_parm): Take it into account.
9416         * target.def (function_arg_round_boundary): New hook.
9417         * targhooks.c (default_function_arg_round_boundary): New function.
9418         * targhooks.h (default_function_arg_round_boundary): Declare.
9419         * doc/tm.texi: Regenerate.
9421 2011-07-12  Richard Guenther  <rguenther@suse.de>
9423         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9424         Do not perform no-op changes.
9426 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
9428         * config/arm/predicates.md (neon_struct_operand): Make a normal
9429         predicate.
9430         (neon_struct_or_register_operand): New predicate.
9431         * config/arm/neon.md (movmisalign<mode>): Replace predicates
9432         with neon_struct_or_register_operand.
9433         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9434         neon_struct_operand instead of memory_operand.
9436 2011-07-12  Martin Jambor  <mjambor@suse.cz>
9438         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9439         * cgraph.c (cgraph_get_node_or_alias): Removed.
9440         (change_decl_assembler_name): Changed all calls to
9441         cgraph_get_node_or_alias to a call to cgraph_get_node.
9442         (cgraph_make_decl_local): Likewise.
9443         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9444         * varasm.c (default_binds_local_p_1): Likewise.
9445         (decl_binds_to_current_def_p): Likewise.
9447 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
9449         PR tree-optimization/49712
9450         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9452 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
9454         * genautomata.c (add_arc): Return void.  All callers changed.
9455         (make_automaton): Remove dead code.
9457 2011-07-11  Richard Henderson  <rth@redhat.com>
9459         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9460         (DW_FRAME_POINTER_REGNUM): New.
9461         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9462         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9463         (dwf_regno): New.
9464         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9465         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9466         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9467         Use it.
9468         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9469         * dwarf2out.h (dwarf_frame_regnum): New.
9470         (struct cfa_loc): Document the domain of the reg member.
9472 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
9474         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9475         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
9477 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
9479         PR debug/49676
9480         * dwarf2out.c (int_shift_loc_descriptor): New function.
9481         (int_loc_descriptor): If shorter, emit i as
9482         (i >> shift), shift, DW_OP_shl for suitable shift value.
9483         Similarly, try to optimize large negative values using
9484         DW_OP_neg of a positive value if shorter.
9485         (size_of_int_shift_loc_descriptor): New function.
9486         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9487         changes.
9488         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9489         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9490         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9491         is shorter.
9492         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9493         addend as added DW_OP_plus if it is shorter.
9495 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9497         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9498         (DTORS_SECTION_ASM_OP): Define.
9500 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9502         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9503         * config/t-dfprules: Move to ../libgcc/config.
9504         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9505         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9506         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9507         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9508         Likewise.
9509         (i[34567]86-*-cygwin*): Likewise.
9510         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
9511         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9512         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9513         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9514         D64PBIT_FUNCS, D128PBIT_FUNCS.
9516 2011-07-11  Richard Guenther  <rguenther@suse.de>
9518         * tree-vrp.c (simplify_conversion_using_ranges): Manually
9519         translate the source value-range through the conversion chain.
9521 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
9523         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9525 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9527         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9528         a bi-arch compiler defaulting to 31-bit. In this case:
9529         (tmake_file): Add s390/t-linux64.
9530         * doc/install.texi: Add s390-linux to the list of targets supporting
9531         --enable-targets=all.
9533 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9534             Matthias Klose <doko@debian.org>
9536         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9537         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9538         (tm_file): Add mips/linux64.h.
9539         (tmake_file): Add mips/t-linux64.
9540         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9541         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9542         instead of hardcoded mabi=n32.
9543         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9544         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9545         convention.
9547 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9549         * passes.c (init_optimization_passes): Add invariant motion pass
9550         after induction variable optimization.
9552 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
9554         PR target/39633
9555         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9556         offsets 1..5 set cc0 in a usable way.
9558 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
9560         * tree.h (call_expr_arg): Remove.
9561         (call_expr_argp): Likewise.
9563 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
9565         * config/sparc/sparc.md (save_register_window_1): Rename to...
9566         (window_save): ...this.
9567         * config/sparc/sparc.c (emit_save_register_window): Rename to...
9568         (emit_window_save): ...this.
9569         (sparc_expand_prologue): Adjust to above renaming.
9571 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9573         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9574         of movabs for x32.
9576 2011-07-10  Richard Henderson  <rth@redhat.com>
9578         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9579         run final, instead of emitting text directly.
9581 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9583         * config/i386/i386.c (ix86_option_override_internal): Turn on
9584         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
9585         small PIC models for TARGET_X32.
9587 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
9589         PR target/49684
9590         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9591         $(LIBGCC2_CFLAGS).
9593         PR bootstrap/49680
9594         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9595         stray notes and debug insns by using prev_nonnote_nondebug_insn
9596         instead of PREV_INSN.
9598 2011-07-09  Richard Henderson  <rth@redhat.com>
9600         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9601         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9602         * dwarf2out.c: ... here.
9603         (output_all_cfis): Remove.
9604         (dwarf2out_switch_text_section): Use output_cfis directly.
9605         (size_of_locs): Export.
9606         (output_loc_sequence, output_loc_sequence_raw): Export.
9607         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9608         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9609         output_cfa_loc_raw): Move to ...
9610         * dwarfcfi.c: ... here.
9611         * dwarf2out.h: Update decls.
9613 2011-07-09  Richard Henderson  <rth@redhat.com>
9615         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9616         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9617         * dwarf2cfi.c: ... here.
9618         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9619         (DWARF_ROUND, DWARF_CIE_ID): Remove.
9620         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9621         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9622         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9624 2011-07-09  Richard Henderson  <rth@redhat.com>
9626         * dwarf2cfi.c (cie_return_save): New.
9627         (queue_reg_save): Use compare_reg_or_pc.
9628         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9629         (dwarf2out_frame_debug_expr): Likewise.
9630         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9631         (initial_return_save): Likewise.
9632         (execute_dwarf2_frame): Save and restore initial return save from
9633         the cie to the fde.
9634         * config/mips/mips.c (mips_frame_set): Remove special case for
9635         DWARF_FRAME_RETURN_COLUMN.
9637 2011-07-09  Richard Henderson  <rth@redhat.com>
9639         * dwarf2cfi.c (lookup_cfa): Remove.
9640         (execute_dwarf2_frame): Assert queues are empty on entry.
9641         Setup initial cfa directly, not via lookup_cfa.
9642         Don't clear args_size state here.
9644 2011-07-09  Richard Henderson  <rth@redhat.com>
9646         * dwarf2cfi.c (add_cfi_vec): New.
9647         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
9648         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
9649         (execute_dwarf2_frame): Set add_cfi_vec.
9651 2011-07-09  Richard Henderson  <rth@redhat.com>
9653         * defaults.h (ASM_COMMENT_START): Move here...
9654         * dwarf2asm.c: ... from here.
9655         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9656         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9657         * varasm.c: Likewise.
9659 2011-07-09  Richard Henderson  <rth@redhat.com>
9661         PR debug/49686
9662         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9663         (create_cfi_notes): ... do it here instead.
9665 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
9667         PR debug/49676
9668         * dwarf2out.c (size_of_int_loc_descriptor): New function.
9669         (address_of_int_loc_descriptor): Use it.
9670         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9672 2011-07-09  Richard Henderson  <rth@redhat.com>
9674         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9675         (prologue, epilogue): New.
9676         (return, *rts): New.
9677         (blockage, setd, seti): New.
9678         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9679         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9680         (pdp11_saved_regno): New.
9681         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9682         generate rtl instead of text.
9683         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9684         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
9685         * config/pdp11/pdp11-protos.h: Update.
9687 2011-07-09  Richard Henderson  <rth@redhat.com>
9689         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9690         try to insert an rtl prologue here.
9691         (rs6000_output_function_epilogue): Similarly.
9692         * config/rs6000/rs6000.md (prologue): Emit a barrier to
9693         satisfy !TARGET_SCHED_PROLOG.
9694         (epilogue, sibcall_epilogue): Likewise.
9696 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
9698         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9699         (FP_REG_P): Delete.
9700         (IN_OR_GLOBAL_P): Likewise.
9702 2011-07-08  Jason Merrill  <jason@redhat.com>
9704         PR c++/45437
9705         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9706         compound assignment.
9708         * cgraph.c (cgraph_add_to_same_comdat_group): New.
9709         * cgraph.h: Declare it.
9710         * ipa.c (function_and_variable_visibility): Make sure thunks
9711         have the right visibility.
9713 2011-07-08  Richard Henderson  <rth@redhat.com>
9715         PR bootstrap/49680
9716         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9717         any tablejump vector.
9719         PR bootstrap/49680
9720         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9721         end of the prologue.
9723 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
9725         PR target/49621
9726         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9727         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9728         * config/rs6000/vector.md (vector_select_<mode>,
9729         vector_select_<mode>_uns): Change second operand of NE to
9730         CONST0_RTX (<MODE>mode) instead of const0_rtx.
9731         * config/rs6000/altivec.md (*altivec_vsel<mode>,
9732         *altivec_vsel<mode>_uns): Expect second operand of NE to be
9733         zero_constant of the corresponding vector mode.
9734         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9735         Likewise.
9737 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
9739         * graphite-dependences.c (build_alias_set_powerset): Remove
9740         continue from loop, add one more assert.
9742 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9744         PR target/46779
9745         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9746         In particular, allow 8-bit values in r28 and r29.
9747         (avr_hard_regno_scratch_ok): Disallow any register that might be
9748         part of the frame pointer.
9749         (avr_hard_regno_rename_ok): Same.
9750         (avr_legitimate_address_p): Don't allow SUBREGs.
9752 2011-07-08  Julian Brown  <julian@codesourcery.com>
9754         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9755         big-endian mode.
9756         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9757         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9758         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9759         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9760         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9761         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9762         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9763         registers in big-endian mode.
9765 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9767         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9768         in terms of another.
9769         (write_attr_value): Write a cast if necessary.
9771         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9772         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9773         (REG_WORDS_BIG_ENDIAN): Document.
9774         * doc/tm.texi: Regenerate.
9775         * reload.c (operands_match_p): Take it into account.
9776         (reload_adjust_reg_for_mode): Likewise.
9777         * rtlanal.c (subreg_get_info): Likewise.
9779 2011-07-08  Richard Guenther  <rguenther@suse.de>
9781         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9782         folding.
9784 2011-07-08  Kai Tietz  <ktietz@redhat.com>
9786         * fold-const.c (fold_truth_andor): Factored out truth_andor
9787         label from fold_binary as function.
9788         (fold_binary_loc): Replace truth_andor lable
9789         by function fold_truth_andor.
9791 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
9793         PR middle-end/49519
9794         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9795         check if address is stored in register. If so - give up.
9796         (check_sibcall_argument_overlap_1): Do not perform check of
9797         overlapping when it is call to address.
9799 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9801         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9802         of magic '31'.
9804 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9806         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9807         GET_MODE_BITSIZE where appropriate.
9808         (widen_leading, expand_parity, expand_ctz, expand_ffs,
9809         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9810         expand_float, expand_fix): Likewise.
9811         * expr.c (convert_move, convert_modes, expand_expr_real_2,
9812         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9813         * stor-layout.c (get_mode_bounds): Likewise.
9814         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9815         Likewise.
9816         * convert.c (convert_to_integer): Likewise.
9817         * expmed.c (expand_shift_1): Likewise.
9819         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9820         a bitsize.
9822         * optabs.c (expand_binop): Tighten conditions for doubleword
9823         expansions.
9824         (widen_bswap): Assert that mode bitsize and precision are the same.
9825         * stor-layout.c (get_best_mode): Skip modes that have lower
9826         precision than bitsize.
9827         * recog.c (simplify_while_replacing): Assert that bitsize and
9828         precision are the same.
9830 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9832         * Makefile.in (LIBGCOV): Remove.
9833         (libgcc.mvars): Remove LIBGCOV.
9834         * libgov.c: Move to ../libgcc.
9836 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9838         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9840 2011-07-08  Martin Jambor  <mjambor@suse.cz>
9842         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9843         is too big for total scalarization.
9845 2011-07-07  Richard Henderson  <rth@redhat.com>
9847         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9848         (DBX_DEBUGGING_INFO): Undef.
9850 2011-07-07  Richard Henderson  <rth@redhat.com>
9852         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
9853         Handle some opcodes specially for debugging.
9854         * print-rtl.c: Include dwarf2out.h
9855         (print_rtx): Handle NOTE_INSN_CFI.
9856         * Makefile.in (print-rtl.o): Update.
9858 2011-07-07  Richard Henderson  <rth@redhat.com>
9860         * tree-pass.h (pass_dwarf2_frame): Declare.
9861         * passes.c (init_optimization_passes): Add it.
9862         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9863         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9864         make static, do not call add_cfis_to_fde.
9865         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9866         dwarf2out_frame_init): Merge into...
9867         (execute_dwarf2_frame): ... here.  New function.
9868         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
9869         saved_do_cfi_asm to a tri-state variable.
9870         (gate_dwarf2_frame, pass_dwarf2_frame): New.
9871         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9872         if it has yet to be done.  Don't call dwarf2cfi_function_init.
9873         * dwarf2out.h, debug.h: Update decls.
9874         * final.c (final_start_function): Don't call
9875         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9876         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9877         * toplev.c (lang_dependent_init): Likewise.
9879 2011-07-07  Richard Henderson  <rth@redhat.com>
9881         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9882         FDE_TABLE_INCREMENT): Replace with...
9883         (fde_vec): ... this, a new vector.
9884         (current_fde): Remove.  Replace all users with cfun->fde.
9885         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9886         (size_of_aranges, dwarf2out_finish): Likewise.
9887         (dwarf2out_alloc_current_fde): Break out from ...
9888         (dwarf2out_begin_prologue): ... here.
9889         (dwarf2out_frame_init): Remove.
9890         * dwarf2cfi.c: Update all users of current_fde.
9891         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9892         * dwarf2out.h: Update decls.
9893         (dw_fde_node): Add fde_index member.
9894         * function.h (struct function): Add fde member.
9896 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9897             Richard Henderson  <rth@redhat.com>
9899         * dwarf2cfi.c (add_cfi): Remove.
9900         (dwarf2out_cfi_label): Remove force argument.  Only generate the
9901         label name.
9902         (add_fde_cfi): Simplify the different code paths.
9903         (add_cie_cfi): New.
9904         (old_cfa, old_cfa_remember): New.
9905         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9906         (last_reg_save_label): Remove.
9907         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9908         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9909         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9910         dwarf2out_frame_debug_cfa_expression,
9911         dwarf2out_frame_debug_cfa_restore,
9912         dwarf2out_frame_debug_cfa_window_save,
9913         dwarf2out_frame_debug_expr): Remove label parameter.
9914         (cfi_label_required_p, add_cfis_to_fde): New.
9915         (dwarf2out_frame_debug_after_prologue): New.
9916         (dwarf2cfi_frame_init): Initialize old_cfa.
9917         (dwarf2out_frame_debug_restore_state): Likewise.
9918         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9919         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9920         * final.c (final_start_function): Call
9921         dwarf2out_frame_debug_after_prologue.
9923 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9924             Richard Henderson  <rth@redhat.com>
9926         * dwarf2cfi.c (cfi_insn): New.
9927         (dwarf2out_cfi_label): Don't emit cfi label here.
9928         (add_fde_cfi): Create a NOTE_INSN_CFI.
9929         (dwarf2out_frame_debug): Setup cfi_insn.
9930         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9931         (dwarf2out_cfi_begin_epilogue): Make static.
9932         (dwarf2out_frame_debug_restore_state): Make static.
9933         * dwarf2out.c (output_cfi_directive): Make static.
9934         (dwarf2out_emit_cfi): New.
9935         * dwarf2out.h: Update.
9936         * final.c (final): Remove CFI notes.
9937         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9938         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9939         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9940         * insn-notes.def (NOTE_INSN_CFI): New.
9941         (NOTE_INSN_CFI_LABEL): New.
9942         * rtl.h (union rtunion_def): Add rt_cfi member.
9943         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9945 2011-07-07  Richard Henderson  <rth@redhat.com>
9947         * dwarf2cfi.c: New file.
9948         * Makefile.in (OBJS): Add it.
9949         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9950         * gengtype.c (open_base_files): Include dwarf2out.h.
9951         * coretypes.h (enum var_init_status): Move from ...
9952         * rtl.h: ... here.
9953         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9954         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9955         expand_builtin_dwarf_sp_column, init_return_column_size,
9956         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9957         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9958         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9959         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9960         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9961         compute_barrier_args_size, dwarf2out_args_size,
9962         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9963         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9964         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9965         queue_reg_save, dwarf2out_flush_queued_reg_saves,
9966         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9967         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9968         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9969         dwarf2out_frame_debug_cfa_expression,
9970         dwarf2out_frame_debug_cfa_restore,
9971         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9972         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9973         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9974         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9975         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9976         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9977         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9978         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9979         dw_loc_descr_node): Move to dwarf2out.h.
9980         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9981         mem_loc_descriptor): Export.
9982         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
9983         (dwarf2out_frame_init): Extract CIE generation code to
9984         dwarf2cfi_frame_init.
9986 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9988         PR target/49660
9989         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9990         MASK_V8PLUS, remove commented out flag and reorder.
9992 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9994         PR c/49644
9995         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9996         one non-complex and one complex argument, call c_save_expr on both
9997         operands.
9999 2011-07-07  Martin Jambor  <mjambor@suse.cz>
10001         PR middle-end/49495
10002         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
10003         (verify_cgraph_node): Some functinality moved to
10004         verify_edge_corresponds_to_fndecl, call it.
10006 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10008         * config.gcc (*local*): Remove.
10009         * doc/install-old.texi: Don't mention local configurations.
10011 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10013         PR debug/49522
10014         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
10015         referencing debug insns that have been reset.
10016         (dead_debug_insert_before): Don't assert reg is non-NULL,
10017         instead return immediately if it is NULL.
10019 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10021         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
10023 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10025         * hw-doloop.c: New file.
10026         * hw-doloop.h: New file.
10027         * Makefile.in (OBJS): Add hw-doloop.o.
10028         (hw-doloop.o): New rule.
10029         ($(obj_out_file)): Add hw-doloop.h dependency.
10030         * config/bfin/bfin.c: Include "hw-doloop.h".
10031         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
10032         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
10033         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
10034         type changed to hwloop_info.  Return bool, true if the loop was
10035         successfully optimized.  Remove code that was moved to
10036         hw-doloop.c, and adjust other parts.
10037         (hwloop_fail): New static function, containing parts that used
10038         to be in bfin_optimize_loop.
10039         (bfin_discover_loop, bfin_discover_loops, free_loops,
10040         bfin_reorder_loops): Remove.
10041         (hwloop_pattern_reg): New static function.
10042         (bfin_doloop_hooks): New variable.
10043         (bfin_reorg_loops): Remove most code, call reorg_loops.
10044         * config/bfin/bfin.md (doloop_end splitter): Also enable if
10045         loop counter is a memory_operand.
10047 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10049         * config.gcc: Support --with-multilib-list for x86 Linux targets.
10051         * configure.ac: Mention x86-64 for --with-multilib-list.
10052         * configure: Regenerated.
10054         * config/i386/gnu-user64.h (SPEC_64): Support x32.
10055         (SPEC_32): Likewise.
10056         (ASM_SPEC): Likewise.
10057         (LINK_SPEC): Likewise.
10058         (TARGET_THREAD_SSP_OFFSET): Likewise.
10059         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
10060         (SPEC_X32): New.
10062         * config/i386/i386.h (TARGET_X32): New.
10063         (TARGET_LP64): New.
10064         (LONG_TYPE_SIZE): Likewise.
10065         (POINTER_SIZE): Likewise.
10066         (POINTERS_EXTEND_UNSIGNED): Likewise.
10067         (OPT_ARCH64): Support x32.
10068         (OPT_ARCH32): Likewise.
10070         * config/i386/i386.opt (mx32): New.
10072         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
10073         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10074         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
10075         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10077         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
10078         (BIONIC_DYNAMIC_LINKERX32): Likewise.
10079         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
10081         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
10083         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
10085         * doc/invoke.texi: Document -mx32.
10087 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10089         * doc/invoke.texi (mwords-little-endian): Deprecate.
10090         * config/arm/arm.opt (mwords-little-endian): Likewise.
10091         * config/arm/arm.c (arm_option_override): Warn about the deprecation
10092         of -mwords-little-endian.
10094 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10096         * reload1.c (choose_reload_regs): Use mode sizes to check whether
10097         an old reload register completely defines the required value.
10099 2011-07-07  Richard Guenther  <rguenther@suse.de>
10101         * fold-const.c (fold_unary_loc): Do not strip sign-changes
10102         for NEGATE_EXPR.
10104 2011-07-07  Richard Guenther  <rguenther@suse.de>
10106         * tree-vrp.c (simplify_conversion_using_ranges): New function.
10107         (simplify_stmt_using_ranges): Call it.
10109 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10111         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10112         (lookup_logical_inverted_value): Likewise.
10113         (simplify_bitwise_binary_1): Likewise.
10114         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10116 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10118         * gcc.c (%[Spec]): Don't document.
10119         (struct spec_list): Update comment.
10120         (do_spec_1): Don't handle %[Spec].
10121         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10123 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10125         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10126         default based on TARGET_ASM_NAMED_SECTION.
10127         * common/common-target.def (have_named_sections): Default to true.
10128         * common/config/default-common.c: Don't include tm.h.
10129         * common/config/picochip/picochip-common.c
10130         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10131         * common/config/m32c/m32c-common.c: Remove.
10132         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10133         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10134         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10135         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10136         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10137         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10138         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10140 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10142         PR middle-end/49640
10143         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10144         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10146 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10148         PR libmudflap/49550
10149         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10151 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10153         PR target/39150
10154         * configure.ac (gcc_cv_as_hidden): Also accept
10155         x86_64-*-solaris2.1[0-9]*.
10156         (gcc_cv_as_cfi_directive): Likewise.
10157         (gcc_cv_as_comdat_group_group): Likewise.
10158         (set_have_as_tls): Likewise.
10159         * configure: Regenerate.
10160         * config.gcc (i[34567]86-*-solaris2*): Also handle
10161         x86_64-*-solaris2.1[0-9]*.
10162         * config.host (i[34567]86-*-solaris2*): Likewise.
10163         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10164         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10165         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10166         (TARGET_LD_EMULATION): Use it.
10167         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10168         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10169         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10170         (ASM_CPU64_DEFAULT_SPEC): Define.
10171         (ASM_CPU_SPEC): Use %(asm_cpu_default).
10172         (ASM_SPEC): Redefine.
10173         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10174         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10175         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10176         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10177         configuration.
10178         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10180 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10182         * config/sol2.h (ASM_SPEC): Split into ...
10183         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10184         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10185         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10186         (ASM_SPEC): Use ASM_SPEC_BASE.
10187         * config/sparc/sol2.h (ASM_SPEC): Redefine.
10189 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
10191         * config/avr/avr.md (*reload_insi): Change predicate #1 to
10192         const_int_operand.  Ditto for peep2 producing this insn.
10193         Add argument to output_reload_insisf call.
10194         (*movsi,*movsf): Add argument to output_movsisf call.
10195         (*reload_insf): New insn and new peep2 to produce it.
10196         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10197         (output_reload_insisf): Change prototype.
10198         * config/avr/avr.c (avr_asm_len): New function.
10199         (output_reload_insisf): Rewrite.
10200         (output_movsisf): Change prototype.  output_reload_insisf for
10201         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
10202         (adjust_insn_length): Add argument to output_movsisf and
10203         output_reload_insisf call.
10205 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10207         * emit-rtl.c (paradoxical_subreg_p): New function.
10208         * rtl.h (paradoxical_subreg_p): Declare.
10209         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10210         apply_distributive_law, simplify_comparison, simplify_set): Use it.
10211         * cse.c (record_jump_cond, cse_insn): Likewise.
10212         * expr.c (force_operand): Likewise.
10213         * rtlanal.c (num_sign_bit_copies1): Likewise.
10214         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10215         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10216         (push_reload): Use precision to check for paradoxical subregs.
10217         * expmed.c (extract_bit_field_1): Likewise.
10219         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10220         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10221         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10222         simplify_set, simplify_logical, expand_compound_operation,
10223         make_extraction, force_to_mode, if_then_else_cond, extended_count,
10224         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10225         record_value_for_reg): Likewise.
10226         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10227         * simplify-rtx. c (simplify_unary_operation_1,
10228         simplify_binary_operation_1, simplify_const_relational_operation):
10229         Likewise.
10231         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10232         instead of GET_MODE_BITSIZE where appropriate.
10233         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10234         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10235         init_num_sign_bit_copies_in_rep): Likewise.
10236         * cse.c (fold_rtx, cse_insn): Likewise.
10237         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10238         * simplify-rtx.c (simplify_unary_operation_1,
10239         simplify_const_unary_operation, simplify_binary_operation_1,
10240         simplify_const_binary_operation, simplify_ternary_operation,
10241         simplify_const_relational_operation, simplify_subreg): Likewise.
10242         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10243         simplify_if_then_else, simplify_set, expand_compound_operation,
10244         expand_field_assignment, make_extraction, if_then_else_cond,
10245         make_compound_operation, force_to_mode, make_field_assignment,
10246         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10247         extended_count, try_widen_shift_mode, simplify_shift_const_1,
10248         simplify_comparison, record_promoted_value, simplify_compare_const,
10249         record_dead_and_set_regs_1): Likewise.
10251         Revert:
10252         * simplify-rtx.c (simplify_const_binary_operation): Use the
10253         shift_truncation_mask hook instead of performing modulo by width.
10254         Compare against mode precision, not bitsize.
10255         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10256         Use shift_truncation_mask instead of constructing the value manually.
10258 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10260         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10261         declaration.
10262         (rs6000_save_toc_in_prologue_p): Ditto.
10264         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10265         up the static chain (r11) during indirect function calls.
10266         (-msave-toc-indirect): New undocumented debug switch.
10268         * config/rs6000/rs6000.c (struct machine_function): Add
10269         save_toc_in_prologue field to note whether the prologue needs to
10270         save the TOC value in the reserved stack location.
10271         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
10272         to save the TOC in the prologue, do so.
10273         (rs6000_trampoline_init): Don't allow creating AIX style
10274         trampolines if -mno-r11 is in effect.
10275         (rs6000_call_indirect_aix): New function to create AIX style
10276         indirect calls, adding support for -mno-r11 to suppress loading
10277         the static chain, and saving the TOC in the prologue instead of
10278         the call body.
10279         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10280         TOC in the prologue.
10282         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10283         register numbers.
10284         (TOC_REGNUM): Ditto.
10285         (STATIC_CHAIN_REGNUM): Ditto.
10286         (ARG_POINTER_REGNUM): Ditto.
10287         (SFP_REGNO): Delete, unused.
10288         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10289         function descriptor offsets.
10290         (TOC_SAVE_OFFSET_64BIT): Ditto.
10291         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10292         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10293         (AIX_FUNC_DESC_SC_32BIT): Ditto.
10294         (AIX_FUNC_DESC_SC_64BIT): Ditto.
10295         (ptrload): New mode attribute for the appropriate load of a pointer.
10296         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10297         (call_indirect_aix64): Ditto.
10298         (call_value_indirect_aix32): Ditto.
10299         (call_value_indirect_aix64): Ditto.
10300         (call_indirect_nonlocal_aix32_internal): Ditto.
10301         (call_indirect_nonlocal_aix32): Ditto.
10302         (call_indirect_nonlocal_aix64_internal): Ditto.
10303         (call_indirect_nonlocal_aix64): Ditto.
10304         (call): Rewrite AIX indirect function calls.  Add support for
10305         eliminating the static chain, and for moving the save of the TOC
10306         to the function prologue.
10307         (call_value): Ditto.
10308         (call_indirect_aix<ptrsize>): Ditto.
10309         (call_indirect_aix<ptrsize>_internal): Ditto.
10310         (call_indirect_aix<ptrsize>_internal2): Ditto.
10311         (call_indirect_aix<ptrsize>_nor11): Ditto.
10312         (call_value_indirect_aix<ptrsize>): Ditto.
10313         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10314         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10315         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10316         (call_nonlocal_aix32): Relocate in the rs6000.md file.
10317         (call_nonlocal_aix64): Ditto.
10319         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10320         -mno-r11 documentation.
10322 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10324         PR other/49658
10325         * doc/extend.texi (Compound Literals): Fix typo.
10327 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
10329         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10331 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
10333         * configure.ac (plugin-version.h): Generate
10334         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10335         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10336         macros.
10338         * configure: Regenerate.
10340         * doc/plugins.texi (Building GCC plugins): Mention
10341         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10343 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10345         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10346         * combine.c (make_extraction, gen_lowpart_or_truncate,
10347         apply_distributive_law, simplify_comparison,
10348         reg_truncated_to_mode, record_truncated_value): Use it.
10349         * cse.c (notreg_cost): Likewise.
10350         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10351         * expr.c (convert_move, convert_modes): Likewise.
10352         * optabs.c (expand_binop, expand_unop): Likewise.
10353         * postreload.c (move2add_last_label): Likewise.
10354         * regmove.c (optimize_reg_copy_3): Likewise.
10355         * rtlhooks.c (gen_lowpart_general): Likewise.
10356         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10358 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
10360         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10362 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10364         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10365         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10366         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10367         (simplify_const_unary_operation, simplify_binary_operation_1,
10368         simplify_const_binary_operation, simplify_const_relational_operation):
10369         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
10370         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10371         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10372         simplify_shift_const_1, simplify_comparison): Likewise.
10373         * expr.c (convert_modes): Likewise.
10374         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10375         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10376         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10378         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10380 2011-07-06  Richard Guenther  <rguenther@suse.de>
10382         PR tree-optimization/49645
10383         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10384         register variables.
10385         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10386         in type qualification here ...
10387         (copy_reference_ops_from_ref): ... not here.
10388         (vn_reference_lookup_3): ... or here.
10389         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10390         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10392 2011-07-06  Ian Lance Taylor  <iant@google.com>
10394         * doc/install.texi (Configuration): It's
10395         --enable-gnu-indirect-function, not --enable-indirect-function.
10397 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10399         * simplify-rtx.c (simplify_const_binary_operation): Use the
10400         shift_truncation_mask hook instead of performing modulo by width.
10401         Compare against mode precision, not bitsize.
10402         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10403         Use shift_truncation_mask instead of constructing the value manually.
10405 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10407         PR middle-end/47383
10408         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10409         address computation and convert to address_mode if needed.
10411 2011-07-06  Richard Guenther  <rguenther@suse.de>
10413         * tree.c (build_common_tree_nodes_2): Merge with
10414         build_common_tree_nodes.
10415         * tree.h (build_common_tree_nodes): Adjust prototype.
10416         (build_common_tree_nodes_2): Remove.
10417         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10418         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10420 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
10422         PR tree-optimization/49618
10423         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10424         t recurse on the decl.
10425         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10426         return true if expr isn't known to be defined in current
10427         TU or some other LTO partition.
10429 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10431         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10432         override CASE_VALUES_THRESHOLD.
10434         * stmt.c (toplevel): Include params.h.
10435         (case_values_threshold): Use the --param case-values-threshold
10436         value if non-zero, otherwise use machine dependent value.
10437         (expand_case): Use case_values_threshold.
10439         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10441         * doc/invoke.texi (--param case-values-threshold): Document.
10443 2011-07-05  Richard Henderson  <rth@redhat.com>
10445         * dwarf2out.c (dwarf2out_cfi_label): Make static.
10446         (dwarf2out_flush_queued_reg_saves): Make static.
10447         (dwarf2out_reg_save): Remove.
10448         (dwarf2out_return_save): Remove.
10449         (dwarf2out_return_reg): Remove.
10450         (dwarf2out_reg_save_reg): Remove.
10451         (dwarf2out_def_cfa): Merge into ...
10452         (dwarf2out_frame_init): ... here.
10453         * dwarf2out.h, tree.h: Remove declarations as necessary.
10455 2011-07-05  Richard Henderson  <rth@redhat.com>
10457         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10458         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10459         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10460         the alloc insn.
10462         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10463         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10464         (process_epilogue): Don't call dwarf2out_def_cfa.
10466         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10467         indicate the return address save.
10468         (process_cfa_register): Likewise.
10470         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10471         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10473         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10474         for ar.pfs save at alloc insn.
10476 2011-07-05  Richard Henderson  <rth@redhat.com>
10478         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10479         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10480         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10481         stack pointer save.
10482         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10483         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
10484         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10485         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10487 2011-07-05  Richard Henderson  <rth@redhat.com>
10489         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
10490         VUNSPEC_* constants here instead of via define_constants.
10491         (VUNSPEC_PEM): New constant.
10492         (procedure_entry_mask): New insn.
10493         (prologue): New expander.
10494         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10495         (vax_expand_prologue): Rename from vax_output_function_prologue;
10496         emit rtl instead of text.
10497         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10498         (print_operand): Add 'x' prefix.
10500 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10502         PR middle-end/47715
10503         * calls.c (precompute_register_parameters): Promote the function
10504         argument before checking non-legitimate constant.
10506 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10508         PR tree-optimization/47654
10509         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10510         (lst_do_strip_mine_loop): Return an int.
10511         (lst_do_strip_mine): Same.
10512         (scop_do_strip_mine): Same.
10513         (scop_do_block): Loop blocking should strip-mine at least two loops.
10514         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10515         (scop_do_interchange): Same.
10516         * graphite-poly.h (scop_do_interchange): Update declaration.
10517         (scop_do_strip_mine): Same.
10519 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10521         * graphite-clast-to-gimple.c (precision_for_value): Removed.
10522         (precision_for_interval): Removed.
10523         (gcc_type_for_interval): Use mpz_sizeinbase.
10525 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10527         * graphite-ppl.h (value_max): Correct computation of max.
10529 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10531         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10533 2011-07-05  Richard Guenther  <rguenther@suse.de>
10535         * c-decl.c (c_init_decl_processing): Defer building common
10536         tree nodes to c_common_nodes_and_builtins.
10538 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
10540         PR tree-optimization/49580
10541         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10542         the loop's number of iterations.
10543         * tree-parloops.c (transform_to_exit_first_loop): Add the
10544         handling of the loop's number of iterations before the call
10545         to gimple_duplicate_sese_tail.
10546         Insert the stmt caclculating the new rhs of the loop's
10547         condition stmt to the preheader instead of iters_bb.
10549 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10551         PR rtl-optimization/47449
10552         * fwprop.c (forward_propagate_subreg): Don't propagate hard
10553         register nor zero/sign extended hard register.
10555 2011-07-05  Richard Guenther  <rguenther@suse.de>
10557         PR tree-optimization/49518
10558         PR tree-optimization/49628
10559         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10560         irrelevant and invariant data-references.
10561         (vect_analyze_data_ref_access): For invariant loads clear the
10562         group association.
10564 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
10566         PR rtl-optimization/49619
10567         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10568         pass VOIDmode as op0_mode to recursive call, and return temp even
10569         when different from tor, just if it is not IOR of the original
10570         PLUS arguments.
10572         PR rtl-optimization/49472
10573         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10574         negating MULT, negate the second operand instead of first.
10575         (simplify_binary_operation_1) <case MULT>: If one operand is
10576         a NEG and the other is MULT, don't attempt to optimize by negation
10577         of the MULT operand if it only moves the NEG operation around.
10579         PR debug/49602
10580         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10581         get_current_def return value if it can't be trusted to be
10582         the current value of the variable in the current bb.
10584 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
10586         PR target/49600
10587         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10588         general register to memory for !TARGET_INTER_UNIT_MOVES.
10590 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10592         PR target/44643
10593         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10594         instead of TREE_READONLY.
10596 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10598         * doc/extend.texi (AVR Built-in Functions): Update documentation
10599         of __builtin_avr_fmul*.
10600         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10601         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10602         * config/avr/avr.md (fmul): Rename to fmul_insn.
10603         (fmuls): Rename to fmuls_insn.
10604         (fmulsu): Rename to fmulsu_insn.
10605         (fmul,fmuls,fmulsu): New expander.
10606         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10607         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10608         * config/avr/libgcc.S (__fmul): New function.
10609         (__fmuls): New function.
10610         (__fmulsu,__fmulsu_exit): New function.
10612 2011-07-04  Richard Guenther  <rguenther@suse.de>
10614         PR tree-optimization/49615
10615         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10616         basic-block index check.
10618 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10620         * longlong.h (count_leading_zeros, count_trailing_zeros,
10621         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10622         resp. 64.
10624 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
10626         PR tree-optimization/49610
10627         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10628         a basic block.
10630 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
10631             Olivier Hainque  <hainque@adacore.com>
10632             Nicolas Setton  <setton@adacore.com>
10634         * tree.h (TYPE_ARTIFICIAL): New flag.
10635         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10636         the DIE of the type if it is artificial.
10637         (gen_array_type_die): Likewise.
10638         (gen_enumeration_type_die): Likewise.
10639         (gen_struct_or_union_type_die): Likewise.
10640         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10641         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10643 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10645         * tree-object-size.c (pass_through_call): Handle
10646         BUILT_IN_ASSUME_ALIGNED.
10648 2011-07-01  Martin Jambor  <mjambor@suse.cz>
10650         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10652 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
10654         PR middle-end/48016
10655         * explow.c (update_nonlocal_goto_save_area): Use proper mode
10656         for stack save area.
10657         * function.c (expand_function_start): Likewise.
10659 2011-07-01  Richard Guenther  <rguenther@suse.de>
10661         PR middle-end/49596
10662         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10663         may have unknown refs.
10665 2011-07-01  Kai Tietz  <ktietz@redhat.com>
10667         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10669 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10671         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10672         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10673         (Specific, mips-sgi-irix6): Likewise.
10675 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10677         PR libmudflap/49549
10678         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10680 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10682         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10683         [idx]= and [idx1 ... idx2]= before initializers if needed for
10684         array initializers.
10686 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
10688         * config.gcc (score-*-elf): Remove score7.o.
10689         * config/score/t-score-elf: Likewise.
10690         * config/score/score.c: Merge score7 to score.c and
10691         remove forwarding functions.
10692         * config/score/score7.c: Deleted.
10693         * config/score/score7.h: Deleted.
10695 2011-07-01  Richard Guenther  <rguenther@suse.de>
10697         PR tree-optimization/49603
10698         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10700 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10702         * tree-sra.c (struct access): Rename total_scalarization to
10703         grp_total_scalarization
10704         (completely_scalarize_var): New function.
10705         (sort_and_splice_var_accesses): Set total_scalarization in the
10706         representative access.
10707         (analyze_access_subtree): Propagate total scalarization accross the
10708         tree, no holes in totally scalarized trees, simplify coverage
10709         computation.
10710         (analyze_all_variable_accesses): Call completely_scalarize_var instead
10711         of completely_scalarize_record.
10713 2011-06-30  Richard Henderson  <rth@redhat.com>
10715         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10716         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10717         * config/i386/i386.c: Don't include dwarf2out.h.
10718         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10719         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10720         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
10721         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10722         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10724 2011-06-30  Richard Henderson  <rth@redhat.com>
10726         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10727         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10728         * final.c (final_scan_insn): Look for it, and invoke
10729         dwarf2out_frame_debug before the insn if found.
10731 2011-06-30  Richard Henderson  <rth@redhat.com>
10733         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10734         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10736 2011-06-30  Richard Henderson  <rth@redhat.com>
10738         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10739         Define a vector of this type.
10740         (regs_saved_in_regs): Use a VEC.
10741         (num_regs_saved_in_regs): Remove.
10742         (compare_reg_or_pc): New.
10743         (record_reg_saved_in_reg): Split out from...
10744         (dwarf2out_flush_queued_reg_saves): ... here.
10745         (clobbers_queued_reg_save): Update for VEC.
10746         (reg_saved_in): Likewise.
10747         (dwarf2out_frame_debug_init): Likewise.
10748         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10749         (dwarf2out_frame_debug_cfa_register): Likewise.
10751 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10753         PR tree-optimization/49572
10754         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10755         type of the RHS instead of that of the LHS for the expression type.
10757 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10759         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10760         unconditionally.
10762 2011-06-30  Richard Guenther  <rguenther@suse.de>
10764         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10765         * tree-ssa-structalias.c (create_variable_info_for): Do not
10766         add initial constraints for non-var-decls.  Properly handle
10767         globals in other ltrans partitions.
10768         (intra_create_variable_infos): Manually create constraints for
10769         the fake no-alias parameter.
10770         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10771         and assert there are no clones.
10773 2011-06-30  Richard Guenther  <rguenther@suse.de>
10775         PR tree-optimization/46787
10776         * tree-data-ref.c (dr_address_invariant_p): Remove.
10777         (find_data_references_in_stmt): Invariant accesses are ok now.
10778         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10779         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10780         invariant loads.
10782 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10784         PR tree-optimization/49094
10785         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10786         (build_accesses_from_assign): Use it.
10788 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10790         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10791         handling of BUILT_IN_ASSUME_ALIGNED.
10793         PR debug/49364
10794         * dwarf2out.c (output_abbrev_section): Don't return early
10795         if abbrev_die_table_in_use is 1.
10796         (dwarf2out_finish): Instead don't call output_abbrev_section
10797         nor emit abbrev_section_label in that case.
10799 2011-06-30  Nick Clifton  <nickc@redhat.com>
10801         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10802         for the V850E.
10804 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10806         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10807         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10809 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
10811         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10812         both pattern and original statements if necessary.
10813         (vect_transform_loop): Likewise.
10814         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10815         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10816         Mark the pattern statement only if the original statement doesn't
10817         have its own uses.
10818         (process_use): Call vect_mark_relevant with additional parameter.
10819         (vect_mark_stmts_to_be_vectorized): Likewise.
10820         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10821         (vect_analyze_stmt): Handle both pattern and original statements
10822         if necessary.
10823         (vect_transform_stmt): Don't store vectorized pattern statement
10824         in the original statement.
10825         (vect_is_simple_use_1): Use related pattern statement only if the
10826         original statement is irrelevant.
10827         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10829 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
10831         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10832         option.
10833         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10834         entry.
10835         (TARGET_AVX128_OPTIMAL): New definition.
10836         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10837         X86_TUNE_AVX128_OPTIMAL entry.
10838         (ix86_option_override_internal): Enable the generation
10839         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10840         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10841         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10843 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10845         PR tree-optimization/49539
10846         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10847         names by means of stmt_references_abnormal_ssa_name.
10848         (associate_plusminus): Call can_propagate_from before propagating
10849         from definition statements.
10850         (ssa_forward_propagate_and_combine): Remove superfluous newline.
10852 2011-06-29  Richard Guenther  <rguenther@suse.de>
10854         * doc/invoke.texi: Document -scev dump modifier.
10855         * tree-pass.h (TDF_SCEV): New dump flag.
10856         * tree-dump.c (dump_option_value_in): Add scev.
10857         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10858         * tree-scalar-evolution.c: Likewise.
10860 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10862         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10863         (cxa_type_match): Correct declaration.
10864         (__gnu_unwind_pr_common): Reconstruct additional indirection
10865         when __cxa_type_match returns succeeded_with_ptr_to_base.
10867 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10869         PR rtl-optimization/49114
10870         * reload.c (struct replacement): Remove SUBREG_LOC member.
10871         (push_reload): Do not set it.
10872         (push_replacement): Likewise.
10873         (subst_reload): Remove dead code.
10874         (copy_replacements): Remove assertion.
10875         (copy_replacements_1): Do not handle SUBREG_LOC.
10876         (move_replacements): Likewise.
10877         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
10878         Detect subregs via recursive descent instead of via SUBREG_LOC.
10880 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10882         * config/avr/avr.c (avr_encode_section_info): Dispatch to
10883         default_encode_section_info.
10885 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
10887         PR tree-optimization/49545
10888         * builtins.c (get_object_alignment_1): Update function comment.
10889         Do not use DECL_ALIGN for functions, but test
10890         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10891         * fold-const.c (get_pointer_modulus_and_residue): Don't check
10892         for functions here.
10893         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10895 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
10897         PR debug/49567
10898         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10899         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10901 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10903         PR target/34734
10904         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10905         about uninitialized data attributed 'progmem' from here...
10906         (avr_encode_section_info): ...to this new function.
10907         (TARGET_ENCODE_SECTION_INFO): New define.
10908         (avr_section_type_flags): For data in ".progmem.data", remove
10909         section flag SECTION_WRITE.
10911 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10913         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10914         _xmulhisi3_exit.
10915         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10916         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
10917         (__umulhisi3): Ditto.
10918         * config/avr/avr.md (mulhisi3): New insn expender.
10919         (umulhisi3): New insn expender.
10920         (*mulhisi3_call): New insn.
10921         (*umulhisi3_call): New insn.
10923 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10925         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10927 2011-06-28  Richard Henderson  <rth@redhat.com>
10929         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
10930         all code and arguments that handled pushes.  Update all callers.
10932 2011-06-28  Richard Henderson  <rth@redhat.com>
10934         * config/arm/arm.c (arm_output_function_prologue): Don't call
10935         thumb1_output_function_prologue.
10936         (arm_expand_prologue): Avoid dead store.
10937         (number_of_first_bit_set): Use ctz_hwi.
10938         (thumb1_emit_multi_reg_push): New.
10939         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10940         to emit the entire prologue as rtl.
10941         (thumb1_output_interwork): Split out from
10942         thumb1_output_function_prologue.
10943         (thumb1_output_function_prologue): Remove.
10944         (arm_attr_length_push_multi): Handle thumb1.
10945         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10946         (prologue_thumb1_interwork): New.
10947         (*push_multi): Allow thumb1; use push_mult_memory_operand.
10948         * config/arm/predicates.md (push_mult_memory_operand): New.
10950 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10952         * config/sparc/sync.md (*stbar): Delete.
10953         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10955 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10957         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10959 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10961         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10962         (TARGET_64BIT_DEFAULT): Define.
10963         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10964         of tm_file.
10965         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10967 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10969         * common.opt (in_lto_p): New Variable entry.
10970         * flags.h (in_lto_p): Move to common.opt.
10971         * gcc.c: Include params.h.
10972         (set_option_handlers): Also use common_handle_option and
10973         target_handle_option.
10974         (main): Call global_init_params, finish_params and init_options_struct.
10975         * opts.c (debug_type_names): Move from toplev.c.
10976         (print_filtered_help): Access quiet_flag through opts pointer.
10977         (common_handle_option): Return early in the driver for some options.
10978         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10979         opts pointer.
10980         * toplev.c (in_lto_p): Move to common.opt.
10981         (debug_type_names): Move to opts.c.
10982         * Makefile.in (OBJS): Remove opts.o.
10983         (OBJS-libcommon-target): Add opts.o.
10984         (gcc.o): Update dependencies.
10986 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10988         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10990 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10992         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10993         with '=' constraint modifier.
10994         (*divdf3_vfp): Likewise.
10995         ("*mulsf3_vfp"): Likewise.
10996         ("*muldf3_vfp"): Likewise.
10997         ("*mulsf3negsf_vfp"): Likewise.
10998         ("*muldf3negdf_vfp"): Likewise.
11000 2011-06-28  Nick Clifton  <nickc@redhat.com>
11002         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
11003         relaxation when performing an incremental link.
11005 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11007         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
11008         within BB from last to first.
11010 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11012         * genattr-common.c: New.  Based on genattr.c.
11013         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
11014         (MOSTLYCLEANFILES): Add insn-attr-common.h.
11015         (opts.o): Update dependencies.
11016         (.PRECIOUS): Add insn-attr-common.h.
11017         (simple_rtl_generated_h): Add insn-attr-common.h.
11018         (build/genattr-common.o): New.
11019         (genprogrtl): Add attr-common.
11020         * genattr.c (main): Include insn-attr-common.h.  Don't generate
11021         definitions of DELAY_SLOTS or INSN_SCHEDULING.
11022         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
11024 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
11026         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
11027         avr-*-* and avr-*-rtems* targets.
11029         * config/avr/elf.h: New file.
11030         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
11031         (TARGET_ASM_SELECT_SECTION): Define.
11032         (INIT_SECTION_ASM_OP): Undefine.
11033         (FINI_SECTION_ASM_OP): Undefine.
11034         (READONLY_DATA_SECTION_ASM_OP): Undefine.
11035         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
11036         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
11037         * config/avr/avr.h:
11038         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
11039         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
11040         (MAX_OFILE_ALIGNMENT): Move to elf.h.
11041         (STRING_LIMIT): Move to elf.h.
11042         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
11043         (ASM_DECLARE_OBJECT_NAME): Remove.
11044         (ESCAPES): Remove.
11045         (ASM_OUTPUT_SKIP): Remove.
11046         (DWARF2_DEBUGGING_INFO): Remove.
11047         (OBJECT_FORMAT_ELF): Remove.
11048         (USER_LABEL_PREFIX): Remove.
11049         (ASM_OUTPUT_EXTERNAL): Remove.
11050         (ASM_OUTPUT_ASCII): Remove.
11051         (TYPE_ASM_OP): Remove.
11052         (SIZE_ASM_OP): Remove.
11053         (WEAK_ASM_OP): Remove.
11054         (STRING_ASM_OP): Remove.
11055         (SET_ASM_OP): Remove.
11056         (ASM_WEAKEN_LABEL): Remove.
11057         (TYPE_OPERAND_FMT): Remove.
11058         (ASM_DECLARE_FUNCTION_SIZE): Remove.
11059         (ASM_FINISH_DECLARE_OBJECT): Remove.
11060         (NO_DOLLAR_IN_LABEL): Remove.
11061         (ASM_GENERATE_INTERNAL_LABEL): Remove.
11062         (ASM_OUTPUT_CASE_LABEL): Remove.
11063         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
11064         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
11065         (gas_output_ascii): Remove.
11066         (gas_output_limited_string): Remove.
11067         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
11068         * config/avr/avr-protos.h
11069         (gas_output_ascii): Remove prototye.
11070         (gas_output_limited_string): Remove prototype.
11072 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
11074         PR target/48637
11075         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
11076         asm operands.
11078 2011-06-27  Jan Hubicka  <jh@suse.cz>
11080         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
11081         node instead of references in node.
11083 2011-06-27  Richard Henderson  <rth@redhat.com>
11085         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
11086         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11087         inside ifdef.
11089 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11091         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11093         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11094         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11095         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11096         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11097         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11098         (evaluate_stmt, execute_fold_all_builtins): Handle
11099         BUILT_IN_ASSUME_ALIGNED.
11100         * tree-ssa-dce.c (propagate_necessity): Likewise.
11101         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11102         call_may_clobber_ref_p_1): Likewise.
11103         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11104         (expand_builtin_assume_aligned): New function.
11105         * doc/extend.texi (__builtin_assume_aligned): Document.
11107         PR debug/49544
11108         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11109         and l has two DEBUG_INSN owned locs instead of just one, adjust
11110         the second location's setting_insn too.
11112 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11114         PR libmudflap/38738
11115         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11117 2011-06-27  Nick Clifton  <nickc@redhat.com>
11119         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11120         bit position of highest bit set into a count of the high zero bits.
11122 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11124         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11126 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11128         PR lto/48492
11129         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11130         to a NULL parent.
11132 2011-06-27  Richard Guenther  <rguenther@suse.de>
11134         PR tree-optimization/49394
11135         * passes.c (execute_one_pass): Restore current_pass after
11136         applying IPA transforms.
11138 2011-06-27  Kai Tietz  <ktietz@redhat.com>
11140         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11141         out of type precision after operation.
11142         (find_bswap): Take for limit value the integer auto-promotion
11143         into account.
11145 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11147         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11148         forward scan as well.
11150 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11152         PR target/44241
11153         * config/vms/vms-protos.h: New file.
11154         * config/vms/vms-crtlmap.map: New file.
11155         * config/vms/vms.c: New file.
11156         * config/vms/make-crtlmap.awk: New file.
11157         * config/vms/vms-crtl.h: File removed.
11158         * config/vms/vms-crtl-64.h: File removed.
11159         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11160         * config/alpha/vms64.h: Do not include vms-crtl-64.h
11161         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11162         clear some builtins on VMS.  Calls vms_patch_builtins.
11163         (avms_asm_output_external): Remove.
11164         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11165         (struct crtl_name_spec): Remove
11166         (DO_CTRL_NAMES): Remove.
11167         * config/ia64/vms.h (struct crtl_name_spec): Remove
11168         (DO_CTRL_NAMES): Remove.
11169         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11170         clear some builtins on VMS.  Calls vms_patch_builtins.
11171         (ia64_asm_output_external): Remove DO_CRTL_NAME.
11172         * config/ia64/vms64.h: Do not include vms-crtl-64.h
11173         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11175 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11177         * config/alpha/alpha.c (alpha_end_function): Always generate .end
11178         directive on VMS.
11180 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11182         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11183         the function receives nonlocal gotos.
11185 2011-06-27  Richard Guenther  <rguenther@suse.de>
11187         PR tree-optimization/49536
11188         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11189         For non-scalar inner types use a scalar type according to
11190         the scalar inner mode.
11192 2011-06-27  Richard Guenther  <rguenther@suse.de>
11194         PR tree-optimization/49365
11195         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11197 2011-06-27  Richard Guenther  <rguenther@suse.de>
11199         PR tree-optimization/49169
11200         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11201         the alignment of function decls.
11203 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
11205         PR target/47997
11206         * config/darwin.c (darwin_mergeable_string_section): Place string
11207         constants in '.cstring' rather than '.const' when CF/NSStrings are
11208         active.
11210 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
11212         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11213         (emit_save_register_window): Likewise.
11214         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11215         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
11216         Swap back %o7/%i7 in register naming.
11218 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
11220         PR driver/49371
11221         * config/darwin.c (darwin_override_options): Improve warning when
11222         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11223         is given with fpie/fPIE.
11224         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11225         * config/darwin9.h (PIE_SPEC): New.
11227 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11229         * timevar.c (timevar_print): Increase width for display of timevar
11230         name.
11232 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
11234         PR c++/46400
11235         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11236         instead of TYPE_CHAIN for chain_next for types.
11238 2011-06-24  Richard Henderson  <rth@redhat.com>
11240         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11241         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11242         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11243         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11244         (sparc_flat_expand_prologue): Emit individual instructions
11245         instead of one of the above.
11247 2011-06-24  Easwaran Raman  <eraman@google.com>
11249         PR rtl-optimization/49429
11250         PR target/49454
11251         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
11252         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11253         used to copy y into x.
11254         * calls.c (initialize_argument_information): Mark
11255         an argument addressable if it is passed by invisible reference.
11256         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
11257         if it is passed by reference.
11259 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11261         PR rtl-optimization/49504
11262         * rtlanal.c (nonzero_bits1): Properly handle addition or
11263         subtraction of a pointer in Pmode if pointers extend unsigned.
11264         (num_sign_bit_copies1): Likewise.
11266 2011-06-24  Martin Jambor  <mjambor@suse.cz>
11268         PR tree-optimizations/49516
11269         * tree-sra.c (sra_modify_assign): Choose the safe path for
11270         aggregate copies if we also did scalar replacements.
11272 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11274         PR target/49335
11275         * config/arm/predicates.md (add_operator): New.
11276         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11278 2011-06-24  Andi Kleen  <ak@linux.intel.com>
11280         * tree-sra.c (type_internals_preclude_sra_p): Add msg
11281         parameter. Split up ifs and report reason in *msg.
11282         (reject): Add.
11283         (find_var_candiate): Add msg variable.
11284         Split up ifs and report reason to reject.
11285         (find_param_candidates): Add msg variable.
11286         Pass msg to type_internals_preclude_sra_p.
11288 2011-06-23  Jeff Law  <law@redhat.com>
11290         PR middle-end/48770
11291         * reload.h (reload): Change to return a bool.
11292         * ira.c (ira): If requested by reload, run a fast DCE pass after
11293         reload has completed.  Fix comment typo.
11294         * reload1.c (need_dce): New file scoped static.
11295         (reload): Set reload_completed here.  Return whether or not a DCE
11296         pass after reload is needed.
11297         (delete_dead_insn): Set need_dce as needed.
11299         PR middle-end/49465
11300         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11301         to detect threading through joiner block.  If there was already
11302         an edge to the new target, then do not change the PHI nodes.
11304 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
11306         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11307         get_pointer_alignment to see if base isn't sufficiently aligned.
11309 2011-06-23  Jan Hubicka  <jh@suse.cz>
11311         PR tree-optimize/49373
11312         * tree-pass.h (all_late_ipa_passes): Declare.
11313         * cgraphunit.c (init_lowered_empty_function): Fix properties.
11314         (cgraph_optimize): Execute late passes; remove unreachable funcions
11315         after materialization.
11316         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11317         LTOing.
11318         * passes.c (all_late_ipa_passes): Declare.
11319         (dump_passes, register_pass): Handle late ipa passes.
11320         (init_optimization_passes): Move ipa_pta to late passes; schedule
11321         fixup_cfg at beggining of all_passes.
11322         (apply_ipa_transforms): New function.
11323         (execute_one_pass): When doing simple ipa pass, apply all transforms.
11325 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
11327         * params.c: Include common/common-target.h.  Don't include tm.h.
11328         (lang_independent_params): Move from toplev.c.
11329         (global_init_params): New.
11330         * params.h (global_init_params): Declare.
11331         * target.def (default_params): Move to common-target.def.
11332         * toplev.c (lang_independent_options): Remove.
11333         (lang_independent_params): Move to params.c.
11334         (general_init): Use global_init_params.
11335         * common/common-target.def (option_default_params): Move from
11336         target.def.
11337         * common/config/ia64/ia64-common.c: Include params.h.
11338         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11339         from ia64.c.
11340         * common/config/rs6000/rs6000-common.c: Include params.h.
11341         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11342         from rs6000.c.
11343         * common/config/sh/sh-common.c: Include params.h.
11344         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11345         from sh.c.
11346         * common/config/spu/spu-common.c: Include params.h.
11347         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11348         from spu.c.
11349         * config/ia64/ia64.c (ia64_option_default_params,
11350         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11351         * config/rs6000/rs6000.c (rs6000_option_default_params,
11352         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11353         * config/sh/sh.c (sh_option_default_params,
11354         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11355         * config/spu/spu.c (spu_option_default_params,
11356         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11357         * Makefile.in (OBJS): Remove params.o.
11358         (OBJS-libcommon-target): Add params.o.
11359         (params.o, $(common_out_object_file)): Update dependencies.
11360         * doc/tm.texi: Regenerate.
11362 2011-06-23  Alan Modra  <amodra@gmail.com>
11364         PR bootstrap/49383
11365         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11366         invocation for 2011-06-09 changes.
11368 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11370         PR libgomp/49490
11371         * omp-low.c (expand_omp_for_static_nochunk): Only
11372         use n ceil/ nthreads size for the first n % nthreads threads in the
11373         team instead of all threads except for the last few ones which
11374         get less work or none at all.
11376         PR debug/49496
11377         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11378         uses.
11380 2011-06-22  Richard Guenther  <rguenther@suse.de>
11382         PR tree-optimization/49493
11383         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11384         Refer to the alias target of variables.
11385         (associate_varinfo_to_alias_1): Remove.
11386         (ipa_pta_execute): Do not associate aliases with anything.
11387         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11388         (cgraph_function_node): Likewise.
11389         (cgraph_function_or_thunk_node): Likewise.
11390         (varpool_variable_node): Likewise.
11392 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11394         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11395         * config.gcc (arm*-*-linux*): Default to gnu tls.
11396         (arm*-*-*): Add --with-tls option.
11397         (all_defaults): Add 'tls'.
11399 2011-06-22  Richard Henderson  <rth@redhat.com>
11401         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11402         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11403         (dwarf2out_frame_debug_cfa_window_save): Rename from
11404         dwarf2out_window_save; make static.
11405         * tree.h (dwarf2out_window_save): Don't declare.
11407         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11408         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11409         (emit_save_register_window): Rename from gen_save_register_window;
11410         emit the insn and add REG_CFA_* notes.
11411         (sparc_expand_prologue): Update to match.
11412         * config/sparc/sparc.md (save_register_window_1): Simplify from
11413         save_register_window<P:mode>.
11415 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11417         PR target/49497
11418         * config/i386/i386.md (*lea_general_2): Always allow SImode.
11419         (*lea_general_2_zext): Likewise.
11420         (imul to lea peepholes): Use const359_operand and check
11421         TARGET_PARTIAL_REG_STALL.
11423         * config/i386/predicates.md (const359_operand): New.
11425 2011-06-22  Michael Matz  <matz@suse.de>
11427         * cgraphunit.c (assemble_thunk): Use correct return type.
11429 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
11430             Dmitry Melnik  <dm@ispras.ru>
11432         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11433         (neon_output_shift_immediate): Ditto.
11434         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11435         prototype.
11436         (neon_output_shift_immediate): Ditto.
11437         * config/arm/neon.md (vashl<mode>3): Modified constraint.
11438         (vashr<mode>3_imm): New insn pattern.
11439         (vlshr<mode>3_imm): Ditto.
11440         (vashr<mode>3): Modified constraint.
11441         (vlshr<mode>3): Ditto.
11442         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11443         predicate.
11444         (imm_for_neon_rshift_operand): Ditto.
11445         (imm_lshift_or_reg_neon): Ditto.
11446         (imm_rshift_or_reg_neon): Ditto.
11448         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11450 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11452         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11453         builtin calls even if likelyvalue is not CONSTANT.
11454         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11455         Return get_value_for_expr of first operand
11456         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11457         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11458         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11459         their non-checking counterparts.
11460         (call_may_clobber_ref_p_1): Likewise.
11461         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11462         like their non-checking counterparts.
11463         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11464         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11465         like their non-checking counterparts.
11466         (find_func_clobbers): Likewise.
11467         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11468         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11470         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11471         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11472         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11473         of base type reference as argument.
11474         (resolve_addr_in_expr): Likewise.  Fix keep computation.
11475         (convert_descriptor_to_signed): Renamed to...
11476         (convert_descriptor_to_mode): ... this.  For wider types convert to
11477         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11478         (typed_binop): New function.
11479         (scompare_loc_descriptor, ucompare_loc_descriptor,
11480         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11481         default to unsigned type instead of signed.
11483         PR debug/47858
11484         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11485         (gimple_build_debug_source_bind_stat): New prototype.
11486         (gimple_build_debug_source_bind): Define.
11487         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11488         gimple_debug_source_bind_get_value,
11489         gimple_debug_source_bind_get_value_ptr,
11490         gimple_debug_source_bind_set_var,
11491         gimple_debug_source_bind_set_value): New inlines.
11492         * gimple.c (gimple_build_debug_source_bind_stat): New function.
11493         * gimple-pretty-print.c (dump_gimple_debug): Handle
11494         GIMPLE_DEBUG_SOURCE_BIND.
11495         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11496         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11497         * tree-parloops.c (eliminate_local_variables,
11498         separate_decls_in_region): Likewise.
11499         (separate_decls_in_region_debug): Renamed from
11500         separate_decls_in_region_debug_bind.  Handle
11501         gimple_debug_source_bind_p.
11502         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11503         prototypes.
11504         (DECL_HAS_DEBUG_ARGS_P): Define.
11505         (struct tree_function_decl): Add has_debug_args_flag field.
11506         * tree.c (debug_args_for_decl): New variable.
11507         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11508         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11509         (rewrite_debug_stmt_uses): New function.
11510         (rewrite_stmt): Use it to rewrite debug stmt uses.
11511         * rtl.def (DEBUG_PARAMETER_REF): New.
11512         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11513         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11514         DEBUG_PARAMETER_REF.
11515         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11516         * print-rtl.c (print_rtx): Likewise.
11517         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11518         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11519         debug stmts in the first bb.
11520         * tree-inline.c (remap_ssa_name): If remapping default def
11521         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11522         a source bind debug stmt.
11523         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11524         (maybe_move_debug_stmts_to_successors): Likewise.
11525         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
11526         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11527         debug args vector from old_decl to new_decl.
11528         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11529         or modified parameters, add debug bind stmts before call
11530         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11531         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11532         on DECL_DEBUG_EXPRs from debug args vector.
11533         (expand_debug_source_expr): New function.
11534         (expand_debug_locations): Use it for source bind insns.
11535         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11536         * var-tracking.c (prepare_call_arguments): Add debug args
11537         to call_arguments if any.
11538         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11539         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11540         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11541         (get_ref_die_offset, parameter_ref_descriptor): New functions.
11542         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11543         (gen_subprogram_die): Handle parameters identified by
11544         DEBUG_PARAMETER_REF.
11546 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11548         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11549         * doc/install.texi (Configuration): Document --with-tls.
11550         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11551         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11552         (arm_tls_descseq_addr): New.
11553         (legitimize_tls_address): Add tlsdesc support.
11554         (arm_cannot_copy_insn_p): Check for tlscall.
11555         (arm_emit_tls_decoration): Likewise.
11556         * config/arm/arm.h (TARGET_GNU2_TLS): New.
11557         (OPTION_DEFAULT_SPECS): Add with-tls support.
11558         * config/arm/arm.md (R1_REGNUM): Define.
11559         (tlscall): New.
11560         * config/arm/arm.opt (tls_type): New enumeration type and values.
11561         (mtls-dialect): New switch.
11562         * config/arm/arm-opts.h (enum tls_type): New.
11564 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11566         * attribs.c (register_attribute): Added assert to check that all
11567         attribute specs are registered with a name that is not empty and
11568         does not start with '_'.
11569         (decl_attributes): Avoid the lookup of the "naked" attribute spec
11570         if the function has no attributes.
11571         * tree.c (is_attribute_with_length_p): Removed.
11572         (is_attribute_p): Removed.
11573         (private_is_attribute_p): New.
11574         (private_lookup_attribute): New.
11575         (lookup_attribute): Removed.
11576         (lookup_ident_attribute): New.
11577         (remove_attribute): Require the first argument to be in the form
11578         'text', not '__text__'.  Updated asserts.
11579         (merge_attributes): Use lookup_ident_attributes instead of
11580         lookup_attribute.
11581         (merge_dllimport_decl_attributes): Use remove_attribute.
11582         (attribute_list_contained): Likewise.
11583         (attribute_list_equal): Immediately return 1 if the arguments are
11584         identical pointers.
11585         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
11586         'int'.  Require the first argument to be in the form 'text', not
11587         '__text__'.  Require the second argument to be an identifier.
11588         (lookup_attribute): Made inline.  Require the first argument to be
11589         in the form 'text', not '__text__'.
11590         (private_is_attribute_p, private_lookup_attribute): New.
11591         Updated comments.
11593 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
11595         * builtins.c: Add sync_ or SYNC__ to builtin names.
11596         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11597         * omp-low.c: Add sync_ or SYNC__ to builtin names.
11599 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11601         PR target/33049
11602         * config/avr/avr.md (extzv): New expander.
11603         (*extzv): New insn.
11604         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11605         * config/avr/constraints.md (C04): New constraint.
11606         * doc/md.texi (Machine Constraints): Document it.
11608 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11610         PR middle-end/49489
11611         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11612         unsignedp argument instead of 1 for clrsb_optab.
11613         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11614         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
11615         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11616         * optabs.c (widen_leading): Call widen_operand and expand_unop
11617         with 0 as unsignedp argument instead of 1 for clrsb_optab.
11618         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11620 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11622         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11624 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
11626         * gensupport.c (add_define_attr): New static function.
11627         (is_predicable): Allow multi-alternative lists for the "predicable"
11628         attribute.
11629         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11630         (process_one_cond_exec): Call alter_attrs_for_insn.
11631         * doc/md.texi (Defining Attributes): Mention some standard names.
11632         (Conditional Execution): Update documentation for "predicable".
11634         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11635         __builtin_clrsbll): Document.
11636         * doc/rtl.texi (clrsb): New entry.
11637         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
11638         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
11639         (expand_unop): Handle clrsb_optab.
11640         (init_optabs): Initialize it.
11641         * optabs.h (enum optab_index): New entry OTI_clrsb.
11642         (clrsb_optab): Define.
11643         * genopinit.c (optabs): Add an entry for it.
11644         * builtins.c (expand_builtin): Handle clrsb builtin functions.
11645         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11646         BUILT_IN_CLRSBLL): New.
11647         * rtl.def (CLRSB): New code.
11648         * dwarf2out.c (mem_loc_descriptor): Handle it.
11649         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11650         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11651         and popcount.
11652         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11653         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11654         (__ctzDI2): Move declaration.
11655         * config/bfin/bfin.md (clrsbsi2): New expander.
11656         (signbitssi2): Use the CLRSB rtx.
11657         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
11658         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11660 2011-06-21  Richard Guenther  <rguenther@suse.de>
11662         * ipa-inline-transform.c (inline_transform): Fix previous change.
11664 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
11666         PR tree-optimization/49478
11667         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11668         with constant operand.
11670 2011-06-21  Richard Guenther  <rguenther@suse.de>
11672         * ipa-inline-transform.c (inline_transform): Fix typo.
11674 2011-06-21  Richard Guenther  <rguenther@suse.de>
11676         PR tree-optimization/49483
11677         * tree-vect-stmts.c (vectorizable_assignment): Also handle
11678         VIEW_CONVERT_EXPR conversions.
11680 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
11682         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11683         * config/avr/avr-tables.opt: New file (generated).
11684         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11685         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11686         avr-mcus.def.
11687         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11688         (avr_option_override): Don't process -mmcu= argument here.  Set
11689         avr_current_device using avr_mcu_index.
11690         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11691         * config/avr/avr.opt (mmcu=): Use Enum.
11692         * config/avr/t-avr (avr-devices.o): Update dependencies.
11693         ($(srcdir)/config/avr/avr-tables.opt): New.
11694         * target.def (help): Remove.
11695         * doc/tm.texi.in (TARGET_HELP): Remove.
11696         * doc/tm.texi: Regenerate.
11697         * opts.c: Don't include target.h.
11698         (common_handle_option): Don't call targetm.help.
11699         * system.h (TARGET_HELP): Poison.
11700         * Makefile.in (opts.o): Update dependencies.
11702 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11704         * config/usegld.h: New file.
11705         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11706         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11707         (LIB_SPEC): Likewise.  Search /lib.
11708         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11709         (RDYNAMIC_SPEC): Handle GNU ld.
11710         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11711         Define.
11712         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11713         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11714         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11715         (STACK_CHECK_STATIC_BUILTIN): Define.
11716         * config/sol2.opt (compat-bsd): Remove.
11717         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11718         * config/sol2-bi.h: New file.
11719         * config/sol2-gld.h: Remove.
11720         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11721         (NO_DBX_BNSYM_ENSYM): Remove.
11722         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11723         (STACK_CHECK_STATIC_BUILTIN): Remove.
11724         Test USE_GLD instead of TARGET_GNU_LD.
11725         * config/i386/sol2-10.h: Rename to ...
11726         * config/i386/sol2-bi.h .. this.
11727         (SUBTARGET_EXTRA_SPECS): Redefine.
11728         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11729         (MULTILIB_DEFAULTS): Remove.
11730         (DEFAULT_ARCH32_P): Define.
11731         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11732         (ARCH64_SUBDIR): Define.
11733         Test USE_GLD instead of TARGET_GNU_LD.
11734         (I386_EMULATION): Rename to ...
11735         (ARCH32_EMULATION): ... this.
11736         (X86_64_EMULATION): Rename to ...
11737         (ARCH64_EMULATION): ... this.
11738         (TARGET_LD_EMULATION): Remove.
11739         (LINK_ARCH_SPEC): Remove.
11740         * config/i386/sol2-gas.h: Remove.
11741         * config/i386/t-sol2-10: Rename to ...
11742         * config/i386/t-sol2-64: ... this.
11743         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11744         (AS_SPARC64_FLAG): Define.
11745         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11746         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11747         depending on TARGET_CPU_DEFAULT.
11748         (CPP_CPU_SPEC): Redefine.
11749         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11750         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11751         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11752         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11753         ASM_ARCH_DEFAULT_SPEC): Redefine.
11754         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11755         LINK_ARCH_DEFAULT_SPEC.
11756         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11757         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11758         (ARCH64_SUBDIR): Define.
11759         (LINK_ARCH64_SPEC): Redefine.
11760         (CC1_SPEC): Redefine.
11761         (OPTION_DEFAULT_SPECS): Redefine.
11762         (MULTILIB_DEFAULTS): Define.
11763         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11764         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11765         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11766         (NO_DBX_BNSYM_ENSYM): Remove.
11767         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11768         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11769         (TARGET_ASM_NAMED_SECTION): Likewise.
11770         (STACK_CHECK_STATIC_BUILTIN): Remove.
11771         * config/sparc/sol2-bi.h: Remove.
11772         * config/sparc/sol2-gas-bi.h: Remove.
11773         * config/sparc/sol2-gas.h: Remove.
11774         * config/sparc/sol2-gld-bi.h: Remove.
11775         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11776         common parts ...
11777         (*-*-solaris2*): ... here.
11779 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11781         PR other/43564
11782         * ipa-inline.c (can_inline_edge_p): Check
11783         !DECL_DISREGARD_INLINE_LIMITS.
11785 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11787         PR middle-end/49139
11788         * cgraphunit.c (process_function_and_variable_attributes): warn when
11789         always_inline functions that are not inline.
11790         * ipa-inline-transform.c (inline_transform): Always call
11791         optimize_inline.
11792         * tree-inline.c (tree_inlinable_function_p): Use error instead
11793         of sorry.
11794         (expand_call_inline): Likewise.
11796 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11798         * Makefile.in (dg_target_exps): Set.
11799         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11800         instead of 7, try to divide it more evenly.
11802 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
11804         PR target/49089
11805         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11806         (avx256_split_unaligned_store): New definition.
11807         (ix86_option_override_internal): Enable avx256 unaligned load/store
11808         splitting only when avx256_split_unaligned_load/store is set.
11810 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11812         * regrename.c (scan_rtx_reg): Handle the case where we write to an
11813         open chain in a smaller mode without failing the entire block.
11815 2011-06-21  Alan Modra  <amodra@gmail.com>
11817         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11818         CONST high part large-toc address.
11819         (rs6000_tls_referenced_p): Make static.
11820         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11822 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11824         PR target/49385
11825         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11826         one of the operands is a register.
11828 2011-06-20  Kai Tietz  <ktietz@redhat.com>
11830         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11831         operations in combination with binary and.
11833 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11835         * regrename.c (do_replace): Don't update notes.
11837 2011-06-20  Alan Modra  <amodra@gmail.com>
11839         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11840         of toc-relative address in CONST.
11841         (rs6000_delegitimize_address): Recognize changed address.
11842         (rs6000_legitimize_reload_address): Likewise.
11843         (rs6000_emit_move): Don't force these constants to memory.
11844         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11845         toc-relative address in CONST.
11846         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11847         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11849 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11851         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11852         (count_trailing_zeros): Likewise.
11854 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11856         PR other/49325
11857         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11858         .init_array can be used with .ctors on targets.
11859         * configure: Regenerated.
11861 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11863         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11864         if the element type is volatile.
11866 2011-06-18  Jan Hubicka  <jh@suse.cz>
11868         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11869         extra name aliases.
11870         (lto_symtab_resolve_can_prevail_p): Likewise.
11871         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11872         * cgraphbuild.c (record_reference): Remove extra body alias code.
11873         (mark_load): Likewise.
11874         (mark_store): Likewise.
11875         * cgraph.h (varpool_node): Remove extra_name filed;
11876         add alias_of and extraname_alias.
11877         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11878         (varpool_alias_aliased_node): New inline function.
11879         (varpool_variable_node): New function.
11880         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11881         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11882         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11883         (input_varpool_node): Likewise.
11884         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11885         (varpool_externally_visible_p): Remove extra body alias code.
11886         (function_and_variable_visibility): Likewise.
11887         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11888         (ipa_pta_execute): Use it.
11889         * varpool.c (varpool_remove_node): Remove extra name alias code.
11890         (varpool_mark_needed_node): Likewise.
11891         (varpool_analyze_pending_decls): Analyze aliases.
11892         (assemble_aliases): New functoin.
11893         (varpool_assemble_decl): Use it.
11894         (varpool_create_variable_alias): New function.
11895         (varpool_extra_name_alias): Rewrite.
11896         (varpool_for_node_and_aliases): New function.
11898 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
11900         PR target/49411
11901         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11902         last_arg_constant and last argument doesn't match its predicate,
11903         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11904         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11905         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11906         spelling of error message.
11907         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11908         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11909         const_0_to_255_operand instead of const_int_operand.
11911         Revert:
11912         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11914         * config/i386/sse.md (blendbits): Remove mode attribute.
11915         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11916         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11917         Check integer value of operand 3 in insn constraint.
11919 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
11921         PR rtl-optimization/48542
11922         * reload.c (find_equiv_reg): Stop looking when finding a
11923         setjmp-type call.
11924         * reload1.c (reload_as_needed): Invalidate all reload
11925         registers when crossing a setjmp-type call.
11927 2011-06-16  Jeff Law  <law@redhat.com>
11929         * tree-ssa-threadupdate.c (struct redirection_data): New field
11930         intermediate_edge.
11931         (THREAD_TARGET2): Define.
11932         (redirection_data_eq): Also check that the intermediate edge is equal.
11933         (lookup_redirection_data): Drop useless argument.  Extract the
11934         outgoing_edge and intermediate edge from E.  Callers updated.
11935         (copy_phi_args, update_destination_phis): New functions.
11936         (fix_duplicate_block_edges): Likewise.
11937         (create_edge_and_update_destination_phis): Duplicate all the edges
11938         hung off e->aux.  Use copy_phi_args.
11939         (create_duplicates): Use fix_duplicate_block_edges.
11940         (fixup_template_block): Likewise.
11941         (redirect_edges): If necessary, redirect the joiner block's incoming
11942         edge to the duplicate of the joiner block.
11943         (thread_block): Don't muck up loops when threading through a joiner
11944         block.
11945         (thread_through_loop_header): Handle threading through a joiner block.
11946         (mark_threaded_blocks, register_jump_thread): Likewise.
11947         * tree-flow.h (register_jump_thread): Add new argument.  Callers
11948         updated.
11949         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11950         (thread_across_edge): Handle threading through a joiner block.
11952 2011-06-16  Martin Jambor  <mjambor@suse.cz>
11954         PR tree-optimization/49343
11955         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11956         calculate offset, provide 2nd operand for the new COMPONENT_REF.
11958 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
11960         * config/darwin-protos.h (machopic_select_rtx_section): Move to
11961         inside RTX_CODE ifdef.
11963 2011-06-16  Tom de Vries  <tom@codesourcery.com>
11965         PR target/45098
11966         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11967         Disallow NULL pointer for pointer arithmetic.
11969 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11971         PR target/49398
11972         Revert.
11973         2011-06-10  Wei Guozhi  <carrot@google.com>
11975         PR target/45335
11976         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11977         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11978         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11979         related peephole2.
11980         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11981         related peephole2.
11982         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11983         (arm_legitimate_ldrd_p): New prototype.
11984         (arm_output_ldrd): New prototype.
11985         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11986         (arm_legitimate_ldrd_p): New function.
11987         (arm_output_ldrd): New function.
11989 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11991         PR middle-end/46500
11992         * doc/tm.texi.in: Update Copyright date.
11993         * doc/tm.texi: Regenerate.
11994         * targhooks.c (default_setup_incoming_varargs): Replace
11995         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11996         (default_pretend_outgoing_varargs_named): Likewise.
11997         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11998         (hook_callee_copies_named): Likewise.
11999         (default_function_arg_advance): Likewise.
12000         (default_function_arg): Likewise.
12001         (default_function_incoming_arg): Likewise.
12002         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12003         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12004         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12005         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12006         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12007         * targhooks.h (default_setup_incoming_varargs): Likewise.
12008         (default_pretend_outgoing_varargs_named): Likewise.
12009         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12010         (hook_callee_copies_named): Likewise.
12011         (default_function_arg_advance): Likewise.
12012         (default_function_arg): Likewise.
12013         (default_function_incoming_arg): Likewise.
12014         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12015         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12016         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12017         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12018         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12019         * target.def (pass_by_reference): Likewise.
12020         (setup_incoming_varargs, strict_argument_naming): Likewise.
12021         (pretend_outgoing_varargs_named, callee_copies): Likewise.
12022         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
12023         (function_incoming_arg): Likewise.
12024         * target.h: Don't include "tm.h" .
12025         (cumulative_args_t): New typedef.
12026         [GCC_TM_H] (get_cumulative_args): New static inline function.
12027         [GCC_TM_H] (pack_cumulative_args): Likewise.
12028         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
12029         argument type with cumulative_args_t.
12030         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
12031         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
12032         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12033         (frv_arg_partial_bytes, frv_function_arg): Likewise.
12034         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
12035         (frv_function_arg_1): Likewise.
12036         * config/s390/s390.c (s390_pass_by_reference): Likewise.
12037         (s390_function_arg_advance, s390_function_arg): Likewise.
12038         * config/m32c/m32c.c (m32c_function_arg): Likewise.
12039         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
12040         (m32c_strict_argument_naming): Likewise.
12041         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
12042         (spu_function_arg_advance): Likewise.
12043         (spu_setup_incoming_varargs): Likewise.  Make static.
12044         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
12045         Remove prototype.
12046         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
12047         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12048         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
12049         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
12050         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
12051         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
12052         (mep_pass_by_reference, mep_function_arg): Likewise.
12053         (mep_function_arg_advance): Likewise.
12054         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12055         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
12056         (m32r_function_arg, m32r_function_arg_advance): Likewise.
12057         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
12058         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12059         (ix86_function_arg, ix86_pass_by_reference): Likewise.
12060         (ix86_setup_incoming_varargs): Likewise.
12061         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12062         (sh_strict_argument_naming): Likewise.
12063         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
12064         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
12065         (sh_function_arg_advance, sh_function_arg): Likewise.
12066         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12067         (pdp11_function_arg_advance): Likewise.
12068         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12069         Likewise.
12070         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
12071         * config/avr/avr.c (avr_function_arg): Likewise.
12072         (avr_function_arg_advance): Likewise.
12073         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12074         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
12075         (xtensa_function_arg_1): Likewise.
12076         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
12077         Likewise.
12078         (xstormy16_function_arg): Likewise.
12079         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12080         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12081         (fr30_function_arg_advance): Likewise.
12082         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12083         (lm32_function_arg, lm32_function_arg_advance): Likewise.
12084         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12085         (moxie_function_arg, moxie_function_arg_advance): Likewise.
12086         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12087         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12088         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12089         (cris_function_arg, cris_function_incoming_arg): Likewise.
12090         (cris_function_arg_advance, cris_function_arg_1): Likewise.
12091         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12092         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12093         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12094         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12095         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12096         (mn10300_arg_partial_bytes): Likewise.
12097         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12098         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12099         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12100         (ia64_function_arg_1): Likewise.
12101         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12102         (m68k_function_arg): Likewise.
12103         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12104         (rs6000_function_arg, setup_incoming_varargs): Likewise.
12105         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12106         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12107         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12108         (picochip_arg_advance): Likewise.
12109         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12110         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12111         (mcore_function_arg_advance): Likewise.
12112         * config/score/score.c (score_pass_by_reference): Likewise.
12113         (score_function_arg_advance): Likewise.
12114         (score_arg_partial_bytes): Likewise.  Make static.
12115         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12116         * config/arm/arm.c (arm_arg_partial_bytes): Replace
12117         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12118         (arm_function_arg, arm_function_arg_advance): Likewise.
12119         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12120         * config/pa/pa.c (pa_pass_by_reference): Likewise.
12121         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12122         (pa_function_arg): Likewise.
12123         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12124         (mips_function_arg, mips_function_arg_advance): Likewise.
12125         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12126         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12127         * config/vax/vax.c (vax_function_arg): Likewise.
12128         (vax_function_arg_advance): Likewise.
12129         * config/h8300/h8300.c (h8300_function_arg): Likewise.
12130         (h8300_function_arg_advance): Likewise.
12131         * config/v850/v850.c (v850_pass_by_reference): Likewise.
12132         (v850_strict_argument_naming, v850_function_arg): Likewise.
12133         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12134         (v850_setup_incoming_varargs): Likewise.
12135         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12136         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12137         (mmix_function_arg, mmix_pass_by_reference): Likewise.
12138         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12139         with const void *.
12140         * config/bfin/bfin.c (setup_incoming_varargs): Replace
12141         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12142         (bfin_function_arg_advance, bfin_function_arg): Likewise.
12143         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12144         * calls.c (emit_call_1): Change type of args_so_far to
12145         cumulative_args_t.  Changed all callers.
12146         (initialize_argument_information): Likewise.
12147         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12148         * dse.c (get_call_args): Likewise.
12149         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12150         * function.c (pass_by_reference, reference_callee_copied): Likewise.
12151         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12152         New member args_so_far_v.  Changed all users.
12153         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12154         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12155         * config/mips/mips.c (mips_output_args_xfer): Likewise.
12156         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12157         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12158         * config/microblaze/microblaze.c (microblaze_expand_prologue):
12159         Likewise.
12160         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12161         m32r_pass_by_reference.
12163 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
12165         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12166         argument to be a VEC of statements.
12167         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12168         assert that pattern statements have to have their vector type set.
12169         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12170         Change the first argument to be a VEC of statements.  Update
12171         documentation.
12172         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12173         (vect_handle_widen_mult_by_const): New function.
12174         (vect_recog_widen_mult_pattern):  Change the first argument to be a
12175         VEC of statements.  Update documentation.  Check that the constant is
12176         INTEGER_CST.  Support multiplication by a constant that fits an
12177         intermediate type - call vect_handle_widen_mult_by_const.
12178         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12179         call.  Handle additional pattern statements if necessary.
12181 2011-06-16  Nick Clifton  <nickc@redhat.com>
12183         PR target/49427
12184         * config.gcc: Set cpu_type to v850 for any V850 architecture.
12185         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12186         md_file, extra_modes, out_file and extra_options are these are all
12187         deduced from cpu_type.
12189 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12191         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12192         truncation mask to 63.
12194 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12196         PR target/49313
12197         PR target/29524
12198         * longlong.h: Add AVR support:
12199         (count_leading_zeros): New macro.
12200         (count_trailing_zeros): New macro.
12201         (COUNT_LEADING_ZEROS_0): New macro.
12202         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12203         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12204         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12205         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12206         (LIB2FUNCS_EXCLUDE): Add _clz.
12207         * config/avr/libgcc.S (XCALL): Move up in file.
12208         (XJMP): New C Macro.
12209         (DEFUN): New asm macro.
12210         (ENDF): New asm macro.
12211         (__ffssi2): New function.
12212         (__ffshi2): New function.
12213         (__loop_ffsqi2): New function.
12214         (__ctzsi2): New function.
12215         (__ctzhi2): New function.
12216         (__clzdi2): New function.
12217         (__clzsi2): New function.
12218         (__clzhi2): New function.
12219         (__paritydi2): New function.
12220         (__paritysi2): New function.
12221         (__parityhi2): New function.
12222         (__parityqi2): New function.
12223         (__popcounthi2): New function.
12224         (__popcountsi2): New function.
12225         (__popcountdi2): New function.
12226         (__popcountqi2): New function.
12227         (__bswapsi2): New function.
12228         (__bswapdi2): New function.
12229         (__ashldi3): New function.
12230         (__ashrdi3): New function.
12231         (__lshrdi3): New function.
12232         Fix suspicous lines.
12234 2011-06-16  Richard Guenther  <rguenther@suse.de>
12236         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12237         the same as x != 0.
12238         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12239         to (bool) X & 1.
12240         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12241         equality compares against zero for the lower bit.
12243 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
12245         PR tree-optimization/49419
12246         * tree-vrp.c (execute_vrp): Call init_range_assertions
12247         before estimate_numbers_of_iterations, call
12248         free_number_of_iterations_estimates before calling
12249         remove_range_assertions.
12251 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12253         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12254         (struct partial_schedule): Add rows_length field.
12255         (verify_partial_schedule): Check rows_length.
12256         (ps_insert_empty_row): Handle rows_length.
12257         (create_partial_schedule): Likewise.
12258         (free_partial_schedule): Likewise.
12259         (reset_partial_schedule): Likewise.
12260         (create_ps_insn): Remove rest_count argument.
12261         (remove_node_from_ps): Update rows_length.
12262         (add_node_to_ps): Update rows_length and call create_ps_insn
12263         without passing row_rest_count.
12264         (rotate_partial_schedule): Update rows_length.
12266 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12268         * ddg.c (add_intra_loop_mem_dep): New function.
12269         (build_intra_loop_deps): Call it.
12271 2011-06-13  Jeff Law  <law@redhat.com>
12273         * df-problems.c (df_lr_local_compute): Manually CSE
12274         PIC_OFFSET_TABLE_REGNUM.
12275         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12276         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12278 2011-06-13  Jan Hubicka  <jh@suse.cz>
12280         * cgraphunit.c (handle_alias_pairs): New function.
12281         (cgraph_finalize_compilation_unit): Use it.
12282         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12283         as externally visible.
12285 2011-06-15  Richard Guenther  <rguenther@suse.de>
12287         * expr.c (expand_expr_real_2): Reduce all integral types to
12288         bitfield precision.
12289         (expand_expr_real_1): Likewise.
12291 2011-06-15  Martin Jambor  <mjambor@suse.cz>
12293         PR tree-optimization/48613
12294         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12295         ipa_node_params_vector is NULL.
12297 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
12299         PR debug/49382
12300         * dwarf2out.c (dw_loc_list_node): Add force field.
12301         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12302         location in the list, even if it is modified before first real insn.
12303         (output_loc_list): Emit empty ranges with force flag set.
12304         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12306 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
12308         PR target/49349
12309         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12310         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
12311         above a fence.  Update comments.
12312         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12313         placed just above it.  Do not allow NULL place_to_insert.
12315 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
12317         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12318         (slpeel_tree_peel_loop_to_edge): Don't call
12319         remove_dead_stmts_from_loop.
12320         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12321         remove irrelevant pattern statements.  For irrelevant statements
12322         check if it is the last statement of a detected pattern, use
12323         corresponding pattern statement instead.
12324         (destroy_loop_vec_info): No need to remove pattern statements,
12325         only free stmt_vec_info.
12326         (vect_transform_loop): For irrelevant statements check if it is
12327         the last statement of a detected pattern, use corresponding
12328         pattern statement instead.
12329         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12330         pattern statements.  Set basic block for the new statement.
12331         (vect_pattern_recog): Update documentation.
12332         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12333         operands of pattern statements.
12334         (vectorizable_call): Fix printing.  In case of a pattern statement
12335         use the lhs of the original statement when creating a dummy
12336         statement to replace the original call.
12337         (vect_analyze_stmt): For irrelevant statements check if it is
12338         the last statement of a detected pattern, use corresponding
12339         pattern statement instead.
12340         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12341         statements use gsi of the original statement.
12343 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12345         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12346         common/common-target-def.h.
12347         * target.def (default_target_flags, handle_option,
12348         supports_split_stack, optimization_table, init_struct,
12349         except_unwind_info, unwind_tables_default, have_named_sections):
12350         Move to common/common-target.def.
12351         * target.h (enum opt_levels, struct default_options): Move to
12352         common/common-target.h.
12353         * targhooks.c (default_except_unwind_info,
12354         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12355         default_target_handle_option, empty_optimization_table): Move to
12356         common/common-targhooks.c.
12357         * targhooks.h (default_except_unwind_info,
12358         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12359         default_target_handle_option, empty_optimization_table): Move to
12360         common/common-targhooks.h.
12361         * common/common-target-def.h: Include common/common-targhooks.h.
12362         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12363         defined.
12364         * common/common-target.def (handle_option, option_init_struct,
12365         option_optimization_table, default_target_flags,
12366         except_unwind_info, supports_split_stack, unwind_tables_default,
12367         have_named_sections): Move from target.def.
12368         (HOOK_PREFIX): Undefine at end of file.
12369         * common/common-target.h: Include input.h.
12370         (enum opt_levels, struct default_options): Move from target.h.
12371         * common/common-targhooks.c, common/common-targhooks.h: New.
12372         * config.gcc (target_has_targetm_common): Default to yes.
12373         (moxie*): Set target_has_targetm_common=no.
12374         (hppa*-*-*): Don't set target_has_targetm_common=yes.
12375         * doc/tm.texi: Regenerate.
12376         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12377         (C_TARGET_DEF_H): Add common/common-targhooks.h.
12378         (GCC_OBJS): Remove vec.o.
12379         (OBJS): Remove hooks.o and vec.o.
12380         (OBJS-libcommon-target): Add vec.o, hooks.o and
12381         common/common-targhooks.o.
12382         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12383         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12384         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12385         cfglayout.o, $(out_object_file), $(common_out_object_file)):
12386         Update dependencies.
12387         (common/common-targhooks.o): New.
12388         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
12389         * common/config/pa/pa-common.c: Include more headers.  Take
12390         copyright dates from pa.c.
12391         (pa_option_optimization_table, pa_handle_option,
12392         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12393         TARGET_HANDLE_OPTION): Move from pa.c.
12394         * common/config/alpha/alpha-common.c,
12395         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12396         common/config/bfin/bfin-common.c,
12397         common/config/cris/cris-common.c,
12398         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12399         common/config/h8300/h8300-common.c,
12400         common/config/i386/i386-common.c,
12401         common/config/ia64/ia64-common.c,
12402         common/config/iq2000/iq2000-common.c,
12403         common/config/lm32/lm32-common.c,
12404         common/config/m32c/m32c-common.c,
12405         common/config/m32r/m32r-common.c,
12406         common/config/m68k/m68k-common.c,
12407         common/config/mcore/mcore-common.c,
12408         common/config/mep/mep-common.c,
12409         common/config/microblaze/microblaze-common.c,
12410         common/config/mips/mips-common.c,
12411         common/config/mmix/mmix-common.c,
12412         common/config/mn10300/mn10300-common.c,
12413         common/config/pdp11/pdp11-common.c,
12414         common/config/picochip/picochip-common.c,
12415         common/config/rs6000/rs6000-common.c,
12416         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12417         common/config/score/score-common.c, common/config/sh/sh-common.c,
12418         common/config/sparc/sparc-common.c,
12419         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12420         common/config/vax/vax-common.c,
12421         common/config/xstormy16/xstormy16-common.c,
12422         common/config/xtensa/xtensa-common.c: New.
12423         * config/alpha/alpha.c: Include common/common-target.h.
12424         (alpha_option_optimization_table, alpha_handle_option,
12425         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12426         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12427         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12428         * config/arm/arm.c (arm_option_optimization_table,
12429         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12430         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12431         arm-common.c.
12432         * config/avr/avr.c (avr_option_optimization_table,
12433         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12434         to avr-common.c.
12435         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12436         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12437         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12438         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12439         * config/cris/cris.c (cris_option_optimization_table,
12440         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12441         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12442         cris-common.c.
12443         * config/fr30/fr30.c (fr30_option_optimization_table,
12444         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12445         to fr30-common.c.
12446         * config/frv/frv.c (frv_option_optimization_table,
12447         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12448         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12449         * config/h8300/h8300.c (h8300_option_optimization_table,
12450         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12451         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12452         * config/i386/i386-protos.h (ix86_handle_option): Declare.
12453         * config/i386/i386.c: Include common/common-target.h.
12454         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12455         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12456         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12457         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12458         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12459         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12460         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12461         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12462         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12463         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12464         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12465         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12466         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12467         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12468         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12469         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12470         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12471         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12472         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12473         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12474         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12475         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12476         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12477         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12478         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12479         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12480         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12481         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12482         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12483         ix86_option_optimization_table, ix86_option_init_struct,
12484         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12485         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12486         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12487         i386-common.c.
12488         * config/i386/t-i386 (i386.o): Update dependencies.
12489         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12490         * config/ia64/ia64.c (ia64_option_optimization_table,
12491         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12492         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12493         ia64_handle_option): Move to ia64-common.c.
12494         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12495         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12496         * config/lm32/lm32.c (lm32_option_optimization_table,
12497         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12498         to lm32-common.c.
12499         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12500         m32c-common.c.
12501         * config/m32r/m32r.c (m32r_option_optimization_table,
12502         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12503         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12504         m32r_handle_option): Move to m32r-common.c.
12505         (m32r_memory_move_cost): Remove comment referring to
12506         TARGET_HANDLE_OPTION.
12507         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12508         Move to m68k-common.c.
12509         * config/mcore/mcore.c (mcore_option_optimization_table,
12510         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12511         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12512         * config/mep/mep.c (mep_option_optimization_table,
12513         mep_handle_option, TARGET_HANDLE_OPTION,
12514         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12515         Move to mep-common.c.
12516         * config/microblaze/microblaze.c
12517         (microblaze_option_optimization_table,
12518         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12519         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12520         * config/mips/mips.c (mips_handle_option,
12521         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12522         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12523         mips-common.c.
12524         * config/mmix/mmix.c (mmix_option_optimization_table,
12525         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12526         Move to mmix-common.c.
12527         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12528         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12529         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12530         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12531         * config/pa/pa.c: Include common/common-target.h.
12532         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12533         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12534         pa_handle_option): Move to pa-common.c.
12535         (pa_option_override): Use targetm_common.except_unwind_info.
12536         (pa_asm_output_mi_thunk, pa_function_section): Use
12537         targetm_common.have_named_sections.
12538         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12539         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12540         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12541         pdp11_handle_option, pdp11_option_init_struct): Move to
12542         pdp11-common.c.
12543         * config/picochip/picochip.c (picochip_option_optimization_table,
12544         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12545         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12546         * config/rs6000/rs6000.c: Include common/common-target.h.
12547         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12548         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12549         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12550         rs6000_handle_option): Move to rs6000-common.c.
12551         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12552         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12553         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12554         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12555         * config/s390/s390.c (processor_flags_table,
12556         s390_option_optimization_table, s390_option_init_struct,
12557         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12558         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12559         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12560         * config/s390/s390.h (processor_flags_table): Declare.
12561         * config/score/score.c (score_option_optimization_table,
12562         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12563         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12564         score_handle_option): Move to score-common.c.
12565         * config/sh/sh.c (sh_option_optimization_table,
12566         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12567         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12568         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12569         * config/sparc/sparc.c: Include common/common-target.h.
12570         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12571         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12572         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12573         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12574         spu_option_init_struct): Move to spu-common.c.
12575         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12576         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12577         * config/v850/v850.c (small_memory_physical_max,
12578         v850_handle_memory_optionn v850_handle_option,
12579         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12580         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12581         v850-common.c.
12582         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12583         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12584         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12585         Move to xtensa-common.c.
12586         * cfglayout.c: Include common/common-target.h.
12587         (fixup_reorder_chain): Use targetm_common.have_named_sections.
12588         * cfgrtl.c: Include common/common-target.h.
12589         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12590         targetm_common.have_named_sections.
12591         * dbxout.c: Include common/common-target.h.
12592         (dbxout_function_end): Use targetm_common.have_named_sections.
12593         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12594         targetm_common.except_unwind_info.
12595         * dwarf2out.c: Include common/common-target.h.
12596         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12597         dwarf2out_begin_prologue, dwarf2out_frame_init,
12598         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12599         targetm_common.except_unwind_info.
12600         * except.c: Include common/common-target.h.
12601         (init_eh, finish_eh_generation,
12602         output_one_function_exception_table): Use
12603         targetm_common.except_unwind_info.
12604         (switch_to_exception_section): Use targetm_common.have_named_sections.
12605         * explow.c: Include common/common-target.h.
12606         * expr.c: Include common/common-target.h.
12607         (build_personality_function): Use targetm_common.except_unwind_info.
12608         * function.c: Include common/common-target.h.
12609         (expand_function_end): Use targetm_common.except_unwind_info.
12610         * haifa-sched.c: Include common/common-target.h.
12611         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12612         * lto-opts.c: Include common/common-target.h instead of target.h.
12613         (lto_reissue_options): Use targetm_common.handle_option.
12614         * opts.c: Include common/common-target.h.
12615         (target_handle_option): Use targetm_common.handle_option.
12616         (init_options_struct): Update comment referring to
12617         targetm.target_option.optimization.  Use
12618         targetm_common.default_target_flags,
12619         targetm_common.unwind_tables_default and
12620         targetm_common.option_init_struct.
12621         (default_options_optimization): Use
12622         targetm_common.option_optimization_table.
12623         (finish_options): Use targetm_common.except_unwind_info,
12624         targetm_common.unwind_tables_default,
12625         targetm_common.have_named_sections and
12626         targetm_common.supports_split_stack.
12627         * toplev.c: Include common/common-target.h.
12628         (process_options): Use targetm_common.have_named_sections.
12629         * tree-tailcall.c: Include common/common-target.h.
12630         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12631         * tree.c: Include common/common-target.h.
12632         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12633         * varasm.c: Include common/common-target.h.
12634         (resolve_unique_section, hot_function_section,
12635         default_function_section): Use targetm_common.have_named_sections.
12637 2011-06-14  Easwaran Raman  <eraman@google.com>
12639         PR rtl-optimization/44194
12640         * dse.c: Include tree-flow.h
12641         (insn_info): Add new field non_frame_wild_read.
12642         (group_info): Add new fields escaped_n and escaped_p.
12643         (kill_on_calls): New variable.
12644         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12645         (dse_step0): Initialize kill_on_calls.
12646         (can_escape): New function.
12647         (set_usage_bits): Add additional parameter; record information
12648         about escaped locations.
12649         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12650         (dse_step2_nospill): Set kill_on_calls based on
12651         group->escaped_n and group->escaped_n.
12652         (add_wild_read): Refactor into...
12653         (reset_active_stores): ... New function, and
12654         (free_read_records): ... New function.
12655         (add_non_frame_wild_read): New function.
12656         (scan_insn): Call add_non_frame_wild_read on non-const calls.
12657         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12658         (dse_step5_nospill): Call scan_reads_nospill for instructions
12659         marked as non_frame_wild_read.
12660         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12662 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12664         * common/common-target-def.h, common/common-target.def,
12665         common/common-target.h, common/config/default-common.c,
12666         common/config/pa/pa-common.c: New files.
12667         * Makefile.in (common_out_file, common_out_object_file,
12668         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12669         (OBJS-libcommon-target): Include $(common_out_object_file).
12670         (prefix.o): Update dependencies.
12671         ($(common_out_object_file), common/common-target-hooks-def.h,
12672         s-common-target-hooks-def-h): New.
12673         (s-tm-texi): Also check timestamp on common-target.def.
12674         (build/genhooks.o): Update dependencies.
12675         * config.gcc (common_out_file, target_has_targetm_common): Define.
12676         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12677         TARGET_ALWAYS_STRIP_DOTDOT.
12678         * configure.ac (common_out_object_file): Define.
12679         (common_out_file, common_out_object_file): Substitute.
12680         (common): Create directory.
12681         * configure: Regenerate.
12682         * doc/tm.texi.in (targetm_common): Document.
12683         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12684         * doc/tm.texi: Regenerate.
12685         * genhooks.c (hook_array): Also include common/common-target.def.
12686         * prefix.c (tm.h): Don't include.
12687         (common/common-target.h): Include.
12688         (ALWAYS_STRIP_DOTDOT): Don't define.
12689         (update_path): Use targetm_common.always_strip_dotdot instead of
12690         ALWAYS_STRIP_DOTDOT.
12691         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12693 2011-06-14  David Li  <davidxl@google.com>
12695         * passes.c (execute_function_todo): Remove TODO_dump_func.
12696         (execute_one_pass): Remove TODO_dump_func.
12697         (execute_function_dump): New function.
12698         * tree-vrp.c: Remove TODO_dump_func.
12699         * regrename.c: Remove TODO_dump_func.
12700         * fwprop.c: Remove TODO_dump_func.
12701         * tree-into-ssa.c: Remove TODO_dump_func.
12702         * tree-complex.c: Remove TODO_dump_func.
12703         * tracer.c: Remove TODO_dump_func.
12704         * tree-loop-distribution.c: Remove TODO_dump_func.
12705         * postreload-gcse.c: Remove TODO_dump_func.
12706         * postreload.c: Remove TODO_dump_func.
12707         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12708         * tree-tailcall.c: Remove TODO_dump_func.
12709         * ipa-cp.c: Remove TODO_dump_func.
12710         * final.c: Remove TODO_dump_func.
12711         * tree-emutls.c: Remove TODO_dump_func.
12712         * omp-low.c: Remove TODO_dump_func.
12713         * tree-ssa-dse.c: Remove TODO_dump_func.
12714         * tree-ssa-uncprop.c: Remove TODO_dump_func.
12715         * auto-inc-dec.c: Remove TODO_dump_func.
12716         * reorg.c: Remove TODO_dump_func.
12717         * tree-ssa-copyrename.c: Remove TODO_dump_func.
12718         * tree-ssa-ccp.c: Remove TODO_dump_func.
12719         * compare-elim.c: Remove TODO_dump_func.
12720         * mode-switching.c: Remove TODO_dump_func.
12721         * modulo-sched.c: Remove TODO_dump_func.
12722         * tree-call-cdce.c: Remove TODO_dump_func.
12723         * cse.c: Remove TODO_dump_func.
12724         * web.c: Remove TODO_dump_func.
12725         * tree-stdarg.c: Remove TODO_dump_func.
12726         * lto-streamer-out.c: Remove TODO_dump_func.
12727         * tree-ssa-math-opts.c: Remove TODO_dump_func.
12728         * tree-ssa-dom.c: Remove TODO_dump_func.
12729         * tree-nrv.c: Remove TODO_dump_func.
12730         * loop-init.c: Remove TODO_dump_func.
12731         * gimple-low.c: Remove TODO_dump_func.
12732         * ipa-inline.c: Remove TODO_dump_func.
12733         * tree-ssa-sink.c: Remove TODO_dump_func.
12734         * jump.c: Remove TODO_dump_func.
12735         * ifcvt.c: Remove TODO_dump_func.
12736         * tree-ssa-loop.c: Remove TODO_dump_func.
12737         * recog.c: Remove TODO_dump_func.
12738         * dse.c: Remove TODO_dump_func.
12739         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12740         * matrix-reorg.c: Remove TODO_dump_func.
12741         * tree-eh.c: Remove TODO_dump_func.
12742         * regmove.c: Remove TODO_dump_func.
12743         * function.c: Remove TODO_dump_func.
12744         * tree-vectorizer.c: Remove TODO_dump_func.
12745         * ipa-split.c: Remove TODO_dump_func.
12746         * gcse.c: Remove TODO_dump_func.
12747         * tree-if-conv.c: Remove TODO_dump_func.
12748         * init-regs.c: Remove TODO_dump_func.
12749         * tree-ssa-phiopt.c: Remove TODO_dump_func.
12750         * implicit-zee.c: Remove TODO_dump_func.
12751         * lower-subreg.c: Remove TODO_dump_func.
12752         * bt-load.c: Remove TODO_dump_func.
12753         * tree-dfa.c: Remove TODO_dump_func.
12754         * except.c: Remove TODO_dump_func.
12755         * emit-rtl.c: Remove TODO_dump_func.
12756         * store-motion.c: Remove TODO_dump_func.
12757         * cfgexpand.c: Remove TODO_dump_func.
12758         * tree-cfgcleanup.c: Remove TODO_dump_func.
12759         * cfgcleanup.c: Remove TODO_dump_func.
12760         * tree-ssa-pre.c: Remove TODO_dump_func.
12761         * tree-sra.c: Remove TODO_dump_func.
12762         * tree-mudflap.c: Remove TODO_dump_func.
12763         * tree-ssa-copy.c: Remove TODO_dump_func.
12764         * cfglayout.c: Remove TODO_dump_func.
12765         * tree-ssa-forwprop.c: Remove TODO_dump_func.
12766         * tree-ssa-dce.c: Remove TODO_dump_func.
12767         * ira.c: Remove TODO_dump_func.
12768         * tree-ssa.c: Remove TODO_dump_func.
12769         * integrate.c: Remove TODO_dump_func.
12770         * tree-optimize.c: Remove TODO_dump_func.
12771         * tree-ssa-phiprop.c: Remove TODO_dump_func.
12772         * tree-object-size.c: Remove TODO_dump_func.
12773         * combine.c: Remove TODO_dump_func.
12774         * bb-reorder.c: Remove TODO_dump_func.
12775         * cprop.c: Remove TODO_dump_func.
12776         * var-tracking.c: Remove TODO_dump_func.
12777         * tree-profile.c: Remove TODO_dump_func.
12778         * tree-vect-generic.c: Remove TODO_dump_func.
12779         * reg-stack.c: Remove TODO_dump_func.
12780         * sched-rgn.c: Remove TODO_dump_func.
12781         * tree-ssa-structalias.c: Remove TODO_dump_func.
12782         * tree-switch-conversion.c: Remove TODO_dump_func.
12783         * tree-cfg.c: Remove TODO_dump_func.
12784         * tree-ssa-reassoc.c: Remove TODO_dump_func.
12785         * combine-stack-adj.c: Remove TODO_dump_func.
12786         * dce.c: Remove TODO_dump_func.
12787         * tree-ssanames.c: Remove TODO_dump_func.
12788         * regcprop.c: Remove TODO_dump_func.
12790 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12792         PR middle-end/47364
12793         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12794         and properly handle result not in Pmode.
12796 2011-06-14  Robert Millan  <rmh@gnu.org>
12798         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12799         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12800         `config/linux.h'.
12802         * config/i386/kfreebsd-gnu64.h: New file.
12803         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12804         with `i386/kfreebsd-gnu64.h'.
12806         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12807         (GNU_USER_LINK_EMULATION64): New macros.
12808         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12809         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12810         of hardcoding `elf_i386' and `elf_x86_64'.
12812 2011-06-14  Nick Clifton  <nickc@redhat.com>
12814         PR target/49403
12815         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12817         PR target/49402
12818         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12820 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
12822         PR fortran/49103
12823         * tree.h (DECL_NONSHAREABLE): Define.
12824         (struct tree_decl_common): Change decl_common_unused to
12825         decl_nonshareable_flag.
12826         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12827         Ignore vars with DECL_NONSHAREABLE bit set.
12828         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12829         on stores to automatic aggregate vars.
12831         PR rtl-optimization/49390
12832         Revert:
12833         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12835         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12836         MEM_ALIAS_SET.
12838 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
12839             Tom de Vries  <tom@codesourcery.com>
12841         PR target/45098
12842         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12843         Document changed semantics.
12844         (max_stmt_executions, max_stmt_executions_int): Declare.
12845         * tree-data-ref.c (estimated_loop_iterations)
12846         (estimated_loop_iterations_int): Move functions...
12847         * tree-ssa-loop-niter.c (estimated_loop_iterations)
12848         (estimated_loop_iterations_int): here.
12849         (record_estimate): Change nb_iterations_upper_bound and
12850         nb_iterations_estimate semantics.
12851         (max_stmt_executions, max_stmt_executions_int): New function.
12852         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12853         (max_stmt_executions_tree): this.
12854         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12855         estimated_loop_iterations_tree.
12856         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12857         max_stmt_executions_int instead of estimated_loop_iterations_int.
12858         * predict.c (predict_loops): Idem.
12859         * tree-parloops.c (parallelize_loops): Idem.
12860         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12861         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12862         (init_omega_for_ddr_1): Idem.
12863         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12864         (loop_prefetch_arrays): Idem
12865         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12866         max_stmt_executions instead of estimated_loop_iterations.
12867         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12868         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12869         instead of nb_iterations_upper_bound.
12871 2011-06-13  Jan Hubicka  <jh@suse.cz>
12873         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12875 2011-06-14  Richard Henderson  <rth@redhat.com>
12877         PR debug/48459
12878         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12879         (based_loc_descr): Assert it's true.
12880         (compute_frame_pointer_to_fb_displacement): Set it, rather than
12881         aborting immediately.
12883 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
12884             Mingfeng Wu  <mingfeng@faraday-tech.com>
12886         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12888 2011-06-13  Jan Hubicka  <jh@suse.cz>
12890         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12892 2011-06-13  Jan Hubicka  <jh@suse.cz>
12894         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12895         similarly to DECL_COMDAT.
12896         * cgraphunit.c (cgraph_analyze_function): Likewise.
12897         * ipa.c (function_and_variable_visibility): Likewise.
12899 2011-06-13  Jan Hubicka  <jh@suse.cz>
12901         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12902         BINFO_VIRTUALS when streaming for ltrans unit.
12904 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
12906         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12907         (movdi_internal64): Same.
12909 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12911         PR target/44618
12912         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12913         a set of similar patterns, where the MATCH_OPERAND for the function
12914         argument is replaced with individual references to hardware registers.
12915         (save_fpregs_<mode>): Ditto
12916         (restore_gpregs_<mode>): Ditto
12917         (return_and_restore_gpregs_<mode>): Ditto
12918         (return_and_restore_fpregs_<mode>): Ditto
12919         (return_and_restore_fpregs_aix_<mode>): Ditto
12921 2011-06-13  Jan Hubicka  <jh@suse.cz>
12923         * ipa-utils.c (postorder_stack): New structure.
12924         (ipa_reverse_postorder): Handle aliases.
12926 2011-06-13  Jan Hubicka  <jh@suse.cz>
12928         * ipa-inline.c (reset_edge_caches): Walk aliases.
12929         (update_caller_keys): Do not test inlinability of aliases.
12930         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12931         (do_estimate_growth): Fix typo.
12933 2011-06-13  Jan Hubicka  <jh@suse.cz>
12935         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12936         (can_remove_node_now_p): ... here; handle same comdat groups.
12937         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12938         (inline_call): Update use of can_remove_node_now_p.
12940 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12942         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12943         condition to disallow non-identical memory locations.
12944         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12945         preference to bit manipulation instructions.
12947 2011-06-13  Jan Hubicka  <jh@suse.cz>
12949         * cgraph.c (cgraph_for_node_thunks_and_aliases,
12950         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12951         (nonremovable_p): New function.
12952         (cgraph_can_remove_if_no_direct_calls_p): New function.
12953         (used_from_object_file_p): New functoin.
12954         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12955         references from aliases.
12956         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12957         * ipa-inline.c (check_caller_edge): New function.
12958         (want_inline_function_called_once_p): Use it; accept aliases called
12959         once, too.
12960         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12962 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12964         PR target/48454
12965         * config/arm/neon.md (vec_pack_trunc): Set the lengths
12966         correctly for the case with Quad vectors.
12968 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
12969            Ira Rosen  <ira.rosen@linaro.org>
12971         PR tree-optimization/49352
12972         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12973         all, make sure loop_use_stmt after the loop is a def stmt of a used
12974         SSA_NAME that is the only one defined inside of the loop.  Don't
12975         check for COND_EXPR and GIMPLE_BINARY_RHS.
12976         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12977         check_reduction is true.
12979 2011-06-11  Jan Hubicka  <jh@suse.cz>
12981         PR middle-end/49373
12982         * ipa.c (cgraph_externally_visible_p): Check resolution info.
12984 2011-06-11  Jan Hubicka  <jh@suse.cz>
12986         PR middle-end/48836
12987         * ipa-inline-transform.c: Include tree-pass.h
12988         (inline_transform): Set TODO_update_ssa_only_virtuals.
12989         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12991 2011-06-11  Jan Hubicka  <jh@suse.cz>
12993         PR middle-end/49378
12994         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12995         aliases and thunks.
12997 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
12999         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
13000         Take number of iterations to peel into account for equally frequent
13001         misalignment values.
13003 2011-06-11  Jan Hubicka  <jh@suse.cz>
13005         * lto-streamer-out.c (produce_symtab): Stream out the newly
13006         represented aliases.
13008 2011-06-11  Jan Hubicka  <jh@suse.cz>
13010         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
13011         varying args.
13012         (ipa_update_after_lto_read): Likewise.
13013         (ipa_write_node_info): Do not sream call_with_var_arguments.
13014         (ipa_read_node_info): Likewise.
13016 2011-06-11  Jan Hubicka  <jh@suse.cz>
13018         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
13020 2011-06-11  Jan Hubicka  <jh@suse.cz>
13022         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
13023         (lto_symtab_resolve_can_prevail_p): Likewise.
13024         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
13025         * cgraph.c (same_body_aliases_done): New global var.
13026         (cgraph_same_body_alias_1): Rename to ...
13027         (cgraph_create_function_alias): ... this one; reorg to new
13028         representation.
13029         (cgraph_same_body_alias): Use cgraph_create_function_alias;
13030         record references when asked to.
13031         (cgraph_add_thunk): Fix formating.
13032         (cgraph_get_node): Kill same body alias code.
13033         (cgraph_node_for_asm): Likewise.
13034         (cgraph_remove_same_body_alias): Remove.
13035         (cgraph_remove_node): Kill same body alias code.
13036         (cgraph_mark_address_taken_node): Mark also the aliased function
13037         as having address taken.
13038         (dump_cgraph_node): Dump same body aliases.
13039         (cgraph_for_node_thunks_and_aliases): Update for new alias
13040         representation.
13041         (cgraph_for_node_and_aliases): Likewise.
13042         * cgraph.h (same_body): Kll pointer.
13043         (same_body_alias): Update comment.
13044         (same_body_aliases_done): Declare.
13045         (cgraph_remove_same_body_alias): Remove declaration.
13046         (cgraph_create_function_alias): Declare.
13047         (cgraph_process_same_body_aliases): Declare.
13048         (cgraph_function_with_gimple_body_p): Check for alias.
13049         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
13050         (cgraph_alias_aliased_node): New function.
13051         (cgraph_function_node): Update for new aliases.
13052         (cgraph_function_or_thunk_node): Likewise.
13053         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
13054         (inline_call): Remove dead aliases.
13055         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
13056         name hack for same body aliases.
13057         (clone_of_p): Look through aliases.
13058         (verify_cgraph_node): Verify aliases.
13059         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
13060         (cgraph_process_same_body_aliases): New function.
13061         (process_function_and_variable_attributes): Disable weakref warning on
13062         alias.
13063         (cgraph_analyze_functions): Handle aliases.
13064         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
13065         (assemble_thunks): Rename to ...
13066         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
13067         (cgraph_expand_function): Remove alias output code.
13068         (cgraph_output_in_order): Skip aliases.
13069         (cgraph_preserve_function_body_p): Aliases don't need preserving.
13070         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
13071         (ipa_record_reference): Do not assert on alias references.
13072         (ipa_ref_has_aliases_p): New function.
13073         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
13074         (ipa_ref_has_aliases_p): Declare.
13075         * lto-cgraph.c (lto_output_node): Handle aliases.
13076         (input_node): Likewise.
13077         * lto-streamer-out.c (lto_output): Skip aliases.
13078         (produce_symtab): Kill same_body_alias code.
13079         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
13080         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
13081         * ipa-inline.c (update_caller_keys): Walk aliases.
13082         (inline_small_functions): Fix thinko in previous patch.
13083         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
13084         (function_and_variable_visibility): Do not walk same body aliases.
13085         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
13086         (ipa_pta_execute): Use it.
13088 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13090         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13091         (*vec_dupv2df): Rename from vec_dupv2df.
13092         (vec_dupv2df): New expander.
13094 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13096         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13098 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13100         * config/i386/i386.md: Use default value in "isa" attribute.
13101         * config/i386/sse.md: Ditto.
13102         * config/i386/mmx.md: Ditto.
13104 2011-06-10  Wei Guozhi  <carrot@google.com>
13106         PR target/45335
13107         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13108         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13109         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13110         related peephole2.
13111         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13112         related peephole2.
13113         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13114         (arm_legitimate_ldrd_p): New prototype.
13115         (arm_output_ldrd): New prototype.
13116         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13117         (arm_legitimate_ldrd_p): New function.
13118         (arm_output_ldrd): New function.
13120 2011-06-10  David Li  <davidxl@google.com>
13122         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13123         * passes.c (passr_eq): New function.
13124         (create_pass_tab): New function.
13125         (pass_traverse): New function.
13126         (dump_one_pass): New function.
13127         (dump_pass_list): New function.
13128         (dump_passes): New function.
13130 2011-06-10  Jan Hubicka  <jh@suse.cz>
13132         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13133         setting the nothrow flag.
13134         * ipa-reference.c (propagate): Skip aliases.
13135         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13136         (propagate_nothrow): Skip aliases; do not update cgraph.
13137         (local_pure_const): Do not update cgraph.
13138         * tree-profile.c (tree_profiling): Do fixup_cfg.
13140 2011-06-10  Jan Hubicka  <jh@suse.cz>
13142         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13143         (cgraph_local_node_p): ... here; handle aliases.
13144         (has_addr_references_p): Break out from ...;
13145         (cgraph_remove_unreachable_nodes) ... here.
13147 2011-06-10  Jan Hubicka  <jh@suse.cz>
13149         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13150         * common.opt (flag_inline_functions_called_once): Do not
13151         initialize to 1.
13153 2011-06-10  Jan Hubicka  <jh@suse.cz>
13155         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13156         (ipcp_initialize_node_lattices): Do not deal with aliases;
13157         Do not try to propagate through thunks.
13158         (ipcp_change_tops_to_bottom): Do not deal with aliases.
13160 2011-06-10  Jan Hubicka  <jh@suse.cz>
13162         * ipa-prop.c (ipa_write_node_info): Stream jump functions
13163         for indirect calls.
13164         (ipa_read_node_info): Likewise.
13166 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13168         PR lto/49302
13169         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13170         (build_and_insert_call): Likewise.
13171         (build_and_insert_ref): New.
13172         (gimple_expand_builtin_pow): Minor cleanup.
13173         (gimple_expand_builtin_cabs): New.
13174         (execute_cse_sincos): Add case for BUILT_IN_CABS.
13176 2011-06-10  Jan Hubicka  <jh@suse.cz>
13178         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13179         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13180         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13181         (ipcp_propagate_stage): Skip aliases when propagating.
13182         (ipcp_need_redirect_p): Skip aliases.
13183         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13184         collect_callers_of_node.
13185         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13186         for aliases.
13187         (ipa_compute_jump_functions): Look through aliases.
13189 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13191         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13193 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13195         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13196         Adjust comments.
13197         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13199 2011-06-10  Jan Hubicka  <jh@suse.cz>
13201         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13202         Update call of gimple_get_virt_method_for_binfo.
13203         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13204         refuse_thunks parameter.
13205         (gimple_fold_call): Update.
13206         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13208 2011-06-10  Jan Hubicka  <jh@suse.cz>
13210         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13211         (not_all_callers_have_enough_arguments_p): ... this one; turn into
13212         worker for cgraph_for_node_and_aliases.
13213         (convert_callers_for_node): Break out from ...
13214         (convert_callers): ... here.
13215         (modify_function): Use collect_callers_of_node.
13216         (ipa_early_sra): Use cgraph_for_node_and_aliases.
13218 2011-06-10  Richard Guenther  <rguenther@suse.de>
13220         PR tree-optimization/49361
13221         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13222         when not already in gimple form.
13224 2011-06-10  Richard Guenther  <rguenther@suse.de>
13226         PR bootstrap/49344
13227         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13228         FOR_EACH_PHI_OR_STMT_USE.
13230 2011-06-10  Jan Hubicka  <jh@suse.cz>
13232         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13233         (clone_inlined_nodes): ... here.
13234         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13235         to real destination prior inlining.
13236         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13237         can_early_inline_edge_p, want_early_inline_function_p,
13238         want_early_inline_function_p, want_inline_small_function_p,
13239         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13240         edge_badness, update_all_callee_keys, lookup_recursive_calls,
13241         add_new_edges_to_heap, inline_small_functions, flatten_function,
13242         inline_always_inline_functions, early_inline_small_functions): Use
13243         cgraph_function_or_thunk_node.
13244         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13245         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13246         (do_estimate_edge_growth_1): Break out from ...
13247         (do_estimate_growth) ... here; walk aliases.
13248         (inline_generate_summary): Skip aliases.
13250 2011-06-10  Richard Guenther  <rguenther@suse.de>
13252         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13253         forward when combining, visit inserted stmts when a stmt was changed.
13255 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
13257         * tree.h (error_operand_p): Add.
13258         * dbxout.c (dbxout_type_fields): Use the latter.
13259         * c-decl.c (add_stmt): Likewise.
13260         * gimplify.c (omp_add_variable, omp_notice_variable,
13261         gimplify_scan_omp_clauses): Likewise.
13263 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
13265         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13266         when a value is actually passed in regs.
13268 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
13269             Laurent Rougé  <laurent.rouge@menta.fr>
13271         * doc/invoke.texi (SPARC options): Add -mflat.
13272         * config/sparc/sparc.opt: Likewise.
13273         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13274         (sparc_flat_expand_prologue): Declare.
13275         (sparc_flat_expand_epilogue): Likewise.
13276         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13277         (CPP_ENDIAN_SPEC): Replace with...
13278         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
13279         (CPP_SPEC): Adjust to above change.
13280         (EXTRA_SPECS): Likewise.
13281         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13282         (INCOMING_REGNO): Likewise.
13283         (OUTGOING_REGNO): Likewise.
13284         (LOCAL_REGNO): Likewise.
13285         (SETUP_FRAME_ADDRESSES): Likewise.
13286         (FIXED_REGISTERS): Set 0 for %fp.
13287         (CALL_USED_REGISTERS): Likewise.
13288         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13289         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13290         (RETURN_ADDR_REGNUM): Define.
13291         (RETURN_ADDR_RTX): Use it.
13292         (INCOMING_RETURN_ADDR_REGNUM): Define.
13293         (INCOMING_RETURN_ADDR_RTX): Use it.
13294         (DWARF_FRAME_RETURN_COLUMN): Likewise.
13295         (EH_RETURN_REGNUM): Define.
13296         (EH_RETURN_STACKADJ_RTX): Use it.
13297         (EH_RETURN_HANDLER_RTX): Delete.
13298         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13299         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13300         Delete.
13301         (struct machine_function): Add frame_size, apparent_frame_size,
13302         frame_base_reg, frame_base_offset, n_global_fp_regs and
13303         save_local_in_regs_p fields.
13304         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13305         sparc_frame_base_offset, sparc_n_global_fp_regs,
13306         sparc_save_local_in_regs_p): New macros.
13307         (sparc_option_override): Error out if -fcall-saved-REG is specified
13308         for Out registers.
13309         (eligible_for_restore_insn): Fix formatting.
13310         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
13311         (eligible_for_sibcall_delay): Likewise.
13312         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13313         (sparc_legitimate_address_p): Adjust to above change.
13314         (save_global_or_fp_reg_p): New predicate.
13315         (return_addr_reg_needed_p): Likewise.
13316         (save_local_or_in_reg_p): Likewise.
13317         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
13318         (SORR_SAVE, SORR_RESTORE): Delete.
13319         (sorr_pred_t): New typedef.
13320         (sorr_act_t): New enum.
13321         (save_or_restore_regs): Rename to...
13322         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
13323         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13324         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
13325         mechanism.  Add CFI information for double-word saves in 32-bit mode.
13326         (emit_adjust_base_to_offset): New function extracted from...
13327         (emit_save_or_restore_regs): ...this.  Rename the rest to...
13328         (emit_save_or_restore_regs_global_fp_regs): ...this.
13329         (emit_save_or_restore_regs_local_in_regs): New function.
13330         (gen_create_flat_frame_[123]): New functions.
13331         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
13332         (sparc_flat_expand_prologue): New function.
13333         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13334         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
13335         (sparc_flat_expand_epilogue): New function.
13336         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13337         (output_return): Likewise.
13338         (output_sibcall): Likewise.
13339         (sparc_output_mi_thunk): Likewise.
13340         (sparc_frame_pointer_required): Likewise.
13341         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13342         function optimization.
13343         * config/sparc/sparc.md (flat): New attribute.
13344         (prologue): Add TARGET_FLAT handling.
13345         (save_register_window): Disable if TARGET_FLAT.
13346         (create_flat_frame_[123]): New patterns.
13347         (epilogue): Add TARGET_FLAT handling.
13348         (sibcall_epilogue): Likewise.
13349         (eh_return): New expander.
13350         (eh_return_internal): New insn and splitter.
13351         (return_internal): Add TARGET_FLAT handling.
13352         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13353         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13354         (nonlocal_goto): Add TARGET_FLAT handling.
13355         * config/sparc/t-elf: Add -mflat multilib.
13356         * config/sparc/t-leon: Likewise.
13358 2011-06-10  Jan Hubicka  <jh@suse.cz>
13360         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13361         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13362         (self_recursive_p): Use cgraph_function_node.
13363         (propagate_pure_const): Likewise.
13364         (propagate_nothrow): Likewise.
13365         * ipa-reference.c (ipa_reference_get_not_read_global): Use
13366         cgraph_function_node.
13367         (propagate_bits): Likewise.
13368         (propagate): Likewise.
13370 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13371             Richard Earnshaw  <rearnsha@arm.com>
13373         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13374         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13375         (*thumb2_movdi_vfp): Delete.
13376         (*arm_movdi_vfp_cortexa8): Delete.
13377         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13378         (*movdi_vfp_cortexa8): Likewise.
13380 2011-06-10  Richard Guenther  <rguenther@suse.de>
13382         * stor-layout.c (initialize_sizetypes): Give names to all
13383         sizetype kinds.
13385 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
13387         PR tree-optimization/49318
13388         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13389         irrelevant pattern statements.
13391 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13393         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13395         PR bootstrap/49354
13396         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13397         to last assignment.
13399 2011-06-09  Jan Hubicka  <jh@suse.cz>
13401         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13402         do not recompute reachable flag.
13403         (cgraph_finalize_function, cgraph_analyze_functions): Set
13404         redefined_extern_inline here.
13406 2011-06-09  Jan Hubicka  <jh@suse.cz>
13408         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13409         (cgraph_only_called_directly_p): ... this one; bring offline.
13410         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13411         varpool_used_from_object_file_p): Drop names from the declaratoin.
13412         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13413         collect_callers_of_node): New.
13414         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13415         (cgraph_edge_recursive_p): Use cgraph_function_node.
13416         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13417         (cgraph_node_cannot_be_local_p_1): Break out from ...
13418         (cgraph_node_can_be_local_p): ... here; walk aliases.
13419         (cgraph_for_node_thunks_and_aliases): New function.
13420         (cgraph_for_node_and_aliases): New function.
13421         (cgraph_make_node_local_1): Break out from ...
13422         (cgraph_make_node_local) ... here; use
13423         cgraph_for_node_thunks_and_aliases.
13424         (cgraph_set_nothrow_flag_1): Break out from ...
13425         (cgraph_set_nothrow_flag) ... here;
13426         use cgraph_for_node_thunks_and_aliases.
13427         (cgraph_set_const_flag_1): Break out from ...
13428         (cgraph_set_const_flag) ... here;
13429         use cgraph_for_node_thunks_and_aliases.
13430         (cgraph_set_pure_flag_1): Break out from ...
13431         (cgraph_set_pure_flag) ... here;
13432         use cgraph_for_node_thunks_and_aliases.
13433         (cgraph_propagate_frequency_1): Break out from ...
13434         (cgraph_propagate_frequency) ... here; use
13435         cgraph_for_node_thunks_and_aliases.
13436         (cgraph_used_from_object_file_p): Do not care about aliases.
13437         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13438         New functions.
13439         (collect_callers_of_node_1, collect_callers_of_node): New functions.
13441 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13443         PR rtl-optimization/49154
13444         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13445         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13446         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13447         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13448         * config/cris/cris.h (cris_register_move_cost): Remove
13449         !TARGET_V32 code.  Tweak comments.
13451 2011-06-09  Jan Hubicka  <jh@suse.cz>
13453         * cgraphbuild.c (record_eh_tables): Mark personality function as having
13454         address taken.
13456 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13458         PR rtl-optimization/49154
13459         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13460         is a matching slot in the hashtable, assign it to classes_ptr.
13462         PR rtl-optimization/49154
13463         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13464         register classes.
13465         * doc/tm.texi: Regenerate.
13467 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13469         PR target/49307
13470         * config/sh/sh.md (UNSPEC_CHKADD): New.
13471         (chk_guard_add): New define_insn_and_split.
13472         (symGOT_load): Use chk_guard_add instead of blockage.
13474 2011-06-09  Kai Tietz  <ktietz@redhat.com>
13476         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13478 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13480         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13482 2011-06-09  Wei Guozhi  <carrot@google.com>
13484         PR target/46975
13485         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13486         (peephole2 for conditional move): Generate 16 bit instructions.
13488 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
13490         * config/i386/i386.md (*movdi_internal_rex64): Merge
13491         alternatives 6 and 8.
13493 2011-06-09  David Li  <davidxl@google.com>
13495         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13496         * passes.c (passr_eq): New function.
13497         (create_pass_tab): New function.
13498         (pass_traverse): New function.
13499         (dump_one_pass): New function.
13500         (dump_pass_list): New function.
13501         (dump_passes): New function.
13503 2011-06-09  David Li  <davidxl@google.com>
13505         * tree-complex.c (tree_lower_complex): Gate cleanup.
13506         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13507         (execute_optimize_stdarg): Ditto.
13508         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13509         (execute_cleanup_eh_1): Ditto.
13510         (execute_cleanup_eh): Ditto.
13511         * gcse.c (gate_rtl_pre): Ditto.
13512         (execute_rtl_pre): Ditto.
13513         * except.c (finish_eh_generation): Ditto.
13514         (convert_to_eh_region_ranges): Ditto.
13515         * cprop.c (one_cprop_pass): Ditto.
13517 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
13519         PR target/48673
13520         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13521         in all basic blocks.
13523 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13525         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13526         (HAVE_ENABLE_EXECUTE_STACK): Define.
13527         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13528         (HAVE_ENABLE_EXECUTE_STACK): Define.
13529         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13530         (HAVE_ENABLE_EXECUTE_STACK): Define.
13531         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13532         (ENABLE_EXECUTE_STACK): Remove.
13533         (HAVE_ENABLE_EXECUTE_STACK): Define.
13534         [IN_LIBGCC2]: Don't include <windows.h>.
13535         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13536         (HAVE_ENABLE_EXECUTE_STACK): Define.
13537         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13538         (HAVE_ENABLE_EXECUTE_STACK): Define.
13539         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13540         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13541         (HAVE_ENABLE_EXECUTE_STACK): Define.
13542         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13543         (HAVE_ENABLE_EXECUTE_STACK): Define.
13544         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13545         (HAVE_ENABLE_EXECUTE_STACK): Define.
13546         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13547         (HAVE_ENABLE_EXECUTE_STACK): Define.
13548         * config/alpha/alpha.c (alpha_trampoline_init): Test
13549         HAVE_ENABLE_EXECUTE_STACK.
13550         * config/i386/i386.c (ix86_trampoline_init): Likewise.
13551         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13552         (sparc64_initialize_trampoline): Likewise.
13553         * libgcc2.c [L_enable_execute_stack]: Remove.
13554         * system.h (ENABLE_EXECUTE_STACK): Poison.
13555         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13556         * doc/tm.texi: Regenerate.
13557         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13559 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
13561         PR middle-end/49308
13562         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13563         variable.  After resetting and rescanning insn continue with previous
13564         statement.
13566 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13568         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13569         (gcc_cv_ld_hidden): Likewise.
13570         * configure: Regenerate.
13571         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13572         (ix86_stack_protect_fail): Mark unused.
13573         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13574         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13575         [TARGET_MACHO]: Don't define.
13576         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13577         (TARGET_STACK_PROTECT_FAIL): Likewise.
13578         (rs6000_stack_protect_fail): Mark unused.
13579         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13580         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
13582 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13584         * varasm.c (get_section): Print location of other conflict
13585         for section conflicts.
13587 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13589         * config/i386/driver-i386.c (host_detect_local_cpu):
13590         Add model 0x2d Intel CPU.
13592 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13594         * reginfo.c (global_regs_decl): Add.
13595         (globalize_reg): Add decl parameter. Compute location.  Pass location
13596         to warnings and add inform. Store decl in global_regs_decl.
13597         * rtl.h (globalize_reg): Update prototype.
13598         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13600 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
13602         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13604 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13606         PR target/49305
13607         * config/sh/predicates.md (general_movsrc_operand): Check
13608         mode for memory with indexed address for QI and HImode.
13609         (general_movdst_operand): Likewise.
13611 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13613         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13615 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
13617         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13618         (num_ssa_operands): Likewise.
13619         (op_iter_init_phiuse): Forward-declare.
13620         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13622 2011-06-08  Nick Clifton  <nickc@redhat.com>
13624         * doc/invoke.texi (ARM Options): Update description of
13625         -mthumb-interwork.
13627 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13629         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13630         unknown Intel family 0x6 CPUs.
13632 2011-06-08  Martin Jambor  <mjambor@suse.cz>
13634         * tree-sra.c (mark_rw_status): Removed.
13635         (analyze_access_subtree): New parameter parent instead of
13636         mark_read and mark_write, propagate from that.
13638 2011-06-08  Julian Brown  <julian@codesourcery.com>
13640         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13641         for double-precision helper functions in hard-float mode if only
13642         single-precision arithmetic is supported in hardware.
13644 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
13646         PR rtl-optimization/49303
13647         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
13648         code_motion_path_driver returned 0 or 1.
13649         (sel_region_finish): Clear h_d_i_d.
13651 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13653         * config/sh/sh.c (prepare_move_operands): Set pic register
13654         appropriately for global and local dynamic tls models even
13655         if flag_pic is unset.
13657 2011-06-07  Jason Merrill  <jason@redhat.com>
13659         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13661 2011-06-07  Xinliang David Li  <davidxl@google.com>
13662         * passes.c (enable_disable_pass): Handle assembler name.
13663         (is_pass_explicitly_enabled_or_disabled): Ditto.
13665 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13667         PR tree-optimization/48497
13668         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13670 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13672         PR tree-optimization/46728
13673         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13674         to use gimple_val_nonnegative_real_p.
13675         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13676         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13678 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
13680         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13682 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
13684         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13685         constant vectors.
13687 2011-06-07  Richard Guenther  <rguenther@suse.de>
13689         * stor-layout.c (initialize_sizetypes): Initialize all
13690         sizetypes based on target definitions.
13691         (set_sizetype): Remove.
13692         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13693         * tree.h (set_sizetype): Remove.
13695 2011-06-07  Nick Clifton  <nickc@redhat.com>
13697         * config.gcc: Unify V850 architecture options and add support for
13698         newer V850 architectures.
13699         * config/v850/t-v850e: Delete.
13701 2011-06-07  Richard Guenther  <rguenther@suse.de>
13703         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13704         Call set_sizetype from here.
13706 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
13708         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13709         (*maddhisi4tb, *maddhisi4tt): New define_insns.
13711 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
13712             Andrew Stubbs  <ams@codesourcery.com>
13714         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13715         multiplies.
13716         * doc/md.texi (Canonicalization of Instructions): Document widening
13717         multiply canonicalization.
13719 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
13721         PR gcov-profile/49299
13722         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13724 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
13726         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13727         a pointer.
13728         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13729         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13730         vect_recog_pow_pattern): Likewise.
13731         (vect_pattern_recog_1): Remove declaration.
13732         (widened_name_p): Remove declaration.  Add new argument to specify
13733         whether to check that both types are either signed or unsigned.
13734         (vect_recog_widen_mult_pattern): Update documentation.  Handle
13735         unsigned patterns and multiplication by constants.
13736         (vect_pattern_recog_1): Update vect_recog_func references.  Use
13737         statement information from the statement returned from pattern
13738         detection functions.
13739         (vect_pattern_recog): Update vect_recog_func reference.
13740         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13741         multiplication by a constant use the type of the other operand.
13743 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
13745         PR rtl-optimization/49145
13746         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13748 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
13750         PR debug/49262
13751         * dwarf2out.c (native_encode_initializer): Decrement count in each
13752         iteration.
13754         PR debug/49294
13755         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13756         non-MODE_INT modes.
13758         PR c++/49264
13759         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13760         if stmt folded into nothing.
13761         * tree-inline.c (fold_marked_statements): If a builtin at the end of
13762         a bb folded into nothing, just update cgraph edges and move to next bb.
13763         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13764         to be NULL.  Don't compute count and frequency if new_call is NULL.
13766 2011-06-04  Diego Novillo  <dnovillo@google.com>
13768         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13769         (cgraph.o): Likewise.
13770         (cgraphunit.o): Likewise.
13771         * cgraphunit.c: Include lto-streamer.h
13772         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13773         if LTO is enabled.
13774         * lto-streamer-in.c (unpack_value_fields): Call
13775         streamer_hooks.unpack_value_fields if set.
13776         (lto_materialize_tree): For unhandled nodes, first try to
13777         call lto_streamer_hooks.alloc_tree, if it exists.
13778         (lto_input_ts_decl_common_tree_pointers): Move reading of
13779         DECL_INITIAL to lto_streamer_read_tree.
13780         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13781         (lto_streamer_read_tree): New.
13782         (lto_reader_init): Rename from lto_init_reader.
13783         Move initialization code to lto/lto.c.
13784         * lto-streamer-out.c (pack_value_fields): Call
13785         streamer_hooks.pack_value_fields if set.
13786         (lto_output_tree_ref): For tree nodes that are not normally indexable,
13787         call streamer_hooks.indexable_with_decls_p before giving up.
13788         (lto_output_ts_decl_common_tree_pointers): Move handling
13789         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13790         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13791         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
13792         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13793         (lto_streamer_write_tree): New.
13794         (lto_output): Call lto_streamer_init directly.
13795         (lto_writer_init): Remove.
13796         * lto-streamer.c (streamer_hooks): New.
13797         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13798         instead of lto_preload_common_nodes.
13799         (lto_is_streamable): Move from lto-streamer.h
13800         (lto_streamer_hooks_init): New.
13801         (streamer_hooks): New.
13802         (streamer_hooks_init): New.
13803         * lto-streamer.h (struct output_block): Forward declare.
13804         (struct lto_input_block): Likewise.
13805         (struct data_in): Likewise.
13806         (struct bitpack_d): Likewise.
13807         (struct streamer_hooks): Declare.
13808         (streamer_hooks): Declare.
13809         (lto_streamer_hooks_init): Declare.
13810         (lto_streamer_write_tree): Declare.
13811         (lto_streamer_read_tree): Declare.
13812         (streamer_hooks_init): Declare.
13813         (lto_is_streamable): Move to lto-streamer.c
13815 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13817         * longlong.h (smul_ppmm): The resulting register pair contains the
13818         higher order word first.
13820 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13822         PR tree-optimization/46728
13823         * builtins.c (powi_table): Remove.
13824         (powi_lookup_cost): Remove.
13825         (powi_cost): Remove.
13826         (expand_powi_1): Remove.
13827         (expand_powi): Remove.
13828         (expand_builtin_pow_root): Remove.
13829         (expand_builtin_pow): Remove.
13830         (expand_builtin_powi): Eliminate handling of constant exponent.
13831         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13833 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13835         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13837 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13839         * dce.c (reset_unmarked_insns_debug_uses): New.
13840         (delete_unmarked_insns): Skip debug insns.
13841         (prescan_insns_for_dce): Likewise.
13842         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13843         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13844         active reg can be found.
13845         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
13846         (convert_regs_1): Use it.
13848 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13850         * tree-pretty-print.c (dump_function_header): Add flags.
13851         Don't dump decl_uid with nouid.
13852         * tree-pretty-print.h (dump_function_header): Adjust.
13853         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13854         * passes.c (pass_init_dump_file): Pass dump_flags on.
13855         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13857 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13859         PR bootstrap/49270
13860         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13862 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
13864         PR tree-optimization/49243
13865         * calls.c (setjmp_call_p): Also check if fndecl has the
13866         returns_twice attribute.
13868 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13870         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13871         -ffast-math etc.
13873 2011-06-06  Richard Henderson  <rth@redhat.com>
13874             Georg-Johann Lay  <avr@gjlay.de>
13876         PR target/42210
13877         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13878         New predicates.
13879         * config/avr/avr.md ("insv"): New insn expander.
13880         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13881         "*insv.not.io", "*insv.reg"): New insns.
13883 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
13885         PR target/49285
13886         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13887         to nonimmediate_operand from memory_operand for the operand that is to
13888         be forced to memory by the expander.  Lose the constraints.
13890 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13892         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13893         EH return when delayed branches are disabled.
13895 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
13897         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13898         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
13899         calculation.
13900         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13901         Simplify MODE_V1DF and MODE_V2SF handling.
13902         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13903         Simplify MODE_SF handling.
13905 2011-06-04  Jan Hubicka  <jh@suse.cz>
13907         PR tree-optimization/48893
13908         PR tree-optimization/49091
13909         PR tree-optimization/49179
13910         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13911         Bounds check.
13913 2011-06-04  Jan Hubicka  <jh@suse.cz>
13915         PR lto/48954
13916         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13917         bitmaps.
13919 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
13921         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13923 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13925         PR target/49281
13926         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13927         to be strictly smaller than 1 << shiftcount.
13929 2011-06-04  Jan Hubicka  <jh@suse.cz>
13931         PR tree-optimize/48929
13932         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13933         of empty predicate.
13935 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
13937         PR debug/48333
13938         * calls.c (emit_call_1): Prefer the __builtin declaration of
13939         builtin functions.
13941 2011-06-03   Diego Novillo  <dnovillo@google.com>
13943         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13944         (lto_input_tree_pointers): Likewise.
13945         * lto-streamer-out.c (pack_value_fields): Likewise.
13946         (lto_output_tree_pointers): Likewise.
13947         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13948         and OPTIMIZATION_NODE.
13950 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13952         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13953         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13954         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13955         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13956         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13957         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13958         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13959         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13960         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13961         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13962         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13963         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13964         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13965         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13966         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13967         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13968         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13969         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13970         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13971         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13972         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13973         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13974         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13975         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13976         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13977         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13978         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13979         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13980         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13981         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13982         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13983         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13984         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13985         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13986         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13987         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13988         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13989         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13990         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13991         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13992         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13993         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13994         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13995         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13996         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13997         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13998         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13999         * system.h (MD_UNWIND_SUPPORT): Poison.
14000         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
14001         * doc/tm.texi: Regenerate.
14002         * unwind-dw2.c: Include md-unwind-support.h instead of
14003         MD_UNWIND_SUPPORT.
14004         * config/ia64/unwind-ia64.c: Likewise.
14005         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14007 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
14009         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
14011 2011-06-03  Richard Henderson  <rth@redhat.com>
14012             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14014         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
14015         (sigill_hdlr): Correct insn, insn size.
14016         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
14018 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14020         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
14021         t-slibgcc-dummy.
14022         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
14023         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14024         * config/mips/t-iris: Remove.
14025         * config/mips/t-irix6: New file.
14026         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
14028 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14030         * Makefile.in (LIB2ADDEHDEP): Remove.
14031         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
14032         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
14033         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
14034         * config/t-darwin (LIB2ADDEHDEP): Remove.
14035         * config/t-freebsd (LIB2ADDEHDEP): Remove.
14036         * config/t-linux (LIB2ADDEHDEP): Remove.
14038 2011-06-03  Diego Novillo  <dnovillo@google.com>
14040         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
14041         (lto_register_var_decl_in_symtab): Likewise.
14042         (lto_register_function_decl_in_symtab): Likewise.
14043         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
14044         logic to uniquify_nodes.
14046 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14048         * config/alpha/t-osf5: Remove.
14049         * config/alpha/t-osf-pthread: Remove.
14050         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14051         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
14053 2011-06-03  Julian Brown  <julian@codesourcery.com>
14055         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
14056         (strongarm1110): Use strongarm tuning.
14057         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
14058         * config/arm/arm.c (arm_strongarm_tune): New.
14059         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14060         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
14061         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
14062         setting, using previous defaults or 1 for Cortex-A5.
14063         (arm_option_override): Set max_insns_skipped from current tuning.
14065 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
14067         * doc/install.texi (Options specification): Document --with-specs.
14069 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14071         * config/arm/neon.md (orndi3_neon): Actually split it.
14073 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14075         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
14076         * var-tracking.c (reverse_op): Limite recurse depth to 5.
14078 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14080         PR debug/47590
14081         * target.def (delay_sched2, delay_vartrack): New.
14082         * doc/tm.texi.in: Update.
14083         * doc/tm.texi: Rebuild.
14084         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
14085         * var-tracking.c (gate_handle_var_tracking): Likewise.
14086         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14087         (bfin_flag_var_tracking): Drop.
14088         (output_file_start): Don't save and override flag_var_tracking.
14089         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14090         (bfin_reorg): Test original variables.
14091         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14092         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14093         (ia64_flag_var_tracking): Drop.
14094         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14095         (ia64_file_start): Don't save and override flag_var_tracking.
14096         (ia64_override_options_after_change): Ditto
14097         flag_schedule_insns_after_reload.
14098         (ia64_reorg): Test original variables.
14099         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14100         (picochip_flag_var_tracking): Drop.
14101         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14102         (picochip_option_override): Don't save and override
14103         flag_schedule_insns_after_reload.
14104         (picochip_asm_file_start): Ditto flag_var_tracking.
14105         (picochip_reorg): Test original variables.
14106         * config/spu/spu.c (spu_flag_var_tracking): Drop.
14107         (TARGET_DELAY_VARTRACK): Define.
14108         (spu_var_tracking): New.
14109         (spu_machine_dependent_reorg): Call it.
14110         (asm_file_start): Don't save and override flag_var_tracking.
14112 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14114         PR target/49163
14115         * config/sh/predicates.md (general_movsrc_operand): Return 0
14116         for memory and memory subreg of which address is an invalid
14117         indexed address for QI and HImode.
14118         (general_movdst_operand): Likewise.
14120 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14122         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14123         edges only, when there is a non-local label in the function.
14124         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14126 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14128         * config/i386/constraints.md (Y3): New register constraint.
14129         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14130         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14131         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14132         *sse2_interleave_lowv2df.
14134 2011-06-02  Julian Brown  <julian@codesourcery.com>
14136         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14137         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14138         (arm_cortex_a5_tune): New.
14140 2011-06-02  Julian Brown  <julian@codesourcery.com>
14142         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14143         * config/arm/arm.c (arm_default_branch_cost): New.
14144         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14145         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14146         (arm_fa726_tune): Set branch_cost field using
14147         arm_default_branch_cost.
14148         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14149         current_tune structure.
14150         * dojump.c (tm_p.h): Include file.
14152 2011-06-02  Julian Brown  <julian@codesourcery.com>
14154         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14155         tuning.
14156         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14157         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14158         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14159         field.
14160         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14161         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14162         (arm_fa726te_tune): Add prefer_constant_pool setting.
14163         (arm_v6t2_tune, arm_cortex_tune): New.
14164         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14165         prefer_constant_pool setting.
14167 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14169         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14170         switch statement.
14171         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14172         (*movdf_internal) <case 6,7,8>: Ditto.
14174         * config/i386/constraints.md (Y4): New register constraint.
14175         * config/i386/sse.md (vec_set<mode>_0): Merge with
14176         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14177         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14178         *vec_extractv2di_1_sse.
14179         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14180         and *vec_concatv2di_rex64_sse.
14182 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
14184         PR target/48807
14185         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14186         of cgraph_local_info for null before attempting to use it.
14188 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14190         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14191         (current_function_dynamic_alloc_count): Delete.
14192         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14193         (expand_builtin_nonlocal_goto): Remove obsolete comment.
14194         (expand_builtin_update_setjmp_buf): Remove dead code.
14195         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14196         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14197         support.
14198         * function.c (instantiate_virtual_regs): Likewise.
14199         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14200         for a block with a single abnormal incoming edge.
14201         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14202         (SETJMP_VIA_SAVE_AREA): Delete.
14203         * config/sparc/sparc-protos.h (load_got_register): Declare.
14204         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14205         (load_got_register): Make global.
14206         (sparc_frame_pointer_required): Add 'static'.
14207         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
14208         (sparc_builtin_setjmp_frame_value): New function.
14209         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14210         (save_stack_nonlocal): New expander.
14211         (restore_stack_nonlocal): Likewise.
14212         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14213         (nonlocal_goto_internal): New insn.
14214         (goto_handler_and_restore): Delete.
14215         (builtin_setjmp_setup): Likewise.
14216         (do_builtin_setjmp_setup): Likewise.
14217         (setjmp): Likewise.
14218         (builtin_setjmp_receiver): New expander.
14220 2011-06-01  David Li  <davidxl@google.com>
14222         PR middle-end/49261
14223         * tree-pretty-print.c (dump_function_header): Format cleanup.
14225 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14227         PR target/49238
14228         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14229         needed when original operands are used for msw_skip comparison.
14231 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14233         PR debug/49250
14234         * var-tracking.c (add_uses, add_stores): Don't call
14235         cselib_subst_to_values on ENTRY_VALUE.
14237 2011-06-01  Diego Novillo  <dnovillo@google.com>
14239         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14240         output_record_start with LTO_null instead of output_zero.
14241         (lto_output_ts_binfo_tree_pointers): Likewise.
14242         (lto_output_tree): Likewise.
14243         (output_eh_try_list): Likewise.
14244         (output_eh_region): Likewise.
14245         (output_eh_lp): Likewise.
14246         (output_eh_regions): Likewise.
14247         (output_bb): Likewise.
14248         (output_function): Likewise.
14249         (output_unreferenced_globals): Likewise.
14250         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14251         instead of NUM_TREE_CODES.
14252         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14253         (lto_output_int_in_range): Change << to >> when shifting VAL.
14255 2011-06-01  Diego Novillo  <dnovillo@google.com>
14257         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14258         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14260 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14262         PR target/45074
14263         * optabs.h (valid_multiword_target_p): Declare.
14264         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14265         doing multi-word operations.
14266         * optabs.c (expand_binop): Likewise.
14267         (expand_doubleword_bswap): Likewise.
14268         (expand_absneg_bit): Likewise.
14269         (expand_unop): Likewise.
14270         (expand_copysign_bit): Likewise.
14271         (multiword_target_p): New function.
14273 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14275         PR rtl-optimization/48830
14276         PR rtl-optimization/48808
14277         PR rtl-optimization/48792
14278         * reload.c (push_reload): Check contains_reg_of_mode.
14279         * reload1.c (strip_paradoxical_subreg): New function.
14280         (gen_reload_chain_without_interm_reg_p): Use it to handle
14281         paradoxical subregs.
14282         (emit_output_reload_insns, gen_reload): Likewise.
14284 2011-06-01  David Li  <davidxl@google.com>
14286         * predict.c : Change pass name
14287         * ipa.c: Ditto.
14288         * dce.c: Ditto.
14289         * tree-profile.c: Ditto.
14290         * except.c: Ditto.
14292 2011-06-01  David Li  <davidxl@google.com>
14294         * tree-pretty-print.c (dump_function_header): New function.
14295         * final.c (rest_of_clean_state): Use header dumper.
14296         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14297         * passes.c (pass_init_dump_file): Use header dumper.
14299 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14301         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14302         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14303         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14304         New functions.
14305         (mem_loc_descriptor): Use them.
14307         * var-tracking.c (create_entry_value): New function.
14308         (vt_add_function_parameter): Use it.
14310 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14312         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14313         Include <signal.h>, <ucontext.h>.
14314         (sigill_caught): Define.
14315         (sigill_hdlr): New function.
14316         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14317         insns can be executed.
14318         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14319         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14321 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14323         * config/t-slibgcc-darwin: Move to ...
14324         * config/t-slibgcc-dummy: ... this.  Clarify comments.
14325         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14326         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14327         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14328         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
14329         Remove i386/t-crtstuff from tmake_file.
14330         (i[34567]86-*-solaris2*): Remove t-svr4,
14331         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14332         t-slibgcc-dummy.
14333         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14334         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14335         sparc/t-crtfm from tmake_file.
14336         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14337         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14338         Remove extra_parts.
14339         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14340         * config/i386/t-nwld (SHLIB_LINK): Remove.
14341         * config/i386/t-rtems-i386: Rename to ...
14342         * config/i386/t-rtems: ... this.
14343         ($(T)crti.o, $(T)crtn.o): Remove.
14344         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14345         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14346         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14347         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14348         EXTRA_MULTILIB_PARTS): Remove.
14349         * config/sparc/t-sol2-64: Likewise.
14350         * config/sparc/t-sol2: Remove.
14351         * config/sparc/t-crtin: Remove.
14352         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14353         * config/i386/gmon-sol2.c: Remove.
14354         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14355         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14356         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14357         * config/i386/sol2-gc1.asm: Remove.
14358         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14359         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14360         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14361         * config/t-slibgcc-sld: Remove.
14363 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14365         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14366         base_type_for_mode with op_mode instead of mode.
14368 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
14370         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
14371         Cortex-A15.
14372         * config/arm/arm-tune.md: Regenerate.
14373         * config/arm/arm-tables.opt: Regenerate.
14374         * config/arm/arm.c (FL_DIV): Rename...
14375         (FL_THUMB_DIV): ... to this.
14376         (FL_ARM_DIV): Define.
14377         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14378         (arm_arch_hwdiv): Remove.
14379         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14380         (arm_issue_rate): Add cortexr5.
14381         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14382         __ARM_ARCH_EXT_IDIV__.
14383         (TARGET_IDIV): Define.
14384         (arm_arch_hwdiv): Remove.
14385         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14386         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14387         (divsi3, udivsi3): New patterns.
14388         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14389         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14391 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14393         * ipa-utils.c (ipa_dfs_info): New field scc_no.
14394         * ipa-utils.c (searchc): Set scc_no.
14396 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14398         * ipa-utils.c (searchc_env): New field allow_overwritable.
14399         (searchc): do not ignore edges to overwritable nodes if indicated
14400         by env->allow_overwritable.
14401         (ipa_reduced_postorder): Set env.allow_overwritable.
14403 2011-06-01  Richard Guenther  <rguenther@suse.de>
14405         * tree.c (free_lang_data): Do not reset boolean_type_node nor
14406         char_type_node.
14407         * lto-streamer.c (lto_record_common_node): Take node pointer,
14408         do not register types.
14409         (lto_preload_common_nodes): Explicitly skip preloading nodes
14410         that differ between frontends.
14412 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14414         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14415         NON_FLOAT_REGS.
14417 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14419         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14420         parameter value for dump. Dump cost on outermost call only.
14421         (rs6000_memory_move_cost): Dump cost on outermost call only.
14423 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14425         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14426         DW_OP_GNU_convert ops.
14428         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14429         cselib_preserve_constants.
14430         (cselib_lookup_1): If cselib_preserve_constants,
14431         a new VALUE is being created for REG and there is a VALUE for the
14432         same register in wider mode, add another loc with lowpart SUBREG of
14433         the wider VALUE.
14434         (cselib_subst_to_values): Handle ENTRY_VALUE.
14435         * var-tracking.c  (replace_expr_with_values): Return NULL for
14436         ENTRY_VALUE too.
14437         * dwarf2out.c (convert_descriptor_to_signed): New function.
14438         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14439         instead of two shifts.
14440         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14441         the right mode if needed.
14442         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14443         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14444         convert_descriptor_to_signed.
14445         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14446         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14448         PR target/48688
14449         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14451 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14453         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14454         of X87MODEI12 and SWI48x instead of SSEMODEI24.
14455         (SWI248x): New mode iterator, rename from X87MODEI.
14456         (X87MODEI): Remove mode iterator.
14457         (X87MODEI12): Ditto.
14458         (SSEMODEI24): Ditto.
14460 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14462         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14463         * doc/invoke.texi: Document max-vartrack-expr-depth.
14464         * var-tracking.c (EXPR_DEPTH): New.
14465         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14467 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14469         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14470         * config/i386/sse.md: Add n to negated FMA pattern names.
14472 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14474         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14476 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14478         * gengtype-state.c (read_state_params_structs): Initialize previous.
14480 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14482         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14483         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14485 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14487         * config/i386/i386.md (*movtf_internal): Avoid allocating general
14488         registers.  Penalize F*r->o alternative to prevent partial memory
14489         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
14490         CONST_DOUBLE immediates when optimizing function for size.  Do not move
14491         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14492         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14493         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14494         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14495         alternatives.
14496         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14498         (fp_register_operand splitters): Use fp_register_operand
14499         constraint.  Do not use FP_REG_P in insn condition.
14500         (any_fp_register_operand splitters): Use any_fp_register_operand
14501         constraint.  Do not use ANY_FP_REG_P in insn condition.
14503 2011-05-31  Jan Hubicka  <jh@suse.cz>
14505         * cgraph.h (cgraph_inline_failed_t): Give enum a name
14506         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14507         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14508         (lto_output_edge): Use output_enum and var_len_unsigned.
14509         (lto_output_varpool_node): Likewise.
14510         (input_overwrite_node): Do not take resolution parameter;
14511         extract it from a bitpack.
14512         (input_node): Do not read resolution; use input_enum and
14513         var_len_unsigned.
14514         (input_varpool_node): Likewise.
14515         (input_edge): Likewise.
14516         (input_cgraph_1): Likewise.
14518 2011-05-31  Richard Guenther  <rguenther@suse.de>
14520         * gimple.c (gimple_register_canonical_type): Do not register
14521         any types via gimple_register_type.
14523 2011-05-31  Jan Hubicka  <jh@suse.cz>
14525         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14526         of thunks.
14528 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14530         PR rtl-optimization/49235
14531         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14532         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14534 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
14536         PR tree-optimization/49093
14537         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14538         data references.
14540 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
14542         PR debug/49047
14543         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14544         for concrete functions containing the code of cloned functions.
14546 2011-05-31  Richard Guenther  <rguenther@suse.de>
14548         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14549         to ...
14550         (forward_propagate_into_comparison_1): ... this.
14551         (forward_propagate_comparison): Rename to ...
14552         (forward_propagate_into_comparison): ... this.  Split out
14553         real forward propagation code to ...
14554         (forward_propagate_comparison): ... this.
14555         (forward_propagate_into_gimple_cond): Remove looping.
14556         (forward_propagate_into_cond): Likewise.
14557         (simplify_not_neg_expr): Return whether we have done something.
14558         (simplify_gimple_switch): Likewise.
14559         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14560         (ssa_forward_propagate_and_combine): ... this.  Re-structure
14561         to do a forward forward-propagation walk on BBs and a backward
14562         stmt combining walk on BBs.  Consistently re-scan changed statements.
14563         (pass_forwprop): Adjust.
14565 2011-05-30  Ian Lance Taylor  <iant@google.com>
14567         * godump.c (go_format_type): Correct length of name added to
14568         obstack for anonymous field.
14570 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14572         PR target/49186
14573         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14574         part of the second operand is 0.
14576 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
14578         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14579         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
14580         to memory for !TARGET_MEMORY_MISMATCH_STALL.
14581         (*movdf_internal_rex64): Do not penalize F->r alternative.
14582         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14583         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
14584         when optimizing function for size.  Do not move CONST_DOUBLEs
14585         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14586         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
14587         SUBREGs.  Do not check for MEM_P operands in the insn condition,
14588         check for ANY_FP_REGNO_P instead.
14589         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14590         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14591         function for speed.
14592         * config/i386/i386.c (ix86_option_override_internal): Do not
14593         set TARGET_INTEGER_DFMODE_MOVES here.
14595 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14597         PR target/49168
14598         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14600 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14602         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14603         DW_TAG_rvalue_reference_type even for
14604         -gdwarf-4 -fno-debug-types-section.
14606 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14608         PR tree-optimization/46728
14609         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14610         (build_and_insert_binop): New.
14611         (gimple_expand_builtin_pow): Reorder args for
14612         build_and_insert_call; use build_and_insert_binop; add more
14613         optimizations for fractional exponents.
14615 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
14617         PR bootstrap/49190
14619         Revert:
14620         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14622         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14623         tree_common.
14624         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14625         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14626         TS_BASE instead of TS_COMMON.
14627         * varasm.c (assemble_name): Remove assert.
14629 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
14631         * config.gcc: Keep obselete list sorted.
14633 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14634             Eric Botcazou  <ebotcazou@adacore.com>
14636         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14637         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14638         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14639         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14640         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14642 2011-05-30  Richard Guenther  <rguenther@suse.de>
14644         * gimple.c (gimple_types_compatible_p_1): Compare record
14645         and union type members properly.
14647 2011-05-30  Richard Guenther  <rguenther@suse.de>
14649         PR tree-optimization/49210
14650         * ipa-split.c (split_function): Care for the case where the call
14651         result is not trivially convertible to the result holding variable.
14653 2011-05-30  Richard Guenther  <rguenther@suse.de>
14655         PR tree-optimization/49218
14656         * tree-vrp.c (adjust_range_with_scev): Properly check whether
14657         overflow occured.
14659 2011-05-30  Richard Guenther  <rguenther@suse.de>
14661         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14662         New function split out from ...
14663         (forward_propagate_into_gimple_cond): ... here.  Adjust.
14664         (forward_propagate_into_cond): Likewise.
14665         (forward_propagate_comparison): Also propagate into
14666         comparisons on assignment RHS.  Change return value to
14667         behave similar to forward_propagate_into_cond.
14668         (tree_ssa_forward_propagate_single_use_vars): Handle
14669         strict-overflow warnings properly for forward_propagate_comparison.
14671 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14673         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14674         from plugin linker.
14675         * configure: Regenerate.
14677 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
14679         PR tree-optimization/49199
14680         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14681         non-reduction operands are either defined in the loop or by induction.
14683 2011-05-29  Xinliang David Li  <davidxl@google.com>
14685         * opts-global.c (handle_common_deferred_options): Handle new options.
14686         * passes.c (register_one_dump_file): Call register_pass_name.
14687         (execute_one_pass): Check explicit enable/disable flag.
14688         (passr_hash): New function.
14689         (passr_eq): Ditto.
14690         (register_pass_name): Ditto.
14691         (get_pass_by_name): Ditto.
14692         (pass_hash): Ditto.
14693         (pass_eq): Ditto.
14694         (enable_pass): Ditto.
14695         (disable_pass): Ditto.
14696         (is_pass_explicitly_enabled_or_disabled): Ditto.
14698 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
14700         * config/i386/i386.md (*movoi_internal_avx): Use
14701         standard_sse_constant_opcode for alternative 0.
14702         (*movti_internal_sse): Ditto.
14703         (*movti_internal_rex64): Use standard_sse_constant_opcode for
14704         alternative 2.
14705         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14706         sselog1 type moves.
14707         (*movsi_internal): Ditto.
14708         (*movdi_internal): Ditto.  Add ssecvt type moves.
14710 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14712         PR target/48830
14713         * rtlanal.c (simplify_subreg_regno): Adjust comment.
14715 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
14717         PR rtl-optimization/49095
14718         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14719         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14721 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14723         PR target/43995
14724         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14725         recurse_p argument.  Only follow register copies if it is set,
14726         and prevent mips_find_pic_call_symbol from recursing.
14727         (mips_find_pic_call_symbol): Add a recurse_p argument.
14728         Pass it to mips_pic_call_symbol_from_set.
14729         (mips_annotate_pic_calls): Update accordingly.
14731 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14733         * emit-rtl.c (try_split): Use a loop to search for
14734         NOTE_INSN_CALL_ARG_LOCATIONs.
14736 2011-05-29  Richard Guenther  <rguenther@suse.de>
14738         PR tree-optimization/49217
14739         * ipa-pure-const.c (propagate_pure_const): Fix typos.
14741 2011-05-28  Jan Hubicka  <jh@suse.cz>
14743         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14744         length.
14745         (string_slot_free): Remove
14746         (create_output_block): Initialize obstack.
14747         (destroy_output_block): Free obstack.
14748         (lto_string_index): Add PERSISTENT parameter; do not duplicate
14749         the string unless it needs to be added into the hash.
14750         (lto_output_string_with_length): Add persistent attribute;
14751         handle NULL strings.
14752         (lto_output_string): Add PERSISTENT parameter.
14753         (output_string_cst, output_identifier): Simplify.
14754         (lto_output_location_bitpack): Update.
14755         (lto_output_builtin_tree): Update.
14756         * lto-streamer.h (struct output_block): Add obstack.
14757         (lto_output_string, lto_output_string_with_length): Remove
14758         declarations; functions are static now.
14760 2011-05-28  Jan Hubicka  <jh@suse.cz>
14762         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14763         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14764         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14765         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14766         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14767         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14768         unpack_ts_decl_with_vis_value_fields,
14769         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14770         lto_get_builtin_tree): Use enum and variable length i/o.
14771         * basic-block.h (profile_status_d): Add PROFILE_LAST.
14772         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14773         New functions.
14774         (bp_pack_enum, bp_unpack_enum): New macros.
14776 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14778         * genrecog.c: Remove redundant forward declarations.
14780 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14782         * config.gcc: Deprecate mips*-*-openbsd*.
14784 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14786         PR bootstrap/49195
14787         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14788         for match_op_dup.
14790 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
14792         PR middle-end/48981
14793         * gengtype.c (vec_prefix_type): New function.
14794         (note_def_vec): Use vec_prefix_type and change the length
14795         attribute to be based on the prefix.
14796         * vec.c: Include coretypes.h before vec.h.
14797         (struct vec_prefix): Remove.
14798         (vec_gc_p_reserve): Change the offsetof to sizeof.
14799         (vec_gc_p_reserve_exact): Likewise.
14800         (vec_heap_p_reserve): Likewise.
14801         (vec_heap_p_reserve_exact): Likewise.
14802         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14803         (vec_stack_p_reserve): Change the offsetof to sizeof.
14804         (vec_stack_p_reserve_exact): Likewise.
14805         * vec.h (struct vec_prefix): New struct definition.
14806         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14807         (VEC_T_GTY(T,B)): Likewise.
14808         (DEF_VEC_FUNC_P(T)): Use prefix field.
14809         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14810         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14812 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14814         PR tree-optimization/46728
14815         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14816         (powi_as_mults): Add gimple_set_location.
14817         (build_and_insert_call): New.
14818         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14819         0.5, 0.25, 0.75, 1./3., or 1./6.
14821 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
14823         * doc/contrib.texi: Update copyright years.
14824         (Contributors): Add Zdenek Sojka.
14826 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
14828         * c-decl.c (c_push_function_context): Copy the current statement
14829         list stack.
14830         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14831         (finish_struct): Call building_stmt_list_p instead of checking
14832         cur_stmt_list.
14833         * c-parser.c (c_parser_postfix_expression): Likewise.
14834         * c-typeck.c (c_end_compound_stmt): Likewise.
14835         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14836         * tree-iterator.c (stmt_list_cache): Change to a VEC.
14837         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14838         (free_stmt_list): Likewise.
14839         * tree.h (struct tree_statement_list): Include typed_tree instead
14840         of tree_common.
14841         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14842         as TS_TYPED instead of TS_COMMON.
14844 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14845             Uros Bizjak  <ubizjak@gmail.com>
14847         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14848         (HAVE_AS_IX86_TLSGDPTL): Define.
14849         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14850         (HAVE_AS_IX86_TLSLDMPLT): Define.
14851         * configure: Regenerate.
14852         * config.in: Regenerate.
14853         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14854         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14855         TARGET_SUN_TLS, use @tlsgdplt or @plt.
14856         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14857         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14858         @tlsldmplt or @plt.
14859         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14861 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14863         * sched-int.h (struct _haifa_deps_insn_data): New members cond
14864         and reverse_cond.
14865         (INSN_COND, INSN_REVERSE_COND): New macros.
14866         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14867         once.
14868         (sched_get_condition_with_rev): Cache the results, and look them up
14869         if possible.
14870         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14871         are clobbered by the current insn.
14872         * target.def (exposed_pipline): New sched data hook.
14873         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14874         * doc/tm.texi: Regenerate.
14876 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14878         PR tree-optimization/49170
14879         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
14880         sincos or cexp.
14882 2011-05-27  Richard Guenther  <rguenther@suse.de>
14884         PR middle-end/49189
14885         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14886         of comparisons.
14888 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14890         * haifa-sched.c (sched_scan_info): Remove.
14891         (schedule_block): Call sched_extend_luids rather than sched_init_luids
14892         with NULL args.
14893         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14894         Remove functions.
14895         (sched_scan): Remove.
14896         (sched_extend_luids): Renamed from luids_extend_insn and no longer
14897         static.  All callers changed.
14898         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14899         static.  All callers changed.
14900         (sched_init_luids): Remove all arguments except the first.  All
14901         callers changed.  Don't use sched_scan.
14902         (haifa_init_h_i_d): Likewise.
14903         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14904         manually rather than using sched_init_luids.  Likewise with
14905         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14906         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14907         rather than sched_init_luids with NULL args.
14908         * sel-sched-ir.c (new_insns): Remove variable.
14909         (sched_scan): New static function, previously in haifa-sched.c.  Remove
14910         all arguments but the first two; all callers changed.
14911         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14912         rather than sched_init_luids.
14913         (sel_init_bbs): Remove second argument.  All callers changed.
14914         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14915         with NULL arguments.
14916         (create_insn_rtx_from_pattern): Likewise.
14917         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14918         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14919         (sched_init_insn_luid, sched_extend_luids): Declare.
14920         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14921         declarations.
14923 2011-05-27  Richard Guenther  <rguenther@suse.de>
14925         PR middle-end/49177
14926         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14927         A CMP B ? (T) true : (T) false for non-integral types T again.
14929 2011-05-27  Jan Hubicka  <jh@suse.cz>
14931         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14932         so 0 means NULL string.
14933         (lto_output_string_with_length): ... here.
14934         (lto_output_string, output_string_cst, output_identifier): Update
14935         handling of NULL strings.
14936         (lto_output_location_bitpack): New function.
14937         (lto_output_location): Use it.
14938         (lto_output_tree_ref): Use output_record_start.
14939         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14940         len values.
14941         * lto-streamer-in.c (string_for_index): Break out from ...; offset
14942         values by 1.
14943         (input_string_internal): ... here;
14944         (input_string_cst, input_identifier, lto_input_string): Update handling
14945         of NULL strings.
14946         (lto_input_location_bitpack): New function
14947         (lto_input_location): Use it.
14948         (unpack_ts_type_common_value_fields): Pack align & alias in var len
14949         values.
14950         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14951         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14952         (bp_pack_value): Sanity check the value range.
14953         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14954         New functions.
14955         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14956         New functions.
14958 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
14960         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14961         call_arg_location instructions down the floor.
14963 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
14965         PR rtl-optimization/49154
14966         * ira.c (setup_pressure_classes): Process class without sublcasses
14967         as a candidate for pressure classes.
14969 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
14971         PR rtl-optimization/48575
14972         * genrecog.c (position_type): New enum.
14973         (position): New structure.
14974         (decision): Use position structure instead of a string.
14975         (root_pos, peep2_insn_pos_list): New variables.
14976         (next_position, compare_positions): New functions.
14977         (new_decision): Use position structures instead of strings.
14978         (maybe_both_true): Likewise.
14979         (change_state): Likewise.
14980         (write_tree): Likewise.
14981         (make_insn_sequence): Likewise.
14983 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14985         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14986         TS_BASE instead of TS_COMMON.
14987         (find_decls_types_r): Check for TS_TYPED structure before looking at
14988         TREE_TYPE.
14989         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14990         Add chain field.
14991         (BLOCK_CHAIN): Use new chain field.
14993 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
14995         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14996         moves expensive on Power7 also.
14998 2011-05-26  Richard Guenther  <rguenther@suse.de>
15000         * fold-const.c (fold_unary_loc): Remove bogus code.
15002 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15004         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15005         tree_common.
15006         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15007         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15008         TS_BASE instead of TS_COMMON.
15009         * varasm.c (assemble_name): Remove assert.
15011 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15013         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
15014         substituted first.
15015         * libgcc-std.ver: Delete file.
15017 2011-05-26  Richard Guenther  <rguenther@suse.de>
15019         PR tree-optimization/48702
15020         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
15021         only when we know the base address is within bounds.
15022         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
15023         assume the base address of TARGET_MEM_REFs is in bounds.
15025 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15027         PR target/49099
15028         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
15029         declaration in TARGET_SOLARIS.
15031 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
15033         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
15034         The instruction is then expanded explicitly.
15035         (supported_compare): Callable instruction.
15036         (compare): Likewise.
15038 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15040         PR c++/49165
15041         * gimplify.c (shortcut_cond_r): Don't special case
15042         COND_EXPRs if they have void type on one of their arms.
15044 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15046         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
15047         to reduce duplication, and to achieve a slightly more logical order
15048         of operations.
15050 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15052         PR tree-optimization/49161
15053         * tree-vrp.c (struct case_info): New type.
15054         (compare_case_labels): Sort case_info structs instead of
15055         trees, and not primarily by CASE_LABEL uids but by
15056         label_for_block indexes.
15057         (find_switch_asserts): Put case labels into struct case_info
15058         array instead of TREE_VEC, adjust sorting, compare label_for_block
15059         values instead of CASE_LABELs.
15061 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15063         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
15064         ("orndi3_neon"): Likewise.
15065         ("bic<mode>3_neon"): Likewise.
15067 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
15069         PR tree-optimization/49038
15070         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
15071         Ensure at least one epilogue iteration if required by data
15072         accesses with gaps.
15073         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15074         to mark loops that require peeling for gaps.
15075         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
15076         (vect_get_known_peeling_cost): Take peeling for gaps into
15077         account.
15078         (vect_transform_loop): Generate epilogue if required by data
15079         access with gaps.
15080         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
15081         loop as requiring an epilogue if there are gaps in the end of
15082         the strided group.
15084 2011-05-25  Ian Lance Taylor  <iant@google.com>
15086         * godump.c (go_format_type): Output the first field with a usable
15087         Go type, if any.
15089 2011-05-25  Ian Lance Taylor  <iant@google.com>
15091         * godump.c (go_format_type): Check for invalid type names, pointer
15092         target types, and struct field types.
15094 2011-05-25  Jason Merrill  <jason@redhat.com>
15096         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15098 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
15100         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15102 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15104         * config/i386/i386.md (*movqi_extv_1)): Put back
15105         "register_operand" check in "type" calculation.
15106         (*movqi_extzv_2): Likewise.
15108 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15110         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15112 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15114         PR bootstrap/49160
15115         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15116         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15117         __divxc3, __divtc3): Wrap definitions in #ifndef.
15119 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15121         PR target/49142
15122         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15123         "register_operand" check and replace q_regs_operand with
15124         QIreg_operand in "type" calculation.
15125         (*movqi_extv_1): Likewise.
15126         (*movqi_extzv_2_rex64): Likewise.
15127         (*movqi_extzv_2): Likewise.
15129         * config/i386/predicates.md (QIreg_operand): New.
15131 2011-05-25  Richard Guenther  <rguenther@suse.de>
15133         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15134         type-based offset disambiguation, streamline MEM_REF and
15135         TARGET_MEM_REF handling.
15137 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15139         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15140         (bdesc_special_args): Add pause intrinsic.
15142         * config/i386/i386.md (UNSPEC_PAUSE): New.
15143         (pause): Likewise.
15144         (*pause): Likewise.
15145         * config/i386/ia32intrin.h (__pause): Likewise.
15147         * doc/extend.texi (X86 Built-in Functions): Add documentation for
15148         pause intrinsic.
15150 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15152         PR tree-optimization/46728
15153         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15154         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15156 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
15158         * tree.h (struct tree_exp): Inherit from struct tree_typed.
15159         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15160         instead of TS_COMMON.
15162 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15164         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15165         LIBGCC2_GNU_PREFIX is defined.
15166         (__N): New macro.
15167         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15168         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15169         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15170         __clz_tab): Define using __N.
15171         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15172         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15173         * target.def (libfunc_gnu_prefix): New hook.
15174         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15175         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15176         * doc/tm.texi: Regenerate.
15177         * system.h (LIBGCC2_GNU_PREFIX): Poison.
15178         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15179         account.
15180         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15181         (init_optabs): Likewise for the bswap libfuncs.
15182         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15183         and divide.
15184         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15185         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15186         * libgcc-std.ver: Remove.
15187         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15188         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15189         libgcc-std.ver.
15190         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15191         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15192         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15193         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15194         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15195         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15196         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15197         * config/fixed-bit.h (FIXED_OP): Define differently depending on
15198         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15199         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15201 2011-05-25  Jan Hubicka  <jh@suse.cz>
15203         * lto-streamer-out.c (output_record_start): Use lto_output_enum
15204         (lto_output_tree): Use output_record_start.
15205         * lto-streamer-in.c (input_record_start): Use lto_input_enum
15206         (lto_get_pickled_tree): Use input_record_start.
15207         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15208         (lto_value_range_error): New function.
15209         * lto-streamer.h (lto_value_range_error): Declare.
15210         (lto_output_int_in_range, lto_input_int_in_range): New functions.
15211         (lto_output_enum, lto_input_enum): New macros.
15213 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15215         * common.opt (flag_stack_usage_info): New variable.
15216         (-Wstack-usage): New option.
15217         * doc/invoke.texi (Warning options): Document -Wstack-usage.
15218         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15219         <OPT_fstack_usage>: Likewise.
15220         * toplev.c (output_stack_usage): Handle -Wstack-usage.
15221         * calls.c (expand_call): Test flag_stack_usage_info variable instead
15222         of flag_stack_usage.
15223         (emit_library_call_value_1): Likewise.
15224         * explow.c (allocate_dynamic_stack_space): Likewise.
15225         * function.c (instantiate_virtual_regs ): Likewise.
15226         (prepare_function_start): Likewise.
15227         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15228         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15229         * config/arm/arm.c (arm_expand_prologue): Likewise.
15230         (thumb1_expand_prologue): Likewise.
15231         * config/avr/avr.c (expand_prologue): Likewise.
15232         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15233         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15234         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15235         * config/mips/mips.c (mips_expand_prologue): Likewise.
15236         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15237         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15238         * config/s390/s390.c (s390_emit_prologue): Likewise.
15239         * config/sh/sh.c (sh_expand_prologue): Likewise.
15240         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15241         * config/spu/spu.c (spu_expand_prologue): Likewise.
15243 2011-05-25  Richard Guenther  <rguenther@suse.de>
15245         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15246         (gimple_canonical_types_compatible_p): Likewise.
15248 2011-05-25  Jan Hubicka  <jh@suse.cz>
15250         PR middle-end/49062
15251         * ipa.c (function_and_variable_visibility): Only add to same
15252         comdat group list if DECL_ONE_ONLY.
15254 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
15256         PR rtl-optimization/49014
15257         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15259 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15261         PR target/49128
15262         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15264 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15266         PR rtl-optimization/48757
15267         * ira-build.c (loop_with_eh_edge_p): Rename to
15268         loop_with_complex_edge_p, check edges on complexity, make function
15269         conditional.
15270         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15271         conditional.
15273 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15275         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15276         force flag_ira_share_save_slots to 0.
15278 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15280         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15281         (vt_initialize): Set PROLOGUE_BB unconditionally.
15282         Add block comment about CFA_BASE_RTX machinery.
15283         Reset FP_CFA_OFFSET to -1 on all invalid paths.
15284         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15286 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
15288         PR objc/48187
15289         * c-parser.c (c_parser_objc_class_instance_variables): More robust
15290         parsing of syntax error in ObjC instance variable lists.  In
15291         particular, avoid an infinite loop if there is a stray ']'.
15292         Updated error message.
15294 2011-05-24  Ian Lance Taylor  <iant@google.com>
15296         * godump.c (go_define): Don't accept a string immediately after
15297         another operand.
15299 2011-05-24  Ian Lance Taylor  <iant@google.com>
15301         * godump.c (struct godump_container): Add invalid_hash field.
15302         (go_format_type): Return false if type is found in invalid_hash.
15303         (go_output_typedef): Add invalid type to invalid_hash.
15304         (go_finish): Create and delete invalid_hash.
15306 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15308         PR tree-optimization/46728
15309         * tree-ssa-math-opts.c (powi_table): New.
15310         (powi_lookup_cost): New.
15311         (powi_cost): New.
15312         (powi_as_mults_1): New.
15313         (powi_as_mults): New.
15314         (gimple_expand_builtin_powi): New.
15315         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15316         (gate_cse_sincos): Remove sincos/cexp restriction.
15318 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15320         PR target/3746
15321         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15322         mips-tdump native.
15323         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15324         * mips-tdump.c: Likewise.
15326 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15328         PR target/49128
15329         * config/i386/driver-i386.c (host_detect_local_cpu): Always
15330         add -mno-XXX.  Handle FMA.
15332 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15334         PR rtl-optimization/48633
15335         * ira-build.c (loop_with_eh_edge_p): New function.
15336         (mark_loops_for_removal): Use it.
15338 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15340         PR rtl-optimization/48971
15341         * ira.c (setup_pressure_classes): Don't check register move cost
15342         for classes with one registers.  Don't add pressure class if there
15343         is a pressure class with the same available hard registers.
15344         Check contains_reg_of_mode.  Fix a typo in collecting
15345         temp_hard_regset.  Ignore hard registers not belonging to a class.
15347 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
15349         PR target/49133
15350         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15352 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15353             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15355         PR gcov-profile/48845
15356         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15358 2011-05-24  Richard Guenther  <rguenther@suse.de>
15360         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15361         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15362         (gimple_types_compatible_p_1): Adjust.
15363         (iterative_hash_canonical_type): Do not bother about complete vs.
15364         incomplete types.
15365         (gimple_canonical_types_compatible_p): Likewise.
15367 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15369         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15371 2011-05-24  Richard Guenther  <rguenther@suse.de>
15373         PR bootstrap/49078
15374         * gimple.c (gimple_register_canonical_type): Revert
15375         previous change.
15376         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15377         does not for a tree for the case where it matters.  Cache
15378         pointer-type alias-sets.
15380 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
15382         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15383         (OBJS): Remove options.o, opts-common.o and prefix.o.
15384         (OBJS-libcommon-target): New.
15385         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15386         (BACKEND): Include libcommon-target.a.
15387         (MOSTLYCLEANFILES): Include libcommon-target.a.
15388         (libcommon-target.a): New.
15389         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15390         prefix.o.
15392 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
15394         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
15395         parts of output shared with the driver.
15396         * optc-gen.awk: Don't generate parts of output not shared with the
15397         driver.
15398         * opth-gen.awk: Remove GCC_DRIVER conditionals.
15399         * doc/options.texi (SourcerInclude): Mention options-save.c.
15400         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15401         (OBJS): Add options-save.o.
15402         (options-save.c, options-save.o): New.
15403         (options.o): Update dependencies.
15404         (gcc-options.o): Remove.
15405         (mostlyclean): Remove options-save.c.
15407 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15409         PR debug/49032
15410         * dbxout.c: Include cgraph.h.
15411         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15412         and without value expr, return NULL if no varpool node exists for
15413         it or if it is not needed.
15414         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15416         PR c/49120
15417         * c-decl.c (start_decl): Convert expr to void_type_node.
15419 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
15421         PR rtl-optimization/48826
15422         * emit-rtl.c (try_split): When splitting a call that is followed
15423         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15425 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15427         * cfgexpand.c (expand_debug_expr): For unused non-addressable
15428         parameters passed in memory prefer using DECL_INCOMING_RTL over
15429         the pseudos it will be copied into.
15431 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15433         PR target/47315
15434         * config/i386/i386.c (ix86_option_override_internal): Save the
15435         initial options after checking vzeroupper.
15437 2011-05-23  David Li  <davidxl@google.com>
15439         PR tree-optimization/48988
15440         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15441         Initialize has_valid_pred for each pred chain.
15443 2011-05-23  Richard Guenther  <rguenther@suse.de>
15445         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15446         (iterative_hash_gimple_type): Always hash type names.
15448 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
15450         * c-typeck.c (build_function_call_vec): Tweak call to
15451         check_function_arguments.
15453 2011-05-23  Richard Guenther  <rguenther@suse.de>
15455         PR tree-optimization/49115
15456         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15457         is not necessarily carried out, do not claim it kills the ref.
15458         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15460 2011-05-23  Richard Guenther  <rguenther@suse.de>
15462         PR middle-end/15419
15463         * builtins.c (fold_builtin_memory_op): Be less restrictive about
15464         what pointer types we accept for folding.
15466 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15468         * gthr-gnat.c: Remove.
15469         * gthr-gnat.h: Remove.
15470         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15471         * config/t-freebsd (LIB2ADDEH): Likewise.
15472         * config/t-linux (LIB2ADDEH): Likewise.
15473         * config/t-sol2 (LIB2ADDEH): Likewise.
15474         * config/ia64/t-vms (LIB2ADDEH): Likewise.
15475         * configure.ac (target_thread_file): Remove gnat handling.
15476         * configure: Regenerate.
15477         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15479 2011-05-23  Tristan Gingold  <gingold@adacore.com>
15480             Eric Botcazou  <ebotcazou@adacore.com>
15482         * gcov.c (create_file_names): If no object directory is specified,
15483         keep the directory of the file.
15485 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15487         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15488         * configure: Regenerate.
15490 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15492         PR middle-end/48973
15493         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15494         failed and the comparison has a single bit signed type, use
15495         constm1_rtx instead of const1_rtx for true value.
15496         (do_store_flag): If ops->type is single bit signed type, disable
15497         signel bit test optimization and pass -1 instead of 1 as last
15498         parameter to emit_store_flag_force.
15500 2011-05-23  Tom de Vries  <tom@codesourcery.com>
15502         PR target/45098
15503         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15504         function.
15505         (infer_loop_bounds_from_undefined): Use new function.
15507 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15509         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15510         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
15511         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15512         and -O0 otherwise.
15513         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15515 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15517         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15518         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15519         returns true.
15521 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15523         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15525 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15527         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15528         UNSPEC_MOVE_PIC pattern.
15530 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15532         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15533         (sparc-*-rtems*): Likewise.
15534         (sparc64-*-elf*): Likewise.
15535         (sparc64-*-rtems*): Likewise.
15536         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
15537         * config/sparc/t-crtin: New file.
15538         * config/sparc/t-sol2 (crti.o): Delete rule.
15539         (crtn.o): Likewise.
15540         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15541         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15542         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15543         (ENDFILE_SPEC): Add crtn.o.
15545 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15547         PR middle-end/48689
15548         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15549         CODE_CONTAINS_STRUCT (TS_COMMON).
15551 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
15553         PR middle-end/49029
15554         * expmed.c (extract_fixed_bit_field): Test whether target can be used
15555         only after deciding which mode to use.
15557 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15559         PR target/45098
15560         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15561         for call to get_shiftadd_cost.
15563 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
15565         PR target/49104
15566         * config/i386/cpuid.h (bit_MMXEXT): New define.
15568 2011-05-22  Nick Clifton  <nickc@redhat.com>
15570         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15571         initialisation of non-existant args[2] element.  Use args[] array
15572         not arg[] array to pass arguments to build_function_type_list.
15574 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
15576         PR tree-optimization/49087
15577         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15579 2011-05-21  Jason Merrill  <jason@redhat.com>
15581         PR c++/49092
15582         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15583         static storage duration.
15585 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15587         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15588         frame pointer.
15590 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15592         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15593         false if there are call-saved registers here...
15594         (sparc_can_use_return_insn_p): ...but here instead.
15595         (save_or_restore_regs): Fix thinko.
15596         (sparc_expand_prologue): Use current_function_is_leaf.
15597         (sparc_frame_pointer_required): Likewise.
15599 2011-05-21  Nick Clifton  <nickc@redhat.com>
15601         PR target/49098
15602         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15604 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
15606         * gengtype.c (walk_type): Implemented "atomic" GTY option.
15607         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15609 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
15611         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
15612         * optc-gen.awk: Move common code to opt-read.awk.
15613         * opth-gen.awk: Likewise.
15614         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15616 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
15618         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15620 2011-05-20  Tom de Vries  <tom@codesourcery.com>
15622         PR target/45098
15623         * tree-ssa-loop-ivopts.c: Include expmed.h.
15624         (get_shiftadd_cost): New function.
15625         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
15627 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15629         PR bootstrap/49086
15630         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15631         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15633 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15635         * Makefile.in: Update comment referring to $(OBJS-common).
15637 2011-05-20  Ian Lance Taylor  <iant@google.com>
15639         * godump.c (go_output_typedef): Put enum constants in the macro
15640         hash table to avoid duplicate Go const definitions.
15642 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15644         * Makefile.in (LIBDEPS): Add libcommon.a.
15645         (LIBS): Likewise.
15646         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15647         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15648         pretty-print.o and version.o.
15649         (OBJS-libcommon): New.
15650         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15651         (BACKEND): Add libcommon.a.
15652         (MOSTLYCLEANFILES): Likewise.
15653         (libcommon.a): New.
15654         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15655         (cpp$(exeext)): Likewise.
15656         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15657         pretty-print.o and input.o.
15658         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15659         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15660         (errors.o): Remove.
15661         (mips-tfile): Don't explicitly use version.o.
15662         (mips-tdump): Likewise.
15663         (gcov.o): Depend on $(DIAGNOSTIC_H).
15664         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15665         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15666         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15667         * gcov-dump.c: Include intl.h and diagnostic.h.
15668         (main): Initialize diagnostics.
15669         * gcov.c: Include diagnostic.h.
15670         (fnotice): Remove.
15671         (main): Initialize diagnostics.
15672         * lto-wrapper.c: Include diagnostic.h.
15673         (main): Initialize diagnostics.
15675 2011-05-20  Michael Matz  <matz@suse.de>
15677         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15679 2011-05-20  Michael Matz  <matz@suse.de>
15680             Richard Guenther  <rguenther@suse.de>
15682         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15683         use lto_streamer_cache_append directly instead of returning a VEC.
15684         (preload_common_node): Remove.
15685         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15686         track seen nodes.
15687         (lto_streamer_cache_create): Call lto_preload_common_nodes.
15689 2011-05-20  Richard Guenther  <rguenther@suse.de>
15691         PR tree-optimization/49079
15692         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15693         MEM_REFs correctly for the trailing array access detection.
15694         Special case constants the same way as decls for overall size
15695         constraining.
15697 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
15699         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15700         argument expansion.
15702 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15704         PR tree-optimization/49073
15705         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15706         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15707         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15709 2011-05-20  Richard Guenther  <rguenther@suse.de>
15711         PR middle-end/48849
15712         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15713         of pointer types the same way the middle-end does.
15715 2011-05-20  Richard Guenther  <rguenther@suse.de>
15717         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15718         or pointer-to chains.  Delay all fixup to uniquify_nodes.
15720 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
15722         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15723         (fma4_fmaddsub): Likewise
15725 2011-05-19  Jan Hubicka  <jh@suse.cz>
15727         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15728         (GIMPLE_TYPE_PAIR_SIZE): New macro.
15729         (type_pair_cache): New static var.
15730         (lookup_type_pair): Use fixed sized custom hash; make inline.
15731         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15732         calls of lookup_type_pair.
15733         (print_gimple_types_stats): Remove cache stats.
15734         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15735         and gtc_ob.
15737 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
15739         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15740         when TARGET_RDRND is active.
15741         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15742         Generate dummy SImode target register when target is NULL.
15744 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15746         * config/arm/arm-fpus.def: New.
15747         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15748         arm-fpus.def.
15749         * config/arm/arm-tables.opt: Regenerate.
15750         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15751         (arm_option_override): Don't decode FPU name to string here.
15752         * config/arm/arm.opt (mfpu=): Use Enum.
15753         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15754         Update dependencies.
15756 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15758         * collect2.c: Include diagnostic.h.
15759         (fatal_perror, fatal, error, fancy_abort): Remove.
15760         (main): Set progname.  Call xmalloc_set_program_name and
15761         diagnostic_initialize.
15762         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15763         scan_libraries, resolve_lib_name): Call fatal_error instead of
15764         fatal and fatal_perror.
15765         * collect2.h (error, fatal, fatal_perror): Don't declare.
15766         * tlink.c: Include diagnostic-core.h.
15767         (recompile_files): Call fatal_error instead of fatal_perror.
15768         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15769         pretty-print.o and input.o.
15770         (collect2.o, tlink.o): Update dependencies.
15772 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15774         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15776 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15778         PR target/40483
15779         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15780         COMDAT group syntax, both SPARC and x86 variants.
15781         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15782         * configure: Regenerate.
15783         * config/sol2.h (TARGET_SOLARIS): Define.
15784         (PUSHSECTION_FORMAT): Remove.
15785         (SECTION_NAME_FORMAT): Define.
15786         * config/sol2.c: Include hashtab.h.
15787         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15788         expansion, using SECTION_NAME_FORMAT.
15789         (solaris_comdat_htab): New variable.
15790         (struct comdat_entry): Define.
15791         (comdat_hash): New function.
15792         (comdat_eq): New function.
15793         (solaris_elf_asm_comdat_section): New function.
15794         (solaris_define_comdat_signature): New function.
15795         (solaris_code_end): New function.
15796         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15797         (solaris_code_end): Declare.
15798         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15799         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15800         solaris_code_end.
15801         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15802         Remove ATTRIBUTE_UNUSED.
15803         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15804         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15805         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15806         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15807         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15808         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15809         (PUSHSECTION_FORMAT): Remove.
15810         (SECTION_NAME_FORMAT): Redefine.
15812 2011-05-19  Kai Tietz  <ktietz@redhat.com>
15814         * tree-cfg.c (verify_gimple_assign_binary): Barf on
15815         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15816         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15818 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
15819             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15821         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15823 2011-05-19  Richard Guenther  <rguenther@suse.de>
15825         PR middle-end/48985
15826         * tree-object-size.c (addr_object_size): If the pointed-to
15827         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15829 2011-05-19  Richard Guenther  <rguenther@suse.de>
15831         * gimple.c (gimple_types_compatible_p_1): Compare names of
15832         the types themselves.
15833         (iterative_hash_gimple_type): And hash them that way.
15834         (gimple_register_type_1): If we register a main variant properly
15835         initialize the leader to ourselves.
15837 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15839         PR target/45098
15840         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15841         get_loop_invariant_expr_id.
15842         (get_loop_invariant_expr_id): Use get_expr_id.
15843         (parm_decl_cost): New function.
15844         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15845         Improve bound cost estimation.  Use different inv_expr_id for elim and
15846         express cases.
15848 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15850         PR target/45098
15851         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15852         cost_base.cost == 0.
15854 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15856         PR target/49002
15857         * config/i386/sse.md
15858         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15859         load cast.
15861 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15863         PR tree-optimization/49039
15864         * tree-vrp.c (extract_range_from_binary_expr): For
15865         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15866         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15868 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15870         PR target/45098
15871         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15873 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
15875         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15876         (*tls_global_dynamic_64): Ditto.
15877         (*tls_local_dynamic_base_32_gnu): Ditto.
15878         (*tls_local_dynamic_base_64): Ditto.
15879         (tls_initial_exec_64_sun): Ditto.
15881 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
15883         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15884         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15885         bf592-none.
15886         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15887         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15888         * config/bfin/bfin.c (bfin_cpus): Add bf592.
15889         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15890         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15891         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15892         * config/bfin/elf.h (LIB_SPEC): Add bf592.
15894 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15896         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15897         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15898         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15899         target_thread_pointer, arm_structure_size_boundary, struct
15900         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15901         struct abi_name, arm_all_abis): Remove.
15902         (arm_option_override) Don't process most enumerated option values here.
15903         Don't process target_fpe_name here.  Work with integer not string for
15904         structure size boundary; use separate diagnostics for each case.
15905         * config/arm/arm.h (enum float_abi_type, enum
15906         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15907         to arm-opts.h.
15908         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15909         arm_structure_size_boundary): Remove.
15910         * config/arm/arm.opt (mabi=): Use Enum and Init.
15911         (arm_abi_type): New Enum and EnumValue entries.
15912         (mfloat-abi=): Use Enum and Init.
15913         (float_abi_type): New Enum and EnumValue entries.
15914         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15915         (mfp16-format=): Use Enum and Init.
15916         (arm_fp16_format_type): New Enum and EnumValue entries.
15917         (mstructure-size-boundary=): Use UInteger and Init.
15918         (mtp=): Use Enum and Init.
15919         (arm_tp_type): New Enum and EnumValue entries.
15921 2011-05-18  Richard Guenther  <rguenther@suse.de>
15923         PR tree-optimization/49018
15924         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15925         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15926         gimple_has_side_effects.
15928 2011-05-18  Richard Guenther  <rguenther@suse.de>
15930         * gimple.c (gimple_register_type_1): New function, split out from ...
15931         (gimple_register_type): ... here.  Avoid infinite recursion.
15933 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15935         PR tree-optimization/41881
15936         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15937         reduction_chains along with a macro for its access.
15938         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15939         (destroy_loop_vec_info): Free reduction chains.
15940         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15941         (vect_is_slp_reduction): New function.
15942         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15943         (vect_create_epilog_for_reduction): Support SLP reduction chains.
15944         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15945         definition types for reduction chains.
15946         (vect_supported_load_permutation_p): Don't allow permutations for
15947         reduction chains.
15948         (vect_analyze_slp_instance): Support reduction chains.
15949         (vect_analyze_slp): Try to build SLP instance from reduction chains.
15950         (vect_get_constant_vectors):  Handle reduction chains.
15951         (vect_schedule_slp_instance): Mark the first statement of the
15952         reduction chain as reduction.
15954 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15956         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15957         names for group elements access.
15958         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15959         reduction chains as well.  Remove data reference and interleaving
15960         related words from the fields names.
15961         * tree-vect-loop.c (vect_transform_loop): Use new names for group
15962         elements access.
15963         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15964         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15965         vect_update_interleaving_chain, vect_same_range_drs,
15966         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15967         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15968         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15969         vect_analyze_group_access, vect_analyze_data_ref_access,
15970         vect_create_data_ref_ptr, vect_transform_strided_load,
15971         vect_record_strided_load_vectors): Likewise.
15972         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15973         vect_model_load_cost, vectorizable_store, vectorizable_load,
15974         vect_remove_stores, new_stmt_vec_info): Likewise.
15975         * tree-vect-slp.c (vect_build_slp_tree,
15976         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15978 2011-05-18  Richard Guenther  <rguenther@suse.de>
15980         PR middle-end/48989
15981         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15982         operand verification.
15983         (verify_gimple_assign_binary): Likewise.
15984         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15985         to non-1-precision BOOLEAN_TYPEs.
15987 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15989         PR target/45098
15990         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15992 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15994         PR tree-optimization/49000
15995         * tree-ssa.c (execute_update_addresses_taken): Call
15996         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
15997         be rewritten and decl has been marked for renaming, reset
15998         the debug stmt.
16000 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
16002         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
16003         enum_opts_set when testing if attributes have set -mfpmath=.
16005 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
16007         * config/mips/mips.c (mips_handle_option): Remove unused variable.
16009 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16011         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
16012         info->entry with 0
16013         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
16014         id.transform_lang_insert_block with NULL.
16016 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16018         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
16019         (output_fp_compare): Change args 3 and 4 to bool.
16020         (ix86_expand_call): Change arg 6 to bool.
16021         (ix86_attr_length_immediate_default): Change arg 2 to bool.
16022         (ix86_attr_length_vex_default): Change arg 3 to bool.
16023         * config/i386/i386.md: Update all uses.
16024         * config/i386/i386.c: Ditto.
16025         (ix86_flags_dependent): Change return type to bool.
16027 2011-05-17  Richard Guenther  <rguenther@suse.de>
16029         * gimple.c (type_hash_pair_compare): Fix comparison.
16031 2011-05-17  Richard Guenther  <rguenther@suse.de>
16033         * gimple.c (iterative_hash_gimple_type): Simplify singleton
16034         case some more, fix final hash value of the non-singleton case.
16036 2011-05-17  Richard Guenther  <rguenther@suse.de>
16038         PR bootstrap/49013
16039         Revert
16040         2011-05-16  Richard Guenther  <rguenther@suse.de>
16042         * gimple.c (gimple_types_compatible_p_1): Use names of the
16043         type itself, not its main variant.
16044         (iterative_hash_gimple_type): Likewise.
16046 2011-05-17  Richard Guenther  <rguenther@suse.de>
16048         * gimple.c (gimple_register_canonical_type): Use the main-variant
16049         leader for computing the canonical type.
16051 2011-05-17  Nick Clifton  <nickc@redhat.com>
16053         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
16054         moves.
16056         * config/rx/rx.md: Add peephole to remove redundant extensions
16057         after loads.
16058         (bitset_in_memory): Use rx_restricted_mem_operand.
16059         (bitinvert_in_memory): Likewise.
16060         (bitclr_in_memory): Likewise.
16062 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
16063             Nick Clifton  <nickc@redhat.com>
16065         * config/rx/rx.md: Add peepholes to match a register move followed
16066         by a comparison of the moved register.  Replace these with an
16067         addition of zero that does both actions in one instruction.
16069 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
16071         PR target/48986
16072         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
16073         predicate to allow CONST_INT.
16074         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
16076 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16078         * opts-common.c (opt_enum_arg_to_value): New.
16079         * opts.h (opt_enum_arg_to_value): Declare.
16080         * config/i386/i386.opt (fpmath): Remove.
16081         (mfpmath=): Use Enum, Init and Save.
16082         (fpmath_unit): New Enum and EnumValue entries.
16083         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
16084         name for function fpmath state.
16085         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
16086         * config/i386/i386.c: Include diagnostic.h.
16087         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16088         (ix86_target_string): Take enum fpmath_unit value instead of string.
16089         (ix86_debug_options): Update call to ix86_target_string.
16090         (ix86_option_override_internal): Don't process fpmath strings here.
16091         (x86_function_specific_save, ix86_function_specific_restore):
16092         Don't handle fpmath state specially.
16093         (ix86_function_specific_print): Pass fpmath state to
16094         ix86_target_string instead of printing in this function.
16095         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16096         Handle enum attributes.
16097         (IX86_ATTR_ENUM, ix86_opt_enum): New.
16098         (ix86_valid_target_attribute_tree): Update option_strings
16099         handling.  Handle fpmath as enum option.
16100         (ix86_can_inline_p): Update field names for function fpmath state.
16101         (ix86_expand_builtin): Update call to ix86_target_string.
16102         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16103         (ix86_fpmath): Remove.
16104         * config/i386/t-i386 (i386.o): Update dependencies.
16106 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16108         PR preprocessor/48677
16109         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16110         from decoded_options[0], not from itself.
16112 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
16114         * config/i386/constraints.md (z): New constraint.
16115         * config/i386/i386.c (c): New mode attribute.
16116         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16117         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16118         constraint for operand 0.
16119         (*call_vzeroupper): Ditto.
16120         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
16121         (*call_rex64_ms_sysv_vzeroupper): Ditto.
16122         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16123         Use "lzm" constraint for operand 0.
16124         (*call_pop_vzeroupper): Ditto.
16125         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16126         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16127         constraint for operand 0.
16128         (*sibcall_vzeroupper): Ditto.
16129         (*sibcall_rex64_ms_sysv): Ditto.
16130         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16131         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16132         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
16133         (*sibcall_pop_vzeroupper): Ditto.
16134         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16135         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16136         mode iterator.  Use "<c>zm" constraint for operand 1.
16137         (*call_value_vzeroupper): Ditto.
16138         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
16139         for operand 1.
16140         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16141         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16142         *call_value_pop_1.  Use "lzm" constraint for operand 1.
16143         (*call_value_pop_vzeroupper): Ditto.
16144         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16145         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16146         mode iterator.  Use "Uz" constraint for operand 1.
16147         (*sibcall_value_vzeroupper): Ditto.
16148         (*sibcall_value_rex64_ms_sysv): Ditto.
16149         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16150         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
16151         constraint for operand 1.
16152         (*sibcall_value_pop_vzeroupper): Ditto.
16153         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16154         and "z" constraint for operand 2.
16155         (*tls_global_dynamic_32_gnu): Ditto.
16156         (*tls_local_dynamic_base_32_gnu): Ditto.
16157         (*tls_local_dynamic_base_64): Ditto.
16158         (*tls_local_dynamic_32_once): Ditto.
16159         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16160         Update all callers.
16161         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16163 2011-05-16  Richard Guenther  <rguenther@suse.de>
16165         * gimple.c (gimple_types_compatible_p_1): Use names of the
16166         type itself, not its main variant.
16167         (iterative_hash_gimple_type): Likewise.
16169 2011-05-16  Richard Guenther  <rguenther@suse.de>
16171         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16172         always visit pointer target and function result and argument types.
16174 2011-05-16  Jason Merrill  <jason@redhat.com>
16176         PR c++/48999
16177         * tree-inline.c (copy_statement_list): Put back recursion.
16179 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16181         PR target/27663
16182         PR target/41076
16183         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16184         * config/avr/avr.md ("*ior<mode>qi.byte0",
16185         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16187 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16189         PR target/45099
16190         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16191         register is needed for a function argument.
16193 2011-05-16  Richard Guenther  <rguenther@suse.de>
16195         * gimple.c (struct type_hash_pair): New type.
16196         (type_hash_pair_compare): New function.
16197         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16199 2011-05-16  Revital Eres  <revital.eres@linaro.org>
16201         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16203 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16205         * config/i386/i386.md (floating point move splitters): Fix
16206         usage of standard_80387_constant_p.
16207         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16209 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16211         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16213 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16215         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16216         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16217         (tree_ssa_lim_finalize): Likewise.
16219 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
16221         * config/i386/constraint.md (Yd, Yx): New register constraints.
16222         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
16223         Yd conditional register constraint.
16224         (*movtf_internal): Use standard_sse_constant_opcode.
16225         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
16226         Yx conditional register constraint.
16227         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
16228         Yd conditional register constraint.  Use standard_sse_constant_p to
16229         check for valid SSE constants and call standard_sse_constant_opcode to
16230         output SSE insn.
16231         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16232         constants and call standard_sse_constant_opcode to output SSE insn.
16233         * config/i386/i386.c (ix86_option_ovverride_internal): Set
16234         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
16235         optimize_size is set.
16236         (standard_sse_constant_opcode): Output conditional AVX insn templates.
16238 2011-05-14  Tobias Burnus  <burnus@net-b.de>
16240         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16242 2011-05-13  Martin Jambor  <mjambor@suse.cz>
16244         * ipa-prop.c (ipa_cst_from_jfunc): New function.
16245         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16246         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16247         (evaluate_conditions_for_ipcp_clone): Removed.
16248         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16249         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16250         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16252 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16254         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16255         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16256         lieu of MAY_HAVE_DEBUG_STMTS.
16257         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16258         debug statements if !MAY_HAVE_DEBUG_STMTS.
16260 2011-05-13  Martin Thuresson  <martint@google.com>
16262         PR gcov-profile/47793
16263         * libgcov.c (gcov_exit): Support relative profile paths.
16264         * doc/invoke.texi (-fprofile-dir): Update for above change.
16266 2011-05-13  Richard Guenther  <rguenther@suse.de>
16268         * gimple.c (gimple_canonical_types_compatible_p): Do not use
16269         type-pair caching, do not compare hashes.
16271 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
16273         PR middle-end/48965
16274         * tree-cfg.c (edge_to_cases_cleanup): Return true.
16275         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16277 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16279         * gimplify.c (gimplify_expr): Make sure operand is boolified.
16280         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16281         compatible type for TRUTH_NOT_EXPR.
16283 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16285         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16286         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
16287         can_create_pseudo_p ().
16289 2011-05-13  Richard Guenther  <rguenther@suse.de>
16291         PR lto/48978
16292         * gimple.c (iterative_hash_gimple_type): Revert change in
16293         pointer target and function result and argument hashing.
16295 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
16297         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16298         (*movxf_internal_nointeger): Ditto.
16299         (*movdf_internal_rex64): Ditto.
16300         (*movdf_internal): Ditto.
16301         (*movdf_internal_nointeger): Ditto.
16302         (*movsf_internal): Ditto.
16303         (sincos splitters): Use can_create_pseudo ().
16305 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
16307         * config/i386/i386-opts.h: New.
16308         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16309         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16310         ix86_section_threshold): Remove.
16311         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
16312         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16313         OPT_mbranch_cost_.
16314         (ix86_option_override_internal): Don't decode strings for options
16315         other than -march=, -mtune= and -mfpmath=.  Don't allow for
16316         __attribute__ uses in remaining diagnostics for options with
16317         string arguments.  Don't check for integer arguments being negative.
16318         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16319         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16320         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16321         ix86_branch_cost, ix86_section_threshold): Remove.
16322         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16323         HeaderInclude.
16324         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16325         but not Var.
16326         (masm=): Use Enum and Init.
16327         (asm_dialect): New Enum and EnumValue entries.
16328         (mbranch-cost=): Use UInteger.
16329         (mlarge-data-threshold=): Use UInteger and Init.
16330         (mcmodel=): Use Enum and Init.
16331         (cmodel): New Enum and EnumValue entries.
16332         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16333         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16334         mregparm=): Use UInteger.
16335         (mstringop-strategy=): Use Enum and Init.
16336         (stringop_alg): New Enum and EnumValue entries.
16337         (mtls-dialect=): Use Enum and Init.
16338         (tls_dialect): New Enum and EnumValue entries.
16339         (mabi=): Use Enum and Init.
16340         (calling_abi): New Enum and EnumValue entries.
16341         (mveclibabi=): Use Enum and Init.
16342         (ix86_veclibabi): New Enum and EnumValue entries.
16344 2011-05-13  Nick Clifton  <nickc@redhat.com>
16346         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16347         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16349 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16351         PR middle-end/48984
16352         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16353         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16354         (gimple_boolify): Check for cast for boolean_type_node instead for
16355         BOOLEAN_TYPE.
16357 2011-05-13  Richard Guenther  <rguenther@suse.de>
16359         PR tree-optimization/48172
16360         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16361         multiplying by number of iterations for equal step.
16362         (vect_create_cond_for_alias_checks): Likewise.
16364 2011-05-13  Andreas Schwab  <schwab@redhat.com>
16366         * configure.ac: Use AS_HELP_STRING throughout.
16367         * configure: Regenerate.
16369 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16371         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16372         (ix86_emit_restore_regs_using_mov): Likewise.
16373         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16375 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
16377         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16378         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16379         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16380         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16381         RTX_OK_FOR_OLO10_P): ...here.
16382         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16383         SYMBOLIC_CONST.
16385 2011-05-12  Kai Tietz  <ktietz@redhat.com>
16387         * gimplify.c (gimple_boolify): Re-boolify expression
16388         arguments even if expression type is of kind BOOLEAN_TYPE.
16389         (gimplify_boolean_expr): Removed.
16390         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16391         and XOR. Additional take care that we keep expression's type.
16392         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16393         of TRUTH_AND|OR|XOR_EXPR.
16395 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16397         PR tree-optimization/48975
16398         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16399         on all bbs here and free and clear ifc_bbs at the end.
16401 2011-05-12  Richard Guenther  <rguenther@suse.de>
16403         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16404         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
16405         until after simple checks.
16406         (gimple_types_compatible_p): Likewise.
16407         (iterative_hash_gimple_type): Always hash pointer targets
16408         and function return and argument types.
16409         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16410         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
16411         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16412         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
16413         completely in the simple compare section.
16414         (gimple_register_canonical_type): Query the cache again after
16415         registering.
16417 2011-05-12  Richard Guenther  <rguenther@suse.de>
16419         PR tree-optimization/48172
16420         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16421         the number of iterations from the segment size calculation.
16422         (vect_create_cond_for_alias_checks): Adjust.
16424 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16426         PR debug/48967
16427         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16428         if validate_subreg fails.
16430 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
16432         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16433         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16434         early.
16436 2011-05-12  DJ Delorie  <dj@redhat.com>
16438         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16439         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16440         created builtin into rx_builtins array.
16441         (rx_builtin_decl): New function.
16442         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
16444 2011-05-12  DJ Delorie  <dj@redhat.com>
16445             Nick Clifton  <nickc@redhat.com>
16447         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16448         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16449         (rx_is_legitimate_address): Add pre-decrement and post-increment
16450         addressing in HImode and QImode.  Fix test for out of range
16451         REG+INT addressing.
16452         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16453         (rx_align_for_label): Test label before extracting its usage count.
16454         (rx_adjust_insn_lengths): Fix selection of insn codes.
16455         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16457 2011-05-11  Jason Merrill  <jason@redhat.com>
16459         * tree.c (type_hash_canon): Use struct tree_type_non_common.
16461 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16463         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16464         reindent the subsequent block.
16466 2011-05-11  Satoru Takabayashi  <satorux@google.com>
16467             Paul Pluzhnikov  <ppluzhnikov@google.com>
16469         * doc/install.texi (Configuration): Document --with-linker-hash-style.
16470         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16471         * config.in: Add LINKER_HASH_STYLE.
16472         * configure.ac: Add --with-linker-hash-style.
16473         * configure: Regenerate.
16475 2011-05-11  Richard Guenther  <rguenther@suse.de>
16477         PR middle-end/48964
16478         * gimple.c (iterative_hash_canonical_type): Fix typo.
16480 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
16482         * config/i386/i386.c (legitimize_tls_address)
16483         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16484         expanders directly for TARGET_GNU2_TLS.  Determine pic and
16485         __tls_get_addr symbol reference here.  Update call to
16486         gen_tls_global_dynamic_{32,64} for added arguments.
16487         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16488         expanders directly for TARGET_GNU2_TLS.  Determine
16489         __tls_get_addr symbol reference here.  Update call to
16490         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
16491         unique UNSPEC REG_EQUIV to libcall block.
16492         (ix86_tls_get_addr): Declare static.
16493         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16494         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16495         Do not determine pic and __tls_get_addr symbol reference here. Do not
16496         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16497         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16498         (tls_global_dynamic_64): Add operand 2.  Do not determine
16499         __tls_get_addr symbol reference here.  Do not call
16500         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16501         (tls_local_dynamic_base64): Ditto for operand 1.
16503 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16505         * function.c (expand_function_start): Initialize stack_check_probe_note
16506         only if the generic stack checking mechanism is used.
16508 2011-05-11  Richard Guenther  <rguenther@suse.de>
16510         PR tree-optimization/15256
16511         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16512         (A & B) | C, combine (A op CST1) op CST2.
16513         (tree_ssa_forward_propagate_single_use_vars): Only bother to
16514         visit assigns that have uses.
16516 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
16518         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16519         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16520         (unpack_ts_type_common_value_fields): ...this.  Update comment.
16521         (unpack_value_fields): Adjust for renaming.
16522         (lto_input_ts_type_tree_pointers): Split into...
16523         (lto_input_ts_type_common_tree_pointer): ...this and...
16524         (lto_input_ts_type_non_common_tree_pointers): ...this.
16525         (lto_input_tree_pointers): Adjust for above split.
16526         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16527         (pack_ts_type_common_value_fields): ...this.  Update comment.
16528         (lto_output_ts_type_tree_pointers): Split into...
16529         (lto_output_ts_type_common_tree_pointers): ...this and...
16530         (lto_output_ts_type_non_common_tree_pointers): ...this.
16531         (lto_output_tree_pointers): Adjust for above split.
16532         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16533         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16534         * stor-layout.c (vector_type_mode): Adjust location of mode field.
16535         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16536         Define.
16537         (struct tree_type): Split into...
16538         (struct tree_type_common: ...this and...
16539         (struct tree_type_with_lang_specific): ...this and...
16540         (struct tree_type_non_common): ...this.  Adjust accessor macros
16541         accordingly.
16542         (TYPE_VALUES_RAW): Define.
16543         (union tree_node): Update for above changes.
16544         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16545         TS_TYPE_NON_COMMON.
16546         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16547         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16548         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16549         * treestructu.def (TS_TYPE): Remove.
16550         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16551         Define.
16553 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
16555         PR debug/48159
16556         * tree-ssa.c (reset_debug_uses): New function.
16557         * tree-flow.h (reset_debug_uses): New prototype.
16558         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16559         * tree-loop-distribution.c (generate_loops_for_partition): Call
16560         reset_debug_uses on the stmts that will be removed.  Keep around
16561         all debug stmts, don't count them as bits in partition bitmap.
16562         (generate_builtin): Don't count debug stmts or labels as bits in
16563         partition bitmap.
16565 2011-05-11  Richard Guenther  <rguenther@suse.de>
16567         * gimple.c (gimple_type_hash_1): Merge with ...
16568         (gimple_type_hash): ... this.
16569         (gtc_visit): Remove mode parameter and simplify accordingly.
16570         (gimple_types_compatible_p_1): Likewise.
16571         (gimple_types_compatible_p): Likewise.
16572         (iterative_hash_gimple_type): Likewise.
16573         (visit): Likewise.
16574         (gimple_type_eq): Adjust.
16576 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16578         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16579         enters the branch create an anti edge in the opposite direction
16580         to prevent the creation of reg-moves.
16581         * modulo-sched.c: Adjust comment to reflect the fact we are
16582         scheduling closing branch.
16583         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16584         (stage_count): New field in struct partial_schedule.
16585         (calculate_stage_count): New function.
16586         (normalize_sched_times): Rename to reset_sched_times and handle
16587         incrementing the sched time of the nodes by a constant value
16588         passed as parameter.
16589         (duplicate_insns_of_cycles): Skip closing branch.
16590         (sms_schedule_by_order): Schedule closing branch.
16591         (ps_insn_find_column): Handle closing branch.
16592         (sms_schedule): Call reset_sched_times and adjust the code to
16593         support scheduling of the closing branch.
16594         (ps_insert_empty_row): Update calls to normalize_sched_times
16595         and rotate_partial_schedule functions.
16597 2011-05-11  Richard Guenther  <rguenther@suse.de>
16599         PR middle-end/48953
16600         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16602 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
16604         * opts.c (finish_options): Move warning settings from process_options.
16605         * toplev.c (process_options): Move warning settings to finish_options.
16607 2011-05-11  Richard Guenther  <rguenther@suse.de>
16609         PR tree-optimization/18041
16610         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16611         (simplify_bitwise_binary): ... this.  Handle operand conversions
16612         by applying them to the result instead.
16613         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
16615 2011-05-11  Richard Guenther  <rguenther@suse.de>
16617         * gimple.c (gimple_canonical_types_compatible_p): Split out
16618         from gimple_types_compatible_p and friends.  Do not recurse
16619         to pointed-to types.
16620         (gimple_canonical_type_eq): Use it.
16621         (iterative_hash_canonical_type): Split out from
16622         iterative_hash_gimple_type and friends.  Do not recurse
16623         to pointed-to types.
16624         (gimple_canonical_type_hash): Use it, allocate the hash here.
16626 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16628         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16629         recognizing doloop.
16631 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16633         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16634         instead of PREV_INSN.
16636 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16638         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16639         * loop-doloop.c (doloop_condition_get): Likewise.
16640         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16641         (doloop_end): New.
16642         * config/arm/arm.md (*addsi3_compare0): Remove "*".
16644 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
16646         * tree.def (CASE_LABEL_EXPR): Add an operand.
16647         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16649 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16651         * c-decl.c (c_override_global_bindings_to_false): Remove.
16652         (global_bindings_p): Don't check
16653         c_override_global_bindings_to_false.
16654         * c-tree.h (c_override_global_bindings_to_false): Remove.
16655         * c-typeck.c (composite_type): Don't set
16656         c_override_global_bindings_to_false.
16658 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16660         PR target/48857, 48495
16661         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16662         (VSX_MODE): Ditto.
16663         (VSX_MOVE_MODE): Ditto.
16664         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16665         VSX vector types.  Add V2DImode.
16666         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16667         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16668         (MODES_TIEABLE_P): Ditto.
16670         * config/rs6000/rs6000.c (rs6000_emit_move): Use
16671         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16672         VSX_VECTOR_MODE.
16673         (init_cumulative_args): Ditto.
16674         (rs6000_function_arg_boundary): Ditto.
16675         (rs6000_function_arg_advance_1): Ditto.
16676         (rs6000_function_arg): Ditto.
16677         (rs6000_function_ok_for_sibcall): Ditto.
16678         (emit_frame_save): Ditto.
16679         (rs6000_function_value): Ditto.
16680         (rs6000_libcall_value): Ditto.
16682 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16684         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16685         i386/darwin-lib.h to $libgcc_tm_file.
16686         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16688 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16690         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16692 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16694         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16695         * config/rs6000/rs6000-tables.opt: New file (generated).
16696         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16697         rs6000/rs6000-tables.opt to extra_options.
16698         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16699         * config/rs6000/rs6000.c (rs6000_select): Remove.
16700         (processor_target_table): Move contents to rs6000-cpus.def.
16701         (darwin_rs6000_override_options): Check
16702         global_options_set.x_rs6000_cpu_index instead of
16703         rs6000_select[1].string.
16704         (rs6000_option_override_internal): Likewise.
16705         (rs6000_handle_option): Don't assert that global structures are in
16706         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
16707         (rs6000_default_cpu): New variable.
16708         (rs6000_file_start): Set it instead of local default_cpu.  Check
16709         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16710         global_options_set.x_rs6000_tune_index instead of rs6000_select.
16711         (rs6000_darwin_file_start): Check rs6000_default_cpu and
16712         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16713         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16714         rs6000_select): Remove.
16715         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16716         Remove.
16717         (mcpu=, mtune=): Use Var, Init, Enum and Save.
16718         * config/rs6000/t-rs6000
16719         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16720         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16721         global_options_set.x_rs6000_cpu_index instead of
16722         rs6000_select[1].string.
16723         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16724         global_options_set.x_rs6000_cpu_index instead of
16725         rs6000_select[1].string.
16727 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16729         * config.gcc (libgcc_tm_file): Define instead of including files
16730         from ../../libgcc/config/ in tm_file.
16731         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16732         * configure: Regenerate.
16733         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16734         libgcc_tm.h, cs-libgcc_tm.h): New.
16735         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16736         (clean): Remove libgcc_tm.h.
16737         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16738         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16739         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16741 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
16743         PR target/48896
16744         * config/avr/avr.c (avr_ret_register): Return unsigned int
16745         instead of int.
16746         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16747         it to avr_libcall_value.
16748         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16749         expand_expr.
16750         (avr_expand_binop_builtin): Ditto.
16751         (avr_expand_unop_builtin): Ditto.
16753 2011-05-10  DJ Delorie  <dj@redhat.com>
16755         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16756         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16757         * config/rx/rx.c (rx_align_for_label): Add label and
16758         uses_threshold parameters.  Do not align when the label is not
16759         used enough.
16760         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16762 2011-05-10  Richard Guenther  <rguenther@suse.de>
16764         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16765         a series of conversions and apply foldings similar to what
16766         fold-const does.
16767         (tree_ssa_forward_propagate_single_use_vars): Call it.
16769 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
16771         PR tree-optimization/48611
16772         PR tree-optimization/48794
16773         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16774         referenced from RESX or EH_DISPATCH arguments.
16776         PR debug/48928
16777         * dfp.c (decimal_to_decnumber): Handle conversion from
16778         dconst{1,2,m1,half}.
16780 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16782         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16783         for !flag_prefer_avx128.
16784         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16786 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16788         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16789         (fold_ternary_loc): Use expr_location_or.
16791 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16793         PR debug/48853
16794         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16795         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16796         Pmode and mem_mode is not VOIDmode.
16798 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
16800         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16801         TYPE_QUAL_RESTRICT): Convert to enum.
16803 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16805         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16806         (const_pow2_1_to_8_operand): Ditto.
16807         (const_pow2_1_to_128_operand): Ditto.
16808         (const_pow2_1_to_32768_operand): Ditto.
16809         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16810         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
16811         in insn constraint to check integer value of operand 3.
16812         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16814         (PINSR_MODE): New mode iterator.
16815         (sse2p4_1): New mode attribute.
16816         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16817         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16818         iterator.  Use const_int_operand instead of
16819         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
16820         exact_log2 in insn constraint to check integer value of operand 3.
16822 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16824         * config/i386/sse.md (blendbits): Remove mode attribute.
16825         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16826         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16827         Check integer value of operand 3 in insn constraint.
16829 2011-05-09  Richard Guenther  <rguenther@suse.de>
16831         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16832         for diagnostics.
16833         (lto_symtab_merge): Likewise.  Do not register types here.
16834         (lto_symtab_merge_decls_2): Likewise.
16835         (lto_symtab_merge_decls_1): Likewise.
16836         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16837         * gimple.c (enum gtc_mode): Declare.
16838         (gimple_types_compatible_p): Make static.
16840 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16842         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16843         temporary register to match Pmode.
16845 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16847         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16848         and *vec_concatv4si_1_avx.
16850 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16852         PR rtl-optimization/48927
16853         * ira-conflicts.c (commutative_constraint_p): Use
16854         recog_data.alternative_enabled_p to disable alternatives where
16855         "enabled" attribute is false.
16856         (get_dup_num): Ditto.
16857         * ira-lives.c (single_reg_class): Ditto.
16858         (ira_implicitly_set_insn_hard_regs): Ditto.
16860 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16862         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16863         (dataflow_set_preserve_mem_locs): Likewise.
16865 2011-05-09  Philipp Thomas  <pth@suse.de>
16867         * config/mep/mep.c (mep_validate_vliw): Syntax description
16868         should not be translated.
16870 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
16872         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16873         * config/mips/mips-tables.opt: New file (generated).
16874         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16875         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16876         MIPS_ARCH_OPTION_NATIVE): Define.
16877         * config/mips/mips.c (mips_cpu_info_table): Move contents to
16878         mips-cpus.def.
16879         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16880         mips_parse_cpu): Remove.
16881         (mips_cpu_info_from_opt, mips_default_arch): New.
16882         (mips_handle_option): Don't assert that global structures are in
16883         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16884         (mips_option_override): Use new variables and functions to set
16885         state of these options.  Use strcmp to check for individual CPU names.
16886         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16887         definition.
16888         * config/mips/mips.opt (march=): Use ToLower and Enum.
16889         (mips): Use ToLower, Enum and Var.
16890         (mtune=): Use ToLower and Enum.
16891         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16893 2011-05-08  Jan Hubicka  <jh@suse.cz>
16895         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16896         Arrange type pairs to be UID ordered.
16897         (gimple_lookup_type_leader): Make inline.
16899 2011-05-09  Nick Clifton  <nickc@redhat.com>
16901         PR target/48899
16902         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16903         PROCESSOR_DEFAULT.
16905         PR target/48897
16906         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16907         variable 's'.
16909 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
16911         * combine.c (simplify_comparison): Abstract out parts into...
16912         (simplify_compare_const): ... new function.
16913         (try_combine): Generalize parallel arithmetic/compare combining
16914         to call simplify_compare_const() and CANONICALIZE_COMPARE().
16916 2011-05-08  Jan Hubicka  <jh@suse.cz>
16918         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16919         (cgraph_create_virtual_clone): Call hooks once virtual clone
16920         is finished.
16921         * cgraph.h (cgraph_clone_node): Update prototype.
16922         * ipa-cp.c (ipcp_estimate_growth): Use
16923         estimate_ipcp_clone_size_and_time.
16924         * ipa-inline-transform.c (clone_inlined_nodes): Update.
16925         * lto-cgraph.c (input_node): Update.
16926         * ipa-inline.c (recursive_inlining): Update.
16927         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16928         (evaluate_conditions_for_known_args): Break out from ...
16929         (evaluate_conditions_for_edge): ... here.
16930         (evaluate_conditions_for_ipcp_clone): New function.
16931         (inline_node_duplication_hook): Update clone summary based
16932         on parameter map.
16933         (estimate_callee_size_and_time): Rename to ...
16934         (estimate_node_size_and_time): take NODE instead of EDGE;
16935         take POSSIBLE_TRUTHS as argument.
16936         (estimate_callee_size_and_time): Update.
16937         (estimate_ipcp_clone_size_and_time): New function.
16938         (do_estimate_edge_time): Update.
16940 2011-05-08  Richard Guenther  <rguenther@suse.de>
16942         PR middle-end/48908
16943         PR middle-end/48905
16944         * expmed.c (expand_shift_1): Compute adjusted constant shift
16945         amount manually.
16947 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16949         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16951 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16953         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16955 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16957         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16959 2011-05-07  Jan Hubicka  <jh@suse.cz>
16961         * ipa-inline-transform.c (inline_call): Account when program size
16962         decreases.
16963         * ipa-inline.c (relative_time_benefit): New function.
16964         (edge_badness): Reorganize to be power 2 based; fix thinko when
16965         computing badness for negative growth; update comments to match
16966         reality; better dumps.
16968 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16970         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16971         type to bool and adjust comment.
16972         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16973         (fold_mathfn_compare): Remove calls to global_bindings_p.
16974         (fold_inf_compare): Likewise.
16975         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16976         * c-tree.h (global_bindings_p): Adjust prototype.
16977         * c-decl.c (global_bindings_p): Return bool and simplify.
16979 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
16981         PR tree-optimization/48837
16982         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16983         when accumulator transformation is performed.
16985 2011-05-06  Jan Hubicka  <jh@suse.cz>
16987         * i386.h (ix86_tune_indices): Add
16988         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16989         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16990         * i386.c (initial_ix86_tune_features): Add
16991         X86_SOFTARE_PREFETCHING_BENEFICIAL.
16992         (software_prefetching_beneficial_p): Remove predicate.
16993         (ix86_option_override_internal): Use new macro.
16995 2011-05-06  Jan Hubicka  <jh@suse.cz>
16997         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16999 2011-05-06  Jan Hubicka  <jh@suse.cz>
17001         * cgraph.c (cgraph_add_thunk): Create real function node instead
17002         of alias node; finalize it and mark needed/reachale; arrange visibility
17003         to be right and add it into the corresponding same comdat group list.
17004         (dump_cgraph_node): Dump thunks.
17005         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
17006         cgraph_function_with_gimple_body_p,
17007         cgraph_first_function_with_gimple_body,
17008         cgraph_next_function_with_gimple_body): New functions.
17009         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
17010         New macros.
17011         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
17012         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17013         * cgraphunit.c (cgraph_finalize_function): Only look into possible
17014         devirtualization when optimizing.
17015         (verify_cgraph_node): Verify thunks.
17016         (cgraph_analyze_function): Analyze thunks.
17017         (cgraph_mark_functions_to_output): Output thunks only in combination
17018         with function they are assigned to.
17019         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
17020         alias into normal node.
17021         (assemble_thunks): New functoin.
17022         (cgraph_expand_function): Use it.
17023         * lto-cgraph.c (lto_output_node): Stream thunks.
17024         (input_overwrite_node): Stream in thunks.
17025         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
17026         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
17027         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
17028         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
17029         (inline_analyze_function): Do not care about thunk jump functions.
17030         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
17031         * ipa-prop.c (ipa_prop_write_jump_functions): Use
17032         cgraph_function_with_gimple_body_p.
17033         * passes.c (do_per_function_toporder): Use
17034         cgraph_function_with_gimple_body_p.
17035         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17036         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
17037         (function_called_by_processed_nodes_p): Likewise.
17039 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17041         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
17042         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
17043         entries.
17044         (mabi=): Replace with separate entries for mabi=altivec,
17045         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
17046         mabi=ieeelongdouble and mabi=ibmlongdouble.
17047         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17048         check for -mabi=spe without SPE ABI support here.
17049         (rs6000_handle_option): Replace OPT_mabi_ handling with
17050         OPT_mabi_altivec and OPT_mabi_spe handling.
17052 2011-05-06  Cary Coutant  <ccoutant@google.com>
17054         * dwarf2out.c (contains_subprogram_definition): New function.
17055         (should_move_die_to_comdat): Call it.
17057 2011-05-06  Jeff Law  <law@redhat.com>
17059         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
17060         remove_ctrl_stmt_and_useless_edges.
17061         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
17062         (fixup_template_block, thread_single_edge): Likewise.
17063         (mark_threaded_blocks): Use THREAD_TARGET.
17065 2011-05-06  Alan Modra  <amodra@gmail.com>
17067         PR target/48900
17068         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17069         const0_rtx as the arg to the dummy __tls_get_addr libcall.
17071 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17073         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
17074         constraint modifier to "r".
17076 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17078         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
17079         fall through for OPT_mcmodel_.
17081 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17083         * config/s390/s390.c (s390_asm_trampoline_template): Comment
17084         instruction sizes.
17085         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
17087 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17089         PR target/47930
17090         * config/arm/arm.opt (marm): Document it.
17091         (mthumb): Reject negative variant.
17093 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17095         PR target/48898
17096         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17097         Fix typo in "ccvt" variable name.
17099 2011-05-06  Tristan Gingold  <gingold@adacore.com>
17101         PR target/48895
17102         * config/vms/vms-ar.c (main): Remove cwd variable.
17104 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17106         PR debug/48902
17107         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17109 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17111         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17112         * gimplify.c (gimplify_switch_expr): Likewise.
17113         * omp-low.c (expand_omp_sections): Likewise.
17114         * tree-eh.c (lower_try_finally_switch): Likewise.
17115         (lower_eh_dispatch): Likewise.
17116         * tree.h (build_case_label): Declare.
17117         * tree.c (build_case_label): Define.
17119 2011-05-05  Jason Merrill  <jason@redhat.com>
17121         PR c++/40975
17122         * tree-inline.c (copy_tree_r): Use copy_statement_list.
17123         (copy_statement_list): Don't recurse.
17124         * stor-layout.c (copy_self_referential_tree_r): Don't allow
17125         STATEMENT_LIST.
17127 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17129         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17130         through from -mfpu= handling.
17131         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17133 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
17135         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17136         POST_MODIFY.
17138 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
17140         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17141         for 11.31.
17142         (hppa[12]*-*-hpux11*): Ditto.
17143         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17144         * config/ia64/hpux-unix2003.h: New.
17145         * config/pa/pa-hpux1131.opt: New.
17146         * config/pa/pa-hpux1131.h: New.
17147         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17148         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17149         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17151 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17153         PR debug/48853
17154         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17155         instead of mode as 3rd argument to recursive call.
17156         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17157         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17158         VOIDmode.
17159         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17160         don't give up if mode is Pmode and mem_mode is not VOIDmode.
17161         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17162         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17164 2011-05-05  Julian Brown  <julian@codesourcery.com>
17166         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17167         parenthesis in D-register case.
17169 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17171         * opt-functions.awk (var_type_struct): Handle Enum options.
17172         * optc-gen.awk: Don't check range of variables of character type.
17173         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17174         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17175         rs6000_sdata_name, rs6000_explicit_options): Remove.
17176         (rs6000_option_override_internal): Check for -malign-power here.
17177         Use global_options_set instead of rs6000_explicit_options.
17178         (rs6000_parse_fpu_option): Remove.
17179         (rs6000_handle_option): Access variables via opts and opts_set
17180         pointers.  Use error_at and warning_at.  Add fall-through
17181         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17182         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17183         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17184         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17185         here.  Don't use rs6000_parse_fpu_option.
17186         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17187         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17188         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17189         (mrecip=): Use Var.
17190         (mspe): Use Var and Save.
17191         (mtraceback=): Use Enum and Var.
17192         (rs6000_traceback_type): New Enum and EnumValue entries.
17193         (mfloat-gprs=): Use Enum, Var and Save.
17194         (rs6000_float_gprs): New Enum and EnumValue entries.
17195         (mlong-double-): use Var and Save.
17196         (msched-costly-dep=, minsert-sched-nops=): Use Var.
17197         (malign-): Use Enum and Var.
17198         (rs6000_alignment_flags): New Enum and EnumValue entries.
17199         (mfpu=): Use Enum.
17200         (fpu_type_t): New Enum and EnumValue entries.
17201         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17202         global_options_set instead of rs6000_explicit_options.
17203         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17204         global_options_set instead of rs6000_explicit_options.
17205         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17206         global_options_set instead of rs6000_explicit_options.
17207         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17208         global_options_set instead of rs6000_explicit_options.
17209         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17210         global_options_set instead of rs6000_explicit_options.
17211         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17212         global_options_set instead of rs6000_explicit_options.
17213         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17214         definition.
17215         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17216         global_options_set instead of rs6000_explicit_options.
17217         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17218         (rs6000_cmodel): New Enum and EnumValue entries.
17219         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17220         global_options_set instead of rs6000_explicit_options.
17221         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17222         (mtls-size=): Use Enum and Var.
17223         (rs6000_tls_size): New Enum and EnumValue entries.
17225 2011-05-05  Michael Matz  <matz@suse.de>
17227         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17228         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17229         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17230         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17231         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17232         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17233         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17234         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17235         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17236         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17237         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17238         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17239         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17240         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17241         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17242         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17244 2011-05-05  Richard Guenther  <rguenther@suse.de>
17246         * expmed.c (expand_variable_shift): Rename to ...
17247         (expand_shift_1): ... this.  Take an expanded shift amount.
17248         For rotates recurse directly not building trees for the shift amount.
17249         (expand_variable_shift): Wrap around expand_shift_1.
17250         (expand_shift): Adjust.
17252 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17254         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17256 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17258         * tree.h (get_pending_sizes): Remove prototype.
17259         (put_pending_size): Likewise.
17260         (put_pending_sizes): Likewise.
17261         * stor-layout.c (pending_sizes): Delete.
17262         (get_pending_sizes): Likewise.
17263         (put_pending_size): Likewise.
17264         (put_pending_sizes): Likewise.
17265         (variable_size): Do not call put_pending_size and tidy up.
17266         * function.h (struct function): Remove dont_save_pending_sizes_p.
17267         * lto-streamer-in.c (input_function): Do not stream it.
17268         * lto-streamer-out.c (output_function): Likewise.
17269         * tree-inline.c (initialize_cfun): Do not copy it.
17270         * c-decl.c (store_parm_decls): Do not set it.
17271         * omp-low.c (create_task_copyfn): Likewise.
17272         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17274 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
17276         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17277         conditions.
17278         (*movdf_internal): Ditto.
17279         (*movdf_internal_nointeger): Ditto.
17280         (*movsf_internal): Ditto.
17282 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17284         * c-decl.c (finish_decl): Don't call get_pending_sizes.
17285         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
17286         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
17287         (c_variable_size): Remove.
17288         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
17289         call put_pending_sizes.
17290         (get_parm_info): Add parameter expr.  Use it to set
17291         arg_info->pending_sizes.
17292         (store_parm_decls): Use arg_info->pending_sizes instead or calling
17293         get_pending_sizes.
17294         * c-parser.c (c_parser_parms_declarator): Update call to
17295         c_parser_parms_list_declarator.
17296         (c_parser_parms_list_declarator): Take parameter expr.  Update
17297         call to push_parm_decl.  Update recursive call.  Don't call
17298         get_pending_sizes.  Update calls to get_parm_info.
17299         (c_parser_objc_method_definition): Update calls to
17300         c_parser_objc_method_decl and objc_start_method_definition.
17301         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17302         (c_parser_objc_method_decl): Add parameter expr.  Update call to
17303         grokparm.
17304         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17305         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17306         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17308 2011-05-05  Michael Hope  <michael.hope@linaro.org>
17310         PR pch/45979
17311         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17312         __ARM_EABI__ hosts.
17314 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17316         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17317         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17318         (spu_output_mi_thunk): New function.
17320 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17322         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17323         targetm.asm_out.print_operand.
17324         * config/sol2.c: Include target.h.
17326 2011-05-04  Jan Hubicka  <jh@suse.cz>
17328         * ipa-inline.c (reset_edge_caches): New function.
17329         (update_caller_keys): Add check_inlinablity_for; do not
17330         reset edge caches; remove now unnecesary loop.
17331         (update_callee_keys): Add comments; reset node_growth_cache of callee.
17332         (update_all_callee_keys): Likewise.
17333         (inline_small_functions): Sanity check cache; update code
17334         recomputing it.
17336 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
17338         PR rtl-optimization/47612
17339         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17340         as the last insn of the sequence to be moved.
17342 2011-05-04  Tobias Burnus  <burnus@net-b.de>
17344         PR fortran/48864
17345         * doc/invoke.texi (Ofast): Document that it
17346         enables Fortran's -fno-protect-parens.
17348 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17350         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17352 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17354         * stor-layout.c (variable_size): Do not issue errors.
17356 2011-05-04  Richard Guenther  <rguenther@suse.de>
17358         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17359         for array-ref indices.
17360         (tree_coverage_counter_addr): Likewise.
17361         (build_fn_info_type): Use size_int for index types.
17362         (build_gcov_info): Likewise.
17364 2011-05-04  Richard Guenther  <rguenther@suse.de>
17366         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17367         to build_int_cst.
17368         * c-typeck.c (really_start_incremental_init): Use bitsize_int
17369         for constructor indices.
17370         (push_init_level): Likewise.
17372 2011-05-04  Richard Guenther  <rguenther@suse.de>
17374         * explow.c (promote_mode): Move variable declarations before code.
17376 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
17378         * tree.h (build_function_type_array): Declare.
17379         (build_varargs_function_type_array): Declare.
17380         (build_function_type_vec, build_varargs_function_type_vec): Define.
17381         * tree.c (build_function_type_array_1): New function.
17382         (build_function_type_array): New function.
17383         (build_varargs_function_type_array): New function.
17385 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
17387         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17388         before setting STMT_VINFO_TYPE.
17390 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17392         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17393         instead of spu_pass_by_reference.
17395 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17397         * calls.c (emit_library_call_value_1): Invoke
17398         promote_function_mode hook on libcall arguments.
17399         * explow.c (promote_function_mode, promote_mode): Handle TYPE
17400         argument being NULL.
17401         * targhooks.c (default_promote_function_mode): Lisewise.
17402         * config/s390/s390.c (s390_promote_function_mode): Likewise.
17403         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17405         * doc/tm.texi: Document that TYPE argument might be NULL.
17407 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17409         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17411 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17413         From Bernd Schmidt
17414         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17416 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17418         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17419         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17420         Move ...
17421         * mips-tfile.c: ... here.
17422         Don't include coretypes.h, tm.h, filenames.h.
17423         (saber_stop): Remove definition and all calls.
17424         [__SABER__]: Remove.
17425         (__LINE__): Remove default.
17426         (Size_t, Ptrdiff_t): Remove definitions.
17427         Replace by size_t, ptrdiff_t.
17428         [!MIPS_DEBUGGING_INFO]: Remove.
17429         (SHASH_SIZE, THASH_SIZE): Remove defaults.
17430         (progname): Add const.
17431         (STATIC): Remove.
17432         Replace all uses by static.
17433         (ALIGN_SYMTABLE_OFFSET): Remove default.
17434         * mips-tdump.c: Don't include coretypes.h, tm.h.
17435         Remove !MIPS_IS_STAB guard.
17436         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17437         $(TM_H), filenames.h dependencies.
17438         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17440 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17442         From Jie Zhang
17443         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17444         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17446 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17448         From Bernd Schmidt
17449         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17450         account and save/restore RETS.
17451         (PROFILE_BEFORE_PROLOGUE): Define.
17452         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
17453         the push insn to use predecrement.
17455 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17457         From Jie Zhang
17458         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17460 2011-05-04  Nick Clifton  <nickc@redhat.com>
17462         * config/mn10300/mn10300.c: Include cfgloop.h.
17463         (DUMP): New macro.
17464         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
17465         Lcc or a FLcc insn into the instruction stream.
17466         (mn10300_block_contains_call): New function.  Returns true if the
17467         given basic block contains a CALL insn.
17468         (mn10300_loop_contains_call_insn): New function.  Returns true if
17469         the given loop contains a CALL insn.
17470         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
17471         to use the SETLB and Lcc or FLcc insns.
17472         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17473         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17474         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
17475         disable the SETLB optimization.
17476         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17477         __SETLB__ or __NO_SETLB__.
17478         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17479         (movsf_internal): Handle MDR register.
17480         (cmpsi): Make visible.
17481         (setlb): New pattern.
17482         (Lcc): New pattern.
17483         (FLcc): New pattern.
17485 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17487         PR target/48860
17488         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17489         for reg<->xmm moves.
17490         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17491         (vec_concatv2di_rex64_sse): Ditto.
17492         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17493         (*vec_extractv2di_1_rex64): Ditto.
17495         Revert:
17496         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17498         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17499         reg<->xmm moves.
17500         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17502 2011-05-04  Richard Guenther  <rguenther@suse.de>
17504         * tree.h (int_const_binop): Remove notrunc argument.
17505         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
17506         create integer constants that are properly truncated.
17507         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17508         (const_binop): Remove zero notrunc argument to int_const_binop.
17509         (size_binop_loc): Likewise.
17510         (fold_div_compare): Likewise.
17511         (maybe_canonicalize_comparison_1): Likewise.
17512         (fold_comparison): Likewise.
17513         (fold_binary_loc): Likewise.
17514         (multiple_of_p): Likewise.
17515         * expr.c (store_constructor): Likewise.
17516         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17517         (maybe_fold_stmt_addition): Likewise.
17518         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17519         * stor-layout.c (layout_type): Likewise.
17520         * tree-data-ref.c (tree_fold_divides_p): Likewise.
17521         * tree-sra.c (build_ref_for_offset): Likewise.
17522         (build_user_friendly_ref_for_offset): Likewise.
17523         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17524         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17525         * tree-ssa-loop-niter.c (inverse): Likewise.
17526         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17527         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17528         * tree-switch-conversion.c (check_range): Likewise.
17529         (build_constructors): Likewise.
17530         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17531         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17532         (extract_range_from_assert): Likewise.
17533         (vrp_int_const_binop): Likewise.
17534         (extract_range_from_binary_expr): Likewise.
17535         (extract_range_from_unary_expr): Likewise.
17536         (check_array_ref): Likewise.
17537         (find_case_label_range): Likewise.
17538         (simplify_div_or_mod_using_ranges): Likewise.
17539         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17540         comparing case labels for merging.
17542 2011-05-03  Mark Wielaard  <mjw@redhat.com>
17544         * dwarf2out.c (debug_str_hash_forced): Removed.
17545         (gen_label_for_indirect_string): Removed.
17546         (get_debug_string_label): Removed.
17547         (AT_string_form): Generate label directly.
17548         (output_indirect_string): Test indirect_string_node for
17549         DW_FORM_strp instead of checking label and refcount.
17550         (prune_indirect_string): Removed.
17551         (prune_unused_types): Don't check debug_str_hash_forced or
17552         call prune_indirect_string.
17554 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17556         PR other/48093
17557         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17559 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17561         PR debug/47994
17562         PR debug/47919
17563         * combine.c (try_combine): Skip debug insns at m_split tests.
17565 2011-04-26  Mark Wielaard  <mjw@redhat.com>
17567         PR42288
17568         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17569         when info_section_emitted.
17571 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
17573         * config/mips/mips-opts.h: New.
17574         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17575         to mips-opts.h.
17576         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17577         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17578         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
17579         via opts pointer.
17580         * config/mips/mips.h (enum mips_code_readable_setting): Move to
17581         mips-opts.h.
17582         (mips_abi, mips_code_readable): Don't declare.
17583         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17584         (mabi=): Use Enum and Var.
17585         (mips_abi): New Enum and EnumValue entries.
17586         (mcode-readable=): Use Enum and Var.
17587         (mips_code_readable_setting): New Enum and EnumValue entries.
17588         (mr10k-cache-barrier=): Use Enum and Var.
17589         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17591 2011-05-03  Jan Hubicka  <jh@suse.cz>
17593         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17594         replace hash by pointer map.
17595         (cgraph_node_set_element_def, cgraph_node_set_element,
17596         const_cgraph_node_set_element, varpool_node_set_element_def,
17597         varpool_node_set_element, const_varpool_node_set_element): Remove.
17598         (free_cgraph_node_set, free_varpool_node_set): New function.
17599         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17600         * tree-emutls.c: Free varpool node set.
17601         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17602         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17603         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17604         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17605         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17606         Move here from ipa.c; implement using pointer_map
17607         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17608         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17609         debug_cgraph_node_set, varpool_node_set_new,
17610         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17611         dump_varpool_node_set, debug_varpool_node_set):
17612         Move to ipa-uitls.c.
17613         * passes.c (ipa_write_summaries): Update.
17615 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17617         From Mike Frysinger:
17618         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17619         bf542/bf544/bf547/bf548/bf549.
17621 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17623         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17625 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17627         From Bernd Schmidt:
17628         * config/bfin/bfin.md (MOVCC): New mode_macro.
17629         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17630         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
17631         comments from generated assembly.
17633 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17635         From Bernd Schmidt
17636         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17637         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17638         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17639         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17640         * config/bfin/lib1funcs.asm (___muldi3): New function.
17642 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17644         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17645         build_function_type_list instead of build_function_type.
17646         Rearrange initialization of `args' to do so.
17648 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17650         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17651         instead of build_function_type.
17653 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17655         * config/rs6000/rs6000.c (spe_init_builtins): Call
17656         build_function_type_list instead of build_function_type.
17657         (paired_init_builtins, altivec_init_builtins): Likewise.
17658         (builtin_function_type): Likewise.
17660 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17662         * config/sh/sh.c (sh_media_init_builtins): Call
17663         build_function_type_list instead of build_function_type.
17665 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17667         * config/sparc/sparc.c (sparc_file_end): Call
17668         build_function_type_list instead of build_function_type.
17670 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17672         * config/alpha/alpha.c (alpha_init_builtins): Call
17673         build_function_type_list instead of build_function_type.
17675 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17677         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17678         build_function_type_list instead of build_function_type.
17680 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17682         * config/iq2000/i2000.c (iq2000_init_builtins): Call
17683         build_function_type_list instead of build_function_type.
17684         Delete `endlink' variable.
17686 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17688         * config/avr/avr.c (avr_init_builtins): Call
17689         build_function_type_list instead of build_function_type.
17691 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17693         * config/picochip/picochip.c (picochip_init_builtins): Call
17694         build_function_type_list instead of build_function_type.
17695         Delete `endlink' variable.
17697 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17699         * config/bfin/bfin.c (bfin_init_builtins): Call
17700         build_function_type_list instead of build_function_type.
17702 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17704         From Bernd Schmidt
17705         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17706         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
17708 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17710         From Jie Zhang:
17711         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17712         libbffastfp overrides libgcc when -mfast-fp.
17714 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17716         Originally from Bernd Schmidt
17717         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17718         * config/bfin/bfin.c (override_options): Test it and error if
17719         TARGET_FDPIC.
17721 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17723         Originally From Bernd Schmidt
17724         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17725         FD-PIC.
17727 2011-05-03  Jeff Law  <law@redhat.com>
17729         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17730         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17731         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17732         than accessing AUX field directly.  Free the AUX field before
17733         clearing it.
17734         (thread_block, thread_through_loop_header): Likewise.
17735         (thread_single_edge, mark_threaded_blocks): Likewise.
17736         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
17737         (register_jump_thread): Do not attempt to thread to a NULL edge.
17739 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17741         * function.c (init_function_start): Call decide_function_section.
17742         * varasm.c (decide_function_section): New function.
17743         (assemble_start_function): When not using
17744         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17745         or first_function_block_is_cold.
17746         * rtl.h (decide_function_section): Declare.
17748 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17749             Jakub Jelinek  <jakub@redhat.com>
17751         PR target/48774
17752         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17753         only succeed if req_mode is the same as set_mode.
17755 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17757         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17758         * genemit.c (gen_exp): Handle RETURN.
17759         * emit-rtl.c (verify_rtx_sharing): Likewise.
17760         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17761         * rtl.c (copy_rtx): RETURN is shared.
17762         * rtl.h (enum global_rtl_index): Add GR_RETURN.
17763         (ret_rtx): New.
17764         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17765         * config/s390/s390.c (s390_emit_epilogue): Likewise.
17766         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17767         * config/cris/cris.c (cris_expand_return): Likewise.
17768         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17769         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17770         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17771         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17772         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17773         Likewise.
17774         * config/v850/v850.c (expand_epilogue): Likewise.
17775         * config/bfin/bfin.c (bfin_expand_call): Likewise.
17776         * config/arm/arm.md (epilogue): Likewise.
17777         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17778         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17779         variable to ret_reg.
17781 2011-05-03  Richard Guenther  <rguenther@suse.de>
17783         PR lto/48846
17784         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17785         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17786         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17788 2011-05-03  Richard Guenther  <rguenther@suse.de>
17790         * c-decl.c (grokdeclarator): Instead of looking at
17791         TREE_OVERFLOW check if the constant fits in the index type.
17793 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17795         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17796         (vec_store_lanes<mode><mode>): Likewise.
17798 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17800         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17801         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17802         convert_optab_index values.
17803         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17804         * genopinit.c (optabs): Initialize the new optabs.
17805         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17806         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17807         (expand_STORE_LANES): New functions.
17808         * tree.h (build_array_type_nelts): Declare.
17809         * tree.c (build_array_type_nelts): New function.
17810         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17811         (vect_model_load_cost): Likewise.
17812         (vect_store_lanes_supported, vect_load_lanes_supported)
17813         (vect_record_strided_load_vectors): Declare.
17814         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17815         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17816         (vect_transform_strided_load): Split out statement recording into...
17817         (vect_record_strided_load_vectors): ...this new function.
17818         * tree-vect-stmts.c (create_vector_array, read_vector_array)
17819         (write_vector_array, create_array_ref): New functions.
17820         (vect_model_store_cost): Add store_lanes_p argument.
17821         (vect_model_load_cost): Add load_lanes_p argument.
17822         (vectorizable_store): Try to use store-lanes functions for
17823         interleaved stores.
17824         (vectorizable_load): Likewise load-lanes and loads.
17825         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17826         to vect_model_store_cost.
17827         (vect_build_slp_tree): Likewise vect_model_load_cost.
17829 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17831         * hooks.h (hook_bool_mode_uhwi_false): Declare.
17832         * hooks.c (hook_bool_mode_uhwi_false): New function.
17833         * target.def (array_mode_supported_p): New hook.
17834         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17835         * doc/tm.texi: Regenerate.
17836         * stor-layout.c (mode_for_array): New function.
17837         (layout_type): Use it.
17838         * config/arm/arm.c (arm_array_mode_supported_p): New function.
17839         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17841 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
17843         PR target/48723
17844         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17845         for -fstack-check if the size to allocate is negative.
17847 2011-05-02  Lawrence Crowl  <crowl@google.com>
17849         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17850         (timevar_cond_start): New for starting a timer only when it is not
17851         already running.
17852         (timevar_cond_stop): New for stopping a timer when it was not already
17853         running.
17855         * timevar.c (timevar_stop): Enable start/stop timers to start again.
17856         (timevar_cond_start): New as above.
17857         (timevar_cond_stop): New as above.
17859         * timevar.def: Add start/stop timers for compiler phases,
17860         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17861         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17862         and TV_PHASE_FINALIZE.
17863         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17864         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17865         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17866         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17867         Make unused TV_OVERLOAD into a start/stop timer.
17869         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17870         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17871         to indicate that they are start/stop timers.
17873         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17874         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17875         Move initialization to do_compile.
17876         (do_compile): Add initialization from above.
17877         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17879         * c-decl.c (c_write_global_declarations): Add start/stop of
17880         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17882         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17883         or TV_PARSE_INLINE, as appropriate.
17884         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17885         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17887 2011-05-02  Jason Merrill  <jason@redhat.com>
17889         PR c++/40975
17890         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17892 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
17894         PR c/35445
17895         * c-decl.c (finish_decl): Only create a composite if the types are
17896         compatible.
17898 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17900         * config/fr30/fr30-protos.h (Mmode): Don't define.
17901         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
17902         definition where used.
17903         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17904         define.  Expand definitions where used.
17905         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17906         Expand definitions where used.
17907         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17908         rx_function_arg, rx_function_arg_advance,
17909         rx_function_arg_boundary): Expand definitions of those macros.
17910         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
17911         definition where used.
17913 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17915         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17916         reg<->xmm moves.
17917         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17918         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
17919         with *movv2sf_internal_rex64_avx.
17920         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17921         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17922         Use %v prefix in insn mnemonic to handle TARGET_AVX.
17923         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
17924         "vex" in "prefix" attribute calculation.
17925         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
17927 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
17929         PR target/47951
17930         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17931         inputs match the output.
17933 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
17935         PR target/47955
17936         * config/m68k/m68k.c (m68k_expand_prologue): Set
17937         current_function_static_stack_size.
17939 2011-05-02   Jan Hubicka  <jh@suse.cz>
17941         * lto-streamer.c (lto_streamer_cache_insert_1,
17942         lto_streamer_cache_lookup, lto_streamer_cache_create,
17943         lto_streamer_cache_delete): Use pointer map instead of hashtable.
17944         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17946 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17948         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17949         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17950         config/m68k/t-opts: New files.
17951         * config/m68k/m68k-tables.opt: New file (generated).
17952         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17953         extra_options and m68k/t-opts to tmake_file.
17954         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17955         (all_isas): Initialize using m68k-isas.def.
17956         (all_microarchs): Initialize using m68k-microarchs.def.
17957         (m68k_find_selection): Remove.
17958         (m68k_handle_option): Don't assert that global structures are in
17959         use.  Use error_at.  Access variables via opts pointer.  Don't
17960         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
17961         directly for -m68020-40 and -m68020-60.
17962         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17963         m68k_tune_entry here.
17964         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17965         to m68k-opts.h.
17966         (m68k_library_id_string): Remove declaration.
17967         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17968         (m68k_library_id_string): New Variable.
17969         (march=, mcpu=, mtune=): Use Enum and Var.
17971 2011-05-02  Richard Guenther  <rguenther@suse.de>
17973         * varasm.c (output_constructor_regular_field): Compute zero-based
17974         index with double-ints.  Make sure to ICE instead of producing
17975         wrong code.
17976         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17977         in asserts.  Properly use a signed type.
17979 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17981         * config/i386/sse.md (V): New mode iterator.
17982         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
17983         TARGET_SSE2.
17984         (V_256): Rename from AVX256MODE.
17985         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
17986         condition to all users.
17987         (VF1): Ditto.
17988         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
17989         condition to all users.
17990         (VF_128): Make V4SF mode unconditional.
17991         (VF_256): Rename from AVX256MODEF2P.
17992         (VI4F_128): Rename from SSEMODE4S.
17993         (VI8F_128): Rename from SSEMODE2D.
17994         (VI4F_256): Rename from AVX256MODE8P.
17995         (VI8F_256): Rename from AVX256MODE4P.
17996         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17997         (ssescalarmodesuffix): Remove SF and DF modes.
17998         (SSEMODE124): Remove.
17999         (SSEMODE1248): Ditto.
18000         (SSEMODEF2P): Ditto.
18001         (AVXMODEF2P): Ditto.
18002         (AVXMODEFDP): Ditto.
18003         (AVXMODEFSP): Ditto.
18004         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
18005         unconditional.
18006         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
18007         unconditional.
18008         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
18009         xop_pcmov_<mode>256.  Use V mode iterator.
18011         Adjust RTX patterns globally for renamed mode attributes.
18013 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18015         * haifa-sched.c (sched_emit_insn): Emit insn before first
18016         non-scheduled insn.  Inform back-end about new insn.  Add
18017         new insn to scheduled_insns list.
18019 2011-05-02  Richard Guenther  <rguenther@suse.de>
18021         PR tree-optimization/48822
18022         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
18023         (process_scc): Indicate which iteration we start.
18025 2011-05-02  Jan Hubicka  <jh@suse.cz>
18027         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
18028         (lto_section_overrun): New.
18029         * lto-section-out.c (append_block): Rename to ...
18030         (lto_append_block): ... this one; export.
18031         (lto_output_1_stream): Move lto lto-streamer.h
18032         (lto_output_data_stream): Update.
18033         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
18034         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
18035         functions.
18037 2011-05-02  Richard Guenther  <rguenther@suse.de>
18039         * tree.c (tree_code_counts): New global array.
18040         (record_node_allocation_statistics): Count individual tree codes.
18041         (dump_tree_statistics): Dump individual code stats.
18043 2011-05-01  Jan Hubicka  <jh@suse.cz>
18045         * ipa-inline.c (caller_growth_limits): Fix thinko when
18046         looking for largest stack frame.
18047         * ipa-inline.h (dump_inline_summary): Declare.
18048         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
18049         on stack usage.
18050         (dump_inline_summary): Export.
18051         (debug_inline_summary): Declare as DEBUG_FUNCTION.
18053 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
18055         * reginfo.c (memory_move_cost): Change rclass argument type form
18056         'enum reg_class' to reg_class_t.
18057         * reload.h (memory_move_cost): Update prototype.
18058         * postreload.c reload_cse_simplify_set): Change type dclass var to
18059         reg_class_t.
18060         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
18061         Update prototype.
18062         (ira_allocate_and_set_costs): Change aclass argument type form
18063         'enum reg_class' to reg_class_t.
18064         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
18065         Change aclass argument type to reg_class_t.
18066         (update_conflict_hard_reg_costs): Change type aclass and pref vars
18067         to reg_class_t.
18068         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
18069         memory_move_cost call.
18071         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
18072         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
18073         Change type tmp var to reg_class_t.
18075 2011-04-30  Jan Hubicka  <jh@suse.cz>
18077         * ipa-inline.c (can_inline_edge_p): Disregard limits when
18078         inlining into function with flatten attribute.
18079         (want_inline_small_function_p): Be more realistic about inlining
18080         cold calls where callee size grows.
18082 2011-04-30  Jan Hubicka  <jh@suse.cz>
18084         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
18085         flags.
18087 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
18089         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18090         PRINT_OPERAND_PUNCT_VALID_P): Remove.
18091         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18092         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18093         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18094         (print_operand): Rename to...
18095         (sparc_print_operand): ...this. Make static. Adjust
18096         sparc_print_operand function call.
18097         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18098         functions.
18100 2011-04-30  Jan Hubicka  <jh@suse.cz>
18102         PR middle-end/48752
18103         * ipa-inline.c (early_inliner): Disable when doing late
18104         addition of function.
18106 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
18108         * dwarf2out.c (get_address_mode): New inline.
18109         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18110         if not dwarf_strict emit
18111         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18112         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18113         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
18114         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18115         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18116         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18117         mem_loc_descriptor callers.
18118         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18119         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18120         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18121         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18122         (base_types): New variable.
18123         (get_base_type_offset, calc_base_type_die_sizes,
18124         base_type_for_mode, mark_base_types, base_type_cmp,
18125         move_marked_base_types): New functions.
18126         (calc_die_sizes): Assert that die_offset is 0 or equal to
18127         next_die_offset.
18128         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18129         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
18130         callers.  If not dwarf_strict, call mem_loc_descriptor even for
18131         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18132         (gen_subprogram_die): Don't give up on call site parameters
18133         with non-integral or large integral modes.  Adjust
18134         mem_loc_descriptor callers.
18135         (prune_unused_types): Call prune_unused_types_mark on base_types
18136         vector entries.
18137         (resolve_addr): Call mark_base_types.
18138         (dwarf2out_finish): Call move_marked_base_types.
18140         PR tree-optimization/48809
18141         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18142         type.
18143         (gen_inbound_check): Don't compute index_expr - range_min in utype
18144         again, instead reuse SSA_NAME initialized in build_arrays.
18145         Remove two useless gsi_for_stmt calls.
18147 2011-04-29  Jeff Law  <law@redhat.com>
18149         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18151 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18153         * cgraph.h (cgraph_postorder): Remove declaration.
18154         * ipa-utils.h (ipa_free_postorder_info): Declare.
18155         (ipa_reverse_postorder): Likewise.
18156         * cgraphunit.c: Include ipa-utils.h.
18157         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18158         * ipa-inline.c: Include ipa-utils.h.
18159         (ipa_inline): Update call to ipa_reverse_postorder.
18160         * ipa-pure-const.c (propagate_pure_const): Update call to
18161         ipa_reduced_postorder and ipa_print_order.  Call
18162         ipa_free_postorder_info to clean up.
18163         (propagate_nothrow): Likewise.
18164         * ipa-reference.c (propagate): Removed a useless call to
18165         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18166         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
18167         * ipa.c: Include ipa-utils.h.
18168         (ipa_profile): Update call to ipa_reverse_postorder.
18169         (cgraph_postorder): Moved to...
18170         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18171         (ipa_utils_print_order): Renamed to ipa_print_order.
18172         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18173         comments.
18174         (ipa_free_postorder_info): New function.
18175         * passes.c: Include ipa-utils.h.
18176         (do_per_function_toporder): Update call to ipa_reverse_postorder.
18177         (ipa_write_summaries): Likewise.
18178         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18179         (cgraphunit.o): Likewise.
18180         (ipa.o): Likewise.
18181         (ipa-inline.o): Likewise.
18183 2011-04-29  Jan Hubicka  <jh@suse.cz>
18185         * gcc.dg/tree-ssa/inline-10.c: New testcase.
18186         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18187         * ipa-inline.h (clause_t): Turn into unsigned int.
18188         * ipa-inline-analysis.c (add_clause): Do more simplification.
18189         (and_predicates): Shortcut more cases.
18190         (predicates_equal_p): Move forward; check that clauses are properly
18191         ordered.
18192         (or_predicates): Shortcut more cases.
18193         (edge_execution_predicate): Rewrite as...
18194         (set_cond_stmt_execution_predicate): ... this function; handle
18195         __builtin_constant_p.
18196         (set_switch_stmt_execution_predicate): New .
18197         (compute_bb_predicates): New.
18198         (will_be_nonconstant_predicate): Update TODO.
18199         (estimate_function_body_sizes): Use compute_bb_predicates
18200         and free them later, always try to estimate if stmt is constant.
18201         (estimate_time_after_inlining, estimate_size_after_inlining):
18202         Gracefully handle optimized out edges.
18203         (read_predicate): Fix off by one error.
18205 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
18207         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18209 2011-04-27  Xinliang David Li  <davidxl@google.com>
18211         * tree-profile.c (init_ic_make_global_vars): Set
18212         tls attribute on ic vars.
18213         * coverage.c (coverage_end_function): Initialize
18214         function_list with zero.
18216 2011-04-29  Richard Guenther  <rguenther@suse.de>
18218         * builtins.c (fold_builtin_classify_type): Use integer_type_node
18219         for the type of the result.
18220         (fold_builtin_isascii): Likewise.
18221         (fold_builtin_toascii): Use integer_type_node where appropriate.
18222         (fold_builtin_logb): Likewise.
18223         (fold_builtin_frexp): Likewise.
18224         (fold_builtin_strstr): Likewise.
18225         (fold_builtin_strpbrk): Likewise.
18226         (fold_builtin_fputs): Likewise.
18227         (fold_builtin_sprintf): Likewise.
18228         (fold_builtin_snprintf): Likewise.
18229         (fold_builtin_printf): Likewise.
18230         (do_mpfr_remquo): Use a proper type for the assigned constant.
18231         (do_mpfr_lgamma_r): Likewise.
18232         * dwarf2out.c (resolve_one_addr): Use size_int.
18233         * except.c (init_eh): Likewise.
18234         (assign_filter_values): Use integer_type_node for filter values.
18235         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18236         indices.
18237         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18238         for EH region numbers.
18239         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18240         for the shift amount.
18242 2011-04-29  Richard Guenther  <rguenther@suse.de>
18244         * expr.h (expand_shift): Rename to ...
18245         (expand_variable_shift): ... this.
18246         (expand_shift): Take a constant shift amount.
18247         * expmed.c (expand_shift): Rename to ...
18248         (expand_variable_shift): ... this.
18249         (expand_shift): New wrapper around expand_variable_shift.
18250         * expr.c (convert_move, emit_group_load_1, emit_group_store,
18251         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18252         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18253         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18254         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18255         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18256         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18257         emit_store_flag_1, emit_store_flag): Likewise.
18258         * builtins.c (expand_builtin_signbit): Likewise.
18259         * calls.c (load_register_parameters): Likewise.
18260         * function.c (assign_parm_setup_block): Likewise.
18261         * lower-subreg.c (resolve_shift_zext): Likewise.
18262         * optabs.c (widen_bswap, expand_abs_nojump,
18263         expand_one_cmpl_abs_nojump, expand_float): Likewise.
18264         * spu/spu.c (spu_expand_extv): Likewise.
18265         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18267 2011-04-29  Richard Guenther  <rguenther@suse.de>
18269         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18270         for the remapped region number.
18271         * predict.c (build_predict_expr): Use integer_type_node for the
18272         predict kind.
18273         * fold-const.c (fold_binary_loc): Use integer_type_node for
18274         the shift amount.  Use a proper type for the PLUS_EXPR operand.
18276 2011-04-29  Michael Matz  <matz@suse.de>
18278         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18279         other trees that just builtins.
18280         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18282 2011-04-29  Richard Guenther  <rguenther@suse.de>
18284         * tree-nested.c (get_trampoline_type): Use size_int.
18285         (get_nl_goto_field): Likewise.
18286         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18287         for all indexes.
18288         (lower_eh_constructs_2): Likewise.
18289         (lower_resx): Likewise.
18290         (lower_eh_dispatch): Likewise.
18291         * tree-mudflap.c (mf_build_string): Use size_int.
18292         (mudflap_register_call): Use integer_type_node for the flag.
18293         (mudflap_enqueue_constant): Use size_int.
18294         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18295         instead of rebuilding it.
18297 2011-04-29  Richard Guenther  <rguenther@suse.de>
18299         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18300         Handle OBJ_TYPE_REF.
18301         (find_func_aliases_for_call): Use it more consistently.
18303 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
18305         * haifa-sched.c (last_nondebug_scheduled_insn): New.
18306         (rank_for_schedule): Use it.
18307         (schedule_block): Set it.
18309 2011-04-28  David Li  <davidxl@google.com>
18311         * tree.c (crc32_string): Use crc32_byte.
18312         (crc32_byte): New function.
18313         * tree.h (crc32_byte): New function.
18314         * gcov.c (read_graph_file): Handle new cfg_cksum.
18315         (read_count_file): Ditto.
18316         * profile.c (instrument_values): Ditto.
18317         (get_exec_counts): Ditto.
18318         (read_profile_edge_counts): Ditto.
18319         (compute_branch_probabilities): Ditto.
18320         (compute_value_histograms): Ditto.
18321         (branch_prob): Ditto.
18322         (end_branch_prob): Ditto.
18323         * coverage.c (read_counts_file): Ditto.
18324         (get_coverage_counts): Ditto.
18325         (tree_coverage_counter_addr): Ditto.
18326         (coverage_checksum_string): Ditto.
18327         (coverage_begin_output): Ditto.
18328         (coverage_end_function): Ditto.
18329         (build_fn_info_type): Ditto.
18330         (build_fn_info_value): Ditto.
18331         * libgcov.c (gcov_exit): Ditto.
18332         * gcov-dump.c (tag_function): Ditto.
18333         (compute_checksum): Remove.
18335 2011-04-29  Alan Modra  <amodra@gmail.com>
18337         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18338         unspec plus offset.  Tidy macho code.
18340 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18342         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18343         node instead of a decl.  Update all callers.
18344         * cgraph.h: Update declaration.
18346 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
18348         PR tree-optimization/48765
18349         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18350         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18351         to indicate if loop aware SLP is being used.  Scan the statements
18352         and update the vectorization factor according to the type of
18353         vectorization before statement analysis.
18354         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18355         pass it to vect_analyze_loop_operations.
18356         (vectorizable_reduction): Set number of copies to 1 in case of pure
18357         SLP statement.
18358         * tree-vect-stmts.c (vectorizable_conversion,
18359         vectorizable_assignment, vectorizable_shift,
18360         vectorizable_operation, vectorizable_type_demotion,
18361         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18362         Likewise.
18363         (vectorizable_condition): Move the check that it is not SLP
18364         vectorization before the number of copies check.
18365         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18366         to vectorize the loop using SLP.
18368 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
18370         PR middle-end/48597
18371         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18372         inline asm.
18374 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
18376         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18377         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18378         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18379         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18380         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18381         linux*.h headers.
18382         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18383         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18384         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18385         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18386         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18387         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18388         REG_NAME.
18389         * config/i386/linux.h (REG_NAME): Don't define.
18390         * config/i386/linux64.h (REG_NAME): Don't define.
18391         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18392         Undefine before defining.
18394 2011-04-28  Jan Hubicka  <jh@suse.cz>
18396         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18397         nonconstant_names array.
18398         (estimate_function_body_sizes): Build nonconstant_names array; handle
18399         BUILT_IN_CONSTANT_P.
18401 2011-04-28  Richard Guenther  <rguenther@suse.de>
18403         PR bootstrap/48804
18404         Revert
18405         2011-04-28  Richard Guenther  <rguenther@suse.de>
18407         * tree-ssa-structalias.c (solve_constraints): Build succ graph
18408         as late as possible.
18410 2011-04-28  Richard Guenther  <rguenther@suse.de>
18412         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18413         (debug_constraint): Do it here.
18414         (dump_constraints): And here.
18415         (rewrite_constraints): And here.
18416         (dump_constraint_edge): Remove.
18417         (dump_constraint_graph): Rewrite to produce DOT output.
18418         (solve_constraints): Build succ graph as late as possible.
18419         Dump constraint graphs before and after solving.
18421 2011-04-28  Richard Guenther  <rguenther@suse.de>
18423         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18424         New function split out from ...
18425         (find_func_aliases): ... here.  Call it.
18426         (find_func_aliases_for_call): Likewise.
18428 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18430         * internal-fn.h (internal_fn_name_array): Declare.
18431         (internal_fn_flags_array): Likewise.
18433 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18435         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
18436         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18437         Move from sse.md.
18438         (ssemodefsuffix): Remove.
18439         (ssevecmodesuffix): New mode attribute.
18440         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18441         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18442         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18443         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18444         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18445         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18446         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18447         ssemodesuffix mode attribute.
18448         (float splitters): Use ssevecmodesuffix mode attribute.
18449         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18450         (sseinsmode): Rename from avxvecmode.
18451         (avxsizesuffix): Rename from avxmodesuffix.
18452         (sseintvecmode): Rename from avxpermvecmode.
18453         (ssedoublevecmode): Rename from ssedoublesizemode.
18454         (ssehalfvecmode): Rename from avxhalfvecmode.
18455         (ssescalarmode): Rename from avxscalarmode.
18456         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18457         templates for ssemodesuffix mode attribute.
18458         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18459         mode attribute.
18461         Adjust RTX patterns globally for renamed mode attributes.
18463 2011-04-27  Jan Hubcika  <jh@suse.cz>
18465         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18466         * ipa-inline-analysis.c: Include alloc-pool.h.
18467         (edge_predicate_pool): New.
18468         (trye_predicate_p): New function
18469         (false_predicate_p): New function.
18470         (add_clause): Sanity check that false clauses are "optimized";
18471         never add clauses to predicate that is already known to be false.
18472         (and_predicate): Use flase_predicate_p.
18473         (evaulate_predicate): Rename to ...
18474         (evaluate_predicate): ... this one; update all callers; assert
18475         that false is not listed among possible truths.
18476         (dump_predicate): Use true_predicate_p.
18477         (account_size_time): Use false_predicate_p.
18478         (evaulate_conditions_for_edge): Rename to ...
18479         (evaluate_conditions_for_edge) ... this one.
18480         (edge_set_predicate): New function.
18481         (inline_edge_duplication_hook): Duplicate edge predicates.
18482         (inline_edge_removal_hook): Free edge predicates.
18483         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18484         (dump_inline_summary): Update.
18485         (estimate_function_body_sizes): Set edge predicates.
18486         (estimate_calls_size_and_time): Handle predicates.
18487         (estimate_callee_size_and_time): Update.
18488         (remap_predicate): Add toplev_predicate; update comment.
18489         (remap_edge_predicates): New function.
18490         (inline_merge_summary): Compute toplev predicate; update.
18491         (read_predicate): New function.
18492         (read_inline_edge_summary): Use it.
18493         (inline_read_section): Likewise.
18494         (write_predicate): New function.
18495         (write_inline_edge_summary): Use it.
18496         (inline_write_summary): Likewise.
18497         (inline_free_summary): Free alloc pool and edge summary vec.
18499 2011-04-27  Richard Guenther  <rguenther@suse.de>
18501         * tree-ssa-structalias.c (changed_count): Remove.
18502         (changed): Use a bitmap.
18503         (unify_nodes): Adjust.
18504         (do_sd_constraint): Likewise.
18505         (do_ds_constraint): Likewise.
18506         (do_complex_constraint): Likewise.
18507         (solve_graph): Likewise.
18509 2011-04-27  Jan Hubicka  <jh@suse.cz>
18511         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18513 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18515         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18516         (avx_vperm2f128_*_operand): Ditto.
18517         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18518         Use avx_vpermilp_parallel in insn condition.
18519         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18520         Use avx_vperm2f128_parallel in insn condition.
18522 2011-04-27  Richard Guenther  <rguenther@suse.de>
18524         * Makefile.in (tree-ssa-structalias.o): Remove
18525         gt-tree-ssa-structalias.h dependency.
18526         (GTFILES): Remove tree-ssa-structalias.c.
18527         * tree.c (allocate_decl_uid): New function.
18528         (make_node_stat): Use it.
18529         (copy_node_stat): Likewise.
18530         * tree.h (allocate_decl_uid): Declare.
18531         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18532         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18533         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18534         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18535         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18536         (struct heapvar_map): Likewise.
18537         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18538         heapvar_insert): Likewise.
18539         (make_heapvar_for): Rename to ...
18540         (make_heapvar): ... this.  Simplify.
18541         (fake_var_decl_obstack): New global var.
18542         (build_fake_var_decl): New function.
18543         (make_constraint_from_heapvar): Adjust.
18544         (handle_lhs_call): Likewise.
18545         (create_function_info_for): Likewise.
18546         (intra_create_variable_infos): Likewise.
18547         (init_alias_vars): Allocate fake_var_decl_obstack.
18548         (init_alias_heapvars, delete_alias_heapvars): Remove.
18549         (compute_points_to_sets): Do not call init_alias_heapvars.
18550         (ipa_pta_execute): Likewise.
18551         (delete_points_to_sets): Free fake_var_decl_obstack.
18553 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18555         * config/spu/divmovti4.c (union qword_UTItype): New data type.
18556         (si_from_UTItype, si_to_UTItype): New functions.
18557         (__udivmodti4): Use them to implement type-punning.
18558         * config/spu/multi3.c (union qword_TItype): New data type.
18559         (si_from_TItype, si_to_TItype): New functions.
18560         (__multi3): Use them to implement type-punning.
18562 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18564         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18566 2011-04-27  Jan Hubicka  <jh@suse.cz>
18568         * ipa-prop.c (function_insertion_hook_holder): New holder.
18569         (ipa_add_new_function): New function.
18570         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18571         Register/deregister holder.
18573 2011-04-27  Richard Guenther  <rguenther@suse.de>
18575         PR tree-optimization/48772
18576         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18578 2011-04-27  Richard Guenther  <rguenther@suse.de>
18580         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18581         TARGET_MEM_REF handling.
18583 2011-04-27  Nick Clifton  <nickc@redhat.com>
18585         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18586         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18587         (REG_CLASS_NAMES): Likewise.
18588         (REG_CLASS_CONTENTS): Likewise.
18589         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18590         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18591         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
18592         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
18593         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
18594         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18595         duplicate register classes.
18596         (frv_class_likely_spilled_p): Likewise.
18597         (frv_register_move_cost): Likewise.
18599         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18600         end of the regno_reg_class array.
18602 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
18604         PR c/48742
18605         * c-typeck.c (build_binary_op): Don't wrap arguments if
18606         int_operands is true.
18608 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
18610         PR target/48767
18611         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18612         targetm.calls.must_pass_in_stack for void type.
18614 2011-04-26  Jan Hubicka  <jh@suse.cz>
18616         * cgraphbuild.c (build_cgraph_edges): Update call
18617         of cgraph_create_edge and cgraph_create_indirect_edge.
18618         * cgraph.c (cgraph_create_edge_including_clones,
18619         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18620         cgraph_update_edges_for_call_stmt_node): Do not take nest
18621         argument; do not initialize call_stmt_size/time.
18622         (dump_cgraph_node): Do not dump nest.
18623         (cgraph_clone_edge): Do not take loop_nest argument;
18624         do not propagate it; do not clone call_stmt_size/time.
18625         (cgraph_clone_node): Likewise.
18626         (cgraph_create_virtual_clone): Update.
18627         * cgraph.h (struct cgraph_edge): Remove
18628         call_stmt_size/call_stmt_time/loop_nest.
18629         (cgraph_create_edge, cgraph_create_indirect_edge,
18630         cgraph_create_edge_including_clones, cgraph_clone_node): Update
18631         prototype.
18632         * tree-emutls.c (gen_emutls_addr): Update.
18633         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18634         loop_nest; handle indirect calls, too.
18635         (clone_inlined_nodes): Do not care about updating inline summaries.
18636         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18637         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18638         stream call_stmt_size/call_stmt_time/loop_nest.
18639         * ipa-inline.c (edge_badness): Update.
18640         (ipa_inline): dump summaries after inlining.
18641         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18642         New.
18643         (inline_edge_summary): New function.
18644         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18645         (inline_edge_removal_hook): Handle edge summaries.
18646         (inline_edge_duplication_hook): New hook.
18647         (inline_summary_alloc): Alloc hooks.
18648         (initialize_growth_caches): Do not register removal hooks.
18649         (free_growth_caches); Do not free removal hook.
18650         (dump_inline_edge_summary): New function.
18651         (dump_inline_summary): Use it.
18652         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18653         (inline_update_callee_summaries): New function.
18654         (inline_merge_summary): Use it.
18655         (do_estimate_edge_time, do_estimate_edge_growth): Update.
18656         (read_inline_edge_summary): New function.
18657         (inline_read_section): Use it.
18658         (write_inline_edge_summary): New function.
18659         (inline_write_summary): Use it.
18660         (inline_free_summary): Free edge new holders.
18661         * tree-inline.c (copy_bb): Update.
18663 2011-04-26  Jason Merrill  <jason@redhat.com>
18665         * tree-eh.c (lower_try_finally_switch): Create the label along with
18666         the CASE_LABEL_EXPR.
18668 2011-04-26  David S. Miller  <davem@davemloft.net>
18669             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18671         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18672         * configure: Regenerate.
18674 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18676         PR target/48258
18677         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18678         reduction.
18679         (VEC_reduc): New code iterator and splitters for vector reduction.
18680         (VEC_reduc_name): Ditto.
18681         (VEC_reduc_rtx): Ditto.
18682         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18683         (reduc_<VEC_reduc_name>_v4sf): Ditto.
18685         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18686         support for extracting SF on VSX.
18688         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18689         generating xscvspdp.
18690         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18691         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18692         double add, minimum, maximum vector reduction.
18693         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18694         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18695         optimize double vector reduction.
18696         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18698 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
18700         * config/fr30/fr30.h (inhibit_libc): Don't define.
18701         * config/m32r/m32r-protos.h: Correct comment.
18702         * config/v850/v850.h (GHS_default_section_names,
18703         GHS_current_section_names): Use tree, not union tree_node *.
18705 2011-04-26  Xinliang David Li  <davidxl@google.com>
18707         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18708         * c-family/c-opts.c (c_common_handle_option): Set
18709         warn_maybe_uninitialized.
18710         * opts.c (common_handle_option): Ditto.
18711         * common.opt:  New option.
18712         * tree-ssa.c (warn_uninit): Add one more parameter.
18713         (warn_uninitialized_var): Pass warning code.
18714         * tree-flow.h: Interface change.
18716 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18718         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18719         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18720         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18722 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18724         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18725         * config/mips/mips.opt (mmips-tfile): Remove.
18727         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18728         mips-tdump reference to ...
18729         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
18730         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18731         reference by Tru64 UNIX.
18733 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
18735         PR debug/48768
18736         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18737         is error_mark_node, set value to NULL.
18739         PR tree-optimization/48734
18740         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18741         if return value from maybe_fold_*_comparsions isn't something
18742         the code is prepared to handle.
18744 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
18746         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18747         mode check.
18748         (ext_QIreg_nomode_operands): Remove.
18749         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18750         (*andsi_1): Ditto.
18751         (*andhi_1): Ditto.
18753 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
18755         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18757 2011-04-26  Richard Guenther  <rguenther@suse.de>
18759         * c-typeck.c (build_unary_op): Do not expand array-refs via
18760         pointer arithmetic.  Only adjust qualifiers for function types.
18762 2011-04-26  Richard Guenther  <rguenther@suse.de>
18764         PR middle-end/48694
18765         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18766         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18767         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
18768         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18770 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
18772         * doc/extend.texi: Document __underlying_type.
18774 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
18776         * config/rs6000/titan.md (automata_option "progress"): Remove.
18778 2011-04-25  Jeff Law  <law@redhat.com>
18780         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18782 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
18784         * system.h (ENUM_BITFIELD): Remove.
18786 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
18787             Eric Botcazou  <ebotcazou@adacore.com>
18789         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18790         for STORE_FLAG_VALUE==-1 case.
18792 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
18794         PR target/43804
18795         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18796         LEGITIMATE_PIC_OPERAND_P.
18798 2011-04-24  Jan Hubicka  <jh@suse.cz>
18800         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18801         WPA hack.
18802         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18803         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18804         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18805         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18806         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18807         Sanity check predicate length.
18808         (remap_predicate): Likewise; sanity check jump functions.
18809         (inline_read_section, inline_write_summary): Sanity check
18810         predicate length.
18812 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
18814         PR other/48748
18815         * doc/extend.texi (Type Traits): Document __is_standard_layout,
18816         __is_literal_type, and __is_trivial; update throughout about
18817         possibly cv-qualified void types.
18819 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18821         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18822         testsuite and make it version agnostic.
18824 2011-04-22  Jan Hubicka  <jh@suse.cz>
18826         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18828 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
18830         PR c/48685
18831         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18832         to VOID_TYPE even around MODIFY_EXPR.
18834 2011-04-22  Mike Stump  <mikestump@comcast.net>
18836         * gensupport.c (read_md_rtx): Fix typo in comment.
18837         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18838         comment.
18840 2011-04-22  Jan Hubicka  <jh@suse.cz>
18842         * gengtype.c (open_base_files): Add ipa-inline.h include.
18843         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18844         ipa-prop.c; update all uses.
18845         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18846         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18847         merge summary of inlined function into former caller.
18848         * ipa-inline.c (max_benefit): Remove.
18849         (edge_badness): Compensate for removal of benefits.
18850         (update_caller_keys): Use
18851         reset_node_growth_cache/reset_edge_growth_cache.
18852         (update_callee_keys): Likewise.
18853         (update_all_callee_keys): Likewise.
18854         (inline_small_functions): Do not collect max_benefit; do not reset
18855         estimated_growth; call free_growth_caches and initialize_growth_caches.
18856         * ipa-inline.h (struct condition, type clause_t, struct predicate,
18857         struct size_time_entry): New structures.
18858         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18859         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18860         and estimated_growth.
18861         (edge_growth_cache_entry): New structure.
18862         (node_growth_cache, edge_growth_cache): New global vars.
18863         (estimate_growth): Turn into inline.
18864         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18865         initialize_growth_caches, free_growth_caches): Declare.
18866         (estimate_edge_growth): Rewrite.
18867         (estimate_edge_time): Implement as inline cache lookup.
18868         (reset_node_growth_cache, reset_edge_growth_cache): New inline
18869         functions.
18870         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18871         (NUM_CONDITIONS): New constant.
18872         (predicate_conditions): New enum.
18873         (IS_NOT_CONSTANT): New constant.
18874         (edge_removal_hook_holder): New var.
18875         (node_growth_cache, edge_growth_cache): New global vars.
18876         (true_predicate, single_cond_predicate, false_predicate,
18877         not_inlined_predicate, add_condition, add_clause, and_predicates,
18878         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18879         dump_clause, dump_predicate, account_size_time,
18880         evaulate_conditions_for_edge): New functions.
18881         (inline_summary_alloc): Move to heap.
18882         (inline_node_removal_hook): Clear condition and entry vectors.
18883         (inline_edge_removal_hook): New function.
18884         (initialize_growth_caches, free_growth_caches): New function.
18885         (dump_inline_summary): Update.
18886         (edge_execution_predicate): New function.
18887         (will_be_nonconstant_predicate): New function.
18888         (estimate_function_body_sizes): Compute BB and constantness predicates.
18889         (compute_inline_parameters): Do not clear estimated_growth.
18890         (estimate_edge_size_and_time): New function.
18891         (estimate_calls_size_and_time): New function.
18892         (estimate_callee_size_and_time): New function.
18893         (remap_predicate): New function.
18894         (inline_merge_summary): New function.
18895         (do_estimate_edge_time): New function based on...
18896         (estimate_edge_time): ... this one.
18897         (do_estimate_edge_growth): New function.
18898         (do_estimate_growth): New function based on....
18899         (estimate_growth): ... this one.
18900         (inline_analyze_function): Analyze after deciding on jump functions.
18901         (inline_read_section): New function.
18902         (inline_read_summary): Use it.
18903         (inline_write_summary): Write all the new data.
18904         * ipa-prop.c (ipa_get_param_decl_index): Export.
18905         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18906         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18907         Declare.
18908         (ipa_get_lattice): Move here from ipa-cp.c
18909         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18910         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18911         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18912         cgraph_edge_inlinable_p): Remove.
18913         * cgraphunit.c: Include ipainline.h
18914         (cgraph_process_new_functions): Update call of
18915         compute_inline_parameters.
18917 2011-04-22  Richard Guenther  <rguenther@suse.de>
18919         * tree.c (build_int_cst): Properly create canonicalized integer
18920         constants.
18921         (build_int_cst_type): Remove scary comments.
18923 2011-04-22  Xinliang David Li  <davidxl@google.com>
18925         * toplev.c (process_options): Enable -Werror=coverage-mismatch
18926         by default when -Wno-error is not specified.
18927         * opts-global.c (decode_options): Remove call to
18928         control_warning_options.
18930 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18932         PR tree-optimization/48717
18933         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18934         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18936 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
18938         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
18939         definition where used.
18941 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18943         PR c/48716
18944         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18945         TREE_STATIC variables declared inside of some OpenMP construct.
18947 2011-04-22  Martin Jambor  <mjambor@suse.cz>
18949         PR middle-end/48585
18950         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18952 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
18954         PR c/36750
18955         * c-typeck.c (pop_init_level): Do not warn about initializing
18956         with ` = {0}'.
18958 2011-04-22  Alan Modra  <amodra@gmail.com>
18960         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18961         when returning call_cookie.
18962         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18963         pointers, to functions with no more vector args than the current
18964         function, and some non-local calls for ABI_V4.
18965         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18966         sibcall_nonlocal_aix64): Combine to ..
18967         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
18968         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18969         (sibcall_value_nonlocal_aix<mode>): ..likewise.
18970         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18971         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
18972         operand.
18973         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18974         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18975         sibcall_value_symbolic_64): Delete.
18977 2011-04-21  Xinliang David Li  <davidxl@google.com>
18979         * cgraph.h: Remove pid.
18980         * cgraph.c: Remove pid.
18981         * value-prof.c (init_node_map): New function.
18982         (del_node_map): New function.
18983         (find_func_by_funcdef_no): New function.
18984         (gimple_ic_transform): Call new function.
18985         * cgraphunit.c (cgraph_finalize_function): Remove pid.
18986         * function.c (get_last_funcdef_no): New function.
18987         * function.h (get_last_funcdef_no): New function.
18988         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18989         to libgcov function.
18990         (tree-profiling): Call node map init and delete function.
18992 2011-04-21  Ian Lance Taylor  <iant@google.com>
18994         * godump.c (go_format_type): Use exported Go name for anonymous
18995         field name.
18997 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18999         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
19000         Call builtin_function_type_list instead of builtin_function_type.
19001         (UNARY, BINARY, TRINARY, QUAD): Likewise.
19003 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19005         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
19006         build_function_type_list instead of build_function_type.
19007         Delete variable `endlink'.
19009 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19011         * config/s390/s390.c (s390_init_builtins): Call
19012         build_function_type_list instead of build_function_type.
19014 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19016         * config/ia64/ia64.c (ia64_init_builtins): Call
19017         build_function_type_list instead of builtin_function_type.
19019 2011-04-21  Easwaran Raman  <eraman@google.com>
19021         * cfgexpand.c (stack_var): Remove OFFSET...
19022         (add_stack_var): ...and its reference here...
19023         (expand_stack_vars): ...and here.
19024         (stack_var_cmp): Sort by descending order of size.
19025         (partition_stack_vars): Change heuristic.
19026         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
19027         (dump_stack_var_partition): Add newline after each partition.
19029 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
19030             Jeff Law  <law@redhat.com>
19032         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
19033         * gengtype.c (matching_file_name_substitute): Likewise.
19035 2011-04-21  Richard Guenther  <rguenther@suse.de>
19037         PR lto/48703
19038         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
19040 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19042         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
19044 2011-04-21  Richard Guenther  <rguenther@suse.de>
19046         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
19047         file name.
19049 2011-04-21  Richard Guenther  <rguenther@suse.de>
19051         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
19052         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
19053         Use DECL_P, not SSA_VAR_P.
19054         (ptr_derefs_may_alias_p): Likewise.
19055         (ptr_deref_may_alias_ref_p_1): Likewise.
19056         (decl_refs_may_alias_p): Likewise.
19057         (refs_may_alias_p_1): Likewise.
19058         (ref_maybe_used_by_call_p_1): Likewise.
19059         (call_may_clobber_ref_p_1): Likewise.
19060         (indirect_ref_may_alias_decl_p): Assume indirect refrences
19061         are either MEM_REF or TARGET_MEM_REF.
19062         (indirect_refs_may_alias_p): Likewise.
19063         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
19064         for MEM_EXPR of indirect calls.
19066 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19068         * vmsdbgout.c (write_srccorr): Compute file length from the string.
19069         (dst_file_info_struct): Remove flen field.
19070         (lookup_filename): Remove code that set flen field.
19072 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19074         * config/ia64/ia64.c (ia64_start_function): Add a guard.
19076 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
19078         PR target/48708
19079         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
19080         vec_extract and vec_concat for non-SSE4_1 targets.
19082 2011-04-21  Richard Guenther  <rguenther@suse.de>
19084         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
19085         return statements.
19087 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19089         * config/i386/cygming.h (union tree_node, TREE): Don't define or
19090         undefine.
19091         (FILE): Don't undefine.
19093 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19095         * config/alpha/alpha.c (struct machine_function): Use rtx, not
19096         struct rtx_def *.
19097         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19098         struct rtx_def *.
19099         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19100         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19101         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19102         rtx_def *.
19103         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
19104         definitions where used.
19105         * config/microblaze/microblaze.h (struct microblaze_args): Use
19106         rtx, not struct rtx_def *.
19107         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19108         rtx_def *.
19109         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19110         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19111         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19112         not struct rtx_def *.
19113         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19114         struct rtx_def *.
19115         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19116         rtx_def *.
19117         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19119 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19121         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19122         operand_equal_p to compare DR_BASE_ADDRESSes.
19123         (vect_check_interleaving): Likewise.
19125 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19127         PR target/46329
19128         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19129         for all Neon struct constants.
19131 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19133         * target.def (legitimate_constant_p): New hook.
19134         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19135         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19136         * doc/tm.texi: Regenerate.
19137         * hooks.h (hook_bool_mode_rtx_true): Declare.
19138         * hooks.c (hook_bool_mode_rtx_true): Define.
19139         * system.h (LEGITIMATE_CONSTANT_P): Poison.
19140         * calls.c (precompute_register_parameters): Replace uses of
19141         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19142         (emit_library_call_value_1): Likewise.
19143         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19144         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19145         * ira-costs.c (scan_one_insn): Likewise.
19146         * recog.c (general_operand, immediate_operand): Likewise.
19147         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19148         * reload1.c (init_eliminable_invariants): Likewise.
19150         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19151         mode argument.
19152         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19153         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19154         argument.
19155         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19156         * config/alpha/predicates.md (input_operand): Update call to
19157         alpha_legitimate_constant_p.
19159         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19160         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19161         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19162         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19163         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19164         (arm_legitimate_constant_p): New functions.
19165         (arm_cannot_force_const_mem): Make static.
19167         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19169         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19170         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19171         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19172         instead of bfin_legitimate_constant_p.
19173         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
19174         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19176         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19178         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19180         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19181         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19182         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19183         (frv_legitimate_constant_p): Make static.  Add a mode argument.
19185         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19186         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19187         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19189         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19190         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19191         * config/i386/i386.c (legitimate_constant_p): Rename to...
19192         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
19193         argument.
19194         (ix86_cannot_force_const_mem): Update accordingly.
19195         (ix86_legitimate_address_p): Likewise.
19196         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19197         * config/i386/i386.md: Update commentary.
19199         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19200         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19201         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19202         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
19204         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19206         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19207         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19208         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19209         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
19211         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19212         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19213         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19215         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19216         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19217         (m32r_legitimate_constant_p): New function.
19219         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19220         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19221         LEGITIMATE_CONSTANT_P.
19222         (LEGITIMATE_CONSTANT_P): Delete.
19223         * config/m68k/m68k.c (m68k_expand_prologue): Call
19224         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19225         (m68k_legitimate_constant_p): New function.
19226         * config/m68k/m68k.md: Update comments.
19228         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19229         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19230         (mcore_legitimate_constant_p): New function.
19232         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19233         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19234         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19235         Add a mode argument.
19236         (mep_legitimate_address): Update accordingly.
19237         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19239         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19240         Delete.
19241         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19242         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19243         static.  Check OP's mode for VOIDmode.
19244         (microblaze_legitimate_constant_p): New function.
19245         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19247         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19248         * config/mips/mips.c (mips_legitimate_constant_p): New function.
19249         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19250         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19251         * config/mips/predicates.md: Update comments.
19253         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19254         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19255         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19256         (mmix_legitimate_constant_p): Make static, return a bool, and take
19257         a mode argument.
19258         (mmix_print_operand_address): Update accordingly.
19260         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19261         Delete.
19262         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19263         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19264         static.  Add a mode argument.
19265         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19267         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19269         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19270         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19271         (pa_legitimate_constant_p): New function.
19273         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19275         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19276         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19277         (pdp11_legitimate_constant_p): New function.
19279         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19280         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19281         (rs6000_legitimate_constant_p): New function.
19283         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19284         (rx_legitimate_constant_p): ...this.
19285         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19286         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19287         (rx_legitimate_constant_p): ...this.
19288         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19289         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19291         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19292         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19293         * config/s390/s390.c (legitimate_constant_p): Rename to...
19294         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
19295         and add a mode argument.
19296         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19298         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19300         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19301         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19302         (sh_legitimate_constant_p): New function.
19304         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19305         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19306         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19307         (legitimate_constant_p): Rename to...
19308         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
19309         argument.
19310         (constant_address_p): Update accordingly.
19312         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19313         argument and return a bool.
19314         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19315         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19316         (spu_legitimate_constant_p): Add a mode argument and return a bool.
19317         (spu_rtx_costs): Update accordingly.
19318         * config/spu/predicates.md (vec_imm_operand): Likewise.
19320         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19322         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19323         * config/v850/v850.c (v850_legitimate_constant_p): New function.
19324         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19326         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19327         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19328         * config/vax/vax.c (legitimate_constant_p): Likewise.
19330         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19331         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19332         (xtensa_legitimate_constant_p): New function.
19334 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19336         * target.def (cannot_force_const_mem): Add a mode argument.
19337         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19338         * doc/tm.texi: Regenerate.
19339         * hooks.h (hook_bool_mode_rtx_false): Declare.
19340         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19341         (hook_bool_mode_const_rtx_true): Likewise.
19342         (hook_bool_mode_rtx_false): New function.
19343         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19344         to be non-VOID.  Update call to cannot_force_const_mem.
19345         (find_reloads): Update accordingly.
19346         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19347         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19348         argument.
19349         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19350         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19351         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19352         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19353         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19354         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19355         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19356         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19357         (m68k_cannot_force_const_mem): ...this new function.
19358         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19359         argument.
19360         (mips_const_insns, mips_legitimize_const_move): Update calls.
19361         (mips_secondary_reload_class): Likewise.
19362         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19363         (pa_cannot_force_const_mem): ...this new function.
19364         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19365         (rs6000_cannot_force_const_mem): ...this new function.
19366         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19367         argument.
19368         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19369         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19370         to...
19371         (xtensa_cannot_force_const_mem): ...this new function.
19373 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19375         * config/mips/mips.c (mips16_build_function_stub): Call
19376         build_function_type_list instead of build_function_type.
19377         (mips16_build_call_stub): Likewise.
19379 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19381         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19382         instead of build_function_type.
19384 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19386         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19387         instead of build_function_type.
19389 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
19391         PR target/48678
19392         * config/i386/i386.md (insv): Change operand 0 constraint to
19393         "register_operand".  Change operand 1 and 2 constraint to
19394         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
19395         * config/i386/sse.md (sse4_1_pinsrb): Export.
19396         (sse2_pinsrw): Ditto.
19397         (sse4_1_pinsrd): Ditto.
19398         (sse4_1_pinsrq): Ditto.
19399         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19400         * config/i386/i386.c (ix86_expand_pinsr): New.
19402 2011-04-20  Easwaran Raman  <eraman@google.com>
19404         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19405         containing union type only with -fstrict-aliasing.
19407 2011-04-20  Jim Meyering  <meyering@redhat.com>
19409         Remove useless if-before-free tests.
19410         * calls.c (expand_call, save_area): Likewise.
19411         * cfgcleanup.c (try_forward_edges): Likewise.
19412         * collect2.c (collect_execute): Likewise.
19413         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19414         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19415         * coverage.c (coverage_checksum_string): Likewise.
19416         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19417         * cselib.c (cselib_init): Likewise.
19418         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19419         (df_set_clean_cfg): Likewise.
19420         * function.c (free_after_compilation): Likewise.
19421         * gcc.c (do_spec_1, main): Likewise.
19422         * gcov.c (create_file_names): Likewise.
19423         * gensupport.c (identify_predicable_attribute): Likewise.
19424         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19425         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19426         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19427         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19428         * ipa-pure-const.c (local_pure_const): Likewise.
19429         * ipa-reference.c (propagate): Likewise.
19430         * ira-costs.c (free_ira_costs): Likewise.
19431         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19432         * matrix-reorg.c (mat_free): Likewise.
19433         * prefix.c (get_key_value): Likewise.
19434         * profile.c (compute_value_histograms): Likewise.
19435         * reload1.c (free_reg_equiv): Likewise.
19436         * sched-deps.c (free_deps): Likewise.
19437         * sel-sched-ir.c (fence_clear): Likewise.
19438         * sese.c (set_rename, if_region_set_false_region): Likewise.
19439         * tree-data-ref.c (free_rdg): Likewise.
19440         * tree-eh.c (lower_try_finally): Likewise.
19441         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19442         * tree-ssa-live.c (delete_var_map): Likewise.
19443         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19444         * tree-ssa-pre.c (phi_trans_add): Likewise.
19446 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
19448         PR tree-optimization/48611
19449         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19450         beyond ERT_MUST_NOT_THROW region.
19452 2011-04-20  Catherine Moore  <clm@codesourcery.com>
19454         * config/mips/mips.opt (mfix-24k): New.
19455         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19456         * config/mips/mips.md (length): Increase by 4 for stores if
19457         fixing 24K errata.
19458         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19459         all noreorder if fixing 24K errata.
19460         * doc/invoke.texi: Document mfix-24k.
19462 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
19464         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19465         quad-word modes, reduce to 9-bit index range when above 1016 limit.
19467 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19469         * config/arm/arm.c (arm_gen_constant): Move movw support ....
19470         (const_ok_for_op): ... to here.
19472 2011-04-20  Kai Tietz  <ktietz@redhat.com>
19474         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19475         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19477 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19479         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19481 2011-04-20  Richard Guenther  <rguenther@suse.de>
19483         PR tree-optimization/47892
19484         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19485         are if-convertible.
19487 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
19489         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19491 2011-04-20  Tristan Gingold  <gingold@adacore.com>
19493         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19495 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
19497         PR target/18145
19499         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19500         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19501         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19502         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19503         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19505         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19506         New prototype.
19508         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19509         (avr_asm_named_section, avr_asm_output_aligned_common,
19510         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19511         New functions to update...
19512         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19513         (avr_asm_init_sections): Overwrite section callbacks for
19514         data_section, bss_section.
19515         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19516         from here to...
19517         (avr_file_end): ...here.
19519 2011-04-20  Richard Guenther  <rguenther@suse.de>
19521         PR middle-end/48695
19522         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19523         objects and types here.  Adjust for their offset before comparing.
19525 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19527         * tree-vect-stmts.c (vectorizable_store): Only chain one related
19528         statement per copy.
19530 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19532         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19533         (GIMPLE_H): Include $(INTERNAL_FN_H).
19534         (OBJS-common): Add internal-fn.o.
19535         (internal-fn.o): New rule.
19536         * internal-fn.def: New file.
19537         * internal-fn.h: Likewise.
19538         * internal-fn.c: Likewise.
19539         * gimple.h: Include internal-fn.h.
19540         (GF_CALL_INTERNAL): New gf_mask.
19541         (gimple_statement_call): Put fntype into a union with a new
19542         internal_fn field.
19543         (gimple_build_call_internal): Declare.
19544         (gimple_build_call_internal_vec): Likewise.
19545         (gimple_call_same_target_p): Likewise.
19546         (gimple_call_internal_p): New function.
19547         (gimple_call_internal_fn): Likewise.
19548         (gimple_call_fntype): Return null for internal calls.
19549         (gimple_call_set_fntype): Assert that the function is not internal.
19550         (gimple_call_set_fn): Likewise.
19551         (gimple_call_set_fndecl): Likewise.
19552         (gimple_call_set_internal_fn): New function.
19553         (gimple_call_addr_fndecl): Handle null functions.
19554         (gimple_call_return_type): Likewise null types.
19555         * gimple.c (gimple_build_call_internal_1): New function.
19556         (gimple_build_call_internal): Likewise.
19557         (gimple_build_call_internal_vec): Likewise.
19558         (gimple_call_same_target_p): Likewise.
19559         (gimple_call_flags): Handle calls to internal functions.
19560         (gimple_call_fnspec): New function.
19561         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19562         (gimple_has_side_effects): Handle null functions.
19563         (gimple_rhs_has_side_effects): Likewise.
19564         (gimple_call_copy_skip_args): Handle calls to internal functions.
19565         * cfgexpand.c (expand_call_stmt): Likewise.
19566         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19567         * gimple-fold.c (gimple_fold_call): Handle null functions.
19568         (gimple_fold_stmt_to_constant_1): Don't fold
19569         calls to internal functions.
19570         * gimple-low.c (gimple_check_call_args): Handle calls to internal
19571         functions.
19572         * gimple-pretty-print.c (dump_gimple_call): Likewise.
19573         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19574         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19575         (do_warn_unused_result): Likewise.
19576         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19577         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19578         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19579         the target of a call.
19580         (initialize_hash_element): Update accordingly.
19581         (hashable_expr_equal_p): Use gimple_call_same_target_p.
19582         (iterative_hash_hashable_expr): Handle calls to internal functions.
19583         (print_expr_hash_elt): Likewise.
19584         * tree-ssa-pre.c (can_value_number_call): Likewise.
19585         (eliminate): Handle null functions.
19586         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19587         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19588         (find_func_aliases): Likewise.
19589         * value-prof.c (gimple_ic_transform): Likewise.
19590         (gimple_indirect_call_to_profile): Likewise.
19591         * lto-streamer-in.c (input_gimple_stmt): Likewise.
19592         * lto-streamer-out.c (output_gimple_stmt): Likewise.
19594 2011-04-19  Jan Hubicka  <jh@suse.cz>
19596         * ipa-inline-transform.c (save_inline_function_body): Add comments.
19597         * ipa-inline.c (inline_small_functions): Compute summaries first,
19598         populate heap later.
19600 2011-04-19  Jan Hubicka  <jh@suse.cz>
19602         * cgraph.h (save_inline_function_body): Remove.
19603         * ipa-inline-transform.c: New file, broke out of...
19604         * ipa-inline.c: ... this one; Update toplevel comment.
19605         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19606         make global.
19607         (update_noncloned_frequencies): Move to ipa-inline-transform.c
19608         (cgraph_mark_inline_edge): Rename to inline_call; move to
19609         ipa-inline-transform.c.
19610         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19611         move to ipa-inline-transform.c
19612         (recursive_inlining, inline_small_functions, flatten_function,
19613         ipa_inline, inline_always_inline_functions,
19614         early_inline_small_functions): Update.
19615         (inline_transform): Move to ipa-inline-transform.c.
19616         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19617         Declare.
19618         * Makefile.in (ipa-inline-transform.o): New file.
19619         * cgraphunit.c (save_inline_function_body): Move to
19620         ipa-inline-transform.c
19622 2011-04-19  DJ Delorie  <dj@redhat.com>
19624         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19625         registers if we already know there aren't any.
19626         (m32c_emit_epilogue): Don't emit a barrier here.
19627         (m32c_emit_eh_epilogue): Likewise.
19628         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19629         operands at expand time.
19630         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19631         int" wchar type.
19632         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19633         duplicates.  Provide aliases instead.
19634         * config/m32c/prologue.md (eh_return): Emit a barrier here.
19635         (eh_epilogue): Add a "(return)" here as a hint to other parts of
19636         the compiler.
19638 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
19640         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19641         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19642         (general_or_i64_p, sparc_register_move_cost): New function.
19644 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19646         * doc/install.texi (Configuration, --enable-threads): Remove mach.
19647         Add lynx, mipssde.  Sort table.
19649 2011-04-19  Xinliang David Li  <davidxl@google.com>
19651         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19652         not negative.
19654 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
19656         PR target/48678
19657         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19658         is a SUBREG with non-MODE_INT mode inside of it.
19660 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19662         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19663         also according to actual contants.
19664         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19665         (gimple_fold_call): Use it.
19666         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19668 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19670         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19671         non-pointer assignments.
19673 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19675         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19676         account anc_offset and otr_type from the indirect edge info.
19677         * ipa-prop.c (get_ancestor_addr_info): New function.
19678         (compute_complex_ancestor_jump_func): Assignment analysis moved to
19679         get_ancestor_addr_info, call it.
19680         (ipa_note_param_call): Do not initialize information about polymorphic
19681         calls, return the indirect call graph edge.  Remove the last
19682         parameter, adjust all callers.
19683         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19684         parameters.  Initialize polymorphic information in the indirect edge.
19686 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19688         PR lto/48148
19689         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19690         the types if they have different enumeration identifiers.
19692 2011-04-19  Jan Hubicka  <jh@suse.cz>
19694         * cgraph.h (cgraph_optimize_for_size_p): Declare.
19695         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19696         * predict.c (cgraph_optimize_for_size_p): Break out from ...
19697         (optimize_function_for_size_p) ... here.
19699 2011-04-19  Richard Guenther  <rguenther@suse.de>
19701         PR lto/48207
19702         * tree.c (free_lang_data): Do not reset the decl-assembler-name
19703         langhook.
19705 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19707         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19708         if DECL_NO_INLINE_WARNING_P is set on the function.
19710 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
19712         PR fortran/47976
19713         * reload1.c (inc_for_reload): Return void. All callers changed.
19714         (emit_input_reload_insns): Don't try to delete previous output
19715         reloads to a register, or record spill_reg_store for autoincs.
19717 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
19719         * gengtype.h: Updated copyright year.
19720         (struct input_file_st): Add inpisplugin field.
19721         (type_fileloc): New function.
19722         * gengtype.c
19723         (write_typed_struct_alloc_def): Add gcc_assert.
19724         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19725         (write_typed_alloc_defns): Don't output for plugin files.
19726         (input_file_by_name): Clear inpisplugin field.
19727         (main): Set inpisplugin field for plugin files.
19729 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
19731         * gengtype-state.c (string_eq): New.
19732         (read_state): Use string_eq instead of strcmp when creating the
19733         state_ident_tab.
19735 2011-04-19  Wei Guozhi  <carrot@google.com>
19737         PR target/47855
19738         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19739         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19740         linkage.
19741         * config/arm/constraints.md (Uu): New constraint.
19742         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19744 2011-04-19  Tristan Gingold  <gingold@adacore.com>
19746         * config.gcc (-*-*-*vms): Added.
19747         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19748         definitions moved.
19749         * config/vms/vms-ld.c: New file.
19750         * config/vms/vms-ar.c: New file.
19751         * config/vms/t-vmsnative: New file.
19753 2011-04-18  Xinliang David Li  <davidxl@google.com>
19755         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19757 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19759         PR middle-end/48661
19760         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19761         if TREE_TYPE (v) is non-NULL.
19763         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19764         gimple_get_virt_mehtod_for_binfo.
19765         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19766         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19767         callers.
19768         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19770 2011-04-18  Michael Matz  <matz@suse.de>
19771             Steve Ellcey  <sje@cup.hp.com>
19773         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19774         use its mode as source mode if it isn't VOIDmode.
19776 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
19778         * doc/passes.texi: Fill crossref nodes.
19780 2011-04-18  Jim Meyering  <meyering@redhat.com>
19782         Fix doubled-word typos in comments and strings
19783         * config/alpha/vms-unwind.h: s/for for/for/
19784         * config/arm/unwind-arm.h: Likewise.
19785         * config/microblaze/microblaze.c: Likewise.
19786         * config/sh/constraints.md: s/in in/in/
19787         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19789 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
19791         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19792         (AVX_FLOAT_MODE_P): Ditto.
19793         (AVX128_VEC_FLOAT_MODE_P): Ditto.
19794         (AVX256_VEC_FLOAT_MODE_P): Ditto.
19795         (AVX_VEC_FLOAT_MODE_P): Ditto.
19796         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19797         (UNSPEC_MASKSTORE): Ditto.
19798         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19799         Merge from <sse>_movmsk<ssemodesuffix> and
19800         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
19801         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
19802         iterator.
19803         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19804         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19805         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19807 2011-04-18  Jan Hubicka  <jh@suse.cz>
19809         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19811         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19812         (want_inline_function_called_once_p): Break out the logic from
19813         ipa_inline.
19814         (edge_badness): Ensure that profile is not misupdated.
19815         (lookup_recursive_calls): Prioritize by call frequencies.
19816         (inline_small_functions): Move program size estimates here;
19817         actually process whole queue even when unit growth has been
19818         met. (to properly compute inline_failed reasons and for the
19819         case unit size decrease.) Revisit comments on recursive inlining.
19820         (ipa_inline): Remove unit summary code; first inline hot calls
19821         of functions called once, cold calls next.
19822         (order, nnodes): Remove unused variables.
19823         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19824         (GTFILES): Remove ipa-inline.c
19825         * sel-sched.c (fill_insns): Silence uninitialized var warning.
19827 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19829         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19831 2011-04-18  Jie Zhang  <jie@codesourcery.com>
19832             Richard Earnshaw  <rearnsha@arm.com>
19834         * arm.c (neon_builtin_type_bits): Remove.
19835         (typedef enum neon_builtin_mode): New.
19836         (T_MAX): Don't define.
19837         (typedef enum neon_builtin_datum): Remove bits, codes[],
19838         num_vars and base_fcode.  Add mode, code and fcode.
19839         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19840         VAR10): Change accordingly.
19841         (neon_builtin_data[]): Change accordingly
19842         (arm_init_neon_builtins): Change accordingly.
19843         (neon_builtin_compare): Remove.
19844         (locate_neon_builtin_icode): Remove.
19845         (arm_expand_neon_builtin): Change accordingly.
19847         * arm.h (enum arm_builtins): Move to ...
19848         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19850         * arm.c (arm_builtin_decl): Declare.
19851         (TARGET_BUILTIN_DECL): Define.
19852         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19853         (arm_builtin_decls[]): New.
19854         (arm_init_neon_builtins): Store builtin declarations in
19855         arm_builtin_decls[].
19856         (arm_init_tls_builtins): Likewise.
19857         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
19858         (arm_builtin_decl): New.
19860 2011-04-18  Richard Guenther  <rguenther@suse.de>
19862         * tree.c (upper_bound_in_type): Build properly canonicalized
19863         INTEGER_CSTs.
19864         (lower_bound_in_type): Likewise.
19866 2011-04-18  Richard Guenther  <rguenther@suse.de>
19868         * gimple.h (gimple_call_addr_fndecl): New function.
19869         (gimple_call_fndecl): Use it.
19870         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19871         for direct calls.
19872         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19873         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19875 2011-04-18  Richard Guenther  <rguenther@suse.de>
19877         PR middle-end/48650
19878         * tree.c (build_string): STRING_CST is now derived from tree_typed.
19880 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19882         PR lto/48492
19883         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19884         DECL_IN_CONSTANT_POOL without RTL.
19886 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
19887             Ira Rosen  <ira.rosen@linaro.org>
19889         PR target/48252
19890         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19891         to match neon_vzip/vuzp/vtrn_internal.
19892         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19893         outputs explicitly dependent on both inputs.
19894         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19896 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19898         PR tree-optimization/48616
19899         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19900         whether the shift is by scalar or vector based on whether all SLP
19901         scalar stmts have the same rhs.
19903 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
19905         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19906         memory operands.
19908 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
19910         PR target/43700
19911         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19912         registers.
19914 2011-04-17  Jan Hubicka  <jh@suse.cz>
19916         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19917         * cgrpahunit.c (cgraph_finalize_function): Do not set
19918         finalized_by_frontend.
19919         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19920         finalized_by_frontend.
19922 2011-04-17  Jan Hubicka  <jh@suse.cz>
19924         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19925         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19926         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19927         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19928         method.
19929         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19930         gimple-fold.c
19931         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19933 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19935         PR lto/48538
19936         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19937         is non-null before accessing it.
19938         (input_cgraph): Remove trailing spaces.
19940 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19942         * params.def (sms-min-sc): New param flag.
19943         * modulo-sched.c (sms_schedule): Use it.
19944         * doc/invoke.texi (sms-min-sc): Document it.
19946 2011-04-17  Jan Hubicka  <jh@suse.cz>
19948         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19949         present, also set gimple_call_set_cannot_inline.
19950         * ipa-inline.c: Update toplevel comment.
19951         (MAX_TIME): Remove.
19952         (cgraph_clone_inlined_nodes): Fix linebreaks.
19953         (cgraph_check_inline_limits): Restructure to ...
19954         (caller_growth_limits): ... this one; be more tolerant
19955         on growth in nested inline chains; add explanatory comment;
19956         fix stack accounting thinko introduced by previous patch.
19957         (cgraph_default_inline_p): Remove.
19958         (report_inline_failed_reason): New function.
19959         (can_inline_edge_p): New function.
19960         (can_early_inline_edge_p): New function.
19961         (leaf_node_p): Move upwards in file.
19962         (want_early_inline_function_p): New function.
19963         (want_inline_small_function_p): New function.
19964         (want_inline_self_recursive_call_p): New function.
19965         (cgraph_edge_badness): Rename to ...
19966         (edge_badness) ... this one; fix linebreaks.
19967         (update_edge_key): Update call of edge_baddness; add
19968         detailed dump about queue updates.
19969         (update_caller_keys): Use can_inline_edge_p and
19970         want_inline_small_function_p.
19971         (cgraph_decide_recursive_inlining): Rename to...
19972         (recursive_inlining): Use can_inline_edge_p and
19973         want_inline_self_recursive_call_p; simplify and remove no longer
19974         valid FIXME.
19975         (cgraph_set_inline_failed): Remove.
19976         (add_new_edges_to_heap): Use can_inline_edge_p and
19977         want_inline_small_function_p.
19978         (cgraph_decide_inlining_of_small_functions): Rename to ...
19979         (inline_small_functions): ... this one; cleanup; use
19980         can/want predicates; cleanup debug ouput; work edges till fibheap
19981         is exhausted and do not stop once unit growth is reached; remove
19982         later loop processing remaining edges.
19983         (cgraph_flatten): Rename to ...
19984         (flatten_function): ... this one; use can_inline_edge_p
19985         and can_early_inline_edge_p predicates.
19986         (cgraph_decide_inlining): Rename to ...
19987         (ipa_inline): ... this one; remove unreachable nodes before
19988         inlining functions called once; simplify the pass.
19989         (cgraph_perform_always_inlining): Rename to ...
19990         (inline_always_inline_functions): ... this one; use
19991         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19992         (cgraph_decide_inlining_incrementally): Rename to ...
19993         (early_inline_small_functions): ... this one; simplify
19994         using new predicates; cleanup; make dumps prettier.
19995         (cgraph_early_inlining): Rename to ...
19996         (early_inliner): newer inline regular functions into always-inlines;
19997         fix updating of call stmt summaries.
19998         (pass_early_inline): Update for new names.
19999         (inline_transform): Fix formating.
20000         (gate_cgraph_decide_inlining): Rename to ...
20001         (pass_ipa_inline): ... this one.
20002         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
20003         * ipa-inline-analysis.c (dump_inline_summary): Update.
20004         (compute_inline_parameters): Do not compute disregard_inline_limits;
20005         look for mismatching arguments.
20006         (estimate_growth): Fix handlig of non-trivial self recursion.
20007         (inline_read_summary): Do not read info->disregard_inline_limits.
20008         (inline_write_summary): Do not write info->disregard_inline_limits.
20009         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
20010         and move all checks into can_inline_edge_p predicate; re-enable code
20011         comparing optimization levels.
20012         (expand_call_inline): Do not test inline_forbidden_into_p.
20013         * Makefile.in (ipa-inline.o): Update arguments.
20015 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20017         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
20019 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20021         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
20023 2011-04-17  Michael Matz  <matz@suse.de>
20025         PR tree-optimization/48622
20026         PR lto/48645
20027         * ipa-inline-analysis.c (inline_read_summary): Read size/time
20028         in same order as they're written.
20030 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20032         * config/pa/predicates.md: Reorganize and simplify predicates.
20033         Eliminate duplicate code checks.
20034         (arith_operand): Rename to arith14_operand
20035         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
20036         * config/pa/pa.md: Use renamed operands.
20037         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
20038         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
20039         arith11_operand, adddi3_operand, indexed_memory_operand,
20040         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
20041         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
20042         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
20043         move_dest_operand, move_src_operand, prefetch_cc_operand,
20044         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
20045         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
20046         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
20047         div_operand, int5_operand, movb_comparison_operator,
20048         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
20049         arith_double_operand, ireg_operand, lhs_lshift_operand,
20050         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
20051         integer_store_memory_operand): Likewise.
20052         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
20053         (integer_store_memory_operand, read_only_operand,
20054         function_label_operand, borx_reg_operand,
20055         non_hard_reg_operand): Likewise.
20056         (eq_neq_comparison_operator): Delete unused operator.
20057         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
20058         function_label_operand.
20059         (emit_move_sequence): Likewise.
20061 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20063         * config/i386/sse.md (sseunpackmode): New mode attribute.
20064         (ssepackmode): Ditto.
20065         (vec_pack_trunc_<mode>): Macroize expander from
20066         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
20067         (vec_unpacks_lo_<mode>): Macroize expander from
20068         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20069         (vec_unpacks_hi_<mode>): Macroize expander from
20070         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20071         (vec_unpacku_lo_<mode>): Macroize expander from
20072         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20073         (vec_unpacku_hi_<mode>): Macroize expander from
20074         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20075         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
20076         ix86_expand_sse4_unpack.
20077         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
20079 2011-04-16  Jan Hubicka  <jh@suse.cz>
20081         * cgraphbuild.c: Include ipa-inline.h.
20082         (reset_inline_failed): Use initialize_inline_failed.
20083         * cgraph.c: Include ipa-inline.h.
20084         (cgraph_create_node_1): Do not initialize estimated_growth.
20085         (initialize_inline_failed): More to ipa-inline-analysis.c
20086         (dump_cgraph_node): Do not dump inline flags.
20087         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20088         and disregard_inline_limits flags.
20089         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20090         time, size, estimated_growth.
20091         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20092         Update.
20093         * cgraphunit.c (cgraph_decide_is_function_needed): Use
20094         DECL_DISREGARD_INLINE_LIMITS.
20095         (cgraph_analyze_function): Do not initialize
20096         node->local.disregard_inline_limits.
20097         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20098         inlinable, versionable and disregard_inline_limits.
20099         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20100         cgraph_check_inline_limits, cgraph_default_inline_p,
20101         cgraph_edge_badness, update_caller_keys, update_callee_keys,
20102         add_new_edges_to_heap): Update.
20103         (cgraph_decide_inlining_of_small_function): Update; set
20104         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20105         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20106         cgraph_decide_inlining_incrementally): Update.
20107         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20108         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20109         time, size and estimated_growth parameters.
20110         (estimate_edge_growth): Update.
20111         (initialize_inline_failed): Declare.
20112         * ipa-split.c: Include ipa-inline.h
20113         (execute_split_functions): Update.
20114         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20115         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20116         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20117         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20118         estimated_growth to INT_MIN.
20119         (inline_node_duplication_hook): Likewise.
20120         (dump_inline_summary): Dump new fields.
20121         (compute_inline_parameters): Update.
20122         (estimate_edge_time, estimate_time_after_inlining,
20123         estimate_size_after_inlining, estimate_growth, inline_read_summary,
20124         inline_write_summary):
20125         (initialize_inline_failed): Move here from cgraph.c.
20126         * tree-sra.c: Include ipa-inline.h.
20127         (ipa_sra_preliminary_function_checks): Update.
20128         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20129         ipa-inline.h.
20131 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20133         * config/i386/sse.md (V16): New mode iterator.
20134         (VI1, VI8): Ditto.
20135         (AVXMODEQI, AVXMODEDI): Remove.
20136         (sse2, sse3): New mode attribute.
20137         (mov<mode>): Use V16 mode iterator.
20138         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20139         (push<mode>1): Use V16 mode iterator.
20140         (movmisalign<mode>): Ditto.
20141         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20142         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20143         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20144         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20145         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20146         avx_movdqu<avxmodesuffix>.
20147         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20148         *avx_movdqu<avxmodesuffix>.
20149         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20150         avx_lddqu<avxmodesuffix>.
20151         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20152         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20153         avx_movnt<AVXMODEDI:mode>.
20154         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20155         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20157 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20159         PR target/48629
20160         * haifa-sched.c (prune_ready_list, schedule_block): Use
20161         sched_pressure_p rather than flag_sched_pressure.
20163 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
20165         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20166         cgraph_get_node instead of cgraph_get_create_node.
20168 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
20170         * cfgexpand.c (expand_debug_expr): Use
20171         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20173 2011-04-15  Michael Matz  <matz@suse.de>
20175         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20176         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20177         * function.c (gimplify_parameters): Ditto.
20178         * gimplify.c (gimplify_vla_decl): Ditto.
20180         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20181         (gimple_call_set_alloca_for_var): New inline function.
20182         (gimple_call_alloca_for_var_p): Ditto.
20183         * gimple.c (gimple_build_call_from_tree): Remember
20184         CALL_ALLOCA_FOR_VAR_P state.
20185         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20187         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20188         calls if they were for VLA objects.
20190 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20192         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20193         of ADR_EXPRs.
20195 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20197         PR middle-end/48601
20198         * tree-emutls.c (lower_emutls_function_body): Call
20199         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
20200         result is non-NULL.
20202 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
20204         * c-decl.c (detect_field_duplicates): Call
20205         objc_detect_field_duplicates instead of objc_get_interface_ivars.
20207 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
20209         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20210         * gimple.c (gimple_asm_clobbers_memory_p): Define.
20211         * ipa-pure-const.c (check_stmt): Call it.
20212         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20214 2011-04-15  Richard Guenther  <rguenther@suse.de>
20216         PR tree-optimization/48290
20217         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20218         Properly decide inhibiting propagation based on the valueized
20219         operand.  Do loop-closed SSA form preserving here ...
20220         (init_copy_prop): ... not here.
20222 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20224         PR target/48612
20225         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20226         (*ieee_smax<mode>3): Likewise.
20228 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20230         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20231         Replace match_operand with match_dup for the third operand in
20232         these expanders.
20234 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20236         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20237         to track processing of conditionals.  Update all callers.
20238         (try_combine, simplify_if_then_else): Update.
20240 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20242         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20243         -fsched-pressure.
20245 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
20247         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20248         instead of match_operand for operand 3.
20250 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
20252         * recog.h (insn_operand_data): Add an "allows_mem" field.
20253         * genoutput.c (output_operand_data): Initialize it.
20254         * optabs.c (maybe_legitimize_operand_same_code): New function.
20255         (maybe_legitimize_operand): Use it when matching the original
20256         op->value.
20258 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20260         * gimplify.c: Fix issues in comments throughout.
20261         (voidify_wrapper_expr): Fix long line.
20262         (build_stack_save_restore): Likewise.
20263         (gimplify_loop_expr): Likewise.
20264         (gimplify_compound_lval): Likewise.
20265         (gimplify_init_ctor_eval): Likewise.
20266         (gimplify_modify_expr_rhs): Likewise.
20267         (omp_notice_threadprivate_variable): Likewise.
20269 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20271         * cfgexpand.c (expand_call_stmt): Convert the function type to the
20272         original one if this is not a builtin function.
20274 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
20276         PR target/48605
20277         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20278         offset it as needed based on top 2 bits in operands[3], change
20279         MEM mode to SFmode and mask those 2 bits away from operands[3].
20281 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20283         * c-parser.c (c_parser_objc_protocol_definition): Updated for
20284         change from objc_declare_protocols() to objc_declare_protocol().
20286 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
20288         * config/i386/sse.md (sse4_1): New mode attribute.
20289         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20290         avx_blend<ssemodesuffix><avxmodesuffix> and
20291         sse4_1_blend<ssemodesuffix> using VF mode iterator.
20292         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20293         avx_blendv<ssemodesuffix><avxmodesuffix> and
20294         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20295         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20296         avx_dp<ssemodesuffix><avxmodesuffix> and
20297         sse4_1_dp<ssemodesuffix> using VF mode iterator.
20298         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20299         (sse4_1_packusdw): Merge with *avx_packusdw.
20300         (sse4_1_pblendvb): Merge with *avx_pblendvb.
20301         (sse4_1_pblendw): Merge with *avx_pblendw.
20302         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20303         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20304         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20305         VF mode iterator.
20306         (sse4_1_round<ssescalarmodesuffix>): Merge with
20307         *avx_round<ssescalarmodesuffix>.
20308         (aesenc): Merge with *avx_aesenc.
20309         (aesenclast): Merge with *avx_aesenclast.
20310         (aesdec): Merge with *avx_aesdec.
20311         (aesdeclast): Merge with *avx_aesdeclast.
20312         (pclmulqdq): Merge with *pclmulqdq.
20313         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20314         New predicate.
20315         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20317 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20319         PR middle-end/48608
20320         * cfgexpand.c (get_decl_align_unit): Renamed to ...
20321         (align_local_variable): This.  Update DECL_ALIGN.
20322         (add_stack_var): Updated.
20323         (expand_one_stack_var): Likewise.
20325 2011-04-14  Richard Guenther  <rguenther@suse.de>
20327         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20328         Remove.
20329         (dse_initialize_block_local_data, dse_leave_block,
20330         record_voperand_set, get_stmt_uid): Likewise.
20331         (dse_possible_dead_store_p): Allow any kind of killing stmt.
20332         (dse_optimize_stmt): Remove voperand set handling code.
20333         Simplify and improve to handle any kind of killing stmt.
20334         (dse_record_phi): Remove.
20335         (dse_enter_block): Simplify.
20336         (tree_ssa_dse): Likewise.
20337         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20339 2011-04-14  Jan Hubicka  <jh@suse.cz>
20341         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20342         * cgraph.h (struct inline_summary): Move to ipa-inline.h
20343         (cgraph_local_info): Remove inline_summary.
20344         * ipa-cp.c: Include ipa-inline.h.
20345         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20346         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20347         accesor.
20348         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20349         (input_overwrite_node): Do not set inline summary.
20350         (input_node): Do not stream inline summary.
20351         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20352         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20353         growth; we do not have inline parameters computed for that anyway.
20354         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20355         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20356         (inline_summary_t): New type and VECtor.
20357         (debug_inline_summary, dump_inline_summaries): Declare.
20358         (inline_summary): Use VOCtor.
20359         (estimate_edge_growth): Kill hack computing call stmt size directly.
20360         * lto-section-in.c (lto_section_name): Add inline section.
20361         * ipa-inline-analysis.c: Include lto-streamer.h
20362         (node_removal_hook_holder, node_duplication_hook_holder): New holders
20363         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20364         (inline_summary_vec): Define.
20365         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20366         dump_inline_summaries): New functions.
20367         (estimate_function_body_sizes): Properly compute size/time of outgoing
20368         calls.
20369         (compute_inline_parameters): Alloc inline_summary; do not compute
20370         size/time of incomming calls.
20371         (estimate_edge_time): Avoid missing time summary hack.
20372         (inline_read_summary): Read inline summary info.
20373         (inline_write_summary): Write inline summary info.
20374         (inline_free_summary): Free all hooks and inline summary vector.
20375         * lto-streamer.h: Add LTO_section_inline_summary section.
20376         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20377         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20379 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20381         * tree-vectorizer.h (vect_strided_store_supported): Add a
20382         HOST_WIDE_INT argument.
20383         (vect_strided_load_supported): Likewise.
20384         (vect_permute_store_chain): Return void.
20385         (vect_transform_strided_load): Likewise.
20386         (vect_permute_load_chain): Delete.
20387         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20388         count argument.  Check that the count is a power of two.
20389         (vect_strided_load_supported): Likewise.
20390         (vect_permute_store_chain): Return void.  Update after above changes.
20391         Assert that the access is supported.
20392         (vect_permute_load_chain): Likewise.
20393         (vect_transform_strided_load): Return void.
20394         * tree-vect-stmts.c (vectorizable_store): Update calls after
20395         above interface changes.
20396         (vectorizable_load): Likewise.
20397         (vect_analyze_stmt): Don't check for strided powers of two here.
20399 2011-04-14  Richard Guenther  <rguenther@suse.de>
20401         PR tree-optimization/48590
20402         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20403         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20404         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20405         BUILT_IN_STACK_SAVE.
20406         * tree-ssa-dce.c (propagate_necessity): Handle
20407         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20409 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20411         * c-parser.c (c_parser_objc_class_declaration): Updated call to
20412         objc_declare_class.
20414 2011-04-14  Richard Guenther  <rguenther@suse.de>
20416         * tree.h (get_object_alignment_1): Declare.
20417         * builtins.c (get_object_alignment_1): Split out worker from ...
20418         (get_object_alignment): ... here.
20419         * fold-const.c (get_pointer_modulus_and_residue): Use
20420         get_object_alignment_1.
20422 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20424         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20425         type parameter.
20426         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20427         parameter.  Generalise code to handle arrays as well as vectors.
20428         (vect_setup_realignment): Update accordingly.
20429         * tree-vect-stmts.c (vectorizable_store): Likewise.
20430         (vectorizable_load): Likewise.
20432 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20434         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20435         within the per-copy loop.
20437 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20439         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20440         in the dump file.
20442 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20444         * doc/options.texi (Negative): Explicitly mention that the
20445         Negative chain must be circular.
20447 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
20449         * function.h (block_chainon): Declare.
20450         * function.c (block_chainon): Define.
20452 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
20453             Eric Weddington  <eric.weddington@atmel.com>
20454             Georg-Johann Lay  <avr@gjlay.de>
20456         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20457         New Includes
20458         (avr_init_builtins, avr_expand_builtin,
20459         avr_expand_delay_cycles, avr_expand_unop_builtin,
20460         avr_expand_binop_builtin ): New functions.
20461         (avr_builtin_id): New enum
20462         (struct avr_builtin_description): New struct
20463         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20464         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20466         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20467         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20468         UNSPECV_DELAY_CYCLES): new enumeration values
20469         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20470         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20471         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20472         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20473         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20474         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20475         "fmulsu"): New insns
20477         * config/avr/avr-c.c: fix line endings
20478         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20479         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20480         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20481         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20482         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20484         * doc/extend.texi (AVR Built-in Functions): New node
20485         (Target Builtins): Add documentation of AVR
20486         built-in functions.
20488 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
20490         PR target/44643
20491         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20492         alone. Error if non-const data has attribute progmem.
20494 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20496         * tree.h (struct tree_constructor): Include tree_typed instead of
20497         tree_common.
20498         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20499         TS_TYPED instead of TS_COMMON.
20501 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20503         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20504         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20505         (sse2_psadbw): Merge with *avx_psadbw.
20506         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20507         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20508         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20509         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20510         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20511         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20512         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20513         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20514         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20515         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20516         (ssse3_palignrti): Merge with *avx_palignrti.
20518 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20520         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20521         * tree-ssanames.c (fini_ssanames): VEC_free it.
20522         (make_ssa_name_fn): Update for VECness of free_ssanames.
20523         (release_ssa_name, release_dead_ssa_names): Likewise.
20524         * tree.h (struct tree_ssa_name): Include tree_typed instead of
20525         tree_common.
20526         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20527         TS_TYPED instead of TS_COMMON.
20529 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20531         * postreload-gcse.c (gcse_after_reload_main): Add calls to
20532         statistics_counter_event.
20533         * tree-ssa-copyrename.c (stats): Define.
20534         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
20535         statistics_counter_event.
20536         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20537         (bswap_stats, widen_mul_stats): Define.
20538         (insert_reciprocals): Increment rdivs_inserted.
20539         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
20540         rfuncs_inserted.  Add calls to statistics_counter_event.
20541         (execute_cse_sincos_1): Increment inserted.
20542         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
20543         statistics_counter_event.
20544         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
20545         of bswap_stats.  Add calls to statistics_counter_event.
20546         (convert_mult_to_widen): Increment widen_mults_inserted.
20547         (convert_plusminus_to_widen): Increment maccs_inserted.
20548         (convert_mult_to_fma): Increment fmas_inserted.
20549         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
20550         calls to statistics_counter_event.
20552 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
20554         PR rtl-optimization/48455
20555         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20556         `temp_costs->mem_cost'.
20558 2011-04-13  Jan Hubicka  <jh@suse.cz>
20560         * ipa-inline.h: New file.
20561         * ipa-inline-analysis.c: New file. Broken out of ...
20562         * ipa-inline.c: ... this file; update toplevel comment;
20563         include ipa-inline.h
20564         (inline_summary): Move to ipa-inline.h
20565         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20566         ipa-inline-analysis.c.
20567         (cgraph_estimate_time_after_inlining): Rename to
20568         estiamte_time_after_inlining; move to ipa-inline-analysis.c
20569         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20570         to estimate_edge_growth.
20571         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20572         rename to estimate_size_after_inlining.
20573         (cgraph_mark_inline_edge): Update for new naming convention.
20574         (cgraph_check_inline_limits): Likewise.
20575         (cgraph_edge_badness): Likewise.
20576         (cgraph_decide_recursive_inlining): Likewise.
20577         (cgraph_decide_inlining_of_small_functions): Likewise.
20578         (cgraph_decide_inlining_incrementally): Likewise.
20579         (cgraph_estimate_growth): Rename to estimate_growth; move to
20580         ipa-inline-analysis.c.
20581         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20582         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20583         (compute_inline_parameters): Likewise.
20584         (compute_inline_parameters_for_current): Likewise.
20585         (pass_inline_parameters): Likewise.
20586         (inline_indirect_intraprocedural_analysis): Likewise.
20587         (analyze_function): Rename to inline_analyze_function; likewise.
20588         (add_new_function): Move to ipa-inline-analysis.c.
20589         (inline_generate_summary): Likewise.
20590         (inline_read_summary): Likewise.
20591         (inline_write_summary): Likewise.
20592         * Makefile.in (ipa-inline-analysis.c): New file.
20594 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20596         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20597         * configure: Regenerate.
20599 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20601         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20602         instead of tree_common.
20603         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20604         Likewise.
20605         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20606         TS_TYPED rather than TS_COMMON.
20607         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20609 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
20611         PR target/45263
20612         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20613         r20 around calls of __tablejump_elpm__
20615 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
20617         PR middle-end/48591
20618         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20619         NULL.
20620         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20622 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
20624         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20625         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20626         (cfi_vec): New typedef.
20627         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20628         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20629         (cie_cfi_vec): New static variable.
20630         (cie_cfi_head): Delete.
20631         (add_cfi): Accept a cfi_vec * as first argument. All callers and
20632         declaration changed. Use vector rather than list operations.
20633         (new_cfi): Don't initialize the dw_cfi_next field.
20634         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20635         rather than list operations.
20636         (lookup_cfa): Use vector rather than list operations.
20637         (output_cfis): New argument upto. Accept a cfi_vec rather than
20638         a dw_cfi_ref list head as argument. All callers changed.
20639         Iterate over the vector using upto as a maximum index.
20640         (output_all_cfis): New static function.
20641         (output_fde): Use vector rather than list operations. Use the
20642         new upto argument for output_cfis rather than manipulating a
20643         list.
20644         (dwarf2out_begin_prologue): Change initializations to match
20645         new struct members.
20646         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20647         from the vector length rather than searching for the end of a list.
20648         Use output_all_cfis.
20649         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20651 2011-04-13  Nick Clifton  <nickc@redhat.com>
20653         * config/rx/rx.md (movmemsi): Do not use this pattern when
20654         volatile pointers are involved.
20656 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20658         * config/i386/sse.md (pinsrbits): Remove.
20659         (sse2_packsswb): Merge with *avx_packsswb.
20660         (sse2_packssdw): Merge with *avx_packssdw.
20661         (sse2_packuswb): Merge with *avx_packuswb.
20662         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20663         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20664         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20665         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20666         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20667         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20668         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20669         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20670         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20671         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20672         (sse2_loadld): Merge with *avx_loadld.
20673         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20674         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20675         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20676         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20677         (vec_concatv2di): Merge with *vec_concatv2di_avx.
20679 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
20681         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20682         calling TREE_CHAIN.
20683         * print-tree.c (print_node): Likewise.
20684         * tree-inline.c (copy_tree_r): Likewise.
20685         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20686         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20687         instead of TS_COMMON.
20688         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20689         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20690         (copy_node_stat): Zero TREE_CHAIN only if necessary.
20691         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20692         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20693         ...and these...
20694         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20695         * tree.h: ...here.
20696         (TREE_CHAIN): Check for a TS_COMMON structure.
20697         (TREE_TYPE): Check for a TS_TYPED structure.
20699 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
20701         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20702         cgraph_get_create_node instead of cgraph_node.
20704 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20706         * c-parser.c (c_parser_initelt): Updated call to
20707         objc_build_message_expr.
20708         (c_parser_postfix_expression): Likewise.
20710 2011-04-12  Kai Tietz  <ktietz@redhat.com>
20712         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20713         MASK_MS_BITFIELD_LAYOUT bit.
20715 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20717         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20718         assert it is always true.
20719         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20720         moves.
20722 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20724         * c-parser.c (c_lex_one_token): Rewritten conditional used when
20725         compiling Objective-C to be more efficient.
20727 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
20729         * opts-common.c (decode_cmdline_options_to_array): Remove variable
20730         argv_copied.
20732 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20734         * recog.h, genoutput.c, optabs.c: Revert last patch.
20736 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20738         PR target/48090
20739         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20741 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20743         * recog.h (insn_operand_data): Add an "allows_mem" field.
20744         * genoutput.c (output_operand_data): Initialize it.
20745         * optabs.c (maybe_legitimize_operand_same_code): New function.
20746         (maybe_legitimize_operand): Use it when matching the original
20747         op->value.
20749 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20751         * genpreds.c (process_define_predicate): Move most processing
20752         to gensupport.c.  Continue to validate the expression.
20753         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20754         (process_define_predicate): Move processing to gensupport.c.
20755         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20756         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20757         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
20758         argument.
20759         (valid_predicate_name_p): New function, split out from old
20760         genpreds.c:process_define_predicate.
20761         (process_define_predicate): New function, combining code from
20762         old genpreds.c and genrecog.c functions.
20763         (process_rtx): Call it for DEFINE_PREDICATE and
20764         DEFINE_SPECIAL_PREDICATE.
20766 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20768         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20769         size of a '%A' memory reference.
20770         (T_DREG, T_QREG): New neon_builtin_type_bits.
20771         (arm_init_neon_builtins): Assert that the load and store operands
20772         are neon_struct_operands.
20773         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20774         (NEON_ARG_MEMORY): New builtin_arg.
20775         (neon_dereference_pointer): New function.
20776         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20777         Handle NEON_ARG_MEMORY.
20778         (arm_expand_neon_builtin): Update after above interface changes.
20779         Use NEON_ARG_MEMORY for loads and stores.
20780         * config/arm/predicates.md (neon_struct_operand): New predicate.
20781         * config/arm/iterators.md (V_two_elem): Tweak formatting.
20782         (V_three_elem): Use BLKmode for accesses that have no associated mode.
20783         (V_four_elem): Tweak formatting.
20784         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20785         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20786         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20787         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20788         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20789         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20790         (neon_vst4<mode>): Replace pointer operand with a memory operand.
20791         Use %A in the output template.
20792         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20793         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20794         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20795         the width of the memory access.  Remove post-increment.
20796         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20798 2011-04-12  Nick Clifton  <nickc@redhat.com>
20800         * config/v850/v850.c (expand_prologue): Do not use the CALLT
20801         instruction for interrupt handlers if the target is the basic V850
20802         architecture.
20803         (expand_epilogue): Likewise.
20805 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20807         PR rtl-optimization/48549
20808         * combine.c (propagate_for_debug): Also stop after BB_END of
20809         this_basic_block.  Process LAST and just stop processing after it.
20810         (combine_instructions): If last_combined_insn has been deleted,
20811         set last_combined_insn to its PREV_INSN.
20813 2011-04-12  Richard Guenther  <rguenther@suse.de>
20815         PR tree-optimization/46076
20816         * gimple.h (struct gimple_statement_call): Add fntype field.
20817         (gimple_call_fntype): Adjust.
20818         (gimple_call_set_fntype): New function.
20819         * gimple.c (gimple_build_call_1): Set the call function type.
20820         * gimplify.c (gimplify_call_expr): Preserve the function
20821         type the frontend used for the call.
20822         (gimplify_modify_expr): Likewise.
20823         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20824         function type.
20825         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20826         function type.
20827         * tree-ssa.c (useless_type_conversion_p): Function pointer
20828         conversions are useless.
20830 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20832         * cgraph.h (cgraph_node): Remove function declaration.
20833         (cgraph_create_node): Declare.
20834         (cgraph_get_create_node): Likewise.
20835         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20836         Updated all callers.
20837         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20838         the decl does not already exist.  Call cgraph_get_create_node instead
20839         of cgraph_node.
20840         (cgraph_get_create_node): New function.
20841         (cgraph_same_body_alias): Update comment.
20842         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20843         assert it does not return NULL.
20844         (cgraph_update_edges_for_call_stmt): Likewise.
20845         (cgraph_clone_edge): Likewise.
20846         (cgraph_create_virtual_clone): Likewise.
20847         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20848         instead of cgraph_node.
20849         (cgraph_add_new_function): Call cgraph_create_node or
20850         cgraph_get_create_node instead of cgraph_node.
20851         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20852         instead of cgraph_node.
20853         (record_eh_tables): Likewise.
20854         (mark_address): Likewise.
20855         (mark_load): Likewise.
20856         (build_cgraph_edges): Call cgraph_get_create_node instead
20857         of cgraph_node.
20858         (rebuild_cgraph_edges): Likewise.
20859         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20860         instead of cgraph_node.
20861         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20862         cgraph_node.
20863         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20864         cgraph_create_node instead of cgraph_node.
20865         * c-decl.c (finish_function): Call cgraph_get_create_node instead
20866         of cgraph_node.
20867         * lto-cgraph.c (input_node): Likewise.
20868         * lto-streamer-in.c (input_function): Likewise.
20869         * varasm.c (mark_decl_referenced): Likewise.
20870         (assemble_alias): Likewise.
20872 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20874         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20875         instead of cgraph_node and assert it does not return NULL.
20876         * lto-streamer-in.c (lto_read_body): Likewise.
20877         * omp-low.c (new_omp_context): Likewise.
20878         (create_task_copyfn): Likewise.
20879         * tree-emutls.c (lower_emutls_function_body): Likewise.
20880         * matrix-reorg.c (transform_allocation_sites): Likewise.
20882 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20884         PR c/48552
20885         * c-typeck.c (build_asm_expr): Error out on attempts to use
20886         void type outputs or inputs for constraints that allow reg or
20887         don't allow memory.
20889 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
20890             Richard Earnshaw  <rearnsha@arm.com>
20892         PR target/48250
20893         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20894         to use sign-magnitude offsets. Reject unsupported unaligned
20895         cases. Add detailed description in comments.
20896         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20897         condition from TARGET_32BIT to TARGET_ARM.
20899 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
20901         * tree.h (struct typed_tree): New.
20902         (struct tree_common): Include it instead of tree_base.
20903         (TREE_TYPE): Update for new location of type field.
20904         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20905         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20906         (union tree_node): Add typed field.
20907         * treestruct.def (TS_TYPED): New.
20908         * lto-streamer.c (check_handled_ts_structures): Handle it.
20909         * tree.c (MARK_TS_TYPED): New macro.
20910         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20912 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
20914         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20915         (force_nonfallthru): Do not alter the loop nest if no basic block
20916         was created.
20918 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20920         * config/i386/sse.md (VI): New mode iterator.
20921         (SSEMODEI): Remove.
20922         (AVX256MODEI): Ditto.
20923         (AVXMODEF4P): Ditto.
20924         (avxvecpsmode): Ditto.
20925         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
20926         (sse2_andnot<mode>3): New expander.
20927         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20928         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
20929         (<any_logic:code><mode>3): Use VI mode iterator.
20930         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20931         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
20932         (*andnottf3): Handle AVX three-operand constraints.
20933         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20935 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20936             Robert Millan  <rmh@gnu.org>
20938         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20939         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20940         GNU_USER_DYNAMIC_LINKER64): Define.
20941         (REG_NAME): Don't undefine.
20942         (MD_UNWIND_SUPPORT): Undefine.
20943         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20944         (REG_NAME): Don't undefine.
20945         (MD_UNWIND_SUPPORT): Undefine.
20946         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20948 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20950         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20951         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20953 2011-04-11  Xinliang David Li  <davidxl@google.com>
20955         * value-profile.c (check_ic_target): New function.
20956         (gimple_ic_transform): Sanity check indirect call target.
20957         * gimple-low.c (gimple_check_call_args): Interface change.
20958         (gimple_check_call_matching_types): New function.
20959         * tree-inline.c (tree_can_inline_p): Call new function.
20961 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
20963         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20964         tree-pretty-print.h & realmpfr.h.
20966 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
20968         PR middle-end/48464
20969         * ira.c (setup_pressure_classes): Fix typo in loop condition.
20970         (setup_allocno_and_important_classes): Ditto.
20972 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20974         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20975         GNU_USER_DYNAMIC_LINKER.
20976         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20977         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20978         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20979         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20980         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20981         GNU_USER_TARGET_OS_CPP_BUILTINS.
20982         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20983         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20984         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20985         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20986         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20987         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20988         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20989         GNU_USER_TARGET_OS_CPP_BUILTINS.
20990         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20991         GNU_USER_DYNAMIC_LINKER.
20992         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20993         GNU_USER_TARGET_OS_CPP_BUILTINS.
20994         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20995         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20996         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20997         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20998         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20999         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
21000         GNU_USER_DYNAMIC_LINKER64): Remove.
21001         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
21002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21003         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21004         GNU_USER_DYNAMIC_LINKER.
21005         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21006         GNU_USER_TARGET_OS_CPP_BUILTINS.
21007         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21008         GNU_USER_TARGET_OS_CPP_BUILTINS.
21009         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
21010         to GNU_USER_TARGET_OS_CPP_BUILTINS.
21011         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21012         GNU_USER_TARGET_OS_CPP_BUILTINS.
21013         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
21014         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
21015         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21016         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
21017         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21018         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21019         GNU_USER_DYNAMIC_LINKER.
21020         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21021         GNU_USER_TARGET_OS_CPP_BUILTINS.
21022         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
21023         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21024         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21025         GNU_USER_DYNAMIC_LINKER.
21026         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21027         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21028         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
21029         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21030         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21031         GNU_USER_DYNAMIC_LINKER.
21032         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
21033         GNU_USER_DYNAMIC_LINKERN32.
21034         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
21035         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
21036         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
21037         GNU_USER_DYNAMIC_LINKER32.
21038         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
21039         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21040         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21041         GNU_USER_DYNAMIC_LINKER.
21042         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21043         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21044         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
21045         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21046         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21047         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
21048         GNU_USER_DYNAMIC_LINKER32.
21049         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21050         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
21051         GNU_USER_DYNAMIC_LINKER.
21052         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
21053         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21054         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21055         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
21056         GNU_USER_DYNAMIC_LINKER64.
21057         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
21058         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21059         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21060         GNU_USER_DYNAMIC_LINKER.
21061         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
21062         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21063         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21064         GNU_USER_DYNAMIC_LINKER.
21065         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
21066         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21067         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21068         GNU_USER_DYNAMIC_LINKER32.
21069         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21070         GNU_USER_DYNAMIC_LINKER64.
21071         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21072         GNU_USER_DYNAMIC_LINKER64.
21073         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
21074         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21075         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
21076         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21077         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21079 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21081         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
21082         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
21083         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
21084         GNU_USER_DYNAMIC_LINKER.
21085         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21086         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
21087         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21088         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21089         GNU_USER_DYNAMIC_LINKER64.
21090         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21091         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21092         GNU_USER_LINK_EMULATION.
21093         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21094         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21095         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21096         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21097         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21098         CPP_SPEC, CC1_SPEC): Remove.
21099         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21100         (GNU_USER_DYNAMIC_LINKER): Define.
21101         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21102         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21103         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21104         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21105         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21106         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21107         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21108         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21109         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21110         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21111         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21112         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21113         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21114         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21115         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21116         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21117         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21118         GNU_USER_DYNAMIC_LINKER.
21119         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21120         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21121         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21122         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21123         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21124         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21125         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21126         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21127         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21128         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21130 2011-04-11  Kai Tietz  <ktietz@redhat.com>
21132         PR target/9601
21133         PR target/11772
21134         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21135         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21136         comment.
21137         (ix86_is_msabi_thiscall): Removed.
21138         (ix86_is_type_thiscall): Likewise.
21139         (ix86_get_callcvt): New function.
21140         (ix86_comp_type_attributes): Simplify check.
21141         (ix86_function_regparm): Use ix86_get_callcvt for calling
21142         convention attribute checks.
21143         (ix86_return_pops_args): Likewise.
21144         (ix86_static_chain): Likewise.
21145         (x86_this_parameter): Likewise.
21146         (x86_output_mi_thunk): Likewise.
21147         (ix86_function_type_abi): Optimize check for types without attributes.
21148         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21149         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21150         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21151         by flag-values.
21152         (IX86_BASE_CALLCVT): Helper macro.
21153         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21154         Use ix86_get_callcvt for calling convention attribute checks and avoid
21155         symbol-decoration for stdcall in TARGET_RTD case.
21156         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21157         Likewise.
21158         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21159         for declaration.
21161 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21163         * config/i386/sse.md (VI_128): New mode iterator.
21164         (VI12_128): Rename from SSEMODE12.
21165         (VI14_128): Rename from SSEMODE14.
21166         (VI124_128): New mode iterator.
21167         (VI24_128): Rename from SSEMODE248.
21168         (VI248_128): Rename from SSEMODE248.
21169         (SSEMODE124C8): Remove.
21170         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21171         (*sse2_<plusminus_insn><mode>3): Merge with
21172         *avx_<plusminus_insn><mode>3.
21173         (*mulv8hi3): Merge with *avx_mulv8hi3.
21174         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21175         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21176         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21177         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21178         (ashr<mode>3): Merge with *avx_ashr<mode>3.
21179         (lshr<mode>3): Merge with *avx_lshr<mode>3.
21180         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21181         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21182         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21183         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21184         (*<smaxmin:code>v8hi3): Ditto.
21185         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21186         (*<smaxmin:code>v16qi3): Ditto.
21187         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21188         (*sse2_eq<mode>3): Ditto.
21189         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21190         (*sse2_gt<mode>3): Ditto.
21191         (vcondv2di): Split out of vcond<mode>.
21192         (vconduv2di): Split out of vcondu<mode>.
21194 2011-04-11  Richard Guenther  <rguenther@suse.de>
21196         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21197         before calling tree_low_cst.
21199 2011-04-11  Richard Guenther  <rguenther@suse.de>
21201         * stor-layout.c (layout_type): Compute all array index size operations
21202         in the original type.
21203         (initialize_sizetypes): Add comment.
21204         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21206 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21208         * common.opt (Tbss=, Tdata=, Ttext=): New options.
21210 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21212         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21213         of cgraph_node, handle NULL return value.
21214         (cgraph_global_info): Likewise.
21215         (cgraph_rtl_info): Likewise.
21216         * tree-inline.c (estimate_num_insns): Likewise.
21217         * gimplify.c (unshare_body): Likewise.
21218         (unvisit_body): Likewise.
21219         (gimplify_body): Likewise.
21220         * predict.c (optimize_function_for_size_p): Likewise.
21221         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21222         (call_may_clobber_ref_p_1): Likewise.
21223         * varasm.c (function_section_1): Likewise.
21224         (assemble_start_function): Likewise.
21226 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21228         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21229         of cgraph_node.
21230         * final.c (rest_of_clean_state): Likewise.
21231         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21232         * passes.c (pass_init_dump_file): Likewise.
21233         (execute_all_ipa_transforms): Likewise.
21234         (function_called_by_processed_nodes_p): Likewise.
21235         * predict.c (maybe_hot_frequency_p): Likewise.
21236         (probably_never_executed_bb_p): Likewise.
21237         (compute_function_frequency): Likewise.
21238         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21239         (unnest_nesting_tree_1): Likewise.
21240         (lower_nested_functions): Likewise.
21241         * tree-optimize.c (execute_fixup_cfg): Likewise.
21242         (tree_rest_of_compilation): Likewise.
21243         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21244         * tree-sra.c (ipa_early_sra): Likewise.
21245         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21246         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21247         * ipa.c (record_cdtor_fn): Likewise.
21248         * ipa-inline.c (cgraph_early_inlining): Likewise.
21249         (compute_inline_parameters_for_current): Likewise.
21250         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21251         * ipa-pure-const.c (local_pure_const): Likewise.
21252         * ipa-split.c (split_function): Likewise.
21253         (execute_split_functions): Likewise.
21254         * cgraphbuild.c (build_cgraph_edges): Likewise.
21255         (rebuild_cgraph_edges): Likewise.
21256         (cgraph_rebuild_references): Likewise.
21257         (remove_cgraph_callee_edges): Likewise.
21258         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21259         (verify_cgraph_node): Likewise.
21260         (cgraph_analyze_functions): Likewise.
21261         (cgraph_preserve_function_body_p): Likewise.
21262         (save_inline_function_body): Likewise.
21263         (save_inline_function_body): Likewise.
21264         * tree-inline.c (copy_bb): Likewise.
21265         (optimize_inline_calls): Likewise.
21267 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21269         PR tree-optimization/48195
21270         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21271         ipa_check_create_edge_args.
21272         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21273         ipa_check_create_edge_args.
21274         * ipa-inline.c (inline_generate_summary): Do not call
21275         ipa_check_create_node_params and ipa_check_create_edge_args.
21276         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21277         ipa_check_create_edge_args.
21279 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
21281         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21282         instead of loop.
21283         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21284         * function.c (record_hard_reg_sets): Likewise.
21285         * ira.c (compute_regs_asm_clobbered): Likewise.
21286         * sched-deps.c (sched_analyze_1): Likewise.
21287         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21289 2011-04-09  Xinliang David Li  <davidxl@google.com>
21291         PR tree-optimization/PR48484
21292         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21293         has_valid_pred lazily
21295 2011-04-09  Duncan Sands  <baldrick@free.fr>
21297         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21299 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21301         * combine.c (combine_validate_cost): Adjust comments.  Set registered
21302         cost of I0 to zero at the end, if any.
21304 2011-04-08  Xinliang David Li  <davidxl@google.com>
21306         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21307         to insane profile data.
21309 2011-04-08  Xinliang David Li  <davidxl@google.com>
21311         * ipa-cp.c (ipcp_update_profiling): Correct
21312          negative scale factor due to insane profile data.
21314 2011-04-08  Xinliang David Li  <davidxl@google.com>
21316         * final.c (dump_basic_block_info): New function.
21317         (final): Dump basic block.
21318         (final_scan_insn): Remove old dump.
21320 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
21322         PR target/47829
21323         * config.gcc (i386-*-freebsd): Disable unwind table generation for
21324         crtbegin/crtend.
21326 2011-04-08  Michael Matz  <matz@suse.de>
21328         PR middle-end/48389
21329         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21330         functions.
21331         (rebuild_jump_labels): Call rebuild_jump_labels_1.
21332         * rtl.h (rebuild_jump_labels_chain): Declare.
21333         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21334         insns inserted on edges.
21336 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
21338         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21339         * config/arm/arm-arches.def: New.
21340         * config/arm/arm-opts.h: New.
21341         * config/arm/genopt.sh: New.
21342         * config/arm/arm-tables.opt: New (generated).
21343         * config/arm/arm.c (arm_handle_option, arm_target_help,
21344         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21345         (all_architectures): Get most table contents from arm-arches.def.
21346         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21347         arm_selected_tune here.
21348         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21349         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21350         (march=, mcpu=, mtune=): Use Enum and Var.
21351         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21352         (arm.o): Update dependencies.
21354 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
21356         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21357         of header_file.
21358         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21359         (write_typed_alloc_defns): Likewise.
21360         (main): Calls write_typed_alloc_defns with output_header.
21362 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
21364         PR inline-asm/48435
21365         * ira-color.c (setup_profitable_hard_regs): Add comments.
21366         Don't take prohibited hard regs into account.
21367         (setup_conflict_profitable_regs): Rename to
21368         get_conflict_profitable_regs.
21369         (check_hard_reg_p): Check prohibited hard regs.
21371 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
21373         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21374         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21375         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21377 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21379         PR target/48366
21380         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21381         move from floating point to shift amount register.
21382         (emit_move_sequence): Remove secondary reload support for floating
21383         point to shift amount amount register copies.
21384         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21385         amount register copies.
21386         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21387         register, return false if mode isn't a scalar integer mode.
21388         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21390 2011-04-08  Richard Guenther  <rguenther@suse.de>
21392         * gimple.c (gimple_call_flags): Remove kludge.
21394 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21396         * sel-sched.c (sel_region_init): Move call to
21397         sel_setup_region_sched_flags after setup_current_loop_nest.
21399 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
21401         PR rtl-optimization/48272
21402         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21403         init_insn_reg_pressure_info.  Adjust a caller.
21404         * sched-int.h (init_insn_reg_pressure_info): Declare.
21405         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21406         when sched-pressure is enabled.
21408 2011-04-08  Richard Guenther  <rguenther@suse.de>
21410         * gimple.c (gimple_set_modified): Do not queue calls to
21411         MODIFIED_NORETURN_CALLS here ...
21412         * tree-ssa-operands.c (update_stmt_operands): ... but here.
21414 2011-04-08  Richard Guenther  <rguenther@suse.de>
21416         PR lto/48467
21417         * toplev.c (lang_dependent_init): Do not open asm_out_file
21418         in WPA mode, nor perform debug machinery initialization.
21419         (finalize): Do not unlink asm_out_file in WPA mode.
21421 2011-04-08  Richard Guenther  <rguenther@suse.de>
21423         * gimple.h (gimple_call_fntype): New function.
21424         (gimple_call_return_type): Use it.
21425         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21426         * gimple-low.c (gimple_check_call_args): Likewise.
21427         * gimple.c (gimple_call_flags): Likewise.
21428         (gimple_call_arg_flags): Likewise.
21429         (gimple_call_return_flags): Likewise.
21430         * tree-cfg.c (verify_gimple_call): Likewise.
21431         (do_warn_unused_result): Likewise.
21432         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21433         * value-prof.c (gimple_ic_transform): Fix fndecl check.
21435 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
21437         PR rtl-optimization/48235
21438         * sel-sched.c (code_motion_process_successors): Recompute the last
21439         insn in basic block if control flow changed.
21440         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
21441         Update condition for ilist_remove.
21443 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21445         PR rtl-optimization/48302
21446         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21447         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
21448         it to record added preheader blocks.
21449         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
21450         on to sel_add_loop_preheaders.
21451         (sel_region_init): Move call to setup_current_loop_nest after
21452         sel_init_bbs.
21454 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21456         PR target/48273
21457         * cfgloop.h (loop_has_exit_edges): New helper.
21458         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21459         non-clonable.
21460         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21461         that have no exit edges.
21463 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21465         PR rtl-optimization/48442
21466         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
21467         all callers.  Adjust assert.
21469 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
21471         PR tree-optimization/48377
21472         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21473         is_packed to true even for types with smaller TYPE_ALIGN than
21474         TYPE_SIZE.
21476 2011-04-08  Richard Guenther  <rguenther@suse.de>
21478         PR bootstrap/48513
21479         * doc/tm.texi: Re-generate.
21481 2011-04-08  Wei Guozhi  <carrot@google.com>
21483         PR target/47855
21484         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21485         * config/arm/arm.c (arm_attr_length_push_multi): New function.
21486         * config/arm/arm.md (*push_multi): Change the length computation to
21487         call a C function.
21489 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
21491         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21492         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21493         * doc/tm.texi: Regenerate.
21494         * system.h (ASM_OUTPUT_BSS): Poison.
21495         * varasm.c (asm_output_bss): Remove function.
21496         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21498         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21499         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21500         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21501         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21502         Likewise.
21503         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21504         Likewise.
21505         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21506         Likewise.
21507         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21509 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21511         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21512         EnumValue lines.
21514 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21516         * config/m68k/m68k.c (m68k_handle_option): Don't handle
21517         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21518         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21519         OPT_mcpu32.
21520         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21521         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21522         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21523         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21524         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21525         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21526         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21527         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21528         options.  Don't map other m68k options manually.  Don't handle
21529         old-style options as canonical.
21530         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21531         * doc/install.texi (m68k-*-*): Document binutils version requirement.
21533 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
21535         * basic-block.h (force_nonfallthru): Move to...
21536         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21537         (force_nonfallthru): ...here.
21538         * cfghooks.c (force_nonfallthru): New function.
21539         * cfgrtl.c (force_nonfallthru): Rename into...
21540         (rtl_force_nonfallthru): ...this.
21541         (commit_one_edge_insertion): Do not set AUX field.
21542         (commit_edge_insertions): Do not discover new basic blocks.
21543         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21544         (cfg_layout_rtl_cfg_hooks): Likewise.
21545         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21546         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
21547         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21549 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
21551         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21552         Remove macros.
21554 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
21556         * config/i386/sse.md: Update copyright year.
21557         (avxcvtvecmode): Remove.
21558         (sse_movhlps): Merge with *avx_movhlps.
21559         (sse_movlhps): Merge with *avx_movlhps.
21560         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21561         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21562         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21563         (sse_loadhps): Merge with *avx_loadhps.
21564         (sse_storelps): Merge with *avx_storelps.
21565         (sse_loadlps): Merge with *avx_loadlps.
21566         (sse_movss): Merge with *avx_movss.
21567         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21568         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21569         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21570         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21571         (vec_set<mode>_0): Ditto.
21572         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21573         (sse4_1_insertps): Merge with *avx_insertps.
21574         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21575         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21576         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21577         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21578         (sse2_storehpd): Merge with *avx_storehpd.
21579         (sse2_loadhpd): Merge with *avx_loadhpd.
21580         (sse2_loadlpd): Merge with *avx_loadlpd.
21581         (sse2_movsd): Merge with *avx_movsd.
21582         (*vec_concatv2df): Merge with *vec_concatv2df.
21584 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
21586         PR debug/48343
21587         * combine.c (combine_instructions): Add last_combined_insn,
21588         update it if insn is after it, pass it to all try_combine calls.
21589         (try_combine): Add last_combined_insn parameter, pass it instead of
21590         i3 to propagate_for_debug.
21592 2011-04-07  Nick Clifton  <nickc@redhat.com>
21594         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21595         to handle MDR <-> data register transfers.
21596         (movhi_internal): Likewise.
21598 2011-04-07  Alan Modra  <amodra@gmail.com>
21600         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21601         previous stack info.
21603 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21605         PR target/43920
21606         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
21607         flow_find_cross_jump.  Swap variables to implement backward replacement.
21608         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21610 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21612         PR target/43920
21613         * cfgcleanup.c (walk_to_nondebug_insn): New function.
21614         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
21615         and bb2.
21616         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21617         src1 or src2.  Redirect edges to the last basic block.  Update
21618         frequency and count on multiple basic blocks in case of fallthru.
21620 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21622         PR target/43920
21623         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21624         function.
21625         (old_insns_match_p): Change return type.  Replace return false/true
21626         with return dir_none/dir_both.  Use can_replace_by.
21627         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
21628         direction from dir_p.  Register replacement direction in dir, last_dir
21629         and afterlast_dir.  Handle new return type of old_insns_match_p using
21630         merge_dir.  Return replacement direction in dir_p.
21631         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21632         return type of old_insns_match_p.
21633         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21634         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21635         flow_find_cross_jump.
21636         * basic-block.h (enum replace_direction): New type.
21637         (flow_find_cross_jump): Add parameter to declaration.
21639 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21641         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21642         (AVXMODEDCVTPS2DQ): Ditto.
21643         (VEC_FLOAT_MODE): Ditto.
21644         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
21645         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21646         (<any_logic:code><mode>3): Use VF mode iterator.
21647         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21648         Use VF mode iterator.
21649         (copysign<mode>3): Use VF mode iterator.
21650         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
21651         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21652         (*<any_logic:code><MODEF:mode>3): Merge with
21653         *avx_<any_logic:code><MODEF:mode>3.
21654         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21655         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21656         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21657         (avx_cvtdq2ps<avxmodesuffix>): Remove.
21658         (sse2_cvtdq2ps): Use %v modifier.
21659         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21660         (avx_cvtps2dq<avxmodesuffix>): Remove.
21661         (sse2_cvtps2dq): Use %v modifier.
21662         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21663         (avx_cvttps2dq<avxmodesuffix>): Remove.
21664         (sse2_cvttps2dq): Use %v modifier.
21665         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21666         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21667         (sse2_cvtsd2siq): Fix insn template.
21668         (sse2_cvtsd2siq_2): Ditto.
21669         (sse2_cvttsd2siq): Ditto.
21670         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21671         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21673 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21675         * gcov-io.c: Use GCC Runtime Library Exception.
21677 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
21679         PR debug/48466
21680         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21681         as base_reg whatever register reg has been eliminated to, instead
21682         of hardcoding STACK_POINTER_REGNUM.
21684 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21686         * doc/tm.texi.in: Document C target hooks as separate from general
21687         target hooks.
21688         * doc/tm.texi: Regenerate.
21689         * genhooks.c (struct hook_desc): Add docname field.
21690         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
21691         docname field.
21692         (hook_array): Include c-target.def.
21693         (emit_documentation): Use docname field in output.
21694         (emit_init_macros): Take docname argument.  Only emit definitions
21695         for hooks matching docname.
21696         (main): Expect additional arguments in all cases.  Pass argument
21697         to emit_init_macros.
21698         * target.def: Move initial macro definitions and comments to
21699         target-hooks-macros.h.
21700         (gcc_targetcm): Move to c-family/c-target.def.
21701         * target.h (targetcm): Move declaration to c-family/c-target.h.
21702         * targhooks.c (default_handle_c_option): Move to
21703         c-family/c-opts.c.
21704         * targhooks.h (default_handle_c_option): Move declaration to
21705         c-family/c-common.h.
21706         * target-hooks-macros.h: New file.
21707         * config.gcc (target_has_targetcm): Define and use to add to
21708         c_target_objs and cxx_target_objs.
21709         * config/default-c.c: New file.
21710         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21711         of target.h and target-def.h.
21712         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21713         (darwin_objc_construct_string, darwin_cfstring_ref_p,
21714         darwin_check_cfstring_format_arg): Make static.
21715         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21716         TARGET_STRING_OBJECT_REF_TYPE_P,
21717         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21718         * config/darwin-protos.h (darwin_objc_construct_string,
21719         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21720         declare.
21721         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21722         TARGET_STRING_OBJECT_REF_TYPE_P,
21723         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21724         * config/t-darwin (darwin-c.o): Update dependencies.
21725         * system.h (TARGET_HAS_TARGETCM): Poison.
21726         * Makefile.in (TARGET_H): Update.
21727         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21728         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21729         (default-c.o): New target.
21730         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21731         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21732         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
21733         c-target.def.
21734         (build/genhooks.o): Update dependencies.
21736 2011-04-06  Richard Guenther  <rguenther@suse.de>
21738         * ipa-inline.c (enum inlining_mode): Remove.
21739         (cgraph_flatten): Use some other token.
21740         (cgraph_edge_early_inlinable_p): New function, split out from ...
21741         (cgraph_perform_always_inlining): New function, split out from ...
21742         (cgraph_decide_inlining_incrementally): ... here.
21743         (cgraph_mark_inline_edge): Adjust.
21744         (cgraph_early_inlining): Re-structure.
21745         (pass_early_inline): Require SSA form.
21747 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
21748             Julian Brown  <julian@codesourcery.com>
21749             Mark Shinwell  <shinwell@codesourcery.com>
21751         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21752         LO_REGS only for Thumb-1.
21753         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21754         be used in short instructions when optimising for size on Thumb-2.
21756 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21758         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21759         associated with user returns to be preserved.
21761 2011-04-06  Tristan Gingold  <gingold@adacore.com>
21763         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21764         symbol_queue_size, DBXOUT_DECR_NESTING,
21765         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21766         if XCOFF_DEBUGGING_INFO.
21768 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21770         * config/i386/i386.md (attribute isa): New.
21771         (attribute enabled): New.
21772         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21773         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21774         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21775         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21776         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21777         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21778         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21779         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21781         * config/i386/sse.md (VF): New mode iterator.
21782         (VF1): Ditto.
21783         (VF2): Ditto.
21784         (VF_128): Ditto.
21785         (SSEMODEF4): Remove.
21786         (attribute sse): Handle V8SF and V4DF modes.
21787         (<absneg:code><mode>2): Use VF mode iterator.
21788         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
21789         mode iterator.
21790         (<plusminus_insn><mode>3): Use VF mode iterator.
21791         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21792         Use VF mode iterator.
21793         (<sse>_vm<plusminus_insn><mode>3): Merge with
21794         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
21795         (mul<mode>3): Use VF mode iterator.
21796         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
21797         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
21798         mode iterator.
21799         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21800         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21801         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
21802         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
21803         mode iterator.
21804         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21805         Use VF1 mode iterator.
21806         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21807         (sqrt<VF2:mode>2): New expander.
21808         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21809         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21810         and sqrtv2df2.  Use VF mode iterator.
21811         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
21812         mode iterator.
21813         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21814         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21815         Use VF1 mode iterator.
21816         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21817         (<smaxmin:code><mode>3): Use VF mode iterator.
21818         (*<smaxmin:code><mode>3_finite): Merge with
21819         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
21820         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21821         (<sse>_vm<smaxmin:code><mode>2): Merge with
21822         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
21823         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
21824         mode iterator.
21825         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
21826         mode iterator.
21827         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21828         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21829         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21830         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21831         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
21832         VF mode iterator.
21833         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21834         Use VF_128 mode iterator.
21835         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
21836         mode iterator.
21837         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
21838         VF_128 mode iterator.
21839         (vcond<mode>): Use VF mode iterator.
21840         * config/i386/predicates.md (sse_comparison_operator): Merge with
21841         avx_comparison_float_operator.  Do not declare as special_predicate.
21842         * config/i386/i386.c (struct builtin_description): Update for renamed
21843         compare patterns.
21844         (ix86_expand_args_builtin): Ditto.
21845         (ix86_expand_sse_compare_mask): Ditto.
21847 2011-04-06  Richard Guenther  <rguenther@suse.de>
21849         * tree-inline.c (estimate_num_insns): For calls simply account
21850         for all passed arguments and a used return value.
21852 2011-04-06  Richard Guenther  <rguenther@suse.de>
21854         PR tree-optimization/47663
21855         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21856         call_stmt_time fields.
21857         (cgraph_edge_inlinable_p): Declare.
21858         (cgraph_edge_recursive_p): New inline function.
21859         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21860         (cgraph_clone_edge): Copy it.
21861         * ipa-inline.c (cgraph_estimate_edge_time): New function.
21862         Account for call stmt time.
21863         (cgraph_estimate_time_after_inlining): Take edge argument.
21864         (cgraph_estimate_edge_growth): Account call stmt size.
21865         (cgraph_estimate_size_after_inlining): Take edge argument.
21866         (cgraph_mark_inline_edge): Adjust.
21867         (cgraph_check_inline_limits): Likewise.
21868         (cgraph_recursive_inlining_p): Remove.
21869         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21870         (cgraph_decide_recursive_inlining): Take edge argument and
21871         adjust.
21872         (cgraph_decide_inlining_of_small_functions): Do not avoid
21873         diags for recursive inlining here.
21874         (cgraph_flatten): Adjust.
21875         (cgraph_decide_inlining_incrementally): Likewise.
21876         (estimate_function_body_sizes): Remove call cost handling.
21877         (compute_inline_parameters): Initialize caller edge call costs.
21878         (cgraph_estimate_edge_growth): New function.
21879         (cgraph_estimate_growth): Use it.
21880         (cgraph_edge_badness): Likewise.
21881         (cgraph_check_inline_limits): Take an edge argument.
21882         (cgraph_decide_inlining_of_small_functions): Adjust.
21883         (cgraph_decide_inlining): Likewise.
21884         * tree-inline.c (estimate_num_insns): Only account for call
21885         return value if it is used.
21886         (expand_call_inline): Avoid diagnostics on recursive inline
21887         functions here.
21888         * lto-cgraph.c (lto_output_edge): Output edge call costs.
21889         (input_edge): Input edge call costs.
21891 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21893         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21895 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
21897         * doc/invoke.texi (Spec Files): Fix typo.
21899 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21901         * profile.c (branch_prob): Move declaration of local variable.  Remove
21902         obsolete ??? comment.  Expand the location explicitly instead of using
21903         the LOCATION_FILE and LOCATION_LINE macros.
21905 2011-04-06  Wei Guozhi  <carrot@google.com>
21907         PR target/47855
21908         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21909         (arm_cond_branch): Likewise.
21910         (arm_cond_branch_reversed): Likewise.
21911         (arm_jump): Likewise.
21912         (push_multi): Likewise.
21913         * config/arm/constraints.md (Py): New constraint.
21915 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21917         PR bootstrap/48471
21918         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21919         Move these...
21920         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21921         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21922         #ifdef DBX_DEBUGGING_INFO.
21924 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
21926         PR bootstrap/48403
21927         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21928         if old and new states differ.
21930 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21932         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21933         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21934         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21935         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21936         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21937         mcfv4e): Use Alias.
21938         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21939         ColdFire options to -mcpu= options.
21941 2011-04-05  Jeff Law  <law@redhat.com>
21943         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21944         check if BB is a successor of LOOP->header and return
21945         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21947 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21949         * cprop.c (struct reg_use): Remove.
21950         (reg_use_table): Make an array of RTX.
21951         (find_used_regs, constprop_register, local_cprop_pass,
21952         bypass_block): Simplify users of reg_use_table.
21953         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
21954         on one of the uses found by find_used_regs.
21956 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21958         PR bootstrap/48469
21959         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21960         declaration.
21962 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21964         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21965         as an rtx.
21966         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21968 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21970         PR middle-end/48441
21971         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21973 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21975         * combine.c: Include obstack.h.
21976         (struct insn_link): Define.
21977         (uid_log_links): Adjust type.
21978         (FOR_EACH_LOG_LINK): New macro.
21979         (insn_link_obstack): Declare.
21980         (alloc_insn_link): Define.
21981         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
21982         type of link variables.
21983         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21984         (try_combine, record_promoted_values, distribute_notes): Likewise.
21985         (distribute_links): Likewise.  Tweak prototype.
21986         (clear_log_links): Delete.
21987         (adjust_for_new_dest): Call alloc_insn_link.
21988         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21990 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21992         * gcse.c (modify_mem_list): Convert to an array of VECs.
21993         (canon_modify_mem_list, compute_transp): Tweak formatting.
21994         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
21995         (load_killed_in_block_p): Likewise.
21996         (record_last_mem_set_info): Likewise.
21997         (clear_modify_mem_tables): Likewise.
21999 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22001         PR middle-end/48461
22002         * function.c (emit_use_return_register_into_block): Only define if
22003         HAVE_return.
22005 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
22007         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
22009 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22011         * config/rx/rx-opts.h: New.
22012         * config/rx/rx.c (rx_cpu_type): Remove.
22013         (rx_handle_option): Don't assert that global structures are in
22014         use.  Access variables via opts pointer.  Defer most handling of
22015         OPT_mint_register_.  Use error_at.
22016         (rx_option_override): Handle deferred OPT_mint_register_ here.
22017         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
22018         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
22019         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
22020         (rx_cpu_types): New Enum and EnumValue entries.
22021         (mint-register=): Use Defer and use Var accordingly.
22023 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22025         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
22026         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
22027         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
22028         Move these...
22029         (debug_free_queue, debug_nesting, symbol_queue_index):
22030         ...and these...
22031         * dbxout.c: ...to here.  Make static.
22033 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22035         * gcse.c (modify_pair): Define.  Define a VEC of it.
22036         (canon_modify_mem_list): Convert to an array of VECs.
22037         (free_insn_expr_list_list): Delete.
22038         (clear_modify_mem_tables): Call VEC_free instead.
22039         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
22040         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
22041         (canon_list_insert, compute_transp): Likewise.
22043 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22045         PR target/43920
22046         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
22047         for size.
22049 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22051         PR target/43920
22052         * function.c (emit_use_return_register_into_block): New function.
22053         (thread_prologue_and_epilogue_insns): Use
22054         emit_use_return_register_into_block.
22056 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22058         PR target/43920
22059         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
22060         insn.
22062 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22064         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
22066 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
22068         * config/arm/arm.md (define_constants for unspec): Replace with
22069         define_c_enum.
22070         (define_constants for unspecv): Replace with define_c_enum.
22071         * config/arm/neon.md (define_constants for unspec): Replace with
22072         define_c_enum.
22074 2011-04-04  Richard Henderson  <rth@redhat.com>
22076         PR bootstrap/48400
22077         * dwarf2out.c (output_line_info): Always emit line info from
22078         at least one section.
22079         (dwarf2out_init): Create text_section_line_info here ...
22080         (set_cur_line_info_table): ... not here.
22082 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22084         PR target/48380
22085         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
22086         not called.
22088         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22090 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22092         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22093         (expr_equiv_p): Remove.
22094         (insert_set_in_table): Look at <dest, src> pair instead of expr.
22095         (hash_scan_set): Update call to insert_set_in_table.
22096         (dump_hash_table): Dump <dest, src> pair.
22097         (lookup_set): Simplify.  Lookup <dest, src> pair.
22098         (compute_transp): Remove, fold heavily simplified code into...
22099         (compute_local_properties): ...here.  Expect COMP and TRANSP
22100         unconditionally.
22101         (find_avail_set): Take set directly from struct expr.
22102         (find_bypass-set): Likewise.
22103         (bypass_block): Likewise.
22104         (cprop_insn): Likewise.  Remove redundant INSN_P test.
22106         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22107         checks on form of COND from find_implicit_sets to here.
22108         (find_implicit_sets): Cleanup control flow. Split critical edges
22109         if it exposes implicit sets.  Allocate/resize implicit_sets as
22110         necessary.
22111         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22112         changed something.  Run df_analyze after find_implicit_sets if any
22113         edges were split.  Do not allocate implicit_sets here.
22115         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22116         (gcse_obstack): Renamed to cprop_obstack.
22117         (GNEW, GNEWVEC, GNEWVAR): Remove.
22118         (gmalloc): Remove.
22119         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22120         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22121         (gcse_alloc): Likewise, and rename to cprop_alloc.
22122         (alloc_gcse_men, free_gcse_mem): Remove.
22123         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22124         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22125         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22127         * cprop.c (oprs_not_set_p): Remove.
22128         (mark_set, mark_clobber): Remove.
22129         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22130         (reg_not_set_p): New function.
22131         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22132         (cprop_insn): Likewise.
22133         (cprop_jump): Use FOR_EACH_EDGE.
22135 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
22137         PR bootstrap/48403
22138         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22139         (rank_for_schedule): Use scheduled_insns vector instead of
22140         last_scheduled_insn.
22141         (ok_for_early_queue_removal): Likewise.
22142         (queue_to_ready): Search forward in nonscheduled_insns_begin if
22143         we have a dbg_cnt.
22144         (choose_ready): Likewise.
22145         (commit_schedule): Use VEC_iterate.
22146         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
22147         a dbg_cnt, use it and ensure the first insn is in the ready list.
22148         (haifa_sched_init): Allocate scheduled_insns.
22149         (sched_extend_ready_list): Don't allocate it; reserve space.
22150         (haifa_sched_finish): Free it.
22152 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22154         * optc-gen.awk: Always remove type from Variable entry before
22155         recording in var_seen.
22157 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22159         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22160         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22161         call to tidy_fallthru_edges.
22163 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22165         * doc/options.texi (ToLower): Document.
22166         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22167         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22168         * opts.h (cl_option): Add cl_tolower field.
22169         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22170         arguments with lowercase strings.
22171         * config/rx/rx.opt (mcpu=): Add ToLower.
22172         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22173         argument.
22175 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22177         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22179 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22181         * config/vax/vax.c: Include reload.h.
22183 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
22185         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22186         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22187         (sparc_preferred_reload_class): New function.
22189 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
22191         PR debug/48401
22192         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22193         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22195 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
22197         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22198         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22200 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
22202         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22203         (ASM_OUTPUT_ALIGNED_BSS): Define.
22205 2011-04-03  Michael Matz  <matz@suse.de>
22207         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22208         and next_slot members.
22209         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22210         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22211         (lto_streamer_cache_append): Declare.
22212         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22213         unsigned index, remove offset parameter, ensure that we append
22214         or update existing entries.
22215         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22216         parameter, update next_slot for append.
22217         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22218         parameter.
22219         (lto_streamer_cache_insert_at): Likewise.
22220         (lto_streamer_cache_append): New function.
22221         (lto_streamer_cache_lookup): Use unsigned index.
22222         (lto_streamer_cache_get): Likewise.
22223         (lto_record_common_node): Don't test tree_node_can_be_shared.
22224         (preload_common_node): Adjust call to lto_streamer_cache_insert.
22225         (lto_streamer_cache_delete): Don't free offsets member.
22226         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22227         (lto_output_string_with_length): Use lto_output_data_stream.
22228         (lto_output_tree_header): Remove ix parameter, don't write it.
22229         (lto_output_builtin_tree): Likewise.
22230         (lto_write_tree): Adjust callers to above, don't track and write
22231         offset, write unsigned index.
22232         (output_unreferenced_globals): Don't emit all global vars.
22233         (write_global_references): Use unsigned indices.
22234         (lto_output_decl_state_refs): Likewise.
22235         (write_symbol): Likewise.
22236         * lto-streamer-in.c (lto_input_chain): Move earlier.
22237         (input_function): Use unsigned index.
22238         (input_alias_pairs): Don't read and then ignore all global vars.
22239         (lto_materialize_tree): Remove ix_p parameter, don't read index,
22240         don't pass it back, use lto_streamer_cache_append.
22241         (lto_register_var_decl_in_symtab): Use unsigned index.
22242         (lto_register_function_decl_in_symtab): Likewise.
22243         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22244         index.
22245         (lto_get_builtin_tree): Don't read index, use
22246         lto_streamer_cache_append.
22247         (lto_read_tree): Adjust call to lto_materialize_tree.
22249         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22250         don't use function calls in arguments to MIN.
22252         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22253         twice.
22255         * gimple.c (gimple_type_leader_entry): Mark deletable.
22257 2011-04-03  Alan Modra  <amodra@gmail.com>
22259         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22261 2011-04-03  Michael Matz  <matz@suse.de>
22263         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22264         an integer.
22265         * tree.h (tree_decl_non_common.vindex): Adjust comment.
22267 2011-04-03  Michael Matz  <matz@suse.de>
22269         * cgraphbuild.c (record_reference): Canonicalize constructor values.
22270         * gimple-fold.c (canonicalize_constructor_val): Accept being called
22271         without function context.
22272         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22273         current_function_decl and cfun.
22275 2011-04-03  Michael Matz  <matz@suse.de>
22277         * tree.c (decl_init_priority_insert): Don't create entry for
22278         default priority.
22279         (decl_fini_priority_insert): Ditto.
22280         (fields_compatible_p, find_compatible_field): Remove.
22281         * tree.h (fields_compatible_p, find_compatible_field): Remove.
22282         * gimple.c (gimple_compare_field_offset): Adjust block comment.
22284 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
22286         * combine.c (try_combine): Remove useless local variable.
22288 2011-04-03  Richard Guenther  <rguenther@suse.de>
22289             Ira Rosen  <ira.rosen@linaro.org>
22291         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22292         non-variable offsets and compare the remaining bases of the two
22293         accesses instead of looking for exact same data-ref.
22295 2011-04-02  Kai Tietz  <ktietz@redhat.com>
22297         PR target/48416
22298         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22300         * i386.c (ix86_is_msabi_thiscall): New helper function.
22301         (ix86_is_type_thiscall): New helper function.
22302         (ix86_comp_type_attributes): Handle thiscall for method-functions
22303         special.
22304         (init_cumulative_args): Likewise.
22305         (find_drap_reg): Likewise.
22306         (ix86_static_chain): Likewise.
22307         (x86_this_parameter): Likewise.
22308         (x86_output_mi_thunk): Likewise.
22310 2011-04-01  Olivier Hainque  <hainque@adacore.com>
22311             Nicolas Setton  <setton@adacore.com>
22312             Eric Botcazou  <ebotcazou@adacore.com>
22314         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22315         (add_gnat_descriptive_type_attribute): New function.
22316         (gen_array_type_die): Call it.
22317         (gen_enumeration_type_die): Likewise.
22318         (gen_struct_or_union_type_die): Likewise.
22319         (modified_type_die): Likewise.
22320         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22321         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22322         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22324 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22326         PR bootstrap/48148
22327         * dwarf2out.c (resolve_addr): Don't call force_decl_die
22328         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22330         Revert:
22331         2011-03-17  Richard Guenther  <rguenther@suse.de>
22333         PR bootstrap/48148
22334         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22335         origin for decls in other ltrans units.
22336         (input_varpool_node): Likewise.
22338 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22340         PR middle-end/48335
22341         * expr.c (expand_assignment): Handle all possibilities
22342         if TO_RTX is CONCAT.
22343         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22344         (store_split_bit_field): If SUBREG_REG (op0) or
22345         op0 itself has smaller mode than word, return it
22346         for offset 0 and const0_rtx for out-of-bounds stores.
22347         If word is const0_rtx, skip it.
22349 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
22351         * config/h8300/h8300.c (print_operand_address): Rename to...
22352         (h8300_print_operand_address): ...this. Make static. Adjust comments.
22353         Call h8300_print_operand and h8300_print_operand_address instead of
22354         print_operand and print_operand_address. Declare.
22355         (print_operand): Renake to...
22356         (h8300_print_operand): ...this. Make static. Adjust comments.
22357         Call h8300_print_operand instead of print_operand. Declare.
22358         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22359         (h8300_register_move_cost): Likewise.
22360         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22361         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22362         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22363         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22364         * config/h8300/h8300-protos.h (print_operand): Delete.
22365         (print_operand_address): Delete.
22367 2011-04-01  Richard Henderson  <rth@redhat.com>
22369         PR 48400
22370         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22371         in strict mode before dwarf4.  Re-order tests to early out
22372         before switching sections.
22374 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
22376         * config/h8300/constraints.md: New file.
22377         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
22378         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22379         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22380         * config/h8300/predicates.md (bit_operand): Likewise.
22381         (incdec_operand): Use satisfies_constraint_M and
22382         satisfies_constraint_O.  Don't use C code block.
22383         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22384         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22385         (compute_mov_length): Use satisfies_constraint_G.
22386         (fix_bit_operand): Use satisfies_constraint_U.
22387         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22388         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22389         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22390         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22391         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22392         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22393         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22394         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22395         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22396         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22397         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22398         (EXTRA_MEMORY_CONSTRAINT): Delete.
22400 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
22401             Michael Meissner  <meissner@linux.vnet.ibm.com>
22403         PR target/48262
22404         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22405         operands, as per the specifications.
22407         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22408         (vec_extract_evenv4sf): Ditto.
22409         (vec_extract_evenv8hi): Ditto.
22410         (vec_extract_evenv16qi): Ditto.
22411         (vec_extract_oddv4si): Ditto.
22413 2011-03-31  Mark Wielaard  <mjw@redhat.com>
22415         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22416         high_pc attribute if the CU has no associated code. Only output
22417         DW_AT_entry_pc for CU if not generating strict dwarf and
22418         dwarf_version < 4.
22420 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
22422         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22423         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22424         out of ...
22425         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22426         * final.c (final_start_function): Call the new function rather
22427         than using a NULL argument for dwarf2out_frame_debug.
22429         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22430         that contains the prologue.
22432         * haifa-sched.c (queue_insn): New arg REASON.  All callers
22433         changed.  Print it in debugging output.
22435         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22437         * sched-ebb.c (begin_schedule_ready): Remove second argument.
22438         Split most of the code into...
22439         (begin_move_insn): ... here.  New function.
22440         (ebb_sched_info): Add a pointer to it.
22441         * haifa-sched.c (scheduled_insns): New static variable.
22442         (sched_extend_ready_list): Allocate it.
22443         (schedule_block): Use it to record the order of scheduled insns.
22444         Perform RTL changes to move insns only after all scheduling
22445         decisions have been made.
22446         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22447         begin_move_insn field.
22448         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22449         * sched-int.h (struct haifa_sched_info): Remove second argument
22450         from begin_schedule_ready hook.  Add new member begin_move_insn.
22451         * sched-rgn.c (begin_schedule_ready): Remove second argument.
22452         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22454         * haifa-sched.c (prune_ready_list): New function, broken out of
22455         schedule_block.
22456         (schedule_block): Use it.
22458 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22460         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22462 2011-04-01  Kai Tietz  <ktietz@redhat.com>
22464         * config.gcc (*-*-mingw*): Allow as option the
22465         posix threading model.
22466         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
22467         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22468         definition.
22469         (CPP_SPEC): Add pthread/no-pthread handling.
22470         (LIB_SPEC): Likewise.
22471         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22472         (LIB_SPEC): Likewise.
22473         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22474         flag to pass -pthread option for shared libgcc build.
22475         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22476         for shared libgcc build.
22477         * config/i386/t-mingw-pthread: New file.
22478         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22479         New define to enable use of library pthread by default.
22480         * config/i386/mingw.opt (pthread): New driver option.
22481         (no-pthread): New driver option.
22482         * config/i386/cygming.opt: Make sure trailing empty line is retained.
22483         * config/i386/mingw-w64.opt: Likewise.
22485 2011-04-01  Gary Funck  <gary@intrepid.com>
22487         * c-decl.c (grokdeclarator): Fix formatting.
22489 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22491         * expr.c (emit_block_move_via_movmem): Use n_generator_args
22492         instead of n_operands.
22493         (set_storage_via_setmem): Likewise.
22494         * optabs.c (maybe_gen_insn): Likewise.
22495         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22496         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22497         (mips_expand_builtin_direct): Likewise.
22498         * config/spu/spu.c (expand_builtin_args): Likewise.
22500 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22502         * recog.h (insn_data_d): Add n_generator_args.
22503         * genoutput.c (data): Likewise.
22504         (output_insn_data): Print it.
22505         (max_opno, num_dups): Delete.
22506         (scan_operands): Just fill in "d->operand[...]".
22507         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22509 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22511         * gensupport.h (pattern_stats): New structure.
22512         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22513         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22514         (max_operand_1, max_operand_vec): Delete.
22515         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22517 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
22519         * emit-rtl.c (emit_pattern_after_setloc): New function.
22520         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22521         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22522         (emit_pattern_after): New function.
22523         (emit_insn_after, emit_jump_insn_after): Call it.
22524         (emit_call_insn_after, emit_debug_insn_after): Likewise.
22525         (emit_pattern_before_setloc): New function.
22526         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22527         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22528         Likewise.
22529         (emit_pattern_before): New function.
22530         (emit_insn_before, emit_jump_insn_before): Call it.
22531         (emit_call_insn_before, emit_debug_insn_before): Likewise.
22533 2011-03-31  Richard Henderson  <rth@redhat.com>
22535         * dwarf2out.c (dw_separate_line_info_ref): Remove.
22536         (dw_separate_line_info_entry): Remove.
22537         (enum dw_line_info_opcode): New.
22538         (dw_line_info_entry): Use it.
22539         (dw_line_info_table, dw_line_info_table_p): New.
22540         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22541         (line_info_table, line_info_label_num): Remove.
22542         (line_info_table_in_use): Remove.
22543         (separate_line_info_table): Remove.
22544         (separate_line_info_table_allocated): Remove.
22545         (separate_line_info_table_in_use): Remove.
22546         (LINE_INFO_TABLE_INCREMENT): Remove.
22547         (line_info_label_num): New.
22548         (cur_line_info_table): New.
22549         (text_section_line_info, cold_text_section_line_info): New.
22550         (separate_line_info): New.
22551         (SEPARATE_LINE_CODE_LABEL): Remove.
22552         (print_dwarf_line_table): Remove.
22553         (debug_dwarf): Don't dump it.
22554         (output_one_line_info_table): New.
22555         (output_line_info): Use it.
22556         (new_line_info_table): New.
22557         (set_cur_line_info_table): New.
22558         (dwarf2out_switch_text_section): Use it.
22559         (dwarf2out_begin_function): Likewise.
22560         (push_dw_line_info_entry): New.
22561         (dwarf2out_source_line): Rewrite for new line info tables.
22562         (dwarf2out_init): Remove dead initailizations.
22564 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22566         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
22567         various flags.
22568         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22569         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22570         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22571         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22572         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22573         * opt-functions.awk (flag_init, switch_bit_fields): New.
22574         (switch_flags): Don't handle flags moved to bit-fields.  Don't
22575         generate CL_MISSING_OK or CL_SAVE.
22576         * optc-gen.awk: Update to generate bit-field output as well as
22577         flags field.
22578         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22579         bit-field instead of CL_REJECT_DRIVER flag.
22580         * opts-common.c (generate_canonical_option,
22581         decode_cmdline_option): Use bit-fields instead of CL_* flags.
22582         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22583         instead of CL_REJECT_NEGATIVE flag.
22584         * toplev.c (print_switch_values): Use cl_report bit-field instead
22585         of CL_REPORT flag.
22587 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22589         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22590         a zero minimum index only if it is redundant.
22592 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
22594         PR rtl-optimization/48381
22595         * ira-color.c (assign_hard_reg): Use hard reg set intersection
22596         instead of ira_class_hard_reg_index for calculating conflicting
22597         hard registers.
22599 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
22601         * cprop.c: Clean up hash table building.
22602         (reg_avail_info): Remove.
22603         (oprs_available_p): Remove.
22604         (record_last_reg_set_info): Remove.
22605         (record_last_set_info): Remove.
22606         (reg_available_p): New function.
22607         (gcse_constant_p): Do not treat unfolded conditions as constants.
22608         (make_set_regs_unavailable): New function.
22609         (hash_scan_set): Simplify with new reg_available_p.
22610         (compute_hash_table_work): Traverse insns stream only once.
22611         Do not compute reg_avail_info. Traverse insns in reverse order.
22612         Record implicit sets after recording explicit sets from the block.
22614 2011-03-31  Michael Matz  <matz@suse.de>
22616         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22618 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
22620         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22621         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22622         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22623         (h8300_mode_dependent_address_p): New function.
22624         (h8300_get_index): Make static.
22626 2011-03-31  Jeff Law  <law@redhat.com>
22628         * reload1.c (elimination_effects): Fix typo in recent change.
22630         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22631         typo potentially leading to null pointer dereference.
22633         * caller-save.c (new_saved_hard_reg): Eliminate return value.
22634         (setup_save_areas): Corresponding changes to avoid useless
22635         assignments.
22637         * jump.c (reversed_comparison_code_parts): Avoid successive return
22638         statements when REVERSE_CONDITION is defined.
22640         * expr.c (expand_assignment): Avoid useless assignments.
22641         (expand_expr_real_1): Likewise.
22642         (expand_expr_real_2): Avoid useless statements.
22644         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22646         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22648         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22649         statements.
22651         * stmt.c (expand_expr_stmt): Avoid useless assignment.
22653 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22655         PR target/47109
22656         * doc/tm.texi.in (TARGET_VERSION): Remove.
22657         * doc/tm.texi: Regenerate.
22658         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22659         * collect2.c (main): Don't use TARGET_VERSION.
22660         * mips-tdump.c (main): Don't use TARGET_VERSION.
22661         * mips-tfile.c (main): Don't use TARGET_VERSION.
22662         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22663         * config/rs6000/vxworksae.h: Remove.
22664         * config/alpha/alpha.h (TARGET_VERSION): Remove.
22665         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22666         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22667         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22668         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22669         * config/arm/arm.h (TARGET_VERSION): Remove.
22670         * config/arm/coff.h (TARGET_VERSION): Remove.
22671         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22672         * config/arm/elf.h (TARGET_VERSION): Remove.
22673         * config/arm/freebsd.h (TARGET_VERSION): Remove.
22674         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22675         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22676         * config/arm/pe.h (TARGET_VERSION): Remove.
22677         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22678         * config/arm/semi.h (TARGET_VERSION): Remove.
22679         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22680         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22681         * config/arm/vxworks.h (TARGET_VERSION): Remove.
22682         * config/avr/avr.h (TARGET_VERSION): Remove.
22683         * config/bfin/bfin.h (TARGET_VERSION): Remove.
22684         * config/fr30/fr30.h (TARGET_VERSION): Remove.
22685         * config/frv/frv.h (TARGET_VERSION): Remove.
22686         * config/h8300/h8300.h (TARGET_VERSION): Remove.
22687         * config/i386/cygwin.h (TARGET_VERSION): Remove.
22688         * config/i386/darwin.h (TARGET_VERSION): Remove.
22689         * config/i386/darwin64.h (TARGET_VERSION): Remove.
22690         * config/i386/djgpp.h (TARGET_VERSION): Remove.
22691         * config/i386/freebsd.h (TARGET_VERSION): Remove.
22692         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22693         * config/i386/gnu.h (TARGET_VERSION): Remove.
22694         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22695         * config/i386/i386elf.h (TARGET_VERSION): Remove.
22696         * config/i386/linux.h (TARGET_VERSION): Remove.
22697         * config/i386/linux64.h (TARGET_VERSION): Remove.
22698         * config/i386/lynx.h (TARGET_VERSION): Remove.
22699         * config/i386/mingw32.h (TARGET_VERSION): Remove.
22700         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22701         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22702         * config/i386/netware.h (TARGET_VERSION): Remove.
22703         * config/i386/nto.h (TARGET_VERSION): Remove.
22704         * config/i386/openbsd.h (TARGET_VERSION): Remove.
22705         * config/i386/vxworks.h (TARGET_VERSION): Remove.
22706         * config/ia64/elf.h (TARGET_VERSION): Remove.
22707         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22708         * config/ia64/hpux.h (TARGET_VERSION): Remove.
22709         * config/ia64/linux.h (TARGET_VERSION): Remove.
22710         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22711         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22712         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22713         * config/lm32/lm32.h (TARGET_VERSION): Remove.
22714         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22715         * config/m32c/m32c.h (TARGET_VERSION): Remove.
22716         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22717         * config/m32r/m32r.h (TARGET_VERSION): Remove.
22718         * config/m68k/linux.h (TARGET_VERSION): Remove.
22719         * config/m68k/m68k.h (TARGET_VERSION): Remove.
22720         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22721         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22722         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22723         * config/mep/mep.h (TARGET_VERSION): Remove.
22724         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22725         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22726         * config/mips/iris6.h (MACHINE_TYPE): Remove.
22727         * config/mips/linux.h (TARGET_VERSION): Remove.
22728         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22729         * config/mips/vxworks.h (TARGET_VERSION): Remove.
22730         * config/mmix/mmix.h (TARGET_VERSION): Remove.
22731         * config/mn10300/linux.h (TARGET_VERSION): Remove.
22732         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22733         * config/pa/pa.h (TARGET_VERSION): Remove.
22734         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22735         * config/picochip/picochip.h (TARGET_VERSION): Remove.
22736         * config/rs6000/aix.h (TARGET_VERSION): Remove.
22737         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22738         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22739         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22740         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22741         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22742         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22743         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22744         * config/rs6000/linux.h (TARGET_VERSION): Remove.
22745         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22746         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22747         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22748         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22749         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22750         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22751         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22752         * config/s390/linux.h (TARGET_VERSION): Remove.
22753         * config/s390/s390.h (TARGET_VERSION): Remove.
22754         * config/s390/tpf.h (TARGET_VERSION): Remove.
22755         * config/score/score.h (TARGET_VERSION): Remove.
22756         * config/sh/linux.h (TARGET_VERSION): Remove.
22757         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22758         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22759         * config/sh/sh.h (TARGET_VERSION): Remove.
22760         * config/sh/sh64.h (TARGET_VERSION): Remove.
22761         * config/sh/superh.h (TARGET_VERSION): Remove.
22762         * config/sh/vxworks.h (TARGET_VERSION): Remove.
22763         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22764         * config/sparc/linux.h (TARGET_VERSION): Remove.
22765         * config/sparc/linux64.h (TARGET_VERSION): Remove.
22766         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22767         TARGET_NAME32, TARGET_NAME): Remove.
22768         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22769         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22770         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22771         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22772         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22773         * config/spu/spu.h (TARGET_VERSION): Remove.
22774         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22775         * config/v850/v850.h (TARGET_VERSION): Remove.
22776         * config/vax/linux.h (TARGET_VERSION): Remove.
22777         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22778         * config/xtensa/elf.h (TARGET_VERSION): Remove.
22779         * config/xtensa/linux.h (TARGET_VERSION): Remove.
22781 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22783         PR target/48142
22784         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22785         frame-related from frame-unrelated adjustments to the stack pointer.
22787 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
22789         * common.opt (fdebug-types-section): Move earlier.
22790         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22792 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
22794         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22795         var.
22797 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
22799         * tree.h (CASE_CHAIN): Define.
22800         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22801         (gimple_redirect_edge_and_branch): Likewise.
22803 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22805         PR middle-end/48367
22806         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22807         calculation.
22809 2011-03-30  Jeff Law  <law@redhat.com>
22811         * PR bootstrap/48371
22812         * reload1.c (reload): Fix botch in last change.
22814         * reload.h (struct reload): Fix typo introduced in last change.
22816 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22818         * config/arm/arm.opt (mhard-float, msoft-float): Mark
22819         Undocumented.  Remove help text.
22820         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22821         -mhard-float.
22823 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22825         * doc/options.texi (NegativeAlias): Document.
22826         (Alias): Mention NegativeAlias.
22827         * opt-functions.awk: Handle NegativeAlias.
22828         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22829         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22830         * opts.h (CL_NEGATIVE_ALIAS): Define.
22831         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22832         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22833         OPT_mspe_.
22834         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22835         Alias entries.
22836         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22837         mno-spe and mno-isel instead of mspe=no and -misel=no.
22839 2011-03-29  Mark Wielaard  <mjw@redhat.com>
22841         * common.opt (fdebug-types-section): New flag.
22842         * doc/invoke.texi: Document new -fno-debug-types-section flag.
22843         * dwarf2out.c (use_debug_types): New define.
22844         (struct die_struct): Mark die_id with GTY desc use_debug_types.
22845         (print_die): Guard output of type unit signatures using
22846         use_debug_types.
22847         (build_abbrev_table): Replace assert of dwarf_version >= 4
22848         with assert on use_debug_types.
22849         (size_of_die): Likewise.
22850         (unmark_dies): Likewise.
22851         (value_format): Decide AT_ref_external form on use_debug_types.
22852         (output_die): Replace dwarf_version version check guard with
22853         use_debug_types where appropriate.
22854         (modified_type_die): Likewise.
22855         (gen_reference_type_die): Likewise.
22856         (dwarf2out_start_source_file): Likewise.
22857         (dwarf2out_end_source_file): Likewise.
22858         (prune_unused_types_walk_attribs): Likewise.
22859         (dwarf2out_finish): Likewise.
22861 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22863         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22865 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22867         PR rtl-optimization/48332
22868         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22869         mode of input operand N and modeN to its actual mode.
22871 2011-03-30  Jeff Law  <law@redhat.com>
22873         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22874         define accessor macro.
22875         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22876         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22877         (reg_equiv_init): Likewise.
22878         (reg_equivs_size): New variable.
22879         (reg_equiv_init_size): Remove.
22880         (allocate_initial_values): Move prototype to here from....
22881         * integrate.h (allocate_initial_values): Remove prototype.
22882         * integrate.c: Include reload.h.
22883         (allocate_initial_values): Corresponding changes.
22884         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22885         (fix_reg_equiv_init, no_equiv): Corresponding changes.
22886         (update_equiv_regs): Corresponding changes.
22887         (ira): Corresponding changes.
22888         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22889         (push_secondary_reload): Corresponding changes.
22890         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22891         (make_memloc, find_reloads_address): Corresponding changes.
22892         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22893         (find_reloads_address_1): Corresponding changes.
22894         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22895         (refers_to_regno_for_reload_p): Corresponding changes.
22896         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22897         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22898         * reload1.c: Include ggc.h.
22899         (grow_reg_equivs): New function.
22900         (replace_pseudos_in, reload): Corresponding changes.
22901         (calculate_needs_all_insns, alter_regs): Corresponding changes.
22902         (eliminate_regs_1, elimination_effects): Corresponding changes.
22903         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22904         (delete_output_reload): Likewise.
22905         * caller-save.c (mark_referenced_regs): Corresponding changes.
22906         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22907         * frv/predicates.md (frv_load_operand): Corresponding changes.
22908         * microblaze/microblaze.c (double_memory_operand): Corresponding
22909         changes.
22910         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22911         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22912         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22913         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22914         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22915         changes.
22916         * pa/pa.c (emit_move_sequence): Corresponding changes.
22917         * vax/vax.c (nonindexed_address_p): Corresponding changes.
22919 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22921         PR target/47551
22922         * config/arm/arm.c (coproc_secondary_reload_class): Handle
22923         structure modes.  Don't check neon_vector_mem_operand for
22924         vector or structure modes.
22926 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22927             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22929         PR target/43590
22930         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22931         operand 1 and reshuffle the operands to match.
22932         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22934 2011-03-30  Christian Schüler  <cschueler@gmx.de>
22936         PR driver/48208
22937         * config/c.opt (F): Added 'Driver' to -F option.
22939         PR driver/48260
22940         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22941           handler function.
22942         * config/darwin.opt: Added '-arch' option.
22944 2011-03-30  Nick Clifton  <nickc@redhat.com>
22946         * config/rx/rx.md: Add peepholes and patterns to combine
22947         extending loads and simple arithmetic instructions.
22948         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22949         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22950         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22951         modes to use pre-decrement and post-increment addressing.
22952         (rx_is_restricted_memory_address): Add range checking of REG+INT
22953         addresses.
22954         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
22955         (rx_memory_move_cost): Adjust cost of stores.
22956         (rx_adjust_insn_length): New function.
22958 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
22960         PR c/48305
22961         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22962         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22963         matching arg00/arg01 types.
22965 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22967         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22968         last_location to UNKNOWN_LOCATION.
22970 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22972         PR target/48349
22973         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22974         FLOAT_SSE_REGS.
22976 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22977             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22979         PR bootstrap/48337
22980         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22981         Init(PROCESSOR_V7).
22982         (sparc_cpu): Likewise.
22983         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22984         PROCESSOR_V7.
22986 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22988         PR target/48336
22989         PR middle-end/48342
22990         PR rtl-optimization/48345
22991         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22992         hard regs for given mode from profitable regs when doing secondary
22993         allocation.
22995 2011-03-29  Jeff Law  <law@redhat.com>
22997         PR bootstrap/48327
22998         * tree-ssa-threadupdate.c (struct redirection_data): Remove
22999         do_not_duplicate field.
23000         (lookup_redirection_data): Corresponding changes.
23001         (create_duplicates): Always create a template block.
23002         (redirect_edges): Remove code which reused the original block
23003         when it was going to become unreachable code.
23004         (thread_block): Don't set do_not_duplicate field.
23006 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
23008         * lto-opts.c (register_user_option_p, lto_register_user_option):
23009         Make type argument unsigned.
23010         * lto-streamer.h (lto_register_user_option): Make type argument
23011         unsigned.
23012         * opth-gen.awk: Make CL_* macros unsigned.
23013         * opts-common.c (find_opt): Make lang_mask argument unsigned.
23014         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
23015         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
23016         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
23017         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
23018         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
23019         (find_opt): Make lang_mask argument unsigned.
23021 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23023         PR rtl-optimization/48331
23024         PR rtl-optimization/48334
23025         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
23026         for any used algorithm.
23028 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23030         * ira-conflicts.c (build_object_conflicts): Add unused attribute
23031         to parent_max.
23033 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
23035         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
23036         (alpha_option_override): Don't set alpha_sr_alias_set.
23037         (emit_frame_store_1): Use gen_frame_mem rather than calling
23038         set_mem_alias_set.
23039         (alpha_expand_epilogue): Ditto.
23041 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
23043         PR tree-optimization/48290
23044         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
23045         vectorization, check that relevant phis in the basic block after
23046         the inner loop are really inner loop's exit phis.
23048 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
23050         PR debug/48190
23051         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
23052         (cached_dw_loc_list_def): New structure.
23053         (cached_dw_loc_list): New typedef.
23054         (cached_dw_loc_list_table): New variable.
23055         (cached_dw_loc_list_table_hash): New function.
23056         (cached_dw_loc_list_table_eq): Likewise.
23057         (add_location_or_const_value_attribute): Take a bool cache_p.
23058         Cache the list when the parameter is true.
23059         (gen_formal_parameter_die): Update caller.
23060         (gen_variable_die): Likewise.
23061         (dwarf2out_finish): Likewise.
23062         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
23063         while generating debug info for the decl.
23064         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
23065         (dwarf2out_init): Initialize cached_dw_loc_list_table.
23066         (resolve_addr): Cache the result of resolving a chain of
23067         location lists.
23069 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23071         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
23072         conflict object hard regset nodes have intersecting hard reg sets.
23074         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
23075         after regstat_init_n_sets_and_refs.
23077         * ira.c: Add more comments at the top.
23078         (setup_stack_reg_pressure_class, setup_pressure_classes):
23079         Add comments how we compute the register pressure classes.
23080         (setup_allocno_and_important_classes): Add more comments.
23081         (setup_class_translate_array, reorder_important_classes)
23082         (setup_reg_class_relations): Add comments.
23084         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
23085         start of the file.
23087         * ira-color.c: Add 2011 to the Copyright line.
23088         (assign_hard_reg):  Add more comments.
23089         (improve_allocation): Ditto.
23091         * ira-costs.c: Add 2011 to the Copyright line.
23092         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23093         comments.
23094         (setup_regno_cost_classes_by_mode): Ditto.
23096         Initial patches from ira-improv branch:
23098         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23100         * ira-build.c (ira_create_object): Remove initialization of
23101         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
23102         (ira_create_allocno): Remove initialization of
23103         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23104         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23105         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23106         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23107         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23108         Initialize ALLOCNO_ADD_DATA.
23109         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23110         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23111         ALLOCNO_REG.
23112         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
23113         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23115         * ira.c (ira_reallocate): Remove.
23116         (setup_pressure_classes): Call
23117         ira_init_register_move_cost_if_necessary.  Use
23118         ira_register_move_cost instead of ira_get_register_move_cost.
23119         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23120         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23122         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23123         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23124         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23125         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23126         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23127         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23128         Fix formatting.
23129         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23130         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23131         (struct allocno_color_data): New.
23132         (allocno_color_data_t): New typedef.
23133         (allocno_color_data): New definition.
23134         (ALLOCNO_COLOR_DATA): New macro.
23135         (struct object_color_data): New.
23136         (object_color_data_t): New typedef.
23137         (object_color_data): New definition.
23138         (OBJECT_COLOR_DATA): New macro.
23139         (update_copy_costs, calculate_allocno_spill_cost): Call
23140         ira_init_register_move_cost_if_necessary.  Use
23141         ira_register_move_cost instead of ira_get_register_move_cost.
23142         (move_spill_restore, update_curr_costs): Ditto.
23143         (allocno_spill_priority): Make it inline.
23144         (color_pass): Allocate and free allocno_color_dat and object_color_data.
23145         (struct coalesce_data, coalesce_data_t): New.
23146         (allocno_coalesce_data): New definition.
23147         (ALLOCNO_COALESCE_DATA): New macro.
23148         (merge_allocnos, coalesced_allocno_conflict_p): Use
23149         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23150         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23151         (coalesce_allocnos): Ditto.
23152         (setup_coalesced_allocno_costs_and_nums): Ditto.
23153         (collect_spilled_coalesced_allocnos): Ditto.
23154         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23155         (setup_slot_coalesced_allocno_live_ranges): Ditto.
23156         (coalesce_spill_slots): Ditto.
23157         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
23158         free allocno_coalesce_data.
23160         * ira-conflicts.c: Fix formatting.
23161         (process_regs_for_copy): Call
23162         ira_init_register_move_cost_if_necessary.  Use
23163         ira_register_move_cost instead of ira_get_register_move_cost.
23164         (build_object_conflicts): Optimize.
23166         * ira-costs.c (record_reg_classes): Optimize.  Call
23167         ira_init_register_move_cost_if_necessary.  Use
23168         ira_register_move_cost, ira_may_move_in_cost, and
23169         ira_may_move_out_cost instead of ira_get_register_move_cost and
23170         ira_get_may_move_cost.
23171         (record_address_regs): Ditto.
23172         (scan_one_insn): Optimize.
23173         (find_costs_and_classes): Optimize.
23174         (process_bb_node_for_hard_reg_moves): Call
23175         ira_init_register_move_cost_if_necessary.  Use
23176         ira_register_move_cost instead of ira_get_register_move_cost.
23178         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23179         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23180         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23181         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23182         definitions.
23183         (ira_initiate_emit_data, ira_finish_emit_data)
23184         (create_new_allocno): New functions.
23185         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23186         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23187         Use ira_register_move_cost instead of ira_get_register_move_cost.
23189         * ira-int.h: Fix some comments.
23190         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23191         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23192         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23193         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
23194         add_data.
23195         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
23196         bitfield after mode.  Make hard_regno a short int.  Make
23197         hard_regno short.  Remove first_coalesced_allocno and
23198         next_coalesced_allocno.  Move mem_optimized_dest_p,
23199         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23200         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
23201         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23202         temp, colorable_p.  Add new member add_data.
23203         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23204         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23205         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23206         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23207         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23208         (ALLOCNO_ADD_DATA): New macro.
23209         (ira_emit_data_t): New typedef.
23210         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
23211         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23212         from struct ira_allocno.
23213         (ALLOCNO_EMIT_DATA): New macro.
23214         (ira_allocno_emit_data, allocno_emit_reg): New.
23215         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23216         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23217         (OBJECT_ADD_DATA): New macro.
23218         (ira_reallocate): Remove.
23219         (ira_initiate_emit_data, ira_finish_emit_data): New.
23220         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23221         (ira_init_register_move_cost_if_necessary): New.
23222         (ira_object_conflict_iter_next): Merge into
23223         ira_object_conflict_iter_cond.
23224         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23226         * ira-live.c (process_single_reg_class_operands): Call
23227         ira_init_register_move_cost_if_necessary.  Use
23228         ira_register_move_cost instead of ira_get_register_move_cost.
23230         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23232         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23234         * ira-costs.c: Fix formatting.
23235         (cost_classes, cost_classes_num): Remove.
23236         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23237         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23238         (cost_classes_del, cost_classes_htab): New.
23239         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23240         (initiate_regno_cost_classes, setup_cost_classes): New.
23241         (setup_regno_cost_classes_by_aclass): New.
23242         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23243         (record_reg_classes): Use regno_cost_classes instead of
23244         cost_classes.  Move checking opposite operand up.
23245         (record_address_regs): Use regno_cost_classes
23246         instead of cost_classes.
23247         (scan_one_insn): Ditto.  Use always general register.
23248         (print_allocno_costs): Use regno_cost_classes instead of
23249         cost_classes.
23250         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
23251         (find_costs_and_classes): Set up cost classes for each registers.
23252         Use also their mode for this.  Use regno_cost_classes instead of
23253         cost_classes.
23254         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23255         cost_classes.
23256         (free_ira_costs, ira_init_costs): Don't use cost_classes.
23257         (ira_costs, ira_set_pseudo_classes): Call
23258         initiate_regno_cost_classes and finish_regno_cost_classes.
23260         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
23262         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23264         * target.def (ira_cover_classes): Remove.
23266         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23268         * doc/tm.texi.in: Ditto.
23270         * ira-conflicts.c: Remove mentioning cover classes from the file.
23271         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
23272         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
23274         * targhooks.c (default_ira_cover_classes): Remove.
23276         * targhooks.h (default_ira_cover_classes): Ditto.
23278         * haifa-sched.c: Remove mentioning cover classes from the file.
23279         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23280         ira_pressure_classes and ira_pressure_classes_num instead of
23281         ira_reg_class_cover_size and ira_reg_class_cover.  Use
23282         sched_regno_pressure_class instead of sched_regno_cover_class.
23283         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23284         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23286         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
23287         classes from the file.
23288         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23289         (struct object_hard_regs, struct object_hard_regs_node): New.
23290         (struct ira_object): New members profitable_hard_regs,
23291         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23292         (struct ira_allocno): Rename cover_class to aclass.  Rename
23293         cover_class_cost and updated_cover_class_cost to class_cost and
23294         updated_class_cost.  Remove splay_removed_p and
23295         left_conflict_size.  Add new members colorable_p.
23296         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23297         (ALLOCNO_COLORABLE_P): New macro.
23298         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23299         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23300         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23301         (OBJECT_...): Rename parameter C to O.
23302         (OBJECT_PROFITABLE_HARD_REGS): New macro.
23303         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23304         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23305         (struct target_ira_int): New members x_ira_max_memory_move_cost,
23306         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23307         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23308         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23309         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
23310         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
23311         x_ira_reg_class_subunion.
23312         (ira_max_memory_move_cost, ira_max_register_move_cost)
23313         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23314         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23315         (ira_important_class_nums, ira_reg_class_superunion): New macros.
23316         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23317         (ira_reg_class_union): Rename to ira_reg_class_subunion.
23318         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23319         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23320         (ira_tune_allocno_costs_and_cover_classes): Rename to
23321         ira_tune_allocno_costs.
23322         (ira_debug_hard_regs_forest): New.
23323         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23324         (ira_object_conflict_iter_next): Fix comments.
23325         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23326         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23327         cover_class to aclass.
23328         (ira_allocate_and_accumulate_costs): Ditto.
23329         (ira_allocate_and_set_or_copy_costs): Ditto.
23331         * opts.c (decode_options): Remove ira_cover_class check.
23333         * ira-color.c: Remove mentioning cover classes from the file.  Use
23334         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23335         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23336         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23337         (splay-tree.h): Remove include.
23338         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23339         before copy_freq_compare_func.
23340         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23341         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23342         New definitions.
23343         (hard_regs_roots, hard_regs_node_vec): Ditto.
23344         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23345         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23346         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23347         (create_new_object_hard_regs_node): Ditto.
23348         (add_new_object_hard_regs_node_to_forest): Ditto.
23349         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23350         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23351         Ditto.
23352         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23353         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23354         (remove_unused_object_hard_regs_nodes): Ditto.
23355         (enumerate_object_hard_regs_nodes): Ditto.
23356         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23357         (object_hard_regs_subnode_t): Ditto.
23358         (struct object_hard_regs_subnode): Ditto.
23359         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23360         (setup_object_hard_regs_subnode_index): Ditto.
23361         (get_object_hard_regs_subnodes_num): Ditto.
23362         (form_object_hard_regs_nodes_forest): Ditto.
23363         (finish_object_hard_regs_nodes_tree): Ditto.
23364         (finish_object_hard_regs_nodes_forest): Ditto.
23365         (allocnos_have_intersected_live_ranges_p): Rename to
23366         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23367         (pseudos_have_intersected_live_ranges_p): Rename to
23368         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23369         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23370         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23371         (update_copy_costs): Remove assert.  Skip cost update if the hard
23372         reg does not belong the class.
23373         (assign_hard_reg): Process only profitable hard regs.
23374         (uncolorable_allocnos_num): Make it scalar.
23375         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23376         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23377         and ira_reg_class_max_nregs.
23378         (bucket_allocno_compare_func): Check frequency first.
23379         (sort_bucket): Add compare function as a parameter.
23380         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23381         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23382         (push_allocno_to_stack): Rewrite for checking new allocno
23383         colorability.
23384         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
23385         (push_only_colorable): Pass new parameter to sort_bucket.
23386         (push_allocno_to_spill): Remove.
23387         (allocno_spill_priority_compare): Make it inline and rewrite.
23388         (splay_tree_allocate, splay_tree_free): Remove.
23389         (allocno_spill_sort_compare): New function.
23390         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
23391         build and use splay tree.  Choose first allocno in uncolorable
23392         allocno bucket to spill.  Remove setting spill cost.
23393         (all_conflicting_hard_regs): Remove.
23394         (setup_allocno_available_regs_num): Check only profitable hard
23395         regs.  Print info about hard regs nodes.
23396         (setup_allocno_left_conflicts_size): Remove.
23397         (put_allocno_into_bucket): Don't call
23398         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
23399         (improve_allocation): New.
23400         (color_allocnos): Call setup_profitable_hard_regs,
23401         form_object_hard_regs_nodes_forest, improve_allocation,
23402         finish_object_hard_regs_nodes_forest.  Setup spill cost.
23403         (print_loop_title): Use pressure classes.
23404         (color_allocnso): Ditto.
23405         (do_coloring): Remove allocation and freeing splay_tree_node_pool
23406         and allocnos_for_spilling.
23407         (ira_sort_regnos_for_alter_reg): Don't setup members
23408         {first,next}_coalesced_allocno.
23409         (color): Remove allocating and freeing removed_splay_allocno_vec.
23410         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23411         prohibited_class_mode_regs.
23413         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
23414         formatting.
23415         (update_allocno_pressure_excess_length): Use pressure classes.
23416         (inc_register_pressure, dec_register_pressure): Check for pressure
23417         class.
23418         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23419         pressure class.  Use ira_reg_class_nregs instead of
23420         ira_reg_class_max_nregs.
23421         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23422         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23423         (single_reg_class): Use ira_reg_class_nregs instead of
23424         ira_reg_class_max_nregs.
23425         (process_bb_node_lives): Use pressure classes.
23427         * ira-emit.c: Remove mentioning cover classes from the file.  Use
23428         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23429         (change_loop): Use pressure classes.
23430         (modify_move_list): Call ira_set_allocno_class instead of
23431         ira_set_allocno_cover_class.
23433         * ira-build.c: Remove mentioning cover classes from the file.  Use
23434         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23435         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
23436         ALLOCNO_UPDATED_CLASS_COST instead of
23437         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23438         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23439         (ira_create_allocno): Remove initialization of
23440         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
23441         ALLOCNO_COLORABLE_P.
23442         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23443         Update conflict regs for the objects.
23444         (create_cap_allocno): Remove assert.  Don't propagate
23445         ALLOCNO_AVAILABLE_REGS_NUM.
23446         (ira_free_allocno_costs): New function.
23447         (finish_allocno): Change a part of code into call of
23448         ira_free_allocno_costs.
23449         (low_pressure_loop_node_p): Use pressure classes.
23450         (object_range_compare_func): Don't compare classes.
23451         (setup_min_max_conflict_allocno_ids): Ditto.
23453         * loop-invariant.c: Remove mentioning cover classes from the file.
23454         Use ira_pressure_classes and ira_pressure_classes_num instead of
23455         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
23456         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23457         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23458         Use reg_allocno_class instead of reg_cover_class.
23459         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23460         STACK_REG_COVER_CLASS.
23461         (get_regno_cover_class): Rename to get_regno_pressure_class.
23462         (move_loop_invariants): Initialize and finalize regstat.
23464         * ira.c: Remove mentioning cover classes from the file.  Add
23465         comments about coloring without cover classes.  Use ALLOCNO_CLASS
23466         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23467         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23468         setup_class_subset_and_memory_move_costs.
23469         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23470         (setup_cover_and_important_classes): Rename to
23471         setup_allocno_and_important_classes.
23472         (setup_class_translate_array): New.
23473         (setup_class_translate): Call it for allocno and pressure classes.
23474         (cover_class_order): Rename to allocno_class_order.
23475         (comp_reg_classes_func): Use ira_allocno_class_translate instead
23476         of ira_class_translate.
23477         (reorder_important_classes): Set up ira_important_class_nums.
23478         (setup_reg_class_relations): Set up ira_reg_class_superunion.
23479         (print_class_cover): Rename to print_classes.  Add parameter.
23480         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23481         Print pressure classes too.
23482         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
23483         setup_reg_subclasses.
23484         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23485         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23486         (setup_prohibited_class_mode_regs): Use
23487         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23488         (clarify_prohibited_class_mode_regs): New function.
23489         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23490         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23491         (ira_init_once): Initialize them.
23492         (free_register_move_costs): Process them.
23493         (ira_init): Move calls of find_reg_classes and
23494         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23495         Call clarify_prohibited_class_mode_regs.
23496         (ira_no_alloc_reg): Remove.
23497         (too_high_register_pressure_p): Use pressure classes.
23499         * sched-deps.c: Remove mentioning cover classes from the file.
23500         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23501         ira_pressure_classes and ira_pressure_classes_num instead of
23502         ira_reg_class_cover_size and ira_reg_class_cover.
23503         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23504         sched_regno_pressure_class instead of sched_regno_cover_class.
23505         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
23506         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23508         * ira.h: Add 2010 to Copyright.
23509         (ira_no_alloc_reg): Remove external.
23510         (struct target_ira): Rename x_ira_hard_regno_cover_class,
23511         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23512         x_ira_class_translate to x_ira_hard_regno_allocno_class,
23513         x_ira_allocno_classes_num, x_ira_allocno_classes, and
23514         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
23515         x_ira_pressure_classes, x_ira_pressure_class_translate, and
23516         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
23517         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
23518         x_ira_no_alloc_regs.
23519         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23520         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23521         ira_allocno_classes_num and ira_allocno_classes.
23522         (ira_class_translate): Rename to ira_allocno_class_translate.
23523         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23524         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23525         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23526         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23527         (ira_no_alloc_regs): New.
23529         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
23530         classes from the file.  Use ALLOCNO_CLASS instead of
23531         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
23532         ALLOCNO_COVER_CLASS_COST.
23533         (regno_cover_class): Rename to regno_aclass.
23534         (record_reg_classes): Use ira_reg_class_subunion instead of
23535         ira_reg_class_union.
23536         (record_address_regs): Check overflow.
23537         (scan_one_insn): Ditto.
23538         (print_allocno_costs): Print total mem cost fore regional allocation.
23539         (print_pseudo_costs): Use REG_N_REFS.
23540         (find_costs_and_classes): Use classes intersected with them on the
23541         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
23542         ira_reg_class_union.  Use ira_allocno_class_translate and
23543         regno_aclass instead of ira_class_translate and regno_cover_class.
23544         Modify code for finding regno_aclass.  Setup preferred classes for
23545         the next pass.
23546         (setup_allocno_cover_class_and_costs): Rename to
23547         setup_allocno_class_and_costs.  Use regno_aclass instead of
23548         regno_cover_class.  Use ira_set_allocno_class instead of
23549         ira_set_allocno_cover_class.
23550         (init_costs, finish_costs): Use regno_aclass instead of
23551         regno_cover_class.
23552         (ira_costs): Use setup_allocno_class_and_costs instead of
23553         setup_allocno_cover_class_and_costs.
23554         (ira_tune_allocno_costs_and_cover_classes): Rename to
23555         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
23556         by processing objects.  Use ira_reg_class_max_nregs instead of
23557         ira_reg_class_nregs.
23559         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23561         * sched-int.h: Remove mentioning cover classes from the file.
23562         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23564         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
23565         classes from the file.
23566         (struct reg_pref): Rename coverclass into allocnoclass.
23567         (reg_cover_class): Rename to reg_allocno_class.
23569         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23571         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23573         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23575         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23577         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23579         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23581         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23583         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23585         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23587         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23589         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23590         (i386_ira_cover_classes): Ditto.
23592         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23594         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23596         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23598         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23600         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23602         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23604         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23605         (mips_ira_cover_classes): Ditto.
23607         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23609         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23611         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23613         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23615         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23617         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23618         (IRA_COVER_CLASSES_VSX): Ditto.
23620         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23621         (rs6000_ira_cover_classes): Ditto.
23623         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23625         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23627         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23629         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23631         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23633         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23635         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23637         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23639         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23641         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23643 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
23645         PR debug/48253
23646         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23647         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23648         dw_fde_unlikely_section_end_label, cold_in_std_section,
23649         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23650         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23651         fields.
23652         (output_fde): Use dw_fde_second_{begin,end} if second is
23653         true, otherwise dw_fde_{begin,end}.
23654         (output_call_frame_info): Test dw_fde_second_begin != NULL
23655         instead of dw_fde_switched_sections.
23656         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23657         fields, initialize new fields.  Initialize in_std_section
23658         unconditionally from the first partition.
23659         (dwarf2out_end_epilogue): Don't override dw_fde_end when
23660         dw_fde_second_begin is non-NULL.
23661         (dwarf2out_switch_text_section): Stop initializing removed
23662         dw_fde_struct fields, initialize new fields, initialize
23663         also dw_fde_end here.  Set dw_fde_switch_cfi even when
23664         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
23665         (struct var_loc_list_def): Add last_before_switch field.
23666         (arange_table, arange_table_allocated, arange_table_in_use,
23667         ARANGE_TABLE_INCREMENT, add_arange): Removed.
23668         (size_of_aranges): Count !in_std_section and !second_in_std_section
23669         hunks in fdes, instead of looking at arange_table_in_use.
23670         (output_aranges): Add aranges_length argument, don't call
23671         size_of_aranges here.  Instead of using aranges_table*
23672         emit ranges for fdes when !in_std_section resp.
23673         !second_in_std_section.
23674         (dw_loc_list): Break ranges crossing section switch.
23675         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
23676         use dw_fde_second_end instead of dw_fde_end as end of last range.
23677         (gen_subprogram_die): Don't call add_arange.  Use
23678         dw_fde_{begin,end} for first partition and if switched
23679         section dw_fde_second_{begin,end} for the second.
23680         (var_location_switch_text_section_1,
23681         var_location_switch_text_section): New functions.
23682         (dwarf2out_begin_function): Initialize cold_text_section even
23683         when function_section () isn't text_section.
23684         (prune_unused_types): Don't walk arange_table.
23685         (dwarf2out_finish): Don't needlessly test
23686         flag_reorder_blocks_and_partition when testing cold_text_section_used.
23687         If info_section_emitted, call size_of_aranges and if it indicates
23688         non-empty .debug_aranges, call output_aranges with the computed
23689         size.  Stop using removed dw_fde_struct fields, use
23690         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23691         for second.
23693         PR debug/48203
23694         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23695         create ENTRY_VALUE if incoming or address of incoming's MEM
23696         is a hard REG.
23697         * dwarf2out.c (mem_loc_descriptor): Don't emit
23698         DW_OP_GNU_entry_value of DW_OP_fbreg.
23699         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23700         on ENTRY_VALUE is able to find the canonical parameter VALUE.
23701         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23702         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23703         ENTRY_VALUE_EXPs.
23704         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23705         is a REG_P or MEM_P with REG_P address, compute hash directly
23706         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23707         (preserve_only_constants): Don't clear VALUES forwaring
23708         ENTRY_VALUE to some other VALUE.
23710 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
23712         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23713         instead of GEN_INT.
23715 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23717         * cfgexpand.c (expand_gimple_cond): Always set the source location and
23718         block before expanding the statement.
23719         (expand_gimple_stmt_1): Likewise.  Set them here...
23720         (expand_gimple_stmt): ...and not here.  Tidy.
23721         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23722         unknown.
23724 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23726         * Makefile.in: New rule for cprop.o.
23727         * gcse.c: Move constant/copy propagation to cprop.c.
23728         (compute_local_properties): Only handle expression tables.
23729         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23730         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23731         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23732         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23733         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23734         compute_cprop_data, find_used_regs, try_replace_reg,
23735         find_avail_set, cprop_jump, constprop_register, cprop_insn,
23736         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23737         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23738         find_bypass_set, reg_killed_on_edge, bypass_block,
23739         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23740         execute_rtl_cprop, pass_rtl_cprop): Move to...
23741         * cprop.c: ...here.  New file, constant/copy propagation for RTL
23742         moved from gcse.c to here with minor cleanups in duplicated code.
23744 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
23746         * config/i386/i386.c (flag_opts): Fix a typo in
23747         -mavx256-split-unaligned-store.
23749 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23751         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23752         LIBCALL_VALUE): Remove macros.
23753         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23754         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23755         (h8300_function_value, h8300_libcall_value,
23756         h8300_function_value_regno_p): New functions.
23758 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23760         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23762 2011-03-28  Jeff Law  <law@redhat.com>
23764         * tree-ssa-threadupdate.c (redirect_edges): Call
23765         create_edge_and_update_destination_phis as needed.
23766         (create_edge_and_update_destination_phis): Accept new BB argument.
23767         All callers updated.
23768         (thread_block): Do not update the profile when threading around
23769         intermediate blocks.
23770         (thread_single_edge): Likewise.
23771         (determine_bb_domination_status): If BB is not a successor of the
23772         loop header, return NONDOMINATING.
23773         (register_jump_thread): Note when we register a jump thread around
23774         an intermediate block.
23775         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23776         (thread_across_edge): Use it.
23778 2011-03-28  Tristan Gingold  <gingold@adacore.com>
23780         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23781         when for_return is 2.
23783 2011-03-28  Jeff Law  <law@redhat.com>
23785         * var-tracking.c (canonicalize_values_mark): Delete unused
23786         lhs assignment.
23787         (canonicalize_values_star, set_variable_part): Likewise.
23788         (clobber_variable_part, delete_variable_part): Likewise.
23790 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23792         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23794 2011-03-28  Martin Jambor  <mjambor@suse.cz>
23796         * tree-inline.c (expand_call_inline): Do not check that destination
23797         node is analyzed.
23798         (optimize_inline_calls): Assert that destination node is analyzed.
23799         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23800         not call tree_lowering_passes.
23801         * cgraph.h (cgraph_analyze_function): Declare.
23802         * cgraphunit.c (cgraph_analyze_function): Make public.
23804 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
23806         * config/sparc/sparc-opts.h: New.
23807         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23808         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23809         (sparc_option_override): Store processor_type enumeration rather
23810         than string in cpu_default.  Remove name and enumeration from
23811         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
23812         without using sparc_select.  Use target_flags_explicit instead of
23813         fpu_option_set.
23814         * config/sparc/sparc.h (enum processor_type): Move to
23815         sparc-opts.h.
23816         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23817         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23818         HeaderInclude entry.
23819         (mcpu=, mtune=): Use Var and Enum.
23820         (sparc_processor_type): New Enum and EnumValue entries.
23822 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23823             Iain Sandoe  <iains@gcc.gnu.org>
23825         PR target/48245
23826         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23828 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23830         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23831         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23832         Insert new statements at it in lieu of STMT.
23833         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23834         * tree-vect-stmts.c (vectorizable_store): Likewise.
23835         (vectorizable_load): Likewise.
23837 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
23839         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23840         (divtf3): Ditto.
23841         (multf3): Ditto.
23842         (subtf3): Ditto.
23844 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23846         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23847         unaligned 256bit load/store.
23848         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23849         (*avx_movdqu<avxmodesuffix>): Likewise.
23851 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23853         PR target/48288
23854         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23855         * config/pa/pa.md (iordi3): Use new predicate in expander.
23856         (iorsi3): Likewise.
23858 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
23860         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23861         FUNCTION_VALUE_REGNO_P): Remove macros.
23862         * config/mips/mips-protos.h (mips_function_value): Remove.
23863         * config/mips/mips.c (mips_function_value): Rename to...
23864         (mips_function_value_1): ... this. Make static.  Handle receiving
23865         the function type in 'fn_decl_or_type' argument.
23866         (mips_function_value, mips_libcall_value,
23867         mips_function_value_regno_p): New function.
23868         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23869         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23871 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23873         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23874         and -mavx256-split-unaligned-store.
23875         (ix86_option_override_internal): Split 32-byte AVX unaligned
23876         load/store by default.
23877         (ix86_avx256_split_vector_move_misalign): New.
23878         (ix86_expand_vector_move_misalign): Use it.
23880         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23881         -mavx256-split-unaligned-store.
23883         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23884         256bit load/store.  Generate unaligned store on misaligned memory
23885         operand.
23886         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23887         256bit load/store.
23888         (*avx_movdqu<avxmodesuffix>): Likewise.
23890         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23891         -mavx256-split-unaligned-store.
23893 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23895         PR target/38598
23896         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23897         Update commentary.
23899 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23901         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23902         opno arguments with an expand_operand.  Use create_input_operand.
23903         (mips_prepare_builtin_target): Delete.
23904         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23905         functions.
23906         (mips_expand_builtin_direct): Use create_output_operand and
23907         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
23908         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
23909         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23911 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
23913         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23914         function.
23915         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23917 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23919         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23920         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
23921         basic blocks and call commit_edge_insertions directly.
23922         (fixup_abnormal_edges): Move from here to...
23923         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
23924         on the edges and return whether some have actually been inserted.
23925         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23926         compensation code.
23928 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
23930         PR rtl-optimization/48144
23931         * sel-sched-ir.c (merge_history_vect): Factor out from ...
23932         (merge_expr_data): ... here.
23933         (av_set_intersect): Rename to av_set_code_motion_filter.
23934         Update all callers.  Call merge_history_vect when an expression
23935         is found in both sets.
23936         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23938 2011-03-26  Alan Modra  <amodra@gmail.com>
23940         * config/rs6000/predicates.md (word_offset_memref_op): Handle
23941         cmodel medium addresses.
23942         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23943         64-bit gpr loads and stores.
23944         (rs6000_secondary_reload_ppc64): New function.
23945         * config/rs6000/rs6000-protos.h: Declare it.
23946         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23948 2011-03-26  Alan Modra  <amodra@gmail.com>
23950         PR target/47487
23951         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23952         GNU Go in traceback table.
23954 2011-03-25  Richard Henderson  <rth@redhat.com>
23956         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23957         if there are exactly 6 operands.
23958         (set_storage_via_setmem): Similarly.
23960 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23962         * collect2.c (write_c_file_stat): Handle backslash
23963         as right-hand directory separator.
23964         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23965         checking just for slash.
23966         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23967         instead of checking for trailing slash.
23968         * gcc.c (record_temp_file): Use filename_cmp instead
23969         of strcmp.
23970         (do_spec_1): Likewise.
23971         (replace_outfile_spec_function): Likewise.
23972         (is_directory): Use filename_ncmp instead of strncmp.
23973         (print_multilib_info): Likewise.
23974         * gcov.c (find_source): Use filename_cmp instead
23975         instead of strcmp.
23976         (make_gcov_file_name): Fix order of slash/backslash
23977         checks.
23978         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23979         (add_standard_paths): Likewise.
23980         * mips-tfile.c (saber_stop): Handle backslash.
23981         * prefix.c (update_path): Use filename_ncmp instead of
23982         strncmp.
23983         * profile.c (output_location): Use filename_cmp instead
23984         of strcmp.
23985         * read-md.c (handle_toplevel_file): Handle backslash.
23986         * tlink.c (frob_extension):  Likewise.
23987         * tree-cfg.c (same_line_p): Use filename_cmp instead of
23988         strcmp.
23989         * tree-dump.c (dequeue_and_dump): Handle backslash.
23990         * tree.c (get_file_function_name): Likewise.
23991         * gengtype.c (read_input_list): Likewise.
23992         (get_file_realbasename): Likewise.
23993         (get_output_file_with_visibility): Use filename_cmp
23994         instead of strcmp.
23996 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
23998         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23999         case to VFPv1.
24001 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24003         * fold-const.c (expr_location_or): New function.
24004         (fold_truth_not_expr): Call it.
24006 2011-03-25  Jeff Law  <law@redhat.com>
24008         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
24009         va_end.
24010         * c-family/c-common.c (def_fn_type): Likewise.
24011         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
24012         * emit-rtl.c (gen_rtvec): Likewise.
24013         * lto/lto-lang.c (def_fn_type): Likewise.
24015 2011-03-25  Richard Guenther  <rguenther@suse.de>
24017         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
24018         also generate copies.
24019         (fini_copy_prop): Handle constant values properly.
24021 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
24023         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24024         mode size instead of bitsize with DWARF2_ADDR_SIZE.
24025         (hash_loc_operands, compare_loc_operands): Handle
24026         DW_OP_GNU_entry_value.
24028 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24030         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
24031         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
24032         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
24033         comment and use macro TARGET_64BIT_MS_ABI instead.
24034         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
24035         and change default behavior for 32-bit MS_ABI.
24036         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
24037         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
24038         32-bit, too.
24039         (ix86_cfun_abi): Likewise.
24040         (ix86_maybe_switch_abi): Adjust comment.
24041         (init_cumulative_args): Check for bit-ness in MS_ABI case.
24042         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
24043         instead of checking for SYSV_ABI.
24044         (ix86_nsaved_sseregs): Likewise.
24045         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
24046         to 16 bytes.
24047         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
24048         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
24049         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
24050         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
24051         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
24053 2011-03-25  Richard Guenther  <rguenther@suse.de>
24055         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
24056         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24057         (verify_gimple): Remove.
24058         * tree-cfg.c (verify_gimple_call): Merge verification
24059         from verify_stmts.
24060         (verify_gimple_phi): Merge verification from verify_stmts.
24061         (verify_gimple_label): New function.
24062         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
24063         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24064         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
24065         (verify_stmts): Rename to verify_gimple_in_cfg.
24066         (verify_gimple_in_cfg): New function.
24067         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
24068         * tree-ssa.c (verify_ssa): Likewise.
24069         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
24071 2011-03-25  Richard Guenther  <rguenther@suse.de>
24073         * passes.c (init_optimization_passes): Add FRE pass after
24074         early SRA.
24076 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
24077             Andrew Stubbs  <ams@codesourcery.com>
24079         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
24080         for Cortex-A8.
24081         (arm_movdi_vfp_cortexa8): New pattern.
24082         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
24083         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
24084         instructions when tuning for Cortex-A8.  Set attribute "arch".
24085         * config/arm/arm.md: Move include arm-tune.md up a bit.
24086         (define_attr "arch"): Add "onlya8" and "nota8" values.
24087         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24089 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24091         PR bootstrap/48282
24092         Revert:
24093         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24095         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24096         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24097         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24098         * passes.c (init_optimization_passes): Move
24099         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24101 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24103         * c-typeck.c (comptypes_internal): Replace target
24104         hook call of comp_type_attributes by version in tree.c file.
24105         * gimple.c (gimple_types_compatible_p_1): Likewise.
24106         * tree-ssa.c (useless_type_conversion_p): Likewise.
24107         * tree.c (build_type_attribute_qual_variant): Likewise.
24108         (attribute_value_equal): New static helper function.
24109         (comp_type_attributes): New function.
24110         (merge_attributes): Use attribute_value_equal for comparison.
24111         (attribute_list_contained): Likewise.
24112         * tree.h (comp_type_attributes): New prototype.
24114 2011-03-25  Richard Guenther  <rguenther@suse.de>
24116         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24117         of complex types at -O0.
24118         (verify_gimple_assign_binary): Likewise.
24119         (verify_gimple_assign_ternary): Likewise.
24121 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24123         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24124         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24126 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24128         PR debug/48041
24129         * dwarf2out.c (output_abbrev_section): Only write table when
24130         abbrev_die_table_in_use > 1.
24132 2011-02-24  Richard Henderson  <rth@redhat.com>
24134         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24135         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24136         (alpha_expand_unaligned_load_words): Use extql.
24137         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24138         (emit_insxl): Handle all modes for consistency.
24140 2011-02-24  Richard Henderson  <rth@redhat.com>
24142         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24143         (alpha_expand_unaligned_load): Likewise.
24144         (alpha_expand_unaligned_store): Likewise.
24145         (alpha_expand_unaligned_load_words): Likewise.
24146         (alpha_expand_unaligned_store_words): Likewise.
24147         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24148         (alpha_split_lock_test_and_set_12): Likewise.
24149         (print_operand, alpha_fold_builtin_extxx): Likewise.
24150         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24151         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24152         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24153         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24154         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24155         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24156         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24157         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24158         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24159         (extwl, extll, extql): Similarly.
24160         (inswh, inslh, insqh): Similarly.
24161         (mskbl, mskwl, mskll, mskql): Similarly.
24162         (mskwh, msklh, mskqh): Similarly.
24164 2011-02-24  Richard Henderson  <rth@redhat.com>
24166         * config/alpha/alpha.md (attribute isa): Add er, ner.
24167         (attribute enabled): Handle them.
24168         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24170 2011-02-24  Richard Henderson  <rth@redhat.com>
24172         * config/alpha/alpha.md (attribute isa): Add vms.
24173         (attribute enabled): Handle it.
24174         (*movsf): Merge *movsf_{nofix,fix,nofp}.
24175         (*movdf): Merge *movdf_{nofix,fix,nofp}.
24176         (*movtf): Rename from *movtf_internal for consistency.
24177         (*movsi): Merge with *movsi_nt_vms.
24178         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24179         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24180         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24181         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24183 2011-02-24  Richard Henderson  <rth@redhat.com>
24185         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24186         (extendqisi2, extendhisi2): Likewise.
24187         (extendqidi2): Simplify BWX/non-BWX expansions.
24188         (extendhidi2): Similarly.
24190 2011-02-24  Richard Henderson  <rth@redhat.com>
24192         * config/alpha/alpha.md (attribute isa): New.
24193         (attribute enabled): New.
24194         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24195         (zero_extendqisi2, zero_extendqidi2): Similarly.
24196         (zero_extendhisi2, zero_extendhidi2): Similarly.
24197         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24199 2011-02-24  Richard Henderson  <rth@redhat.com>
24201         * config/alpha/predicates.md (input_operand): Revert last change;
24202         update comment to mention 32-bit VMS rather than Windows.
24204 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24206         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24207         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24208         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24209         * passes.c (init_optimization_passes): Move
24210         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24212 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24214         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24216 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24218         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24219         correctly.
24221 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
24223         PR debug/48204
24224         * simplify-rtx.c (simplify_const_unary_operation): Call
24225         real_convert when changing mode class with FLOAT_EXTEND.
24227 2011-03-24  Nick Clifton  <nickc@redhat.com>
24229         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24230         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24231         * config/rx/rx.c (rx_option_override): Set align_jumps,
24232         align_loops and align_labels if not set by the user.
24233         (rx_align_for_label): New function.
24234         (rx_max_skip_for_label): New function.
24235         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24236         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24237         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24238         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24239         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24241 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24243         PR rtl-optimization/48263
24244         * optabs.c (expand_binop_directly): Reinstate convert_modes code
24245         and original commutative_p handling.  Use maybe_gen_insn.
24247 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24249         * reload.c (find_reloads_subreg_address): Add address_reloaded
24250         parameter and return true there if the full address has been
24251         reloaded.
24252         (find_reloads_toplev): Pass address_reloaded flag.
24253         (find_reloads_address_1): Don't use address_reloaded parameter.
24255 2011-03-24  Jeff Law  <law@redhat.com>
24257         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24258         unused variable "ann".
24259         (remove_unused_locals): Likewise.
24261         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24262         statement.
24264         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24265         after it is freed.
24267 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24269         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24270         for invalid symbolic addresses.
24271         (s390_secondary_reload): Don't use s390_check_symref_alignment for
24272         larl operands.
24274 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24276         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24277         the argument in calls to fold_truth_not_expr.
24279 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24281         * tree.c (record_node_allocation_statistics): New function.
24282         (make_node_stat, copy_node_stat, build_string): Call it.
24283         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24284         (build1_stat, build_omp_clause): Likewise.
24286 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24288         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24289         last commit.
24291 2011-03-24  Richard Guenther  <rguenther@suse.de>
24293         PR tree-optimization/48271
24294         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24295         blocks that still exist.
24297 2011-03-24  Richard Guenther  <rguenther@suse.de>
24299         PR tree-optimization/48270
24300         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24301         not free datarefs before ddrs.
24303 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24305         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24306         from the address built for a reference with variable offset.
24308 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24310         PR target/48237
24311         * config/i386/i386.md (*movdf_internal_rex64): Do not split
24312         alternatives that can be handled with movq or movabsq insn.
24313         (*movdf_internal): Disable for !TARGET_64BIT.
24314         (*movdf_internal_nointeger): Ditto.
24315         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24317 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24319         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24320         (FUNCTION_ARG_ADVANCE): Likewise.
24321         * tm.texi.in: Change references to them to hook references.
24322         * tm.texi: Regenerate.
24323         * targhooks.c (default_function_arg): Eliminate check for target macro.
24324         (default_function_incoming_arg): Likewise.
24325         (default_function_arg_advance): Likewise.
24326         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24327         (function_arg_advance): Likewise.
24328         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24330 2011-03-24  Richard Guenther  <rguenther@suse.de>
24332         PR middle-end/48269
24333         * tree-object-size.c (addr_object_size): Do not double-account
24334         for MEM_REF offsets.
24336 2011-03-24  Diego Novillo  <dnovillo@google.com>
24338         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24339         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24340         (lto_input_data_block): Move from lto-opts.c.  Make extern.
24341         Update all users.
24342         (lto_input_string): Rename from input_string.  Make extern.
24343         Update all users.
24344         * lto-streamer-out.c (lto_output_string_with_length): Rename from
24345         output_string_with_length.
24346         Output 0 to indicate a non-NULL string.  Update all callers to
24347         not emit 0.
24348         (lto_output_string): Rename from output_string.  Make extern.
24349         Update all users.
24350         (lto_output_decl_state_streams): Make extern.
24351         (lto_output_decl_state_refs): Make extern.
24352         * lto-streamer.h (lto_input_string): Declare.
24353         (lto_input_data_block): Declare.
24354         (lto_output_string): Declare.
24355         (lto_output_string_with_length): Declare.
24356         (lto_output_decl_state_streams): Declare.
24357         (lto_output_decl_state_refs): Declare.
24359 2011-03-24  Richard Guenther  <rguenther@suse.de>
24361         PR tree-optimization/46562
24362         * tree.c (build_invariant_address): New function.
24363         * tree.h (build_invariant_address): Declare.
24364         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24365         a renamed function moved ...
24366         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24367         Take valueization callback parameter.
24368         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24369         * gimple-fold.h: New file.
24370         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24371         (ccp_fold, fold_const_aggregate_ref,
24372         fold_ctor_reference, fold_nonarray_ctor_reference,
24373         fold_array_ctor_reference, fold_string_cst_ctor_reference,
24374         get_base_constructor): Move ...
24375         * gimple-fold.c: ... here.
24376         (gimple_fold_stmt_to_constant_1): New function
24377         split out from ccp_fold.  Take a valueization callback parameter.
24378         Valueize all operands.
24379         (gimple_fold_stmt_to_constant): New wrapper function.
24380         (fold_const_aggregate_ref_1): New function split out from
24381         fold_const_aggregate_ref.  Take a valueization callback parameter.
24382         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24383         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24384         invariant POINTER_PLUS_EXPRs to invariant form.
24385         (vn_valueize): New function.
24386         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24387         * tree-vrp.c (vrp_valueize): New function.
24388         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24389         to fold statements to constants.
24390         * tree-ssa-pre.c (eliminate): Properly guard propagation of
24391         function declarations.
24392         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24393         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24395 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24397         * config/h8300/predicates.md (jump_address_operand): Fix register
24398         mode check.
24400 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
24402         * doc/invoke.texi (max-stores-to-sink): Document.
24403         * params.h (MAX_STORES_TO_SINK): Define.
24404         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24405         if either vectorization or if-conversion is disabled.
24406         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24407         tree-vect-data-refs.c vect_equal_offsets.
24408         (dr_equal_offsets_p): New function.
24409         (find_data_references_in_bb): Remove static.
24410         * tree-data-ref.h (find_data_references_in_bb): Declare.
24411         (dr_equal_offsets_p): Likewise.
24412         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24413         (vect_drs_dependent_in_basic_block): Update calls to
24414         vect_equal_offsets.
24415         (vect_check_interleaving): Likewise.
24416         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24417         (cond_if_else_store_replacement): Rename to...
24418         (cond_if_else_store_replacement_1): ... this.  Change arguments and
24419         documentation.
24420         (cond_if_else_store_replacement): New function.
24421         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24422         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24424 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
24426         PR target/46934
24427         * config/arm/arm.md (casesi): Use the gen_int_mode() function
24428         to subtract lower bound instead of GEN_INT().
24430 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
24432         PR other/48179
24433         PR other/48221
24434         PR other/48234
24435         * doc/extend.texi (Alignment): Move section to match order in TOC.
24436         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24437         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24439 2011-03-23  Jeff Law  <law@redhat.com>
24441         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24442         before removing the edge.
24444         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24445         it may have been freed by redirect_branch_edge or
24446         redirect_edge_succ_nodup.
24448 2011-03-23  Richard Guenther  <rguenther@suse.de>
24450         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24451         (check_va_list_escapes): Likewise.
24452         (check_all_va_list_escapes): Likewise.
24454 2011-03-23  Richard Guenther  <rguenther@suse.de>
24456         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24457         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24458         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24459         (alias.o): Likewise.
24460         (ipa-type-escape.o): Remove.
24461         (ipa-struct-reorg.o): Likewise.
24462         (GTFILES): Remove ipa-struct-reorg.c.
24463         * alias.c: Do not include ipa-type-escape.h.
24464         * tree-ssa-alias.c: Likewise.
24465         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24466         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24467         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24468         and ipa-type-escape passes.
24469         * tree-pass.h (pass_ipa_type_escape): Remove.
24470         (pass_ipa_struct_reorg): Likewise.
24471         * ipa-struct-reorg.h: Remove.
24472         * ipa-struct-reorg.c: Likewise.
24473         * ipa-type-escape.h: Likewise.
24474         * ipa-type-escape.c: Likewise.
24475         * doc/invoke.texi (-fipa-struct-reorg): Remove.
24476         (--param struct-reorg-cold-struct-ratio): Likewise.
24477         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24478         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24479         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24481 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24483         * config/s390/2084.md: Enable all insn reservations also for z9_ec
24484         cpu attribute value.
24485         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24486         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24487         * config/s390/s390.c (processor_flags_table): New constant array.
24488         (s390_handle_arch_option): Remove.
24489         (s390_handle_option): Remove s390_handle_arch_option invocations
24490         and OPT_mwarn_framesize_ handling.
24491         (s390_option_override): Remove s390_handle_arch_option invocation.
24492         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24493         warnings.
24494         * config/s390/s390.md (cpu attribute): Add z9_ec value.
24495         * config/s390/s390.opt (s390_tune, s390_arch)
24496         (march=): Replace s390_arch_option enum and values with
24497         processor_type.  Set variable name to s390_arch.  Set
24498         initialization value.
24499         (mtune=): Replace s390_arch_option with processor_type.  Set
24500         variable name to s390_tune.  Set initialization value.
24502 2011-03-23  Julian Brown  <julian@codesourcery.com>
24504         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24505         accesses which are not naturally aligned.
24507 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24509         PR target/47553
24510         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24512 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24514         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24515         parameter from "int" to "enum insn_code".
24516         (expand_operand_type): New enum.
24517         (expand_operand): New structure.
24518         (create_expand_operand): New function.
24519         (create_fixed_operand, create_output_operand): Likewise
24520         (create_input_operand, create_convert_operand_to): Likewise.
24521         (create_convert_operand_from, create_address_operand): Likewise.
24522         (create_integer_operand): Likewise.
24523         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24524         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24525         (expand_insn, expand_jump_insn): Likewise.
24526         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24527         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24528         (expand_movstr, expand_builtin___clear_cache): Likewise.
24529         (expand_builtin_lock_release): Likewise.
24530         * explow.c (allocate_dynamic_stack_space): Likewise.
24531         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
24532         and use the default handling in that case.
24533         * expmed.c (check_predicate_volatile_ok): Delete.
24534         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24535         (emit_cstore): Likewise.
24536         * expr.c (emit_block_move_via_movmem): Likewise.
24537         (set_storage_via_setmem, expand_assignment): Likewise.
24538         (emit_storent_insn, try_casesi): Likewise.
24539         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
24540         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24541         (expand_vec_shift_expr, expand_binop_directly): Likewise.
24542         (expand_twoval_unop, expand_twoval_binop): Likewise.
24543         (expand_unop_direct, emit_indirect_jump): Likewise.
24544         (emit_conditional_move, vector_compare_rtx): Likewise.
24545         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24546         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24547         (expand_sync_lock_test_and_set): Likewise.
24548         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
24549         (emit_unop_insn): Likewise.
24550         (expand_copysign_absneg): Change icode to an insn_code.
24551         (create_convert_operand_from_type): New function.
24552         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24553         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24554         (expand_insn, expand_jump_insn): Likewise.
24555         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24556         than const_int_operand for operand 2.
24558 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24560         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24561         if possible.
24563 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24565         * emit-rtl.c (emit_pattern_before_noloc): New function.
24566         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24567         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24568         (emit_pattern_after_noloc): New function.
24569         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24570         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24572 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24574         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24575         (__ffsDI2): Likewise.
24577 2011-03-22  Richard Henderson  <rth@redhat.com>
24579         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24580         of !TARGET_ABI_OPEN_VMS.
24581         (alpha_trampoline_init, alpha_start_function): Likewise.
24582         (alpha_expand_epilogue, alpha_file_start): Likewise.
24583         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24584         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24585         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24586         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24587         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24589 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24591         * config/s390/s390-opts.h: New.
24592         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24593         s390_arch_flags, s390_warn_framesize, s390_stack_size,
24594         s390_stack_guard): Remove.
24595         (s390_handle_arch_option): Return void.  Take enum
24596         s390_arch_option value instead of string and searching array.
24597         (s390_handle_option): Don't assert that global structures are in
24598         use.  Access variables via opts pointer.  Use error_at.  Don't use
24599         sscanf for -mstack-guard= or -mstack-size=.  Update call to
24600         s390_handle_arch_option.
24601         (s390_option_override): Update call to s390_handle_arch_option.
24602         (s390_emit_prologue): Use %d format for s390_stack_size in
24603         diagnostic.  Use %wd for HOST_WIDE_INT.
24604         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24605         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24606         * config/s390/s390.opt (config/s390/s390-opts.h): New
24607         HeaderInclude entry.
24608         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24609         s390_arch_flags, s390_warn_framesize): New Variable entries.
24610         (s390_arch_option): New Enum and EnumValue entries.
24611         (march=): Use Enum instead of Var.
24612         (mstack-guard=, mstack-size=): Use UInteger and Var.
24613         (mtune=): Use Enum.
24615 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24617         * config/score/score.c (score_handle_option): Don't assert that
24618         global structures are in use.  Access target_flags via opts
24619         pointer.  Use value of -march= option to determine target_flags
24620         settings.
24621         * config/score/score.opt (march=): Use Enum.
24622         (score_arch): New Enum and EnumValue entries.
24624 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24626         * config/mep/mep.c (option_mtiny_specified): Remove.
24627         (mep_option_override): Move register handling for -mivc2 from
24628         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
24629         instead of option_mtiny_specified.
24630         (mep_handle_option): Access target_flags via opts pointer.  Don't
24631         assert that global structures are in use.  Defer part of -mivc2
24632         handling and move it to mep_option_override.
24633         * config/mep/mep.opt (IVC2): New Mask entry.
24634         (mivc2): Use Var and Defer instead of Mask.
24636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24638         * config/v850/v850-opts.h: New.
24639         * config/v850/v850.c (small_memory): Replace with
24640         small_memory_physical_max array.  Make that array static const.
24641         (v850_handle_memory_option): Take integer value of argument.  Take
24642         gcc_options pointer, option text and location.  Return void.
24643         Update for changes to small memory structures.
24644         (v850_handle_option): Access target_flags via opts pointer.  Don't
24645         assert that global structures are in use.  Update calls to
24646         v850_handle_memory_option.
24647         (v850_encode_data_area): Update references to small memory settings.
24648         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24649         (enum small_memory_type): Move to v850-opts.h.
24650         * config/v850/v850.opt (config/v850/v850-opts.h): New
24651         HeaderInclude entry.
24652         (small_memory_max): New Variable entry.
24653         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
24654         (mtda, mzda): Likewise.
24656 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24658         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24659         pointer.  Don't assert that global structures are in use.
24661 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24663         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24664         via opts pointer.  Don't assert that global structures are in use.
24666 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24668         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24669         (munix=93): Use Var.
24670         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24671         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24672         * config/pa/pa-opts.h: New.
24673         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24674         (pa_handle_option): Don't assert that global structures are in
24675         use.  Access target_flags via opts pointer.  Don't handle
24676         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24677         OPT_munix_98 here.
24678         (pa_option_override): Handle deferred OPT_mfixed_range_.
24680 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24682         * config/mn10300/mn10300-opts.h: New.
24683         * config/mn10300/mn10300.c (mn10300_processor,
24684         mn10300_tune_string): Remove.
24685         (mn10300_handle_option): Don't assert that global structures are
24686         in use.  Access mn10300_processor via opts pointer.  Don't handle
24687         OPT_mtune_ here.
24688         * config/mn10300/mn10300.h (enum processor_type): Move to
24689         mn10300-opts.h.
24690         (mn10300_processor): Remove.
24691         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24692         HeaderInclude entry.
24693         (mn10300_processor): New Variable entry.
24694         (mtune=): Use Var.
24696 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24698         * config/microblaze/microblaze.c: Don't include opts.h.
24699         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24700         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24701         (mno-clearbss): Use Var and Warn.
24703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24705         * config/m32r/m32r-opts.h: New.
24706         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24707         (m32r_handle_option): Don't assert that global structures are in
24708         use.  Access target_flags and m32r_cache_flush_func via opts
24709         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
24710         OPT_mno_flush_trap here.
24711         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24712         include of m32r-opts.h.
24713         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24714         HeaderInclude entry.
24715         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24716         (mmodel=): Use Enum and Var.
24717         (m32r_model): New Enum and EnumValue entries.
24718         (mno-flush-trap): Use Var.
24719         (msdata=): Use Enum and Var.
24720         (m32r_sdata): New Enum and EnumValue entries.
24722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24724         * config/m32c/m32c.c: Don't include opts.h.
24725         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24726         m32c_handle_option): Remove.
24727         (m32c_option_override): Check global_options_set.x_target_memregs
24728         instead of target_memregs_set.
24729         * config/m32c/m32c.h (target_memregs): Remove.
24730         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24731         variable.
24733 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24735         * config/iq2000/iq2000-opts.h: New.
24736         * config/iq2000/iq2000.c: Don't include opts.h.
24737         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24738         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24739         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24740         HeaderInclude entry.
24741         (iq2000_tune): New Variable entry.
24742         (march=): Add comment.  Use Enum.
24743         (iq2000_arch): New Enum and EnumValue entries.
24744         (mcpu=): Use Enum and Var.
24745         (iq2000_tune): New Enum and EnumValue entries.
24747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24749         * config/ia64/ia64-opts.h: New.
24750         * config/ia64/ia64.c (ia64_tune): Remove.
24751         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24752         here.  Use error_at.
24753         (ia64_option_override): Handle deferred OPT_mfixed_range_.
24754         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24755         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24756         HeaderInclude entry.
24757         (ia64_tune): New Variable entry.
24758         (mfixed-range=): Use Defer and Var.
24759         (mtune=): Use Enum and Var.
24760         (ia64_tune): New Enum and EnumValue entries.
24762 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24764         * config/frv/frv-opts.h: New.
24765         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24766         frv-opts.h.
24767         (frv_cpu_type): Remove.
24768         * config/frv/frv.c: Don't include opts.h.
24769         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24770         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24771         (frv_cpu_type): New Variable entry.
24772         (frv_cpu): New Enum and EnumValue entries.
24774 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24776         * config/cris/cris.c (cris_handle_option): Access target_flags via
24777         opts pointer.  Don't assert that global structures are in use.
24778         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24779         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24783         * config/bfin/bfin-opts.h: New.
24784         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24785         bfin_si_revision, bfin_workarounds): Remove.
24786         (bfin_cpus): Make static const.
24787         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24788         not bfin_lib_id_given.
24789         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
24790         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24791         pointer. Use error_at.  Don't assert that global structures are in use.
24792         * config/bfin/bfin.h: Include bfin-opts.h.
24793         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24794         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24795         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24796         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24797         entries.
24799 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24801         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24802         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24803         or -msoft-float here.
24804         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24805         -msoft-float and -mhard-float.
24806         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24807         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24808         msoft-float.
24809         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24810         -msoft-float.
24811         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24812         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24813         not mhard-float.
24814         (LIBGCC_SPEC): Don't handle -msoft-float.
24815         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24816         -mhard-float.
24817         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24818         msoft-float.
24819         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24820         -mfloat-abi=*, not -msoft-float and -mhard-float.
24821         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24822         -msoft-float.
24823         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24824         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24825         mhard-float and msoft-float.
24826         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24827         mfloat-abi=soft in comments, not mhard-float and msoft-float.
24828         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24829         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24830         mhard-float.
24831         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24832         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24833         msoft-float.
24834         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24835         not mhard-float.
24836         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24837         not msoft-float.
24839 2011-03-22  Richard Henderson  <rth@redhat.com>
24841         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24842         TARGET_ABI_WINDOWS_NT.
24843         (alpha_output_function_end_prologue): Likewise.
24844         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24845         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24846         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24847         (trap, *movsi_nt_vms): Likewise.
24848         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24849         (*tablejump_osf_nt_internal): Remove.
24850         * config/alpha/predicates.md (input_operand): Only test Pmode.
24852 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24854         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24855         via opts pointer.  Use error_at.  Don't assert that global
24856         structures are in use.
24858 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24860         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24861         (ix86_handle_option): Access ix86_isa_flags and
24862         ix86_isa_flags_explicit via opts pointer.  Don't assert that
24863         global structures are in use.
24864         (ix86_function_specific_save, ix86_function_specific_restore):
24865         Update ix86_isa_flags_explicit field name.
24866         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24867         (ix86_isa_flags_explicit): Rename TargetSave entry to
24868         x_ix86_isa_flags_explicit.
24870 2011-03-22  Richard Henderson  <rth@redhat.com>
24872         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24873         (alpha_option_override, direct_return): Likewise.
24874         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24875         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24876         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24877         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24878         (alpha_expand_epilogue, alpha_end_function): Likewise.
24879         (alpha_init_libfuncs): Likewise.
24880         (struct machine_function): Remove unicosmk members.
24881         (print_operand) ['t']: Remove.
24882         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24883         unicosmk_output_module_name, unicosmk_output_common,
24884         current_section_align, unicosmk_output_text_section_asm_op,
24885         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24886         unicosmk_section_type_flags, unicosmk_unique_section,
24887         unicosmk_asm_named_section, unicosmk_insert_attributes,
24888         unicosmk_output_align, unicosmk_defer_case_vector,
24889         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24890         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24891         unicosmk_output_ssib, unicosmk_add_call_info_word,
24892         unicosmk_extern_head, unicosmk_output_default_externs,
24893         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24894         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24895         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24896         * config/alpha/alpha-protos.h: Update.
24897         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24898         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24899         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24900         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24901         (*mulsi_se, mulvsi3): Likewise.
24902         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24903         (*divmodsi_internal, call, call_value, realign): Likewise.
24904         (moddi3, umoddi3): Likewise; remove duplicate expander.
24905         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24906         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24907         (*movdi_nofix): Remove r/U alternative.
24908         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24909         * config/alpha/constraints.md ("U"): Remove.
24910         * config/alpha/predicates.md (call_operand"): Don't test
24911         TARGET_ABI_UNICOSMK.
24913 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24915         * target.def (handle_option): Take gcc_options and
24916         cl_decoded_option pointers and location_t.
24917         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24918         * doc/tm.texi: Regenerate.
24919         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24920         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24921         * lto-opts.c (lto_reissue_options): Generate option structure for
24922         targetm.handle_option call.
24923         * opts.c (target_handle_option): Update call to
24924         targetm.handle_option.  Remove assertions about values now passed
24925         down to hook.
24926         * targhooks.c (default_target_handle_option): New.
24927         * targhooks.h (default_target_handle_option): Declare.
24928         * config/alpha/alpha.c: Include opts.h.
24929         (alpha_handle_option): Update to new hook interface.
24930         * config/arm/arm.c: Include opts.h.
24931         (arm_handle_option): Update to new hook interface.
24932         * config/arm/t-arm (arm.o): Update dependencies.
24933         * config/bfin/bfin.c: Include opts.h.
24934         (bfin_handle_option): Update to new hook interface.
24935         * config/cris/cris.c: Include opts.h.
24936         (cris_handle_option): Update to new hook interface.
24937         * config/frv/frv.c: Include opts.h.
24938         (frv_handle_option): Update to new hook interface.
24939         * config/i386/i386.c: Include opts.h.
24940         (ix86_handle_option): Update to new hook interface.
24941         (ix86_valid_target_attribute_inner_p): Generate option structure
24942         for call to ix86_handle_option.
24943         * config/i386/t-i386 (i386.o): Update dependencies.
24944         * config/ia64/ia64.c: Include opts.h.
24945         (ia64_handle_option): Update to new hook interface.
24946         * config/ia64/t-ia64 (ia64.o): Update dependencies.
24947         * config/iq2000/iq2000.c: Include opts.h.
24948         (iq2000_handle_option): Update to new hook interface.
24949         * config/m32c/m32c.c: Include opts.h.
24950         (m32c_handle_option): Update to new hook interface.
24951         * config/m32r/m32r.c: Include opts.h.
24952         (m32r_handle_option): Update to new hook interface.
24953         * config/m68k/m68k.c: Include opts.h.
24954         (m68k_handle_option): Update to new hook interface.
24955         * config/mep/mep.c: Include opts.h.
24956         (mep_handle_option): Update to new hook interface.
24957         * config/microblaze/microblaze.c: Include opts.h.
24958         (microblaze_handle_option): Update to new hook interface.
24959         * config/mips/mips.c: Include opts.h.
24960         (mips_handle_option): Update to new hook interface.
24961         * config/mn10300/mn10300.c: Include opts.h.
24962         (mn10300_handle_option): Update to new hook interface.
24963         * config/pa/pa.c: Include opts.h.
24964         (pa_handle_option): Update to new hook interface.
24965         * config/pdp11/pdp11.c: Include opts.h.
24966         (pdp11_handle_option): Update to new hook interface.
24967         * config/rs6000/rs6000.c: Include opts.h.
24968         (rs6000_handle_option): Update to new hook interface.
24969         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24970         * config/rx/rx.c: Include opts.h.
24971         (rx_handle_option): Update to new hook interface.
24972         * config/s390/s390.c: Include opts.h.
24973         (s390_handle_option): Update to new hook interface.
24974         * config/score/score.c: Include opts.h.
24975         (score_handle_option): Update to new hook interface.
24976         * config/sh/sh.c: Include opts.h.
24977         (sh_handle_option): Update to new hook interface.
24978         * config/sparc/sparc.c: Include opts.h.
24979         (sparc_handle_option): Update to new hook interface.
24980         * config/v850/v850.c: Include opts.h.
24981         (v850_handle_option): Update to new hook interface.
24983 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24985         * gcc.c (driver_unknown_option_callback): Only permit and save
24986         unknown -Wno- options.
24987         (driver_wrong_lang_callback): Save options directly instead of via
24988         driver_unknown_option_callback.
24990 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24992         * combine.c (simplify_set): Try harder to find the best CC mode when
24993         simplifying a nested COMPARE on the RHS.
24995 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24997         * config/alpha/gnu.h: Remove.
24998         * config/arc: Remove directory.
24999         * config/arm/netbsd.h: Remove.
25000         * config/arm/t-pe: Remove.
25001         * config/crx: Remove directory.
25002         * config/i386/netbsd.h: Remove.
25003         * config/m68hc11: Remove directory.
25004         * config/m68k/uclinux-oldabi.h: Remove.
25005         * config/mcore/mcore-pe.h: Remove.
25006         * config/mcore/t-mcore-pe: Remove.
25007         * config/netbsd-aout.h: Remove.
25008         * config/rs6000/gnu.h: Remove.
25009         * config/sh/sh-symbian.h: Remove.
25010         * config/sh/symbian-base.c: Remove.
25011         * config/sh/symbian-c.c: Remove.
25012         * config/sh/symbian-cxx.c: Remove.
25013         * config/sh/symbian-post.h: Remove.
25014         * config/sh/symbian-pre.h: Remove.
25015         * config/sh/t-symbian: Remove.
25016         * config/svr3.h: Remove.
25017         * config/vax/netbsd.h: Remove.
25018         * config.build: Don't handle i[34567]86-*-pe.
25019         * config.gcc: Remove handling of deprecations for most deprecated
25020         targets.
25021         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
25022         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
25023         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
25024         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
25025         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
25026         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
25027         Remove cases.
25028         * config.host: Don't handle i[34567]86-*-pe.
25029         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
25030         (ASM_SPEC32): Don't handle -mcall-gnu.
25031         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
25032         -mcall-gnu.
25033         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
25034         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
25035         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
25036         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
25037         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
25038         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
25039         conditional on SYMBIAN.
25040         * configure.ac: Don't handle powerpc*-*-gnu*.
25041         * configure: Regenerate.
25042         * doc/extend.texi (interrupt attribute): Don't mention CRX.
25043         * doc/install-old.texi (m6811, m6812): Don't mention.
25044         * doc/install.texi (arc-*-elf*): Don't document multilib option.
25045         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
25046         (m68k-uclinuxoldabi): Don't mention.
25047         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
25048         Remove.
25049         (-mcall-gnu): Remove.
25050         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
25051         families): Remove constraint documentation.
25053 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
25055         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
25056         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
25057         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
25059 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25061         PR target/48226
25062         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
25063         vector when peeking at the next token for vector, don't expand the
25064         keywords.
25066 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
25068         * config/avr/avr-protos.h (expand_epilogue): Change prototype
25069         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
25070         * config/avr/avr.c (init_cumulative_args)
25071         (avr_function_arg_advance): Use it.
25072         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
25073         sibcall epilogues.
25074         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
25075         (avr_function_ok_for_sibcall): ...this new function.
25076         (avr_lookup_function_attribute1): New static Function.
25077         (avr_naked_function_p, interrupt_function_p)
25078         (signal_function_p, avr_OS_task_function_p)
25079         (avr_OS_main_function_p): Use it.
25080         * config/avr/avr.md ("sibcall", "sibcall_value")
25081         ("sibcall_epilogue"): New expander.
25082         ("*call_insn", "*call_value_insn"): New insn.
25083         ("call_insn", "call_value_insn"): Remove
25084         ("call", "call_value", "epilogue"): Change expander to handle
25085         sibling calls.
25087 2011-03-21  Nick Clifton  <nickc@redhat.com>
25089         * doc/invoke.texi (Overall Options): Move closing brace to end of
25090         options list.
25091         (Optimization Options): Add missing @gol.
25092         (Directory Options): Likewise.
25093         (i386 and x86-64 Options): Likewise.
25094         (RS6000 and PowerPC Options): Likewise.
25095         (i386 and x86-64 Windows Options): Likewise.
25096         (V850 Options): Add text missing from descriptions.
25098 2011-03-22  Richard Henderson  <rth@redhat.com>
25100         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25101         (avr_incoming_return_addr_rtx): New.
25102         (emit_push_byte): New.
25103         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
25104         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
25105         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
25106         (emit_pop_byte): New.
25107         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25108         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25109         (INCOMING_RETURN_ADDR_RTX): New.
25110         (INCOMING_FRAME_SP_OFFSET): New.
25111         (ARG_POINTER_CFA_OFFSET): New.
25112         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25113         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25114         (pophi): Remove.
25116         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25118 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25120         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25121         (FUNCTION_ARG_ADVANCE): Likewise.
25122         * tm.texi.in: Change references to them to hook references.
25123         * tm.texi: Regenerate.
25124         * targhooks.c (default_function_arg): Eliminate check for target
25125         macro.
25126         (default_function_incoming_arg): Likewise.
25127         (default_function_arg_advance): Likewise.
25128         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25129         (function_arg_advance): Likewise.
25130         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25132 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25134         * tree.c (build_call_1): New function.
25135         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25137 2011-03-22  Richard Guenther  <rguenther@suse.de>
25139         PR tree-optimization/48228
25140         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25141         for single-arg PHIs.
25143 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
25145         PR rtl-optimization/48143
25146         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25147         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25148         sse2_cvtps2pd): Likewise.
25150 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25152         * recog.c (canonicalize_change_group): Use validate_unshare_change.
25154 2011-03-22  Richard Guenther  <rguenther@suse.de>
25156         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25157         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25158         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25159         and REALIGN_LOAD_EXPR.
25160         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25161         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25162         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25163         DOT_PROD_EXPR case ...
25164         (expand_expr_real_2): ... here.
25165         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25166         and REALIGN_LOAD_EXPR.
25167         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25168         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25169         (vect_create_epilog_for_reduction): Likewise.
25170         (vectorizable_reduction): Likewise.
25171         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25172         * tree-vect-stmts.c (vectorizable_load): Likewise.
25174 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25176         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25178 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25180         * config/s390/s390.c (s390_delegitimize_address): Fix offset
25181         handling for PLTOFF/GOTOFF.
25183 2011-03-22  Nick Clifton  <nickc@redhat.com>
25185         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25186         trailing backslash from the end of the macro definition.
25188 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25190         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25191         and PLT unspecs.
25193 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
25195         * expr.h (prepare_operand): Move to...
25196         * optabs.h (prepare_operand): ...here and change the insn code
25197         parameter from "int" to "enum insn_code".
25198         (insn_operand_matches): Declare.
25199         * expr.c (init_expr_target): Use insn_operand_matches.
25200         (compress_float_constant): Likewise.
25201         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25202         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25203         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25204         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25205         Likewise.
25206         (gen_cond_trap): Likewise.
25207         (prepare_operand): Likewise.  Change icode to an insn_code.
25208         (insn_operand_matches): New function.
25209         * reload.c (find_reloads_address_1): Use insn_operand_matches.
25210         * reload1.c (gen_reload): Likewise.
25211         * targhooks.c (default_secondary_reload): Likewise.
25213 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25215         * config/alpha/alpha.md (unspec): New define_c_enum.
25216         (unspecv): Ditto.
25218 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25220         PR debug/48214
25221         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25222         between a call and its CALL_ARG_LOCATION note.
25224 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
25226         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25228 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25230         PR c/42544
25231         PR c/48197
25232         * c-common.c (shorten_compare): If primopN is first sign-extended
25233         to opN and then zero-extended to result type, set primopN to opN.
25235 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
25237         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25238         for barrier handlers.
25240 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25242         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25243         UNSPEC constants to be in the unspec enumeration, and redefine
25244         all UNSPECV constants to be in the unspecv enumeration, so that
25245         dumps print which unspec/unspec_volatile this is.
25246         * config/rs6000/vector.md (UNSPEC_*): Ditto.
25247         * config/rs6000/paired.md (UNSPEC_*): Ditto.
25248         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25249         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25250         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25252         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25253         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25254         UNSPECV_LWSYNC, since these are used as unspec_volatile.
25255         * config/rs6000/sync.md (isync, lwsync): Ditto.
25257 2011-03-21  Richard Guenther  <rguenther@suse.de>
25259         * params.def (lto-min-partition): Fix typo.
25261 2011-03-21  Richard Guenther  <rguenther@suse.de>
25263         PR c/47939
25264         * c-decl.c (grokdeclarator): Drop to the main variant only
25265         for array types.  Drop flag_gen_aux_info check.
25267 2011-03-21  Richard Guenther  <rguenther@suse.de>
25269         PR translation/47911
25270         * params.def (lto-partitions): Fix typo.
25271         (lto-min-partition): Fix wording.
25273 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
25275         * config/rs6000/t-freebsd: Remove duplication from file.
25277 2011-03-21  Richard Guenther  <rguenther@suse.de>
25279         PR middle-end/47661
25280         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25282 2011-03-21  Richard Guenther  <rguenther@suse.de>
25284         PR lto/48210
25285         * params.def (lto-partitions): Require at least 1 partition.
25287 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25289         * gthr-solaris.h: Remove.
25290         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25291         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25292         (LIB_SPEC): Likewise.
25293         * config/sol2.opt (threads): Remove.
25294         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25295         (sparc*-*-solaris2*): Likewise.
25296         * configure.ac (enable_threads): Enable solaris support.
25297         * configure: Regenerate.
25298         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25299         * doc/install.texi (Configuration, --enable-threads=lib): Remove
25300         solaris.
25302 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25304         * config.gcc: Obsolete *-*-solaris2.8*.
25305         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25307 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25309         PR bootstrap/48135
25310         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25311         reference.  Solaris 8 perl works.
25313 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25315         PR bootstrap/48135
25316         * doc/install.texi (Prerequisites): Move jar etc. up.
25317         Explain support library version requirements.
25319 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25321         PR bootstrap/48135
25322         * doc/install.texi (Prerequisites): Move Perl to build
25323         requirements.  Always necessary on Solaris 2 with Sun ld.
25325 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25327         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25328         binutils 2.21.
25329         (Specific, i?86-*-solaris2.[89]): Likewise.
25330         (Specific, i?86-*-solaris2.10): Likewise.
25331         (Specific, mips-sgi-irix6): Likewise.
25332         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25333         Update for binutils 2.21.
25335 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25337         * configure.ac (gcc_cv_lto_plugin): Fix typo.
25338         Allow -fuse-linker-plugin for non-default plugin linker.
25339         * configure: Regenerate.
25341 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
25343         PR bootstrap/48167
25344         * gengtype.c (files_rules): Added rule for cp/parser.h.
25346 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25348         PR target/48213
25349         * config/s390/s390.c (s390_delegitimize_address): Don't call
25350         lowpart_subreg if orig_x has BLKmode.
25352 2011-03-21  Kai Tietz  <ktietz@redhat.com>
25354         PR target/12171
25355         * doc/plugins.texi: Adjust documentation for plugin register_callback.
25356         * tree.h (attribute_spec): Add new member affects_type_identity.
25357         * attribs.c (empty_attribute_table): Adjust attribute_spec
25358         initializers.
25359         * config/alpha/alpha.c: Likewise.
25360         * config/arc/arc.c: Likewise.
25361         * config/arm/arm.c: Likewise.
25362         * config/avr/avr.c: Likewise.
25363         * config/bfin/bfin.c: Likewise.
25364         * config/crx/crx.c: Likewise.
25365         * config/darwin.h: Likewise.
25366         * config/h8300/h8300.c: Likewise.
25367         * config/i386/cygming.h: Likewise.
25368         * config/i386/i386.c: Likewise.
25369         * config/ia64/ia64.c: Likewise.
25370         * config/m32c/m32c.c: Likewise.
25371         * config/m32r/m32r.c: Likewise.
25372         * config/m68hc11/m68hc11.c: Likewise.
25373         * config/m68k/m68k.c: Likewise.
25374         * config/mcore/mcore.c: Likewise.
25375         * config/mep/mep.c: Likewise.
25376         * config/microblaze/microblaze.c: Likewise.
25377         * config/mips/mips.c: Likewise.
25378         * config/rs6000/rs6000.c: Likewise.
25379         * config/rx/rx.c: Likewise.
25380         * config/sh/sh.c: Likewise.
25381         * config/sol2.h: Likewise.
25382         * config/sparc/sparc.c: Likewise.
25383         * config/spu/spu.c: Likewise.
25384         * config/stormy16/stormy16.c: Likewise.
25385         * config/v850/v850.c: Likewise.
25387 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
25389         * simplify-rtx.c (simplify_binary_operation_1): Handle
25390         (xor (and A B) C) case when B and C are both constants.
25392 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
25394         * tree-dfa.c (add_referenced_var): Fix typo in comment.
25396 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25398         PR bootstrap/48168
25399         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25401 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
25403         PR rtl-optimization/48156
25404         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25405         assume df and df_lr are not NULL.
25407 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25409         PR debug/48023
25410         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25411         between a call and its CALL_ARG_LOCATION note.
25413 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25415         PR debug/48178
25416         * config/sh/sh.c (find_barrier): Don't emit a constant pool
25417         between a call and its corresponding CALL_ARG_LOCATION note.
25419 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
25421         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25422         instead of loop. Use HARD_REGISTER_NUM_P predicate.
25423         * haifa-sched.c (setup_ref_regs): Ditto.
25424         * caller-save.c (add_used_regs_1): Ditto.
25425         * dse.c (look_for_hardregs): Ditto.
25426         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25427         * sched-rgn.c (check_live_1): Ditto.
25429 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25431         * c-decl.c (diagnose_mismatched_decls): Give an error for
25432         redefining a typedef with variably modified type.
25434 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25436         * c-decl.c (grokfield): Don't allow typedefs for structures or
25437         unions with no tag by default.
25438         * doc/extend.texi (Unnamed Fields): Update.
25440 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
25442         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25443         Rewrite using indirect functions.
25444         (lwp_slwpcb): Ditto.
25445         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25446         (avx_vinsertf128<mode>): Ditto.
25448 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25450         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25451         unspecs.
25453 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25455         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25456         splitting between a call and its corresponding CALL_ARG_LOCATION note.
25458 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
25460         PR rtl-optimization/48170
25461         * gcse.c (hoist_code): Remove bogus asserts.
25463 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
25465         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25466         computation for prologue/epilogue.
25468 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25470         * Makefile.in (check-consistency): Remove.
25472 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
25474         PR debug/48176
25475         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25476         arange_table_in_use is 0, but either text_section_used or
25477         cold_text_section_used is true.  Don't call it if
25478         !info_section_emitted.
25480 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
25482         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25483         FUNCTION_VALUE_REGNO_P): Remove.
25484         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25485         Remove.
25486         * config/avr/avr.c (avr_ret_register): Make static inline.
25487         (avr_function_value_regno_p): New function.
25488         (avr_libcall_value): Make static. Add 'func' argument.
25489         (avr_function_value): Make static. Rename 'func' argument to
25490         'fn_decl_or_type', forward it to avr_libcall_value. Call
25491         avr_ret_register function instead of RET_REGISTER macro.
25492         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25494 2011-03-18  Jason Merrill  <jason@redhat.com>
25496         PR c++/23372
25497         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25499 2011-03-18  Richard Guenther  <rguenther@suse.de>
25501         * doc/install.texi (--enable-gold): Remove.
25502         (--with-plugin-ld): Document.
25503         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25505 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
25507         PR middle-end/47790
25508         * expr.c (optimize_bitfield_assignment_op): Revamp to work
25509         again after expansion changes.
25511 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
25513         * combine.c (try_combine): Do simplification only call of
25514         subst() on i2 even when i1 is present. Update comments.
25516 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
25518         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25519         and UNSPEC_PCREL_SYMOFF.
25521 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25523         * config/s390/s390.md: Use define_c_enum for the unspec constant
25524         definitions.
25526 2011-03-18  Richard Henderson  <rth@redhat.com>
25527             Jakub Jelinek  <jakub@redhat.com>
25529         PR bootstrap/48161
25530         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25531         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25533 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
25535         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25536         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25537         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25538         Change return type to bool.
25539         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25541 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25543         PR debug/48163
25544         * var-tracking.c (prepare_call_arguments): If CALL target
25545         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25546         pc instead of looking it up using cselib_lookup and use
25547         Pmode for it if x has VOIDmode.
25548         * dwarf2out.c (gen_subprogram_die): If also both first and
25549         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25551         PR debug/48163
25552         * function.c (assign_parms): For data.passed_pointer parms
25553         use MEM of data.entry_parm instead of data.entry_parm itself
25554         as DECL_INCOMING_RTL.
25555         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25556         also when passed and declared mode is the same, DECL_RTL
25557         is a MEM with pseudo as address and DECL_INCOMING_RTL is
25558         a MEM too.
25560 2011-03-16  Jeff Law  <law@redhat.com>
25562         PR rtl-optimization/37273
25563         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25564         handle them like argument loads from stack slots.  Do not double
25565         count memory for memory constants and argument loads from stack slots.
25567 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25569         PR debug/48160
25570         * var-tracking.c (prepare_call_arguments): Check SUBREG.
25572 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25574         PR target/48171
25575         * config/i386/i386.opt: Add Save to -mavx and -mfma.
25577 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25579         PR bootstrap/48153
25580         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25581         if dwarf_strict.
25582         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25583         Clear call_arg_locations and call_arg_loc_last always.
25585         PR middle-end/48152
25586         * var-tracking.c (prepare_call_arguments): If argument needs to be
25587         passed by reference, adjust argtype and mode.
25589 2011-03-17  Richard Guenther  <rguenther@suse.de>
25591         PR middle-end/48134
25592         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25593         a value make sure to fold the statement.
25595 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
25597         PR target/43872
25598         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25599         return condition with !cfun->calls_alloca.
25601 2011-03-17  Richard Guenther  <rguenther@suse.de>
25603         PR bootstrap/48148
25604         * lto-cgraph.c (input_overwrite_node): Clear the abstract
25605         origin for decls in other ltrans units.
25606         (input_varpool_node): Likewise.
25608 2011-03-17  Richard Guenther  <rguenther@suse.de>
25610         PR middle-end/48165
25611         * tree-object-size.c (compute_object_offset): Properly return
25612         the offset operand of MEM_REFs as sizetype.
25614 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25616         PR rtl-optimization/48141
25617         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25618         * dse.c: Include params.h.
25619         (active_local_stores_len): New variable.
25620         (add_wild_read, dse_step1): Clear it when setting active_local_stores
25621         to NULL.
25622         (record_store, check_mem_read_rtx): Decrease it when removing
25623         from the chain.
25624         (scan_insn): Likewise.  Increase it when adding to chain, if it
25625         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25626         set active_local_stores to NULL before the addition.
25627         * Makefile.in (dse.o): Depend on $(PARAMS_H).
25629         PR rtl-optimization/48141
25630         * dse.c (record_store): If no positions are needed in an insn
25631         that cannot be deleted, at least unchain it from active_local_stores.
25633 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
25635         PR debug/47510
25636         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25637         (lookup_type_die_strip_naming_typedef): ... here.
25638         (get_context_die): Use it.
25639         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25640         the anonymous struct named by the naming typedef.
25642 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25644         PR target/48154
25645         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25646         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25648 2011-03-16  Jeff Law  <law@redhat.com>
25650         * tree-vrp.c (identify_jump_threads): Slightly simplify type
25651         check for operands of conditional.  Allow type to be a pointer.
25653 2011-03-16  Richard Guenther  <rguenther@suse.de>
25655         PR tree-optimization/48149
25656         * fold-const.c (fold_binary_loc): Fold
25657         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25659 2011-03-16  Richard Guenther  <rguenther@suse.de>
25661         PR tree-optimization/26134
25662         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25663         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25664         (non_rewritable_mem_ref_base): Handle complex type component
25665         accesses, constrain offsets for vector and complex extracts
25666         more properly.
25668 2011-03-16  Richard Guenther  <rguenther@suse.de>
25670         PR tree-optimization/48146
25671         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25672         operands avoiding the need for renaming.
25674 2011-03-16  Richard Guenther  <rguenther@suse.de>
25676         * gimple-fold.c (maybe_fold_reference): Open-code relevant
25677         constant folding.  Move MEM_REF canonicalization first.
25678         Rely on fold_const_aggregate_ref for initializer folding.
25679         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25681 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25683         PR middle-end/48136
25684         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25685         arg0/arg1 or their arguments are always fold converted to matching
25686         types.
25688         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25689         to nargs.
25691 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25693         PR lto/46944
25694         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25695         Handle in-tree gold.
25696         (ld_vers): Extract binutils version for gold.
25697         (gcc_cv_ld_hidden): Handle gold here.
25698         (gcc_cv_lto_plugin): Determine level of linker plugin support.
25699         * configure: Regenerate.
25700         * config.in: Regenerate.
25701         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25702         -fuse-linker-plugin otherwise.
25703         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
25704         (LINK_COMMAND_SPEC): Use it.
25705         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25707 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25709         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25710         * calls.c: Remove debug.h include.
25711         (emit_call_1): Don't call virtual_call_token debug hook.
25712         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25713         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25714         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25715         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25716         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25717         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25718         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25719         dwarf2out_virtual_call): Remove.
25720         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25721         copy_call_info and virtual_call hooks.
25722         (dwarf2out_init): Don't initialize vcall_insn_table,
25723         debug_dcall_section and debug_vcall_section.
25724         (prune_unused_types): Don't mark nodes from dcall_table.
25725         (dwarf2out_finish): Don't output dcall or vcall tables.
25726         * final.c (final_scan_insn): Don't call direct_call or
25727         virtual_call debug hooks.
25728         * debug.h (struct gcc_debug_hooks): Remove direct_call,
25729         virtual_call_token, copy_call_info and virtual_call hooks.
25730         (debug_nothing_uid): Remove prototype.
25731         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25732         copy_call_info and virtual_call hooks.
25733         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25734         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25735         * debug.c (do_nothing_debug_hooks): Likewise.
25736         (debug_nothing_uid): Remove.
25737         * doc/invoke.texi (-fenable-icf-debug): Remove.
25738         * common.opt (-fenable-icf-debug): Likewise.
25740         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25741         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25742         call's MEM.  Handle functions returning aggregate through a hidden
25743         first pointer.  For virtual calls add clobbered pc to call arguments
25744         chain.
25745         * dwarf2out.c (gen_subprogram_die): Emit
25746         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25747         can't be emitted.
25749         PR debug/45882
25750         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25751         * rtl.h (ENTRY_VALUE_EXP): Define.
25752         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25753         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25754         * print-rtl.c (print_rtx): Likewise.
25755         * gengtype.c (adjust_field_rtx_def): Likewise.
25756         * var-tracking.c (vt_add_function_parameter): Adjust
25757         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25758         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25759         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25760         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25761         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25763         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25764         Call var_location debug hook even on CALL_INSNs.
25765         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25766         * rtl.def (ENTRY_VALUE): New.
25767         * dwarf2out.c: Include cfglayout.h.
25768         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25769         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25770         (struct call_arg_loc_node): New type.
25771         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25772         tail_call_site_count): New variables.
25773         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25774         DW_TAG_GNU_call_site_parameter.
25775         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25776         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25777         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25778         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25779         and DW_AT_GNU_all_source_call_sites.
25780         (mem_loc_descriptor): Handle ENTRY_VALUE.
25781         (add_src_coords_attributes): Don't add enything if
25782         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25783         (dwarf2out_abstract_function): Save and clear call_arg_location,
25784         call_site_count and tail_call_site_count around dwarf2out_decl call.
25785         (gen_call_site_die): New function.
25786         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25787         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25788         (dwarf2out_function_decl): Clear call_arg_locations,
25789         call_arg_loc_last, set call_site_count and tail_call_site_count
25790         to -1 and free block_map.
25791         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25792         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
25793         followed by any real instructions.
25794         (dwarf2out_begin_function): Set call_site_count and
25795         tail_call_site_count to 0.
25796         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25797         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25798         attempt to force a DIE for it and worst case remove the attribute.
25799         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25800         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25801         the decl itself.
25802         * var-tracking.c: Include tm_p.h.
25803         (vt_stack_adjustments): For calls call note_register_arguments.
25804         (argument_reg_set): New variable.
25805         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25806         ensure the VALUE is resolved.
25807         (call_arguments): New variable.
25808         (prepare_call_arguments): New function.
25809         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25810         (struct expand_loc_callback_data): Add ignore_cur_loc field.
25811         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25812         always use the best expression.
25813         (vt_expand_loc): Add ignore_cur_loc argument.
25814         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25815         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25816         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25817         note for all calls.
25818         (vt_add_function_parameter): Use cselib_lookup_from_insn.
25819         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25820         argument.  Don't call cselib_preserve_only_values and
25821         cselib_reset_table.
25822         (note_register_arguments): New function.
25823         (vt_initialize): Compute argument_reg_set.  Call
25824         vt_add_function_parameters before processing basic blocks instead of
25825         afterwards.  For calls call prepare_call_arguments before calling
25826         cselib_process_insn.
25827         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25828         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25829         (var-tracking.o): Depend on $(TM_P_H).
25830         * cfglayout.h (insn_scope): New prototype.
25831         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25832         * cfglayout.c (insn_scope): No longer static.
25833         * insn-notes.def (CALL_ARG_LOCATION): New.
25834         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25835         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25836         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25837         nothing for DECL_EXTERNAL BLOCK_VARS.
25839 2011-03-16  Alan Modra  <amodra@gmail.com>
25841         PR target/45844
25842         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25843         create invalid offset address for vsx splat insn.
25844         * config/rs6000/predicates.md (splat_input_operand): New.
25845         * config/rs6000/vsx.md (vsx_splat_*): Use it.
25847 2011-03-15  Xinliang David Li  <davidxl@google.com>
25849         PR c/47837
25850         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25851         (normalize_preds): New function.
25852         (is_use_properly_guarded): Normalize def predicates.
25854 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25856         PR target/46788
25857         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25858         in the output template.
25860 2011-03-15  Richard Guenther  <rguenther@suse.de>
25862         PR middle-end/47650
25863         * tree-pretty-print.c (dump_function_declaration): Properly
25864         dump unprototyped and varargs function types.
25866 2011-03-15  Richard Guenther  <rguenther@suse.de>
25868         PR tree-optimization/13954
25869         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25870         and friends.
25872 2011-03-15  Richard Guenther  <rguenther@suse.de>
25874         PR tree-optimization/48037
25875         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25876         selects into BIT_FIELD_REFs.
25877         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25878         vector select.
25880 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
25882         PR tree-optimization/48129
25883         * builtins.c (fold_builtin_snprintf): Convert to type of
25884         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25885         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25887 2011-03-15  Richard Guenther  <rguenther@suse.de>
25889         PR tree-optimization/41490
25890         * tree-ssa-dce.c (propagate_necessity): Handle returns without
25891         value but with VUSE.
25892         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25893         return statements.
25894         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25895         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25896         * tree-tailcall.c (find_tail_calls): Ignore returns.
25898 2011-03-15  Richard Guenther  <rguenther@suse.de>
25900         PR middle-end/48031
25901         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25902         or variable-indexed array accesses when in gimple form.
25904 2011-03-15  Richard Guenther  <rguenther@suse.de>
25906         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25908 2011-03-15  Alan Modra  <amodra@gmail.com>
25910         PR target/48032
25911         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25912         presume symbol_refs without a symbol_ref_decl are suitably
25913         aligned, nor other trees we may see here.  Handle anchor symbols.
25914         (legitimate_constant_pool_address_p): Comment.  Add mode param.
25915         Check cmodel=medium addresses.  Adjust all calls.
25916         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25917         creating cmodel=medium optimized access to locals.
25918         * config/rs6000/constraints.md (R): Pass QImode to
25919         legitimate_constant_pool_address_p.
25920         * config/rs6000/predicates.md (input_operand): Pass mode to
25921         legitimate_constant_pool_address_p.
25922         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25923         Update prototype.
25925 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25927         PR target/48053
25928         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25929         64-bit constants being loaded into registers other than GPRs such
25930         as loading 0 into a VSX register.
25932 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25934         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25936 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25938         PR middle-end/47917
25939         * builtins.c (fold_builtin_snprintf): New function.
25940         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25941         (fold_builtin_4): Likewise.
25943         PR middle-end/38878
25944         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25945         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
25946         and C - X == X also strip nops from +/-/p+ operand.
25947         When optimizing -X == C, fold C to arg0's type.
25949         PR debug/47946
25950         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25951         emit it as add_AT_int instead of add_AT_unsigned.
25953 2011-03-14  Tom Tromey  <tromey@redhat.com>
25955         * unwind-dw2.c: Include sys/sdt.h if it exists.
25956         (_Unwind_DebugHook): Use STAP_PROBE2.
25957         * config.in, configure: Rebuild.
25958         * configure.ac: Check for sys/sdt.h.
25960 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
25962         * config/i386/i386.md (ROUND_FLOOR): New constant.
25963         (ROUND_CEIL): Ditto.
25964         (ROUND_TRUNC): Ditto.
25965         (ROUND_MXCSR): Ditto.
25966         (ROUND_NO_EXC): Ditto.
25967         (rint<mode>2): Use new defines instead of numerical constants.
25968         (floor<mode>2): Ditto.
25969         (ceil<mode>2): Ditto.
25970         (btrunc<mode>2): Ditto.
25971         * config/i386/i386-builtin-types.def: Define ROUND function type
25972         aliases.
25973         * config/i386/i386.c (enum ix86_builtins): Add
25974         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25975         (struct builtin_description): Add
25976         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25977         (ix86_expand_sse_round): New static function.
25978         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25979         function types.
25980         (ix86_builtin_vectorized_function): Handle
25981         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25983 2011-03-14  Tom Tromey  <tromey@redhat.com>
25985         * c-parser.c (c_parser_asm_string_literal): Clear
25986         warn_overlength_strings.
25988 2011-03-14  Tom Tromey  <tromey@redhat.com>
25990         * c-parser.c (disable_extension_diagnostics): Save
25991         warn_overlength_strings.
25992         (restore_extension_diagnostics): Restore warn_overlength_strings.
25994 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25996         * BASE-VER: Change to 4.7.0.
25998 2011-03-14  Richard Guenther  <rguenther@suse.de>
26000         PR middle-end/48098
26001         * tree.c (build_vector_from_val): Adjust assert to requirements
26002         and reality.
26004 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26006         PR bootstrap/48102
26007         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
26009 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
26011         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
26012         terms of target_flags_explicit. Adjust copyright year.
26014         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
26015         * config/rs6000/t-freebsd: New file. Add override for
26016         LIB2FUNCS_EXTRA.
26018 2011-03-13  Chris Demetriou  <cgd@google.com>
26020         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
26021         (-fno-diagnostics-show-option): this, to reflect current default.
26022         (-Werror=): Update text about -fno-diagnostics-show-option.
26024 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
26026         PR target/48053
26027         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26028         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
26029         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
26030         mode is not V2DImode or V2DFmode.
26031         (vspltis_constant): Do not handle V2DImode and V2DFmode.
26032         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
26033         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
26034         registers to 0.
26035         (movdi_internal64): Likewise.
26037 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
26039         PR tree-optimization/47127
26040         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
26041         parameter.
26042         (set_cloog_options): Same.
26043         (scop_to_clast): Same.
26044         (print_clast_stmt): Do not call cloog_state_malloc and
26045         cloog_state_free.
26046         (print_generated_program): Same.
26047         (gloog): Same.
26048         * graphite-clast-to-gimple.h (cloog_state): Declared.
26049         (scop_to_clast): Adjust declaration.
26050         * graphite.c (cloog_state): Defined here.
26051         (graphite_initialize): Call cloog_state_malloc.
26052         (graphite_finalize): Call cloog_state_free.
26054 2011-03-11  Jason Merrill  <jason@redhat.com>
26056         * attribs.c (lookup_attribute_spec): Take const_tree.
26057         * tree.h: Adjust.
26059 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
26061         * config/sparc/sparc.c (sparc_option_override): Use
26062         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
26064 2011-03-11  Richard Guenther  <rguenther@suse.de>
26066         PR tree-optimization/48067
26067         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
26068         multiplication result will be only used once on the target
26069         stmt.
26071 2011-03-11  Richard Guenther  <rguenther@suse.de>
26073         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
26075 2011-03-11  Richard Guenther  <rguenther@suse.de>
26077         PR lto/48073
26078         * tree.c (find_decls_types_r): Do not walk types only reachable
26079         from IDENTIFIER_NODEs.
26081 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26083         PR middle-end/48044
26084         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
26085         all vnode->force_output nodes as needed.
26087 2011-03-11  Jason Merrill  <jason@redhat.com>
26089         PR c++/48069
26090         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26091         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26093 2011-03-11  Martin Jambor  <mjambor@suse.cz>
26095         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26096         cgraph_node.
26098 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26100         PR tree-optimization/48063
26101         * ipa-inline.c (cgraph_decide_inlining): Don't try to
26102         inline functions called once if !tree_can_inline_p (node->callers).
26104 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
26106         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26107         extra_objs.
26108         * config/score/score3.c: Delete.
26109         * config/score/score3.h: Delete.
26110         * config/score/mul-div.S: Delete.
26111         * config/score/sfp-machine.h: Add new file.
26112         * config/score/constraints.md: Add new file.
26113         * config/score/t-score-softfp: Add new file.
26114         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26115         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26116         (score7_extra_constraint): Delete.
26117         (score7_option_override): Remove unused code.
26118         * config/score/score.c: Remove score3 and score5 define and code.
26119         * config/score/score.h: Remove score3 and score5 define and code.
26120         * config/score/score.md: Remove score3 template and unusual insn.
26121         * config/score/score.opt: Remove score3 and score5 options.
26123 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26125         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26126         when _HPUX_SOURCE is defined.
26127         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26129 2011-03-10  Jason Merrill  <jason@redhat.com>
26131         PR c++/48029
26132         * stor-layout.c (layout_type): Don't set structural equality
26133         on arrays of incomplete type.
26134         * tree.c (type_hash_eq): Handle comparing them properly.
26136 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26138         PR debug/48043
26139         * config/s390/s390.c (s390_delegitimize_address): Make sure the
26140         result mode matches original rtl mode.
26142 2011-03-10  Nick Clifton  <nickc@redhat.com>
26144         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26145         (andsi3, andsi3_flags): Fix timings for three operand alternative.
26147 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
26149         PR rtl-optimization/47866
26150         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26151         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26152         if target wasn't scalar.
26153         * function.c (assign_stack_temp_for_type): Assert that neither
26154         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26155         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26156         macro.
26157         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26159 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26161         * config/s390/s390-protos.h (s390_label_align): New prototype.
26162         * config/s390/s390.c (s390_label_align): New function.
26163         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26165 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26167         PR target/47755
26168         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26169         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
26170         (output_vec_const_move): Ditto.
26172 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
26174         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26175         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26176         * config/mips/mips.c (mips_preferred_reload_class): Make static.
26177         Change 'rclass' argument and result type to reg_class_t.
26178         (TARGET_PREFERRED_RELOAD_CLASS): Define.
26180 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
26182         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26183         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26184         (TARGET_MEMORY_MOVE_COST): Define.
26185         (avr_register_move_cost, avr_memory_move_cost): New Functions.
26187 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
26189         PR debug/47881
26190         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26191         removed anything.
26193         PR tree-optimization/48022
26194         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26195         for EQ/NE_EXPR.
26197 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
26199         PR debug/47991
26200         * var-tracking.c (find_use_val): Return NULL for
26201         cui->sets && cui->store_p BLKmode MEMs.
26203 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
26205         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26206         Remove.
26207         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26208         xstormy16_print_operand_address): Remove.
26209         * config/stormy16/stormy16.c (xstormy16_print_operand,
26210         xstormy16_print_operand_address): Make static.
26211         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26213 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
26215         PR target/47862
26216         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26217         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26218         before definition.
26220 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
26222         PR bootstrap/48000
26223         * cfgloopmanip.c (fix_bb_placements): Return immediately
26224         if FROM is BASE_LOOP's header.
26226 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
26228         * gimplify.c (gimplify_function_tree): Fix building calls
26229         to __builtin_return_address.
26231 2011-03-07  Alan Modra  <amodra@gmail.com>
26233         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26234         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26235         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26236         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26237         return_mode args.
26238         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26239         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26240         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26241         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26242         * config/rs6000/rs6000.c
26243         (rs6000_elf_end_indicate_exec_stack): Rename to..
26244         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
26245         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
26246         (rs6000_file_start): ..here.
26247         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26248         file scope variables.
26249         (call_ABI_of_interest): New function.
26250         (init_cumulative_args): Set above vars when function return value
26251         is a float, vector, or small struct.
26252         (rs6000_function_arg_advance_1): Likewise for function args.
26253         (rs6000_va_start): Set rs6000_passes_float if variable arg function
26254         references float args.
26256 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
26258         * doc/cfg.texi: Remove "See" before @ref.
26259         * doc/invoke.texi: Likewise.
26261 2011-03-05  Jason Merrill  <jason@redhat.com>
26263         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26265 2011-03-05  Anthony Green  <green@moxielogic.com>
26267         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26269 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
26271         PR rtl-optimization/47899
26272         * cfgloopmanip.c (fix_bb_placements): Fix first argument
26273         to flow_loop_nested_p when moving the loop upward.
26275 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
26277         PR target/47719
26278         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
26280 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
26282         PR tree-optimization/47967
26283         * ipa-cp.c (build_const_val): Return NULL instead of creating
26284         VIEW_CONVERT_EXPR for mismatching sizes.
26285         (ipcp_create_replace_map): Return NULL if build_const_val failed.
26286         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26287         give up on versioning.
26289 2011-03-05  Alan Modra  <amodra@gmail.com>
26291         PR target/47986
26292         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26293         full cmodel medium/large lo_sum + high addresses.
26295 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26297         * config/s390/s390.c (s390_decompose_address): Reject non-literal
26298         pool references in UNSPEC_LTREL_OFFSET.
26300 2011-03-04  Jan Hubicka  <jh@suse.cz>
26302         PR lto/47497
26303         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26304         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26305         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26306         Add node pointers.
26307         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26308         cgraph_add_thunk): Add node pointers.
26309         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26310         associated to right node.
26311         (input_node): Update use of cgraph_same_body_alias
26312         and cgraph_add_thunk.
26314 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26316         * config/i386/i386.opt (mprefer-avx128): New flag.
26317         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26318         modes when the flag -mprefer-avx128 is on.
26320 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
26322         * dwarf2out.c (compare_loc_operands): Fix address handling.
26324 2011-03-04  Alan Modra  <amodra@gmail.com>
26326         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26328 2011-03-04  Richard Guenther  <rguenther@suse.de>
26330         PR middle-end/47968
26331         * expmed.c (extract_bit_field_1): Prefer vector modes that
26332         vec_extract patterns can handle.
26334 2011-03-04  Richard Guenther  <rguenther@suse.de>
26336         PR middle-end/47975
26337         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26339 2011-03-04  Richard Henderson  <rth@redhat.com>
26341         * explow.c (emit_stack_save): Remove 'after' parameter.
26342         (emit_stack_restore): Likewise.
26343         * expr.h: Update to match.
26344         * builtins.c, calls.c, stmt.c: Likewise.
26345         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26346         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26347         * function.c (expand_function_end): Insert the emit_stack_save
26348         sequence before parm_birth_insn instead of after.
26350 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
26352         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26353         (ssse3_pmaddubsw128): Ditto.
26354         (ssse3_pmaddubsw): Ditto.
26356 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
26358         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26360 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
26362         PR c/47963
26363         * gimplify.c (omp_add_variable): Only call omp_notice_variable
26364         on TYPE_SIZE_UNIT if it is a DECL.
26366         PR debug/47283
26367         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26368         first operand is not is_gimple_mem_ref_addr, try to fold it.
26369         If the operand still isn't is_gimple_mem_ref_addr, clear
26370         MEM_EXPR on op0.
26372 2011-03-03  Richard Guenther  <rguenther@suse.de>
26374         PR middle-end/47283
26375         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26376         match comment.
26377         (refs_may_alias_p_1): For release branches return true if
26378         we are confused by our input.
26380 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26382         * config/s390/s390.c (s390_function_value): Rename to ...
26383         (s390_function_and_libcall_value): ... this.
26384         (s390_function_value): New function.
26385         (s390_libcall_value): New function.
26386         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26387         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26388         target macro definitions.
26389         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26391 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
26393         * config/i386/freebsd64.h (CC1_SPEC): Define.
26394         * config/i386/linux64.h (CC1_SPEC): Define.
26395         * config/i386/x86-64.h (CC1_SPEC): Don't define.
26397 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
26399         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26400         Remove.
26401         * config/stormy16/stormy16.c: Include reload.h.
26402         (xstormy16_memory_move_cost): New function.
26403         (TARGET_MEMORY_MOVE_COST): Define.
26405 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
26407         PR rtl-optimization/47925
26408         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26409         with side effects.  Remove the more-specific check for volatile asms.
26411 2011-03-02  Alan Modra  <amodra@gmail.com>
26413         PR target/47935
26414         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26415         toc relative addresses for valid offsets.
26417 2011-03-01  Richard Guenther  <rguenther@suse.de>
26419         PR tree-optimization/47890
26420         * tree-vect-loop.c (get_initial_def_for_induction): Set
26421         related stmt properly.
26423 2011-03-01  Richard Guenther  <rguenther@suse.de>
26425         PR lto/47924
26426         * lto-streamer.c (lto_record_common_node): Also register
26427         the canonical type.
26429 2011-03-01  Richard Guenther  <rguenther@suse.de>
26431         PR lto/46911
26432         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26433         Do not stream DECL_ABSTRACT_ORIGIN.
26434         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26435         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26436         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26437         Do not stream DECL_ABSTRACT_ORIGIN.
26438         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26439         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26441 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
26443         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26444         FUNCTION_VALUE_REGNO_P): Remove.
26445         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26446         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26447         Add 'outgoing' argument.
26448         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26449         function.
26450         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26451         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26453 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
26455         PR debug/28047
26456         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26457         (lookup_filename): Likewise.
26458         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26460 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
26461             Jakub Jelinek  <jakub@redhat.com>
26463         PR middle-end/47893
26464         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26465         (assign_stack_local_1): Change last argument type to int.
26466         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26467         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
26468         don't record padding space into frame_space_list nor use those areas.
26469         (assign_stack_local): Adjust caller.
26470         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26471         of assign_stack_local, pass 0 as last argument.
26472         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26473         callers.
26475 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
26477         PR debug/47283
26478         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26479         Use target address_mode and pointer_mode hooks instead of hardcoded
26480         Pmode and ptr_mode.  Handle some simple cases of extending if
26481         POINTERS_EXTEND_UNSIGNED < 0.
26482         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26483         Call convert_debug_memory_address.
26484         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26485         convert_debug_memory_address.
26487         PR middle-end/46790
26488         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26489         * configure: Regenerated.
26490         * config.in: Regenerated.
26491         * varasm.c (default_function_section): Return NULL
26492         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26494 2011-02-28  Martin Jambor  <mjambor@suse.cz>
26496         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26497         the description to match the printed values.
26499 2011-02-28  Richard Guenther  <rguenther@suse.de>
26501         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26502         of the copied scope tree.
26504 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26506         * doc/extend.texi (Function Attributes): Avoid deeply (and
26507         wrongly) nested tables.
26509 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
26511         PR middle-end/47903
26512         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26513         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26514         r isn't op0 nor op1.
26516 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26518         * config/avr/avr.md: Remove magic comment for emacs.
26520 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26522         PR target/45261
26523         * config/avr/avr.c (avr_option_override): Use error on bad options.
26524         (avr_help): New function.
26525         (TARGET_HELP): Define.
26527 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
26529         PR target/42240
26530         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26531         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26533 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
26535         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26536         (ARM Options): Ditto.
26537         (i386 and x86-64 Options): Ditto.
26538         (RX Options): Ditto.
26539         (SPARC Options): Ditto.
26541 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
26543         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26544         FreeBSD 6 and later.  Generally use cpu generic.
26546 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26548         * doc/cpp.texi: Update copyright years.
26550 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
26552         PR target/46898
26553         * config/lm32/lm32.md (ashrsi3): Added needed variable.
26555 2011-02-25  Jon Beniston  <jon@beniston.com>
26557         PR target/46898
26558         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26559         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26560         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26561         (lm32_block_move_inline): Add type cast to remove warning.
26562         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26563         (gen_int_relational): Move declarations to start of function.
26565 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
26567         PR tree-optimization/45470
26568         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26569         can throw internally only.
26570         * tree-vect-stmts.c (vectorizable_call): Likewise.
26572 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
26574         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26575         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26576         * config/stormy16/stormy16-protos.h
26577         (xstormy16_preferred_reload_class): Remove.
26578         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26579         static. Change 'rclass' argument and return type to reg_class_t.
26580         (TARGET_PREFERRED_RELOAD_CLASS,
26581         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26583 2011-02-24  Richard Guenther  <rguenther@suse.de>
26585         * lto-streamer-in.c (input_bb): Do not find referenced vars
26586         in debug statements.
26588 2011-02-23  Jason Merrill  <jason@redhat.com>
26590         * common.opt (fabi-version): Document v5 and v6.
26592 2011-02-23  Richard Guenther  <rguenther@suse.de>
26594         PR tree-optimization/47849
26595         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26597 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26599         * opts-common.c (decode_cmdline_option): Print empty string
26600         argument as "" in decoded->orig_option_with_args_text.
26601         * gcc.c (execute): Print empty string argument as ""
26602         in the verbose output.
26603         (do_spec_1): Keep empty string argument.
26605 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
26607         * config.gcc: Declare score-* and crx-* obsolete.
26609 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26611         PR rtl-optimization/47763
26612         * web.c (web_main): Ignore naked clobber when replacing register.
26614 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
26616         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26617         Remove.
26619 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26621         PR doc/47848
26622         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26624 2011-02-22  Mike Stump  <mikestump@comcast.net>
26626         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26627         assembler.
26628         * configure: Regenerate.
26630 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
26632         PR rtl-optimization/46002
26633         * ira-color.c (update_copy_costs): Change class intersection
26634         test to reg_class_contents[] test of 'hard_regno'.
26636 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
26638         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26639         than Driver option.
26640         * config/hpux11.opt (mt): Likewise.
26641         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26642         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26643         * config/vax/elf.opt (mno-asm-pic): Likewise.
26644         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26646 2011-02-21  Mike Stump  <mikestump@comcast.net>
26648         PR target/47822
26649         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26650         tree so we can get save the type.
26651         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26652         for CFString instead of trying to use past the end of the builtins.
26653         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26654         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26655         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26656         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26657         Rename to darwin_builtin_cfstring.
26658         (darwin_init_cfstring_builtins): Return the built type.
26660 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
26662         PR target/47840
26663         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26664         (_mm256_insert_epi64): Use _mm_insert_epi64.
26666 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
26668         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26669         * config/stormy16/stormy16-protos.h
26670         (xstormy16_mode_dependent_address_p): Remove.
26671         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26672         Make static. Change return type to bool. Change argument type to
26673         const_rtx. Remove dead code.
26674         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26676 2011-02-21  Richard Guenther  <rguenther@suse.de>
26678         PR lto/47820
26679         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26680         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26681         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26682         TUs context.
26683         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26684         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26686 2011-02-20  Richard Guenther  <rguenther@suse.de>
26688         PR lto/47822
26689         * tree.c (free_lang_data_in_decl): Clean builtins from
26690         the TU decl BLOCK_VARS.
26692 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
26694         PR debug/47620
26695         PR debug/47630
26696         * haifa-sched.c (fix_tick_ready): Skip tick computation
26697         for debug insns.
26699 2011-02-19  Richard Guenther  <rguenther@suse.de>
26701         PR lto/47647
26702         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26703         Remove lazy BLOCK_VARS streaming.
26704         (lto_input_ts_block_tree_pointers): Likewise.
26705         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26707 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26709         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26711 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26713         * config/i386/biarch32.h, config/i386/mach.h,
26714         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26716 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
26718         PR target/47800
26719         * config/i386/i386.md (peephole2 for shift and plus): Use
26720         operands[1] original mode in the first insn.
26722 2011-02-18  Mike Stump  <mikestump@comcast.net>
26724         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26726 2011-02-18  Jan Hubicka  <jh@suse.cz>
26728         PR middle-end/47788
26729         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26730         to zero when the function is not inlinable at all.
26732 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26734         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26735         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26736         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26737         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26738         * config/pa/t-pa64: Likewise.
26739         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26741 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26743         PR driver/47787
26744         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26746 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26748         PR target/47792
26749         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26751 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
26753         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26754         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26755         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26756         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26757         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26758         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26759         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26760         m32r_load_postinc_p, m32r_store_preinc_predec_p,
26761         m32r_legitimate_address_p): New functions.
26762         * config/m32r/constraints.md (constraint "S"): Don't use
26763         STORE_PREINC_PREDEC_P.
26764         (constraint "U"): Don't use LOAD_POSTINC_P.
26766 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
26768         PR rtl-optimization/46178
26769         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26770         compute ira_hard_regno_cover_class[].
26772 2011-02-18  Richard Guenther  <rguenther@suse.de>
26774         PR lto/47798
26775         * lto-streamer.h (lto_global_var_decls): Declare.
26776         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26777         statics for global var processing.
26779 2011-02-18  Richard Guenther  <rguenther@suse.de>
26781         PR tree-optimization/47737
26782         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26783         edge dominance check.
26785 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26787         PR debug/47780
26788         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26789         avoid invalid rtx sharing.
26791 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
26793         * doc/cpp.texi (Obsolete Features): Add background on the
26794         origin of assertions.
26796 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
26798         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26799         objc_abi == 2.
26800         * config/darwin.c (output_objc_section_asm_op): Added support for
26801         ABI v1 and v2.
26802         (is_objc_metadata): New.
26803         (darwin_objc2_section): New.
26804         (darwin_objc1_section): New.
26805         (machopic_select_section): Added support for ABI v1 and v2.
26806         (darwin_emit_objc_zeroed): New.
26807         (darwin_output_aligned_bss): Detect objc metadata and treat it
26808         appropriately.
26809         (darwin_asm_output_aligned_decl_common): Same.
26810         (darwin_asm_output_aligned_decl_local): Same.
26811         * config/darwin-sections.def: Updated for ABI v1 and v2.
26812         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26813         compiling Objective-C code for the NeXT runtime, default to using
26814         ABI version 0 for 32-bit, and version 2 for 64-bit.
26816 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26818         * common.opt (optimize_fast): New Variable.
26819         * opts.c (default_options_optimization): Use opts->x_optimize_fast
26820         instead of local variable ofast.
26822 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
26824         * doc/invoke.texi (fobjc-abi-version): Documented.
26825         (fobjc-nilcheck): Documented.
26826         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26827         version.
26829 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26831         PR driver/47390
26832         * common.opt (export-dynamic): New Driver option.
26833         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26835 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26837         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26839 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
26840             Jan Hubicka  <jh@suse.cz>
26842         PR debug/47106
26843         PR debug/47402
26844         * cfgexpand.c (account_used_vars_for_block): Remove.
26845         (estimated_stack_frame_size): Use referenced vars.
26846         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26847         that were referenced in the original function.  Test src_fn
26848         rather than cfun.  Drop redundant get_var_ann.
26849         (setup_one_parameter): Drop redundant get_var_ann.
26850         (declare_return_variable): Likewise.
26851         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26852         (copy_arguments_for_versioning): Drop redundant get_var_ann.
26853         * ipa-inline.c (compute_inline_parameters): Do not compute
26854         disregard_inline_limits here.
26855         (compute_inlinable_for_current, pass_inlinable): New.
26856         (pass_inline_parameters): Require PROP_referenced_vars.
26857         * cgraphunit.c (cgraph_process_new_functions): Don't run
26858         compute_inline_parameters explicitly unless function is in SSA form.
26859         (cgraph_analyze_function): Set .disregard_inline_limits.
26860         * tree-sra.c (convert_callers): Compute inliner parameters
26861         only for functions already in SSA form.
26863 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26865         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26866         -mlittle-endian-data.
26868 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26870         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26871         -mno-fpu, not -fpu and -no-fpu.
26872         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26873         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26875 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
26877         PR target/43653
26878         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26879         input reload with PLUS RTX.
26881 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26883         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26884         of InverseVar(MDMX).
26886 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26888         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26889         --m4-340.
26891 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26893         * config/mn10300/mn10300.opt (mno-crt0): New.
26895 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26897         * config/m68k/uclinux.opt (static-libc): New Driver option.
26899 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26901         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26903 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26905         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26906         %{muser-extend-enabled}.
26908 2011-02-16  Richard Guenther  <rguenther@suse.de>
26910         PR tree-optimization/47738
26911         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26912         the TODO from tree_predictive_commoning.
26914 2011-02-15  Jeff Law  <law@redhat.com>
26916         Revert
26917         2011-01-25  Jeff Law  <law@redhat.com>
26919         PR rtl-optimization/37273
26920         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26921         handle them like argument loads from stack slots.  Do not double
26922         count memory for memory constants and argument loads from stack slots.
26924 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26926         PR target/47755
26927         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26928         mode for vector constants.  Remove code that checks for TImode.
26930 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26932         PR debug/47106
26933         PR debug/47402
26934         * cgraph.h (compute_inline_parameters): Return void.
26935         * ipa-inline.c (compute_inline_parameters): Adjust.
26937 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26939         PR debug/47106
26940         PR debug/47402
26941         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26942         rather than decl.
26943         * cfgexpand.c (estimated_stack_frame_size): Likewise.
26944         * ipa-inline.c (compute_inline_parameters): Adjust.
26946 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26948         PR debug/47106
26949         PR debug/47402
26950         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26951         Adjust all users.  Pass FN to...
26952         * tree-flow-inline.h (first_referenced_var): ... this.  Add
26953         fn argument.
26954         * ipa-struct-reorg.c: Adjust.
26955         * tree-dfa.c: Adjust.
26956         * tree-into-ssa.c: Adjust.
26957         * tree-sra.c: Adjust.
26958         * tree-ssa-alias.c: Adjust.
26959         * tree-ssa-live.c: Adjust.
26960         * tree-ssa.c: Adjust.
26961         * tree-ssanames.c: Adjust.
26962         * tree-tailcall.c: Adjust.
26964 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26966         PR debug/47106
26967         PR debug/47402
26968         * tree-flow.h (referenced_var_lookup): Add fn parameter.
26969         Adjust all callers.
26970         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26971         * tree-flow-inline.h: Adjust.
26972         * gimple-pretty-print.c: Adjust.
26973         * tree-into-ssa.c: Adjust.
26974         * tree-ssa.c: Adjust.
26975         * cfgexpand.c: Adjust.
26977 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26979         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26980         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26981         (EXTRA_CONSTRAINT): Delete.
26982         * config/iq2000/constraints.md: New file.
26983         * config/iq2000/iq2000.md: Include it.
26984         (define_insn ""): Delete.
26985         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26986         unsupported constraint letters from patterns.
26987         (call_value, call_value_internal1): Likewise.
26988         (call_value_multiple_internal1): Likewise.
26990 2011-02-15  Nick Clifton  <nickc@redhat.com>
26992         * config/mn10300/mn10300.c: Include tm-constrs.h.
26993         (struct liw_data): New data structure describing an LIW candidate
26994         instruction.
26995         (extract_bundle): Use struct liw_data.  Allow small integer
26996         operands for some instructions.
26997         (check_liw_constraints): Use struct liw_data.  Remove swapped
26998         parameter.  Add comments describing the checks.  Fix bug when
26999         assigning the source of liw1 to the source of liw2.
27000         (liw_candidate): Delete.  Code moved into extract_bundle.
27001         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
27002         before swapping.
27003         * config/mn10300/predicates.md (liw_operand): New predicate.
27004         Allows registers and small integer constants.
27005         * config/mn10300/constraints.md (O): New constraint.  Accetps
27006         integers in the range -8 to +7 inclusive.
27007         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
27008         for moving a small integer into a register.  Give this alternative
27009         LIW attributes.
27010         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
27011         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
27012         using the J,K,L and M constraints,
27013         (liw): Remove SI mode on second operands to allow for HI and QI
27014         mode values.
27015         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
27016         instruction.
27018 2011-02-15  Richard Guenther  <rguenther@suse.de>
27020         PR tree-optimization/47743
27021         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
27022         for a non-type-compatible VN lookup bail out.
27024 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27026         * config/fr30/constraints.md: New file.
27027         * config/fr30/fr30.md: Include it.
27028         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
27029         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27030         (EXTRA_CONSTRAINT): Delete.
27032 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27034         * config/frv/constraints.md: New file.
27035         * config/frv/predicates.md: Include it.
27036         * config/frv/frv.c (reg_class_from_letter): Delete.
27037         (frv_option_override): Don't initialize it.
27038         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
27039         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
27040         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
27041         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27042         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
27043         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27044         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
27045         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
27046         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
27047         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
27048         (REG_CLASS_FROM_CONSTRAINT): Delete.
27050 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
27052         PR middle-end/47581
27053         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
27054         if frame size is 0 in a leaf function.
27056 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27058         PR pch/14940
27059         * config/alpha/host-osf.c: New file.
27060         * config/alpha/x-osf: New file.
27061         * config.host (alpha*-dec-osf*): Use it.
27063 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27065         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27066         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
27067         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
27068         (rx_mode_dependent_address_p): ...this. Make static. Change argument
27069         type to const_rtx.
27070         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27072 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27074         * config/stormy16/constraints.md: New file.
27075         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
27076         Use satisfies_constraint_Q and satisfies_constraint_R.
27077         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
27078         Delete.
27079         (xstormy16_legitiamte_address_p): Declare.
27080         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
27081         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27082         (EXTRA_CONSTRAINT): Delete.
27083         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
27084         Un-staticize.
27085         (xstormy16_extra_constraint_p): Delete.
27087 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27089         PR tree-optimization/46494
27090         * loop-unroll.c (split_edge_and_insert): Adjust comment.
27091         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27092         (pass_rtl_loop_done): Add TODO_verify_flow.
27093         * fwprop.c (pass_rtl_fwprop): Likewise.
27094         * modulo-sched.c (pass_sms): Likewise.
27095         * tree-ssa-dom.c (pass_dominator): Likewise.
27096         * tree-ssa-loop-ch.c (pass_ch): Likewise.
27097         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27098         (pass_tree_loop_done): Likewise.
27099         * tree-ssa-pre.c (execute_pre): Likewise.
27100         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27101         * tree-ssa-sink.c (pass_sink_code): Likewise.
27102         * tree-vrp.c (pass_vrp): Likewise.
27104 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27106         * config/v850/constraints.md: New file.
27107         * config/v850/v850.md: Include it.
27108         * config/v850/predicates.md (reg_or_0_operand): Use
27109         satisfies_constraint_G.
27110         (special_symbolref_operand): Use satisfies_constraint_K.
27111         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27112         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27113         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27114         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27115         (EXTRA_CONSTRAINT): Delete.
27116         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27117         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27118         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27120 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27122         PR target/47696
27123         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27124         description.
27126 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27128         * config/mcore/constraints.md: New file.
27129         * config/mcore/mcore.md: Include it.
27130         * config/mcore/mcore.c (reg_class_from_letter): Delete.
27131         * config/mcore/mcore.h (reg_class_from_letter): Delete.
27132         (REG_CLASS_FROM_LETTER): Delete.
27133         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27134         insn_const_int_ok_for_constraint.
27135         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27136         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27137         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27138         (EXTRA_CONSTRAINT): Delete.
27140 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27142         PR ada/41929
27143         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27144         (IS_SIGHANDLER): Define.
27145         (sparc64_is_sighandler): New function, split off from
27146         sparc64_fallback_frame_state.
27147         (sparc_is_sighandler): New function, split off from
27148         sparc_fallback_frame_state.
27149         (sparc64_fallback_frame_state): Merge with ...
27150         (sparc_fallback_frame_state): ... this into ...
27151         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27152         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
27153         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
27154         stack instead of hardcoded offsets.
27156 2011-02-14  Andriy Gapon  <avg@freebsd.org>
27158         PR target/45808
27159         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27161 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27163         * configure: Regenerate.
27165 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
27167         PR driver/45731
27168         * gcc.c (asm_options): Correct spec matching --target-help.
27170 2011-02-12  Martin Jambor  <mjambor@suse.cz>
27172         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27173         to gimple call error.
27175 2011-02-12  Mike Stump  <mikestump@comcast.net>
27177         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27178         comments in backslash regions.
27180 2011-02-12  Mike Stump  <mikestump@comcast.net>
27181             Jakub Jelinek  <jakub@redhat.com>
27182             Iain Sandoe  <iains@gcc.gnu.org>
27184         PR target/47324
27185         * dwarf2out.c (output_cfa_loc): When required, apply the
27186         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27187         (output_loc_sequence): Likewise.
27188         (output_loc_operands_raw): Likewise.
27189         (output_loc_sequence_raw): Likewise.
27190         (output_cfa_loc): Likewise.
27191         (output_loc_list): Suppress register number adjustment when
27192         calling output_loc_sequence()
27193         (output_die): Likewise.
27195 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
27197         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27198         Remove macros.
27199         * config/xtensa/xtensa.c (xtensa_register_move_cost,
27200         xtensa_memory_move_cost): New functions.
27201         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27203 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
27205         PR lto/47225
27206         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27207         in the current directory.
27208         * configure: Rebuilt.
27210 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27212         * config/darwin.c (darwin_override_options): Add a hunk missed
27213         from the commit of r168571.  Trim comment line lengths and
27214         correct indents of the preceding block.
27216 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27218         * gcc.c (driver_handle_option): Concatenate the argument to -F with
27219         the switch.
27221 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27223         * common.opt (nostartfiles): New Driver option.
27225 2011-02-11  Xinliang David Li  <davidxl@google.com>
27227         PR tree-optimization/47707
27228         * tree-chrec.c (convert_affine_scev): Keep type precision.
27230 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27232         PR tree-optimization/47420
27233         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27235 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
27237         PR rtl-optimization/47614
27238         * rtl.h (check_for_inc_dec): Declare.
27239         * dse.c (check_for_inc_dec): Externalize...
27240         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27241         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27243 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27245         PR driver/47678
27246         * gcc.c (main): Do not compile inputs if there were errors in
27247         option handling.
27248         * opts-common.c (read_cmdline_option): Check for wrong language
27249         after other error checks.
27251 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
27253         * cgraph.c: Fix comment typos.
27254         * cgraph.h: Likewise.
27255         * cgraphunit.c: Likewise.
27256         * ipa-cp.c: Likewise.
27257         * ipa-inline.c: Likewise.
27258         * ipa-prop.c: Likewise.
27259         * ipa-pure-const.c: Likewise.
27260         * ipa-ref.c: Likewise.
27261         * ipa-reference.c: Likewise.
27263 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27265         PR debug/47684
27266         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27268 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27270         PR testsuite/47400
27271         * doc/sourcebuild.texi (Require Support): Document
27272         dg-require-ascii-locale.
27274 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
27276         * doc/lto.texi (Write summary): Fix missing parentheses.
27278 2011-02-10  DJ Delorie  <dj@redhat.com>
27280         * config/m32c/m32c.c (m32c_option_override): Disable
27281         -fcombine-stack-adjustments until flag value tracking and compare
27282         optimization can be rewritten.
27284 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
27286         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27287         PROCESSOR_POWER7.
27288         (PROCESSOR_DEFAULT64): Likewise.
27290 2011-02-10  Richard Henderson  <rth@redhat.com>
27292         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27293         change from 2011-02-03.
27294         * config/rx/rx.c (flags_from_code): Likewise.
27295         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27296         is valid, n/pz otherwise.
27297         (rx_select_cc_mode): Return CCmode if Y is not zero.
27299 2011-02-10  Richard Guenther  <rguenther@suse.de>
27301         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27303 2011-02-10  Richard Guenther  <rguenther@suse.de>
27305         PR tree-optimization/47677
27306         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27308 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
27310         PR target/47665
27311         * combine.c (make_compound_operation): Only change shifts into
27312         multiplication for SCALAR_INT_MODE_P.
27314 2011-02-10  Jie Zhang  <jie@codesourcery.com>
27316         PR testsuite/47622
27317         Revert
27318         2011-02-05  Jie Zhang  <jie@codesourcery.com>
27319         PR debug/42631
27320         * web.c (entry_register): Don't clobber the number of the
27321         first uninitialized reference in used[].
27323 2011-02-09  Richard Guenther  <rguenther@suse.de>
27325         PR tree-optimization/47664
27326         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27327         all edges again.
27329 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
27331         PR target/46481
27332         PR target/47032
27333         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27334         PROCESSOR_POWER7.
27335         (PROCESSOR_DEFAULT64): Same.
27336         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27338 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27340         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27342 2011-02-09  Martin Jambor  <mjambor@suse.cz>
27344         PR middle-end/45505
27345         * tree-sra.c (struct access): New flags grp_scalar_read and
27346         grp_scalar_write.  Changed description of assignment read and write
27347         flags.
27348         (dump_access): Dump new flags, reorder all of them.
27349         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27350         to detect multiple scalar reads.
27351         (analyze_access_subtree): Use the new scalar read write flags instead
27352         of the old flags.  Adjusted comments.
27354 2011-02-08  DJ Delorie  <dj@redhat.com>
27356         PR target/47548
27357         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27358         patterns.
27360 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27362         * config/m68k/uclinux.opt: New.
27363         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27365 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27367         * config/cris/elf.opt (sim): New Driver option.
27369 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27371         * config/xtensa/elf.opt: New.
27372         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27374 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27376         * config/vax/elf.opt: New.
27377         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27379 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27381         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27383 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27385         * config/gnu-user.opt: New.
27386         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27387         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27388         *-*-uclinux*): Use gnu-user.opt.
27390 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
27392         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27393         * config/i386/gnu.h (CPP_SPEC): Likewise.
27395 2011-02-08  Ian Lance Taylor  <iant@google.com>
27397         * common.opt (fcx-limited-range): Add SetByCombined flag.
27398         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27399         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27400         (fassociative-math, freciprocal-math): Likewise.
27401         (funsafe-math-optimizations): Likewise.
27402         * opth-gen.awk: Handle SetByCombined.
27403         * optc-gen.awk: Likewise.
27404         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27405         (set_unsafe_math_optimizations_flags): Likewise.
27406         * doc/options.texi (Option properties): Document SetByCombined.
27408 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27410         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27411         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27412         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27413         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27414         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27416 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
27418         PR tree-optimization/46834
27419         PR tree-optimization/46994
27420         PR tree-optimization/46995
27421         * graphite-sese-to-poly.c (used_outside_reduction): New.
27422         (detect_commutative_reduction): Call used_outside_reduction.
27423         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27424         translate_scalar_reduction_to_array only when at least one
27425         loop-phi/close-phi tuple has been detected.
27427 2011-02-08  Richard Guenther  <rguenther@suse.de>
27429         PR middle-end/47639
27430         * tree-vect-generic.c (expand_vector_operations_1): Update
27431         stmts here ...
27432         (expand_vector_operations): ... not here.  Cleanup EH info
27433         and the CFG if required.
27435 2011-02-08  Richard Guenther  <rguenther@suse.de>
27437         PR tree-optimization/47641
27438         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27439         require type compatibility.
27441 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27443         * gimple-low.c (lower_function_body): Don't remove the location of
27444         the return statement here.
27445         (lower_gimple_return): Do it here instead but only if the return
27446         statement is actually used twice.
27448 2011-02-08  Richard Guenther  <rguenther@suse.de>
27450         PR tree-optimization/47632
27451         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27452         unused up_to_stmt parameter, return whether cfg-cleanup is
27453         necessary, remove EH info properly.
27454         (forward_propagate_into_gimple_cond): Adjust caller.
27455         (forward_propagate_into_cond): Likewise.
27456         (forward_propagate_comparison): Likewise.
27457         (tree_ssa_forward_propagate_single_use_vars): Make
27458         forward_propagate_comparison case similar to the two others.
27460 2011-02-08  Nick Clifton  <nickc@redhat.com>
27462         * config/mn10300/mn10300.opt (mliw): New command line option.
27463         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27464         (liw_bundling): New automaton.
27465         (liw): New attribute.
27466         (liw_op): New attribute.
27467         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27468         (movsi_internal): Add LIW attributes.
27469         (andsi3): Likewise.
27470         (iorsi3): Likewise.
27471         (xorsi3): Likewise.
27472         (addsi3): Separate register and immediate alternatives.
27473         Add LIW attributes.
27474         (subsi3): Likewise.
27475         (cmpsi): Likewise.
27476         (aslsi3): Likewise.
27477         (lshrsi3): Likewise.
27478         (ashrsi3): Likewise.
27479         (liw): New pattern.
27480         * config/mn10300/mn10300.c (liw_op_names): New
27481         (mn10300_print_operand): Handle 'W' operand descriptor.
27482         (extract_bundle): New function.
27483         (check_liw_constraints): New function.
27484         (liw_candidate): New function.
27485         (mn10300_bundle_liw): New function.
27486         (mn10300_reorg): New function.
27487         (TARGET_MACHINE_DEPENDENT_REORG): Define.
27488         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27489         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27490         __LIW__ or __NO_LIW__.
27491         * doc/invoke.texi: Describe the -mliw command line option.
27493 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27495         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27496         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27497         pthread_mutex_unlock): Remove.
27498         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27499         * config/pa/t-pa64: Likewise.
27500         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27501         shared libc if not linking against libpthread.
27502         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27504 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
27506         PR target/47558
27507         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27508         on 10.6 and later to ensure that we always use the unwinder from
27509         the system.  Only add -no_compact_unwind when tarteting darwin
27510         10.6 or later.
27512 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
27514         PR target/46997
27515         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27516         (vec_interleave_lowv2sf): Ditto.
27517         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27518         (vec_extract_oddv2sf): Ditto.
27520 2011-02-07  Mike Stump  <mikestump@comcast.net>
27522         PR target/42333
27523         Add __ieee_divdc3 entry point.
27524         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27525         entry point.
27526         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27527         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27528         * config/darwin.c (darwin_rename_builtins): Add.
27529         * config/darwin-protos.h (darwin_rename_builtins): Add.
27531 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
27533         PR target/47636
27534         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27535         for the condition.
27537 2011-02-07  Mike Stump  <mikestump@comcast.net>
27539         * config/darwin.opt (mmacosx-version-min): Update default OS version.
27541 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
27543         PR target/47534
27544         * config/avr/libgcc.S (exit): Move .endfunc
27546 2011-02-07  Richard Guenther  <rguenther@suse.de>
27548         PR tree-optimization/47615
27549         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27550         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27551         (run_scc_vn): Initialize it.
27552         (visit_reference_op_load): Use it.
27553         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27555 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27557         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27558         DImode trapping arithmetic libfuncs.
27560 2011-02-07  Richard Guenther  <rguenther@suse.de>
27562         PR tree-optimization/47621
27563         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27564         two duplicates ...
27565         (execute_update_addresses_taken): ... here.  Make it more
27566         conservative in what we accept.
27568 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27570         * config/sparc/freebsd.h (ASM_SPEC): Define.
27571         * config/sparc/vxworks.h (ASM_SPEC): Define.
27573 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27575         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27577 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
27579         * doc/invoke.texi: Remove reference to compiler internals from
27580         user documentation.
27582         * reg-notes.def: Remove REG_VALUE_PROFILE.
27583         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27585 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
27587         PR middle-end/47610
27588         * varasm.c (default_section_type_flags): If decl is NULL,
27589         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27591 2011-02-05  Jie Zhang  <jie@codesourcery.com>
27593         PR debug/42631
27594         * web.c (entry_register): Don't clobber the number of the
27595         first uninitialized reference in used[].
27597 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
27599         PR tree-optimization/46194
27600         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27601         (build_classic_dist_vector_1): Do not represent classic distance
27602         vectors when the access functions are variating in different loops.
27604 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27606         * config/mips/iris6.opt: New.
27607         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27609 2011-02-04  Richard Henderson  <rth@redhat.com>
27610             Steve Ellcey  <sje@cup.hp.com>
27612         PR target/46997
27613         * config/ia64/predicates.md (mux1_brcst_element): New.
27614         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27615         * config/ia64/ia64.c (ia64_unpack_assemble): New.
27616         (ia64_unpack_sign): New.
27617         (ia64_expand_unpack): Rewrite using new routines.
27618         (ia64_expand_widen_sum): Ditto.
27619         (ia64_expand_dot_prod_v8qi): Ditto.
27620         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27621         routines, add endian check.
27622         (pmpy2_even): Rename from pmpy2_r, add endian check.
27623         (pmpy2_odd): Rename from pmpy2_l, add endian check.
27624         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27625         (vec_widen_smult_hi_v4hi): Ditto.
27626         (vec_widen_umult_lo_v4hi): Ditto.
27627         (vec_widen_umult_hi_v4hi): Ditto.
27628         (mulv2si3): Change endian checks.
27629         (sdot_prodv4hi): Rewrite with new calls.
27630         (udot_prodv4hi): New.
27631         (vec_pack_ssat_v4hi): Add endian check.
27632         (vec_pack_usat_v4hi): Ditto.
27633         (vec_pack_ssat_v2si): Ditto.
27634         (max1_even): Rename from max1_r, add endian check.
27635         (max1_odd): Rename from max1_l, add endian check.
27636         (*mux1_rev): Format change.
27637         (*mux1_mix): Ditto.
27638         (*mux1_shuf): Ditto.
27639         (*mux1_alt): Ditto.
27640         (*mux1_brcst_v8qi): Use new predicate.
27641         (vec_extract_evenv8qi): Remove endian check.
27642         (vec_extract_oddv8qi): Ditto.
27643         (vec_interleave_lowv4hi): Format change.
27644         (vec_interleave_highv4hi): Ditto.
27645         (mix2_even): Rename from mix2_r, add endian check.
27646         (mix2_odd): Rename from mux2_l, add endian check.
27647         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27648         (vec_extract_evenodd_helper): Format change.
27649         (vec_extract_evenv4hi): Remove endian check.
27650         (vec_extract_oddv4hi): Remove endian check.
27651         (vec_interleave_lowv2si): Format change.
27652         (vec_interleave_highv2si): Format change.
27653         (vec_initv2si): Remove endian check.
27654         (vecinit_v2si): Add endian check.
27655         (reduc_splus_v2sf): Add endian check.
27656         (reduc_smax_v2sf): Ditto.
27657         (reduc_smin_v2sf): Ditto.
27658         (vec_initv2sf): Remove endian check.
27659         (fpack): Add endian check.
27660         (fswap): Add endian check.
27661         (vec_interleave_highv2sf): Add endian check.
27662         (vec_interleave_lowv2sf): Add endian check.
27663         (fmix_lr): Add endian check.
27664         (vec_setv2sf): Format change.
27665         (*vec_extractv2sf_0_be): Use shift to extract operand.
27666         (*vec_extractv2sf_1_be): New.
27667         (vec_pack_trunc_v4hi): Add endian check.
27668         (vec_pack_trunc_v2si): Format change.
27670 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
27672         PR inline-asm/23200
27673         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
27674         do bb, locus and block comparison and disallow loads if it is not set.
27675         (stmt_is_replaceable_p): New function.
27676         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27677         callers.
27678         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27679         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27680         SSA_NAME_DEF_STMT.
27681         * tree-flow.h (stmt_is_replaceable_p): New prototype.
27683 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27685         * config/rs6000/xilinx.opt: New.
27686         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27688 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27690         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27692 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
27694         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27695         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27696         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27697         secondary_reload_info, xtensa_secondary_reload): Remove.
27698         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27699         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27700         (xtensa_preferred_reload_class): Make static. Change return and
27701         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27702         Use CONST_DOUBLE_P predicate.
27703         (xtensa_preferred_output_reload_class): New function.
27704         (xtensa_secondary_reload): Make static.
27706 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
27708         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27709         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27710         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27712 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27714         PR middle-end/31490
27715         * output.h (SECTION_RELRO): Define.
27716         (SECTION_MACH_DEP): Adjust.
27717         (get_variable_section): New prototype.
27718         * varpool.c (varpool_finalize_named_section_flags): New function.
27719         (varpool_assemble_pending_decls): Call it.
27720         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27721         * cgraphunit.c (cgraph_output_in_order): Call
27722         varpool_finalize_named_section_flags.
27723         * varasm.c (get_section): Allow section flags conflicts between
27724         relro and read-only sections if the section hasn't been declared yet.
27725         Set SECTION_OVERRIDE after diagnosing section type conflict.
27726         (get_variable_section): No longer static.
27727         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27728         readonly sections that need relocations.
27729         (decl_readonly_section_1): New function.
27730         (decl_readonly_section): Use it.
27732         Revert:
27733         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
27734                     Steve Ellcey  <sje@cup.hp.com>
27736         PR middle-end/31490
27737         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27738         if section attribute used.
27740 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27742         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27743         * config/darwin.c (SECTION_NO_ANCHOR): Define.
27744         (darwin_init_sections): Remove assertion.
27746 2011-02-03  Nick Clifton  <nickc@redhat.com>
27748         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27749         lt and ge.
27750         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27751         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27752         instead of "n" and "pz".
27753         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27754         CC_FLAG_S.
27756 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27758         PR target/47312
27759         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27760         fma, expand FMA_EXPR as fma{,f,l} call.
27762         PR lto/47274
27763         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27764         copy them into a unsigned char variable and pass address of it to
27765         lto_output_data_stream.
27767         PR target/47564
27768         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27769         around backend_init_target and lang_dependent_init_target calls.
27770         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27771         (verify_cgraph_node): Don't call set_cfun here.  Use
27772         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27773         Set error_found for incorrectly represented calls to thunks.
27775 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27777         PR debug/43092
27778         PR rtl-optimization/43494
27779         * rtl.h (for_each_inc_dec_fn): New type.
27780         (for_each_inc_dec): Declare.
27781         * rtlanal.c (struct for_each_inc_dec_ops): New type.
27782         (for_each_inc_dec_find_inc_dec): New fn.
27783         (for_each_inc_dec_find_mem): New fn.
27784         (for_each_inc_dec): New fn.
27785         * dse.c (struct insn_size): Remove.
27786         (replace_inc_dec, replace_inc_dec_mem): Remove.
27787         (emit_inc_dec_insn_before): New fn.
27788         (check_for_inc_dec): Use it, along with for_each_inc_dec.
27789         (canon_address): Pass mem modes to cselib_lookup.
27790         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
27791         (cselib_lookup_from_insn): Likewise.
27792         (cselib_subst_to_values): Likewise.
27793         * cselib.c (find_slot_memmode): New var.
27794         (cselib_find_slot): New fn.  Use it instead of
27795         htab_find_slot_with_hash everywhere.
27796         (entry_and_rtx_equal_p): Use find_slot_memmode.
27797         (autoinc_split): New fn.
27798         (rtx_equal_for_cselib_p): Rename and implement in terms of...
27799         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
27800         Deal with autoinc.  Special-case recursion into MEMs.
27801         (cselib_hash_rtx): Likewise.
27802         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
27803         address and MEM modes.
27804         (cselib_subst_to_values): Add memmode, pass it on.
27805         Deal with autoinc.
27806         (cselib_lookup): Add memmode argument, pass it on.
27807         (cselib_lookup_from_insn): Add memmode.
27808         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27809         (struct cselib_record_autoinc_data): New.
27810         (cselib_record_autoinc_cb): New fn.
27811         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
27812         mode to cselib_lookup.  Reset autoinced REGs here instead of...
27813         (cselib_process_insn): ... here.
27814         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27815         to cselib_lookup.
27816         (add_uses): Likewise, also to cselib_subst_to_values.
27817         (add_stores): Likewise.
27818         * sched-deps.c (add_insn_mem_dependence): Pass mode to
27819         cselib_subst_to_values.
27820         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
27821         * gcse.c (do_local_cprop): Adjusted.
27822         * postreload.c (reload_cse_simplify_set): Adjusted.
27823         (reload_cse_simplify_operands): Adjusted.
27824         * sel-sched-dump (debug_mem_addr_value): Pass mode.
27826 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27828         PR tree-optimization/45122
27829         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27830         unsafe assumptions when there's more than one loop exit.
27832 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27834         PR target/47272
27835         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27836         Document using vector double with the load/store builtins, and
27837         that the load/store builtins always use Altivec instructions.
27839         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27840         to use altivec memory instructions, even on VSX.
27841         (vector_altivec_store_<mode>): Ditto.
27843         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27844         function.
27846         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27847         V2DF, V2DI support to load/store overloaded builtins.
27849         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27850         altivec load/store builtins for V2DF/V2DI types.
27852         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27853         set avoid indexed addresses on power6 if -maltivec.
27854         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27855         vector_altivec_load/vector_altivec_store builtins.
27856         (altivec_expand_st_builtin): Ditto.
27857         (altivec_expand_builtin): Add VSX memory builtins.
27858         (rs6000_init_builtins): Add V2DI types to internal types.
27859         (altivec_init_builtins): Add support for V2DF/V2DI altivec
27860         load/store builtins.
27861         (rs6000_address_for_altivec): Insure memory address is appropriate
27862         for Altivec.
27864         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27865         vec_vsx_ld and vec_vsx_st.
27866         (vsx_store_<mode>): Ditto.
27868         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27869         variables to hold long long types for VSX vector memory builtins.
27870         (RS6000_BTI_unsigned_long_long): Ditto.
27871         (long_long_integer_type_internal_node): Ditti.
27872         (long_long_unsigned_type_internal_node): Ditti.
27874         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27875         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27876         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27878         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27879         short cuts.
27880         (vec_vsx_st): Ditto.
27882 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27884         * config/pa/pa-hpux10.opt: New.
27885         * config/hpux11.opt (pthread): New Driver option.
27886         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27887         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27889 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27891         * config/ia64/vms.opt: New.
27892         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27894 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27896         PR target/47580
27897         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27898         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27899         generator functions.
27900         (vsx_floatuns<VSi><mode>2): Ditto.
27901         (vsx_fix_trunc<mode><VSi>2): Ditto.
27902         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27904 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27906         * config/i386/djgpp.opt (posix): New Driver option.
27908 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
27910         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27911         Move to the unsupported targets list.
27913 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
27915         PR rtl-optimization/47525
27916         * df-scan.c: Update copyright years.
27917         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27918         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27920 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27922         * config/i386/sysv4.h (TARGET_VERSION): Remove.
27923         (SUBTARGET_RETURN_IN_MEMORY): Remove.
27924         (ASM_OUTPUT_ASCII): Remove.
27925         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27927 2011-02-02  Jeff Law  <law@redhat.com>
27929         PR middle-end/47543
27930         * reload.c (find_reloads_address): Handle reg+d address where both
27931         components are invalid by reloading the entire address.
27933 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27934             Richard Guenther  <rguenther@suse.de>
27936         PR tree-optimization/40979
27937         PR bootstrap/47044
27938         * passes.c (init_optimization_passes): After LIM call copy_prop
27939         and DCE to clean up.
27940         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27942 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27944         PR tree-optimization/47576
27945         PR tree-optimization/47555
27946         * doc/invoke.texi (scev-max-expr-complexity): Documented.
27947         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27948         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27949         * tree-scalar-evolution.c (follow_ssa_edge): Use
27950         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27952 2011-02-02  Richard Guenther  <rguenther@suse.de>
27954         PR tree-optimization/47566
27955         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27957 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27959         PR debug/47106
27960         PR debug/47402
27961         * tree-inline.c (declare_return_variable): Remove unused caller
27962         variable.
27964         PR debug/47106
27965         PR debug/47402
27966         * tree-flow-inline.h (clear_is_used, is_used_p): New.
27967         * cfgexpand.c (account_used_vars_for_block): Use them.
27968         * tree-nrv.c (tree_nrv): Likewise.
27969         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27970         (dump_scope_block): Likewise.
27971         (remove_unused_locals): Likewise.
27973         PR debug/47106
27974         PR debug/47402
27975         * tree-inline.c (declare_return_variable): Add result decl to
27976         local decls only once.
27977         * gimple-low.c (record_vars_into): Mark newly-created variables
27978         as referenced.
27980 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27982         PR debug/47498
27983         PR debug/47501
27984         PR debug/45136
27985         PR debug/45130
27986         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27987         debug insns.
27988         (no_real_insns_p, schedule_block, set_priorities): Drop special
27989         treatment of boundary debug insns.
27990         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27991         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27992         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27993         (BOUNDARY_DEBUG_INSN_P): Likewise.
27994         (SCHEDULE_DEBUG_INSN_P): Likewise.
27995         * sched-rgn.c (init_ready_list): Drop special treatment of
27996         boundary debug insns.
27997         * final.c (rest_of_clean_state): Clear notes' BB.
27999 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28001         * config/openbsd.opt (assert=): New Driver option.
28003 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28005         * config/i386/nto.opt: New.
28006         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
28008 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28010         * config/i386/netware.opt: New.
28011         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
28013 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28015         * config/interix.opt (posix): New Driver option.
28017 2011-02-01  DJ Delorie  <dj@redhat.com>
28019         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
28021         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
28022         class for A0/A1.
28024 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
28026         PR tree-optimization/47561
28027         * toplev.c (process_options): Print the Graphite flags.  Add
28028         flag_loop_flatten to the list of options requiring Graphite.
28030 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28032         * config/i386/cygming.opt (posix): New Driver option.
28034 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28036         * config/arm/vxworks.opt: New.
28037         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
28039 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28041         * config/alpha/elf.opt: New.
28042         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
28043         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
28045 2011-02-01  Richard Guenther  <rguenther@suse.de>
28047         PR tree-optimization/47559
28048         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
28049         store-motion on references that can throw.
28051 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
28053         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
28054         * tree-pass.h (TDF_CSELIB): New macro.
28055         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
28056         cselib_lookup): Check for it rather than for TDF_DETAILS.
28058 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
28060         PR driver/47547
28061         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
28062         is HOST_BIT_BUCKET.
28064         * opts.c (finish_options): Don't add x_aux_base_name if it is
28065         HOST_BIT_BUCKET.
28067 2011-02-01  Richard Guenther  <rguenther@suse.de>
28069         PR tree-optimization/47555
28070         Revert
28071         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
28073         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28075 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28077         PR gcc/46692
28078         * config/lm32/t-lm32: Add multilib for all CPU options.
28080 2011-02-01  Richard Guenther  <rguenther@suse.de>
28082         PR tree-optimization/47541
28083         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
28084         sure to have a field at offset zero.
28086 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28088         * config/arc/arc.opt (EB, EL): New Driver options.
28090 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28092         * config/alpha/osf5.opt: New.
28093         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28095 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28097         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28099 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
28101         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28102         -floop-interchange.
28103         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28104         is an alias of -floop-interchange and that it requires the
28105         Graphite infrastructure.
28106         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28107         flag_loop_interchange based on the value of flag_tree_loop_linear.
28109 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28110             Richard Guenther  <rguenther@suse.de>
28112         PR tree-optimization/47538
28113         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28114         type instead of r1type, except for comparisons.  For right
28115         shifts and comparisons punt if there are mismatches in
28116         sizetype vs. non-sizetype types.
28118 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28120         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28121         avx_runtime.
28123 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28125         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28126         version number.
28127         * configure: Regenerate.
28129 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28131         * configure.ac (gcc_cv_ld_static_option): Define.
28132         (gcc_cv_ld_dynamic_option): Define.
28133         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28134         instead.
28135         (HAVE_LD_STATIC_DYNAMIC): Update message.
28136         (LD_STATIC_OPTION): Define.
28137         (LD_DYNAMIC_OPTION): Define.
28138         * configure: Regenerate.
28139         * config.in: Regenerate.
28140         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28141         HAVE_LD_STATIC_DYNAMIC]: Use them.
28143 2011-01-31  Nick Clifton  <nickc@redhat.com>
28145         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28146         registers inside interrupt handlers if the handler is not a leaf
28147         function.
28149 2011-01-31  Nick Clifton  <nickc@redhat.com>
28151         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28152         reg_renumber returning an INVALID_REGNUM.
28154 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28156         PR libgcj/44341
28157         * doc/install.texi: Document host options discarded when cross
28158         configuring target libraries.
28160 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28162         Reverted:
28163         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28164         PR debug/45136
28165         PR debug/45130
28166         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28167         debug insns.
28168         (no_real_insns_p, schedule_block, set_priorities): Drop special
28169         treatment of boundary debug insns.
28170         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28171         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28172         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28173         (BOUNDARY_DEBUG_INSN_P): Likewise.
28174         (SCHEDULE_DEBUG_INSN_P): Likewise.
28175         * sched-rgn.c (init_ready_list): Drop special treatment of
28176         boundary debug insns.
28177         * final.c (rest_of_clean-state): Clear notes' BB.
28179 2011-01-31  Alan Modra  <amodra@gmail.com>
28181         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28182         toc relative expressions as we do in print_operand_address.
28184 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
28186         * doc/extend.texi: Follow spelling conventions.
28187         * doc/invoke.texi: Fix a typo.
28189 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
28191         * config/hpux11.opt: New.
28192         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28193         ia64*-*-hpux*): Use hpux11.opt.
28195 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
28197         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28198         to tmake_file.
28200 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28202         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28203         support sites.
28205 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28207         * doc/install.texi (Binaries): Remove outdated reference for
28208         Motorola 68HC11/68HC12 downloads.
28210 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28212         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28213         Drepper's paper.
28215 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
28217         PR bootstrap/47147
28218         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28219         used by NetBSD.
28221 2011-01-28  Ahmad Sharif  <asharif@google.com>
28223         * value-prof.c (check_counter): Corrected error message.
28225 2011-01-29  Jie Zhang  <jie@codesourcery.com>
28227         * config/arm/arm.c (arm_legitimize_reload_address): New.
28228         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28229         arm_legitimize_reload_address.
28230         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28232 2011-01-28  Ian Lance Taylor  <iant@google.com>
28234         * godump.c (go_define): Ignore macros whose definitions include
28235         two adjacent operands.
28237 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
28239         PR target/42894
28240         * varasm.c (force_const_mem): Store copy of x in desc->constant
28241         instead of x itself.
28242         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28243         itself into REG_EQUAL note.
28245 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
28247         * config/freebsd.opt (posix, rdynamic): New Driver options.
28249 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28251         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28252         -Bstatic/-Bdynamic.
28253         * configure: Regenerate.
28255 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
28257         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28258         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28260 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
28262         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28263         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28264         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28265         (s390_preferred_reload_class): Make static. Change return and
28266         'rclass' argument type to reg_class_t.
28268 2011-01-27  Jan Hubicka  <jh@suse.cz>
28270         PR middle-end/46949
28271         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28272         (process_function_and_variable_attributes): Check defined weakrefs.
28274 2011-01-27  Martin Jambor  <mjambor@suse.cz>
28276         PR tree-optimization/47228
28277         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28278         build_ref_for_offset.
28280 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28282         * config/spu/spu-elf.h (ASM_SPEC): Remove.
28284 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
28286         PR rtl-optimization/46856
28287         * postreload.c (reload_combine_recognize_const_pattern): Do not
28288         separate cc0 setter and user on cc0 targets.
28290 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
28292         PR c/43082
28293         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28294         passed a VOID_TYPE expression, immediately emit an error and
28295         return error_mark_node.
28297 2011-01-26  Jeff Law  <law@redhat.com>
28299         PR rtl-optimization/47464
28300         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28301         rather than may_trap_p as needed.
28303 2011-01-26  DJ Delorie  <dj@redhat.com>
28305         PR rtl-optimization/46878
28306         * combine.c (insn_a_feeds_b): Check for the implicit cc0
28307         setter/user dependency as well.
28309 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
28311         PR rtl-optimization/44469
28312         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28313         after removing trivially dead basic blocks.
28315 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28317         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28318         * config/frv/frv.h (LINK_SPEC): Likewise.
28319         * config/i386/netware.h (LINK_SPEC): Likewise.
28320         * config/m68k/linux.h (ASM_SPEC): Likewise.
28321         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28322         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28323         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28324         * config/sparc/linux.h (ASM_SPEC): Likewise.
28325         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28326         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28328 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28330         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28331         * config/frv/frv.h (ASM_SPEC): Likewise.
28332         * config/m68k/linux.h (ASM_SPEC): Likewise.
28333         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28334         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28335         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28336         * config/sparc/linux.h (ASM_SPEC): Likewise.
28337         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28338         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28340 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28342         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28343         * config/frv/frv.h (LINK_SPEC): Likewise.
28344         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28346 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28348         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28349         * config/frv/frv.h (ASM_SPEC): Likewise.
28350         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28351         * config/m68k/linux.h (ASM_SPEC): Likewise.
28352         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28353         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28354         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28355         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28356         * config/sparc/linux.h (ASM_SPEC): Likewise.
28357         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28358         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28359         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28361 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
28363         PR target/46997
28364         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28365         (*mux2): Ditto.
28366         (vec_extract_evenodd_help): Ditto.
28367         (vec_extract_evenv4hi): Ditto.
28368         (vec_extract_oddv4hi): Ditto.
28369         (vec_interleave_lowv2si): Ditto.
28370         (vec_interleave_highv2si): Ditto.
28371         (vec_extract_evenv2si): Ditto.
28372         (vec_extract_oddv2si: Ditto.
28373         (vec_pack_trunc_v2si): Ditto.
28375 2011-01-22  Jan Hubicka  <jh@suse.cz>
28377         PR target/47237
28378         * cgraph.h (cgraph_local_info): New field can_change_signature.
28379         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28380         signature can change.
28381         (ipcp_estimate_growth): Call sequence simplify only if calle signature
28382         can change.
28383         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28384         (cgraph_function_versioning): We can not change signature of functions
28385         that don't allow that.
28386         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28387         (lto_input_node): Likewise.
28388         * ipa-inline.c (compute_inline_parameters): Compute
28389         local.can_change_signature.
28390         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28391         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28392         functions that can not change signature.
28393         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28394         init_cumulative_args): Do not use local calling conventions
28395         for functions that can not change signature.
28397 2011-01-22  Jan Hubicka  <jh@suse.cz>
28399         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28401 2011-01-26  Richard Guenther  <rguenther@suse.de>
28403         PR tree-optimization/47190
28404         * cgraphunit.c (process_common_attributes): New function.
28405         (process_function_and_variable_attributes): Use it.
28407 2011-01-26  Richard Guenther  <rguenther@suse.de>
28409         PR lto/47423
28410         * cgraphbuild.c (record_eh_tables): Record reference to personality
28411         function.
28413 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
28415         PR debug/45454
28416         * sel-sched.c (moveup_expr): Don't let debug insns prevent
28417         non-debug insns from moving up.
28419 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28421         PR target/40125
28422         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28423         t-dlldir{,-x} fragment for build and add it to tmake_file.
28424         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28425         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28426         * config/i386/t-dlldir: New file.
28427         (SHLIB_DLLDIR): Define.
28428         * config/i386/t-dlldir-x: New file.
28429         (SHLIB_DLLDIR): Define.
28430         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28431         (SHLIB_INSTALL): Use it.
28433 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
28435         PR target/47246
28436         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28437         lower bound of the allowed Thumb-2 coprocessor load/store
28438         index range to -256. Add explaining comment.
28440 2011-01-25  Ian Lance Taylor  <iant@google.com>
28442         * godump.c (go_define): Improve lexing of macro expansion to only
28443         accept expressions which match Go spec.
28445 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28447         PR c++/43601
28448         * tree.c (handle_dll_attribute): Handle it.
28449         * doc/extend.texi (@item dllexport): Mention it.
28450         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28452 2011-01-25  Ian Lance Taylor  <iant@google.com>
28454         PR tree-optimization/26854
28455         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28456         (decl_jump_unsafe): Move higher in file, with no other change.
28457         (bind): Set has_jump_unsafe_decl if appropriate.
28458         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28459         (check_earlier_gotos): Likewise.
28460         (c_check_switch_jump_warnings): Likewise.
28462 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
28464         * doc/invoke.texi (Warning Options): Add missing hyphen.
28465         (-fprofile-dir): Minor grammatical fixes.
28466         (-fbranch-probabilities): Likewise.
28468 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28470         PR debug/45136
28471         PR debug/45130
28472         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28473         debug insns.
28474         (no_real_insns_p, schedule_block, set_priorities): Drop special
28475         treatment of boundary debug insns.
28476         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28477         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28478         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28479         (BOUNDARY_DEBUG_INSN_P): Likewise.
28480         (SCHEDULE_DEBUG_INSN_P): Likewise.
28481         * sched-rgn.c (init_ready_list): Drop special treatment of
28482         boundary debug insns.
28483         * final.c (rest_of_clean-state): Clear notes' BB.
28485 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28487         * Makefile.in (LAMBDA_H): Removed.
28488         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28489         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28490         lambda-trans.o, and tree-loop-linear.o.
28491         (lto-symtab.o): Remove dependence on LAMBDA_H.
28492         (tree-loop-linear.o): Remove rule.
28493         (lambda-mat.o): Same.
28494         (lambda-trans.o): Same.
28495         (lambda-code.o): Same.
28496         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28497         (tree-vect-slp.o): Same.
28498         * hwint.h (gcd): Moved here.
28499         (least_common_multiple): Same.
28500         * lambda-code.c: Removed.
28501         * lambda-mat.c: Removed.
28502         * lambda-trans.c: Removed.
28503         * lambda.h: Removed.
28504         * tree-loop-linear.c: Removed.
28505         * lto-symtab.c: Do not include lambda.h.
28506         * omega.c (gcd): Removed.
28507         * passes.c (init_optimization_passes): Remove pass_linear_transform.
28508         * tree-data-ref.c (print_lambda_vector): Moved here.
28509         (lambda_vector_copy): Same.
28510         (lambda_matrix_copy): Same.
28511         (lambda_matrix_id): Same.
28512         (lambda_vector_first_nz): Same.
28513         (lambda_matrix_row_add): Same.
28514         (lambda_matrix_row_exchange): Same.
28515         (lambda_vector_mult_const): Same.
28516         (lambda_vector_negate): Same.
28517         (lambda_matrix_row_negate): Same.
28518         (lambda_vector_equal): Same.
28519         (lambda_matrix_right_hermite): Same.
28520         * tree-data-ref.h: Do not include lambda.h.
28521         (lambda_vector): Moved here.
28522         (lambda_matrix): Same.
28523         (dependence_level): Same.
28524         (lambda_transform_legal_p): Removed declaration.
28525         (lambda_collect_parameters): Same.
28526         (lambda_compute_access_matrices): Same.
28527         (lambda_vector_gcd): Same.
28528         (lambda_vector_new): Same.
28529         (lambda_vector_clear): Same.
28530         (lambda_vector_lexico_pos): Same.
28531         (lambda_vector_zerop): Same.
28532         (lambda_matrix_new): Same.
28533         * tree-flow.h (least_common_multiple): Removed declaration.
28534         * tree-parloops.c (lambda_trans_matrix): Moved here.
28535         (LTM_MATRIX): Same.
28536         (LTM_ROWSIZE): Same.
28537         (LTM_COLSIZE): Same.
28538         (LTM_DENOMINATOR): Same.
28539         (lambda_trans_matrix_new): Same.
28540         (lambda_matrix_vector_mult): Same.
28541         (lambda_transform_legal_p): Same.
28542         * tree-pass.h (pass_linear_transform): Removed declaration.
28543         * tree-ssa-loop.c (tree_linear_transform): Removed.
28544         (gate_tree_linear_transform): Removed.
28545         (pass_linear_transform): Removed.
28546         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28547         flag_loop_interchange.
28549 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28551         PR tree-optimization/47265
28552         PR tree-optimization/47443
28553         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28554         if name still has some uses.
28556 2011-01-25  Martin Jambor  <mjambor@suse.cz>
28558         PR tree-optimization/47382
28559         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28560         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28562 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
28564         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28565         sjlj_except_unwind_info.
28567 2011-01-25  Richard Guenther  <rguenther@suse.de>
28569         PR tree-optimization/47426
28570         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28571         visible functions results escape.
28573 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28575         PR target/45701
28576         * config/arm/arm.c (any_sibcall_uses_r3): New function.
28577         (arm_get_frame_offsets): Use it.
28579 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28580             Jakub Jelinek  <jakub@redhat.com>
28582         PR tree-optimization/47271
28583         * tree-if-conv.c (bb_postdominates_preds): New.
28584         (if_convertible_bb_p): Call bb_postdominates_preds.
28585         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28586         (predicate_scalar_phi): Call bb_postdominates_preds.
28588 2011-01-25  Nick Clifton  <nickc@redhat.com>
28590         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28591         * config/rx/rx.c (rx_function_value): Likewise.
28592         (rx_promote_function_mode): Likewise.
28593         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28594         in order to make it legitimate.
28595         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28596         make sure that the first operand is the same as the result register.
28597         (addsi3_unspec): Delete.
28598         (subdi3): Do not accept immediate operands.
28599         (subdi3_internal): Likewise.
28601 2011-01-25  Jeff Law  <law@redhat.com>
28603         PR rtl-optimization/37273
28604         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28605         handle them like argument loads from stack slots.  Do not double
28606         count memory for memory constants and argument loads from stack slots.
28608 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28610         PR tree-optimization/47427
28611         PR tree-optimization/47428
28612         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28613         coalesce if the new root var would be TREE_READONLY.
28615 2011-01-25  Richard Guenther  <rguenther@suse.de>
28617         PR middle-end/47414
28618         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28619         correct type for TBAA.
28621 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28623         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28624         (close_phi_written_to_memory): Call for_each_index with
28625         dr_indices_valid_in_loop.
28627 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28629         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28630         when it is initialized.
28632 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28634         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28635         call to graphite_find_data_references_in_stmt.
28636         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28637         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
28638         call to graphite_find_data_references_in_stmt.
28639         (analyze_drs_in_stmts): Same.
28640         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28641         in which the scalar analysis of indices is performed.
28642         (create_data_ref): Same.  Update call to dr_analyze_indices.
28643         (find_data_references_in_stmt): Update call to create_data_ref.
28644         (graphite_find_data_references_in_stmt): Same.
28645         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28646         declaration.
28647         (create_data_ref): Same.
28648         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28649         call to create_data_ref.
28651 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28653         * graphite-sese-to-poly.c (build_poly_scop): Move
28654         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28656 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28658         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28659         VAR_DECL, PARM_DECL, and RESULT_DECL.
28661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28663         * graphite-dependences.c (reduction_dr_1): Allow several reductions
28664         in a reduction PBB.
28665         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28666         that have already been marked as PBB_IS_REDUCTION.
28668 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28670         * graphite-scop-detection.c (same_close_phi_node): New.
28671         (remove_duplicate_close_phi): New.
28672         (make_close_phi_nodes_unique): New.
28673         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28675 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28677         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28678         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28679         of both data references to be the same.
28681 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28683         * graphite-dependences.c (build_lexicographical_constraint): Remove
28684         the gdim parameter.
28685         (build_lexicographical_constraint): Adjust call to
28686         ppl_powerset_is_empty.
28687         (dependence_polyhedron): Same.
28688         (graphite_legal_transform_dr): Same.
28689         (graphite_carried_dependence_level_k): Same.
28690         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28691         parameter.
28692         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28694 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28696         * graphite-sese-to-poly.c
28697         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28698         (close_phi_written_to_memory): New.
28699         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28700         and unshare_expr.
28702 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28704         * doc/install.texi: Update the expected version number of PPL to 0.11.
28705         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28706         #if PPL_VERSION_MINOR < 11.
28708 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28710         * graphite-dependences.c: Include graphite-cloog-util.h.
28711         (new_poly_ddr): Inlined into dependence_polyhedron.
28712         (free_poly_ddr): Moved close by new_poly_ddr.
28713         (dependence_polyhedron_1): Renamed dependence_polyhedron.
28714         Early return NULL when ppl_powerset_is_empty returns true.
28715         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
28716         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
28717         (graphite_legal_transform_dr): Call new_poly_ddr.
28718         (graphite_carried_dependence_level_k): Same.
28719         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
28720         (dot_transformed_deps_stmt_1): Removed.
28721         (dot_deps_stmt_1): Call dot_deps_stmt_2.
28722         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
28723         (dot_deps_1): Call dot_deps_2.
28724         * Makefile.in (graphite-dependences.o): Add missing dependence on
28725         graphite-cloog-util.h.
28727 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28729         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28730         (build_lexicographical_constraint): Same.
28731         (dependence_polyhedron_1): Same.
28732         (graphite_legal_transform_dr): Same.
28733         (graphite_carried_dependence_level_k): Same.
28734         * graphite-ppl.c (ppl_powerset_is_empty): New.
28735         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28736         * tree-data-ref.c (dump_data_reference): Print the basic block index.
28738 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28740         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28741         the "a followed by b" relation and document it.
28743 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28745         * graphite-dependences.c (build_lexicographical_constraint): Stop the
28746         iteration when the bag of constraints is empty.
28748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28750         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28752 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28754         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28755         nest and two loop depths as parameters.
28756         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28757         lst_perfect_nestify.
28759 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28761         * graphite-dependences.c (print_pddr): Call
28762         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28764 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28766         * graphite-ppl.c (debug_gmp_value): New.
28767         * graphite-ppl.h (debug_gmp_value): Declared.
28769 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
28771         * doc/install.texi: Document availability of cloog-0.16.
28773 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
28775         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28776         invalid postdominance info.
28778 2011-01-24  Jan Hubicka  <jh@suse.cz>
28780         PR c/21659
28781         * doc/extend.texi (weak pragma): Drop claim that it must
28782         appear before definition.
28783         * varasm.c (merge_weak, declare_weak): Only sanity check
28784         that DECL is not output at a time it is declared weak.
28786 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
28788         * machmode.def: Fixed comments.
28790 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
28792         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28794 2011-01-24  Paul Koning  <ni1d@arrl.net>
28796         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28797         WORDS_BIG_ENDIAN.
28799 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28801         PR target/46519
28802         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28803         (block_info): Add scanned and prev.
28804         (move_or_delete_vzeroupper_2): Return if the basic block
28805         has been scanned and the upper 128bit state is unchanged
28806         from the last scan.
28807         (move_or_delete_vzeroupper_1): Return true if the exit
28808         state is changed.
28809         (move_or_delete_vzeroupper): Visit basic blocks using the
28810         work-list based algorithm based on vt_find_locations in
28811         var-tracking.c.
28813         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28815 2011-01-24  Nick Clifton  <nickc@redhat.com>
28817         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28818         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28819         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
28820         then define __v850e1__.
28821         * doc/invoke.texi: Document -mv850es.
28823 2011-01-24  Richard Henderson  <rth@redhat.com>
28825         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28826         compound unordered comparisons.
28827         * config/rx/rx.c (rx_split_fp_compare): Remove.
28828         * config/rx/rx-protos.h: Update.
28829         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28830         (cbranchsf4): Don't call rx_split_fp_compare.
28831         (*cbranchsf4): Use rx_split_cbranch.
28832         (*cmpsf): Don't accept "i" constraint.
28833         (*conditional_branch): Only valid after reload.
28834         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
28836 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28838         PR target/47385
28839         * config/rs6000/altivec.md (vector constant splitters): Add
28840         support for creating vector single precision constants if -mvsx is
28841         used and we would create the constant using Altivec primitives.
28843 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
28844             Richard Sandiford  <rdsandiford@googlemail.com>
28846         PR rtl-optimization/47166
28847         * reload1.c (emit_reload_insns): Disable the spill_reg_store
28848         mechanism for PRE_MODIFY and POST_MODIFY.
28849         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28850         reloadreg.
28852 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
28854         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28856 2011-01-22  Jan Hubicka  <jh@suse.cz>
28858         PR lto/47333
28859         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28861 2011-01-22  Jan Hubicka  <jh@suse.cz>
28863         PR tree-optimization/43884
28864         PR lto/44334
28865         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28866         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28868 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
28870         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28871         * config/s390/s390.c (s390_register_move_cost,
28872         s390_memory_move_cost): New.
28873         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28875 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28877         PR middle-end/47401
28878         * except.c (sjlj_assign_call_site_values): Move setting the
28879         crtl->uses_eh_lsda flag to ...
28880         (sjlj_mark_call_sites): ... here.
28881         (sjlj_emit_function_enter): Support NULL dispatch label.
28882         (sjlj_build_landing_pads): In a function with no landing pads
28883         that still has must-not-throw regions, generate code to register
28884         a personality function with empty LSDA.
28886 2011-01-21  Richard Henderson  <rth@redhat.com>
28888         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28890         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28892         * compare-elim.c: New file.
28893         * Makefile.in (OBJS-common): Add it.
28894         (compare-elim.o): New.
28895         * common.opt (fcompare-elim): New.
28896         * opts.c (default_options_table): Add OPT_fcompare_elim.
28897         * tree-pass.h (pass_compare_elim_after_reload): New.
28898         * passes.c (init_optimization_passes): Add it.
28899         * recog.h: Protect against re-inclusion.
28900         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28901         * doc/invoke.texi (-fcompare-elim): Document it.
28902         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28903         * doc/tm.texi: Rebuild.
28905 2011-01-22  Nick Clifton  <nickc@redhat.com>
28907         * config/rx/rx.md (cstoresf4): Pass comparison operator to
28908         rx_split_fp_compare.
28910 2011-01-22  Nick Clifton  <nickc@redhat.com>
28912         * config/rx/rx.md (UNSPEC_CONST): New.
28913         (deallocate_and_return): Wrap the amount popped off the stack in
28914         an UNSPEC_CONST in order to stop it being rejected by
28915         -mmax-constant-size.
28916         (pop_and_return): Add a "(return)" rtx.
28917         (call): Drop the immediate operand.
28918         (call_internal): Likewise.
28919         (call_value): Likewise.
28920         (call_value_internal): Likewise.
28921         (sibcall_internal): Likewise.
28922         (sibcall_value_internal): Likewise.
28923         (sibcall): Likewise.  Generate an explicit call using
28924         sibcall_internal.
28925         (sibcall_value): Likewise.
28926         (mov<>): FAIL if a constant operand is not legitimate.
28927         (addsi3_unpsec): New pattern.
28929         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28930         (ok_for_max_constant): New function.
28931         (gen_safe_add): New function.
28932         (rx_expand_prologue): Use gen_safe_add.
28933         (rx_expand_epilogue): Likewise.
28934         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
28935         UNSPEC CONSTs.
28937 2011-01-21  Jeff Law  <law@redhat.com>
28939         PR tree-optimization/47053
28940         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28941         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28942         statements are deleted.
28943         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
28944         is nonempty, then purge dead edges and cleanup the CFG.
28946 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28948         PR debug/47402
28949         Temporarily revert:
28950         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28951         PR debug/47106
28952         * tree-dfa.c (create_var_ann): Mark variable as used.
28954 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28956         PR middle-end/45566
28957         * except.c (convert_to_eh_region_ranges): Emit queued no-region
28958         notes from other section in hot/cold partitioning even if
28959         last_action is -3.  Increment call_site_base.
28961         PR rtl-optimization/47366
28962         * fwprop.c (forward_propagate_into): Return bool.  If
28963         any changes are made, -fnon-call-exceptions is used and
28964         REG_EH_REGION note is present, call purge_dead_edges
28965         and return true if it purged anything.
28966         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28967         any EH edges were purged.
28969 2011-01-21  Jeff Law  <law@redhat.com>
28971         PR rtl-optimization/41619
28972         * caller-save.c (setup_save_areas): Break out code to determine
28973         which hard regs are live across calls by examining the reload chains
28974         so that it is always used.
28975         Eliminate code which checked REG_N_CALLS_CROSSED.
28977 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28979         PR tree-optimization/47355
28980         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28981         NOP has non-debug uses beyond PHIs in new_bb.
28983 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28985         PR debug/47106
28986         * cfgexpand.c (account_used_vars_for_block): Only account vars
28987         that are annotated as used.
28988         (estimated_stack_frame_size): Don't set TREE_USED.
28989         * tree-dfa.c (create_var_ann): Mark variable as used.
28991 2011-01-21  Richard Guenther  <rguenther@suse.de>
28993         PR middle-end/47395
28994         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28996 2011-01-21  Richard Guenther  <rguenther@suse.de>
28998         PR tree-optimization/47365
28999         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
29000         (vn_reference_lookup_pieces): Adjust.
29001         (vn_reference_lookup): Likewise.
29002         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
29003         (vn_reference_lookup_3): Only look through kills if in
29004         VN_WALKREWRITE mode.
29005         (vn_reference_lookup_pieces): Adjust.
29006         (vn_reference_lookup): Likewise.
29007         (visit_reference_op_load): Likewise.
29008         (visit_reference_op_store): Likewise.
29009         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
29010         (compute_avail): Likewise.
29011         (eliminate): Likewise.
29013 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29015         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
29016         DECL_IGNORED_P non-reg vars if they are used.
29018         PR tree-optimization/47391
29019         * varpool.c (const_value_known_p): Return false if
29020         decl is volatile.
29022 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
29024         PR bootstrap/47215
29025         * config/i386/i386.c (ix86_local_alignment): Handle
29026         case for va_list_type_node is nil.
29027         (ix86_canonical_va_list_type): Likewise.
29029 2011-01-21  Alan Modra  <amodra@gmail.com>
29031         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
29032         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
29034 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29036         * config/arm/arm.md (define_attr type): Rename f_load
29037         and f_store to f_fpa_load and f_fpa_store. Update.
29038         (write_conflict): Deal with rename fallout.
29039         (*push_fp_multi): Likewise.
29040         * config/arm/fpa.md (f_load): Use f_fpa_load.
29041         (f_store): Use f_fpa_store.
29042         (*movsf_fpa): Likewise.
29043         (*movdf_fpa): Likewise.
29044         (*movxf_fpa): Likewise.
29045         (*thumb2_movsf_fpa): Likewise.
29046         (*thumb2_movdf_fpa): Likewise.
29047         (*thumb2_movxf_fpa): Likewise.
29048         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
29049         f_loadd and f_stored.
29050         (*thumb2_movdi_vfp): Likewise.
29051         (*thumb2_movsf_vfp): Fix attribute to f_loads.
29052         (*thumb2_movsi_vfp): Likewise.
29053         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
29054         Use f_loads instead of f_load.
29055         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
29057 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
29059         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29060         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
29061         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29062         (xtensa_mode_dependent_address_p): New function.
29063         (constantpool_address_p): Make static. Change return type to bool.
29064         Change argument type to const_rtx. Use CONST_INT_P predicate.
29066 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
29068         PR debug/46583
29069         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
29071 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29073         PR debug/47283
29074         * cfgexpand.c (expand_debug_expr): Instead of generating
29075         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
29076         etc. handling.
29078 2011-01-20  Richard Guenther  <rguenther@suse.de>
29080         PR middle-end/47370
29081         * tree-inline.c (remap_gimple_op_r): Recurse manually for
29082         the pointer operand of MEM_REFs.
29084 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29086         PR tree-optimization/46130
29087         * ipa-split.c (consider_split): If return_bb contains non-virtual
29088         PHIs other than for retval or if split_function would not adjust it,
29089         refuse to split.
29091 2011-01-20  Richard Guenther  <rguenther@suse.de>
29093         PR tree-optimization/47167
29094         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29095         Revert previous change, only avoid enumeral type changes.
29097 2011-01-19  Mike Stump  <mikestump@comcast.net>
29099         * doc/tm.texi.in (BRANCH_COST): Englishify.
29100         * doc/tm.texi (BRANCH_COST): Likewise.
29102 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
29104         PR c++/47291
29105         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29106         (gen_scheduled_generic_parms_dies): New functions.
29107         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29108         generation for the end of CU compilation.
29109         (dwarf2out_finish): Generate template parameters DIEs here.
29111 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29113         PR debug/46240
29114         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29115         debug bind stmt on merge edges.
29117 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29119         PR debug/47079
29120         PR debug/46724
29121         * function.c (instantiate_expr): Instantiate incoming rtl of
29122         implicit arguments, and recurse on VALUE_EXPRs.
29123         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29124         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29126 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29128         * c-parser.c (c_parser_for_statement): Initialize
29129         collection_expression.
29131 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29133         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29135 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29137         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29138         (LINK_SHLIB_SPEC): Don't use %(link_path).
29139         (SUBTARGET_EXTRA_SPECS): Remove link_path.
29141 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29143         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29144         (NO_SHARED_LIB_SUPPORT): Remove.
29145         (LINK_SHLIB_SPEC): Remove one conditional definition.
29147 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29149         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29150         %{call_shared}.
29151         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29152         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29153         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29154         %{call_shared} and conditionals on these options not being passed.
29155         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29156         %{call_shared}.
29158 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29160         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29161         simplify.
29163         * ipa-split.c: Spelling fixes.
29165 2011-01-19  Richard Henderson  <rth@redhat.com>
29167         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29168         (*mulsi3): Likewise.
29170         * longlong.h [__mn10300__] (count_leading_zeros): New.
29171         [__mn10300__] (umul_ppmm, smul_ppmm): New.
29172         [__mn10300__] (add_ssaaaa, subddmmss): New.
29173         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29174         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29176 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29178         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29180 2011-01-19  Richard Henderson  <rth@redhat.com>
29182         * config/mn10300/mn10300.md (addsi3_flags): New.
29183         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29184         (subsi3_flags, subc_internal, subdi3): New.
29185         (subdi3_internal, *subdi3_degenerate): New.
29186         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29188         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29189         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29190         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
29191         * config/mn10300/mn10300-protos.h: Update.
29192         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29193         (return_ret): Likewise.  Rename from return_internal_regs.
29194         (return_internal): Remove.
29196         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29197         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29198         (mn10300_legitimate_constant_p): Likewise.
29199         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29200         (mn10300_frame_size): New.
29201         (mn10300_expand_prologue): Use it.
29202         (mn10300_expand_epilogue): Likewise.
29203         (mn10300_initial_offset): Likewise.
29204         * config/mn10300/mn10300-protos.h: Update.
29205         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29206         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29207         (prologue, epilogue, return_internal): Tidy output code.
29208         (mn10300_store_multiple_operation, return): Likewise.
29209         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29210         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29211         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29212         (load_pic, am33_load_pic): New.
29213         (mn10300_load_pic0, mn10300_load_pic1): New.
29215         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29216         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29217         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29218         (cc_flags_for_mode, cc_flags_for_code): New.
29219         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29220         overflow flag is not valid.  Validate that the flags we need
29221         for the comparison are valid.
29222         (mn10300_output_cmp): Remove.
29223         (mn10300_output_add): New.
29224         (mn10300_select_cc_mode): Use cc_flags_for_code.
29225         (mn10300_split_cbranch): New.
29226         (mn10300_match_ccmode): New.
29227         (mn10300_split_and_operand_count): New.
29228         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29229         to the function.
29230         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29231         (addsi3): ... here.  Use mn10300_output_add.
29232         (*addsi3_flags): New.
29233         (*am33_subsi3, *mn10300_subsi3): Merge...
29234         (subsi3): ... here.  Use attribute isa.
29235         (*subsi3_flags): New.
29236         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
29237         when possible.
29238         (*am33_andsi3, *mn10300_andsi3): Merge...
29239         (andsi3): ... here.
29240         (*andsi3_flags): New.
29241         (andsi3 splitters): New.
29242         (*am33_iorsi3, *mn10300_iorsi3): Merge...
29243         (iorsi3): ... here.
29244         (*iorsi3_flags): New.
29245         (*am33_xorsi3, *mn10300_xorsi3): Merge...
29246         (xorsi3): ... here.
29247         (*xorsi3_flags): New.
29248         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29249         (one_cmplsi2): ... here.
29250         (*one_cmplsi2_flags): New.
29251         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
29252         instead of "dax" in constraints.  Use mn10300_split_cbranch.
29253         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
29254         use matching constraints to eliminate a self-comparison.
29255         (*integer_conditional_branch): Rename from integer_conditional_branch.
29256         Use int_mode_flags to match CC_REG.
29257         (*cbranchsi4_btst, *btstsi): New.
29258         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
29259         mn10300_split_cbranch.
29260         (*am33_cmpsf): Rename from am33_cmpsf.
29261         (*float_conditional_branch): Rename from float_conditional_branch.
29262         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29263         (zero_extendqisi2): ... here.
29264         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29265         (zero_extendhisi2): ... here.
29266         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29267         (extendqisi2): ... here.
29268         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29269         (extendhisi2): ... here.
29270         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29271         (ashlsi3): ... here.
29272         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29273         (lshrsi3): ... here.
29274         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29275         (ashrsi3): ... here.
29276         (consecutive add peephole): Remove.
29277         * config/mn10300/predicates.md (label_ref_operand): New.
29278         (int_mode_flags): New.
29279         (CCZN_comparison_operator): New.
29281         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29282         (throughput_42_latency_43): New reservation.
29283         (mulsidi3, umulsidi3): New expanders.
29284         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
29285         the MDR register to allocation; separately allocate the low and
29286         high parts of the DImode result.
29287         (umulsidi3_internal): Similarly.
29288         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29289         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
29290         (udivsi3, umodsi3): Remove.
29291         (udivmodsi4, divmodsi4): New expanders.
29292         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
29293         (*divmodsi4): Simiarly.
29294         (ext_internal): New.
29296         * config/mn10300/constraints.md ("z"): New constraint.
29297         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29298         (FIXED_REGISTERS): Don't fix MDR.
29299         (CALL_USED_REGSITERS): Reformat nicely.
29300         (REG_ALLOC_ORDER): Add MDR.
29301         (enum regclass): Add MDR_REGS.
29302         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29303         (IRA_COVER_CLASSES): Add MDR_REGS.
29304         (REGNO_REG_CLASS): Handle MDR_REG.
29305         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29306         (mn10300_register_move_cost): Likewise.
29307         * config/mn10300/mn10300.md (MDR_REG): New.
29308         (*movsi_internal): Handle moves to/from MDR_REGS.
29310         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29311         POST_MODIFY.
29312         (mn10300_secondary_reload): Tidy combination reload classes.
29313         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29314         addresses for AM33.  Allow symbolic offsets for reg+imm.
29315         (mn10300_regno_in_class_p): New.
29316         (mn10300_legitimize_reload_address): New.
29317         * config/mn10300/mn10300.h (enum reg_class): Remove
29318         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29319         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
29320         SP_OR_GENERAL_REGS.
29321         (REG_CLASS_NAMES): Update to match.
29322         (REG_CLASS_CONTENTS): Likewise.
29323         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29324         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29325         (REGNO_IN_RANGE_P): Remove.
29326         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29327         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29328         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29329         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29330         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29331         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29332         (REGNO_GENERAL_P): New.
29333         (HAVE_POST_MODIFY_DISP): New.
29334         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29335         (LEGITIMIZE_RELOAD_ADDRESS): New.
29336         * config/mn10300/mn10300-protos.h: Update.
29338         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29339         DATA_REGS for AM33 stack-pointer destination.
29340         (mn10300_preferred_output_reload_class): Likewise.
29341         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29342         into a form appropriate for ...
29343         (TARGET_SECONDARY_RELOAD): New.
29344         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29345         * config/mn10300/mn10300-protos.h: Update.
29346         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29347         reload_insi; use the "A" constraint for the scratch; handle AM33
29348         moves of sp to non-address registers.
29350         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29351         (*movqi_internal): ... here.
29352         (*am33_movhi, *mn10300_movhi): Merge into...
29353         (*movhi_internal): ... here.
29354         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
29355         as the source/destination of moves from/to SP.
29356         (movsf): Only allow for AM33-2.
29357         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29358         any integer constant constraint.  Only allow for AM33-2.  Tidy
29359         all of the alternative outputs.
29360         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29361         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
29362         for MN103.
29363         (udivsi3, umodsi3): New patterns for MN103 only.
29365 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
29367         * doc/tm.texi.in: Spell out that a lack of register class unions
29368         can lead to ICEs.
29369         * doc/tm.texi: Regenerate.
29371 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29373         PR rtl-optimization/47337
29374         * dce.c (check_argument_store): New function.
29375         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
29377         PR tree-optimization/47290
29378         * tree-eh.c (infinite_empty_loop_p): New function.
29379         (cleanup_empty_eh): Use it.
29381 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
29383         PR target/46997
29384         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29385         (a64_expand_widen_sum): Ditto.
29386         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29387         (vec_extract_evenodd_help): Ditto.
29388         (vec_extract_evenv4hi): Ditto.
29389         (vec_extract_oddv4hi): Ditto.
29390         (vec_extract_evenv2si): Ditto.
29391         (vec_extract_oddv2si): Ditto.
29392         (vec_extract_evenv2sf): Ditto.
29393         (vec_extract_oddv2sf): Ditto.
29394         (vec_pack_trunc_v4hi: Ditto.
29395         (vec_pack_trunc_v2si): Ditto.
29396         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29397         (vec_interleave_highv8qi): Ditto.
29398         (mix1_r): Ditto.
29399         (vec_extract_oddv8qi): Ditto.
29400         (vec_interleave_lowv4hi): Ditto.
29401         (vec_interleave_highv4hi): Ditto.
29402         (vec_interleave_lowv2si): Ditto.
29403         (vec_interleave_highv2si): Ditto.
29405 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29407         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29408         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29409         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
29410         (pa_c_mode_for_suffix): New.
29411         (TARGET_EXPAND_BUILTIN): Define.
29412         (TARGET_C_MODE_FOR_SUFFIX): Define.
29413         (pa_builtins): Define.
29414         (pa_init_builtins): Register __float128 type and init new support
29415         builtins.
29416         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29417         * config/pa/quadlib.c (_U_Qfcopysign): New.
29419 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
29421         PR middle-end/46894
29422         * explow.c (allocate_dynamic_stack_space): Do not assume more than
29423         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29424         are defined.
29426 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29428         PR tree-optimization/47179
29429         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29430         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29432 2011-01-18  Richard Guenther  <rguenther@suse.de>
29434         PR rtl-optimization/47216
29435         * emit-rtl.c: Include tree-flow.h.
29436         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29437         of replicating it with different semantics.
29438         * Makefile.in (emit-rtl.o): Adjust.
29440 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29442         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29443         (cortex_a9_dp): Handle neon types correctly.
29445 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
29447         PR rtl-optimization/47299
29448         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29449         subtarget.  Use normal multiplication if both operands are constants.
29450         * expmed.c (expand_widening_mult): Don't try to optimize constant
29451         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
29452         before using it.
29454 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29456         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
29457         spacing after 'e.g.', typos, comma, hyphenation.
29459 2011-01-17  Richard Henderson  <rth@redhat.com>
29461         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29462         (rx_restricted_mem_operand): New.
29463         (rx_shift_operand): Use register_operand.
29464         (rx_source_operand, rx_compare_operand): Likewise.
29465         * config/rx/rx.md (addsi3_flags): New expander.
29466         (adddi3): Rewrite as expander.
29467         (adc_internal, *adc_flags, adddi3_internal): New patterns.
29468         (subsi3_flags): New expander.
29469         (subdi3): Rewrite as expander.
29470         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29472         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29473         (rx_init_builtins): Remove sat builtin.
29474         (rx_expand_builtin): Likewise.
29475         * config/rx/rx.md (ssaddsi3): New.
29476         (*sat): Rename from sat.  Represent the CC_REG input.
29478         * config/rx/predicates.md (rshift_operator): New.
29479         * config/rx/rx.c (rx_expand_insv): Remove.
29480         * config/rx/rx-protos.h: Update.
29481         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
29482         operand to the canonical position.
29483         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29484         (*bitclr, *bitclr_in_memory): Similarly.
29485         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29486         (insv): Retain the zero_extract in the expansion.
29488         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29489         (bswaphi2, bitinvert, revw): Likewise.
29491         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29492         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29493         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29494         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29495         (bitset, bitset_in_memory): Likewise.
29496         (bitinvert, bitinvert_in_memory): Likewise.
29497         (bitclr, bitclr_in_memory): Likewise.
29498         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29499         (rx_strend, rx_cmpstrn): Likewise.
29500         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
29501         (bitop peep2 patterns): Remove.
29503         * config/rx/rx.c (rx_match_ccmode): New.
29504         * config/rx/rx-protos.h: Update.
29505         * config/rx/rx.md (abssi2): Clobber, don't set flags.
29506         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29507         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29508         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29509         (fix_truncsfsi2, floatsisf2): Likewise.
29510         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29511         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29512         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29513         (*subsi3_flags, *xorsi3_flags): New.
29515         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29517         * config/rx/rx.c (rx_print_operand): Remove workaround for
29518         unsplit comparison operations.
29520         * config/rx/rx.md (movsicc): Split after reload.
29521         (*movsicc): Merge *movsieq and *movsine via match_operator.
29522         (*stcc): New pattern.
29524         * config/rx/rx.c (rx_float_compare_mode): Remove.
29525         * config/rx/rx.h (rx_float_compare_mode): Remove.
29526         * config/rx/rx.md (cstoresi4): Split after reload.
29527         (*sccc): New pattern.
29529         * config/rx/predicates.md (label_ref_operand): New.
29530         (rx_z_comparison_operator): New.
29531         (rx_zs_comparison_operator): New.
29532         (rx_fp_comparison_operator): New.
29533         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29534         Validate that the flags are set properly for the comparison.
29535         (rx_gen_cond_branch_template): Remove.
29536         (rx_cc_modes_compatible): Remove.
29537         (mode_from_flags): New.
29538         (flags_from_code): Rename from flags_needed_for_conditional.
29539         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29540         (rx_select_cc_mode): Likewise.
29541         (rx_split_fp_compare): New.
29542         (rx_split_cbranch): New.
29543         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29544         (*cbranchsi4): Use match_operator and rx_split_cbranch.
29545         (*cbranchsf4): Similarly.
29546         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
29547         match_operator and rx_split_cbranch.
29548         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29549         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
29550         (*cmpsi): Rename from cmpsi.
29551         (*tstsi): Rename from tstsi.
29552         (*cmpsf): Rename from cmpsf; use CC_Fmode.
29553         (*conditional_branch): Rename from conditional_branch.
29554         (*reveresed_conditional_branch): Remove.
29555         (b<code>): Remove expander.
29556         * config/rx/rx-protos.h: Update.
29558         * config/rx/rx.c (rx_compare_redundant): Remove.
29559         * config/rx/rx.md (cmpsi): Don't use it.
29560         * config/rx/rx-protos.h: Update.
29562         * config/rx/rx-modes.def (CC_F): New mode.
29563         * config/rx/rx.c (rx_select_cc_mode): New.
29564         * config/rx/rx.h (SELECT_CC_MODE): Use it.
29565         * config/rx/rx-protos.h: Update.
29567 2011-01-17  Richard Henderson  <rth@redhat.com>
29569         * except.c (dump_eh_tree): Fix stray ; after for statement.
29571 2011-01-17  Richard Guenther  <rguenther@suse.de>
29573         PR tree-optimization/47313
29574         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29575         handling before copying the body.  Properly deal with
29576         by-reference result in SSA form.
29578 2011-01-17  Ian Lance Taylor  <iant@google.com>
29580         PR target/47219
29581         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29582         (struct_value_alias_set): Don't define.
29583         (sparc_option_override): Don't set sparc_sr_alias_set and
29584         struct_value_alias_set.
29585         (save_or_restore_regs): Use gen_frame_mem rather than calling
29586         set_mem_alias_set.
29587         (sparc_struct_value_rtx): Likewise.
29589 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29591         PR target/47318
29592         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29593         (_mm_maskstore_pd): Likewise.
29594         (_mm_maskload_ps): Likewise.
29595         (_mm_maskstore_ps): Likewise.
29596         (_mm256_maskload_pd): Change mask to __m256i.
29597         (_mm256_maskstore_pd): Likewise.
29598         (_mm256_maskload_ps): Likewise.
29599         (_mm256_maskstore_ps): Likewise.
29601         * config/i386/i386-builtin-types.def: Updated.
29602         (ix86_expand_special_args_builtin): Likewise.
29604         * config/i386/i386.c (bdesc_special_args): Update
29605         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29606         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29607         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29608         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29610         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29611         Use <avxpermvecmode> on mask register.
29612         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29614 2011-01-17  Olivier Hainque  <hainque@adacore.com>
29615             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29616             Eric Botcazou  <ebotcazou@adacore.com>
29618         PR target/46655
29619         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29620         if <= USHRT_MAX in 32-bit mode.
29622 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29624         * doc/install.texi (Configuration, Specific): Wrap long
29625         lines in examples.  Allow line wrapping in long options
29626         and URLs where beneficial for PDF output.
29628 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
29630         * config/mips/mips.c (mips_classify_symbol): Don't return
29631         SYMBOL_PC_RELATIVE for nonlocal labels.
29633 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29635         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29637 2011-01-15  Jan Hubicka  <jh@suse.cz>
29639         PR tree-optimization/47276
29640         * ipa.c (function_and_variable_visibility): Do not try to mark alias
29641         declarations as needed.
29643 2011-01-15  Martin Jambor  <mjambor@suse.cz>
29645         * common.opt (fdevirtualize): New flag.
29646         * doc/invoke.texi (Option Summary): Document it.
29647         * opts.c (default_options_table): Add devirtualize flag.
29648         * ipa-prop.c (detect_type_change): Return immediately if
29649         devirtualize flag is not set.
29650         (detect_type_change_ssa): Likewise.
29651         (compute_known_type_jump_func): Likewise.
29652         (ipa_analyze_virtual_call_uses): Likewise.
29654 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29656         PR tree-optimization/45934
29657         PR tree-optimization/46302
29658         * ipa-prop.c (type_change_info): New type.
29659         (stmt_may_be_vtbl_ptr_store): New function.
29660         (check_stmt_for_type_change): Likewise.
29661         (detect_type_change): Likewise.
29662         (detect_type_change_ssa): Likewise.
29663         (compute_complex_assign_jump_func): Check for dynamic type change.
29664         (compute_complex_ancestor_jump_func): Likewise.
29665         (compute_known_type_jump_func): Likewise.
29666         (compute_scalar_jump_functions): Likewise.
29667         (ipa_analyze_virtual_call_uses): Likewise.
29668         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29670 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29672         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29673         * config/i386/i386.opt (msse5): New Alias.
29675 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29677         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29678         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29679         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29680         * config/sparc/sparc.h (CC1_SPEC): Likewise.
29682 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29684         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29685         -mcpu options.
29686         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29687         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29688         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29689         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29690         Likewise.
29691         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29693 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29695         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29697 2011-01-14  Mike Stump  <mikestump@comcast.net>
29699         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29700         * config/fr30/fr30.md: Likweise
29701         (movsi_push): Likewise.
29702         (movsi_pop): Likewise.
29703         (enter_func): Likewise.
29704         * config/moxie/moxie.md (movsi_push): Likewise.
29705         (movsi_pop): Likewise.
29707 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29709         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29710         %{no_archive} %{exact_version}.
29711         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29712         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29713         %{no_archive} %{exact_version}.
29714         * config/mips/openbsd.h (LINK_SPEC): Likewise.
29715         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29716         * config/mips/vxworks.h: Likewise.
29718 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29720         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29722 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29724         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29725         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29727 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29729         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29730         -nodefaultlib.
29732 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29734         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29735         for mcpu not cpu.
29736         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29737         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29738         not cpu.
29739         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29740         Don't handle -shlib.
29742 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29744         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29745         (CC1_SPEC): Don't handle -profile.
29747 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29749         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29750         * config/mips/mips.h (CC1_SPEC): Likewise.
29752 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29754         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29755         * config/mips/mips.h (CC1_SPEC): Likewise.
29757 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29759         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29760         * config/m32r/linux.h (LINK_SPEC): Likewise.
29761         * config/mips/linux.h (LINK_SPEC): Likewise.
29762         * config/mips/linux64.h (LINK_SPEC): Likewise.
29763         * config/sparc/linux.h (LINK_SPEC): Likewise.
29764         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29765         LINK_SPEC): Likewise.
29766         * config/xtensa/linux.h (LINK_SPEC): Likewise.
29768 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29770         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29771         %{version:-v}.
29772         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29774 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29776         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29777         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29779 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29781         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29783 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29785         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29786         supports -Bstatic/-Bdynamic.
29787         * configure: Regenerate.
29789 2011-01-14  Jan Hubicka  <jh@suse.cz>
29790             Jack Howarth  <howarth@bromo.med.uc.edu>
29792         PR target/46037
29793         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29794         when checking debug_info_level. Test write_symbols instead of
29795         debug_hooks->var_location when setting flag_var_tracking_uninit.
29797 2011-01-14  Richard Guenther  <rguenther@suse.de>
29799         PR tree-optimization/47179
29800         * target.def (ref_may_alias_errno): New target hook.
29801         * targhooks.h (default_ref_may_alias_errno): Declare.
29802         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29803         (default_ref_may_alias_errno): New function.
29804         * target.h (struct ao_ref_s): Declare.
29805         * tree-ssa-alias.c: Include target.h.
29806         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29807         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29808         (targhooks.o): Likewise.
29809         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29810         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29812 2011-01-14  Richard Guenther  <rguenther@suse.de>
29814         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
29816 2011-01-14  Richard Guenther  <rguenther@suse.de>
29818         PR tree-optimization/47280
29819         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29820         return CFG changes.
29821         (tree_ssa_forward_propagate_single_use_vars): Deal with
29822         CFG changes from associate_plusminus.
29824 2011-01-14  Richard Guenther  <rguenther@suse.de>
29826         PR middle-end/47281
29827         Revert
29828         2011-01-11  Richard Guenther  <rguenther@suse.de>
29830         PR tree-optimization/46076
29831         * tree-ssa.c (useless_type_conversion_p): Conversions from
29832         unprototyped to empty argument list function types are useless.
29834 2011-01-14  Richard Guenther  <rguenther@suse.de>
29836         PR tree-optimization/47286
29837         * tree-ssa-structalias.c (new_var_info): Register variables are global.
29839 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29841         PR middle-end/46823
29842         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29844 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
29846         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29847         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29848         * config/xtensa/xtensa.c (xtensa_libcall_value,
29849         xtensa_function_value_regno_p): New functions.
29850         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29852 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
29854         PR c++/47213
29855         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29856         PE specific hook.
29857         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29858         New function prototype.
29859         * config/i386/winnt.c (i386_pe_assemble_visibility):
29860         Warn only if attribute was specified by user.
29862 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
29864         PR target/47251
29865         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29866         floating point.
29867         (floatunsdidf2_fcfidu): Ditto.
29869 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29871         * config/s390/s390.c (print_operand_address): Replace 'error' with
29872         'output_operand_lossage'.
29873         (print_operand): Likewise.
29875 2011-01-13  Jeff Law  <law@redhat.com>
29877         PR rtl-optimization/39077
29878         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29879         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29880         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29881         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29882         * gcse.c (prune_insertions_deletions): New function.
29883         (compute_pre_data): Use it.
29885 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
29887         PR debug/PR46973
29888         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29889         static function.
29890         (prune_unused_types_mark): Use it.
29892 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
29894         PR rtl-optimization/45352
29895         * sel-sched.c: Update copyright years.
29896         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29897         in the advancing loop when we have issued issue_rate insns.
29899 2011-01-12  Richard Henderson  <rth@redhat.com>
29901         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29902         (TARGET_MD_ASM_CLOBBERS): New.
29904         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29905         (TARGET_DELEGITIMIZE_ADDRESS): New.
29907         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29908         (clzsi2, *bsch): New patterns.
29910         * config/mn10300/mn10300.md (INT): New mode iterator.
29911         (*mov<INT>_clr): New pattern, and peep2 to generate it.
29913         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29914         flag_split_wide_types.
29916         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29917         (mn10300_trampoline_init): Rewrite without a template, an immediate
29918         load and a direct branch.
29919         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29921 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
29923         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29924         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29925         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29926         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29928 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
29930         PR debug/47209
29931         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29932         of type.
29934 2011-01-12  Jan Hubicka  <jh@suse.cz>
29936         PR driver/47244
29937         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29938         (PLUGIN_COND_CLOSE): New macro.
29939         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29941 2011-01-12  Richard Guenther  <rguenther@suse.de>
29943         PR lto/47259
29944         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29945         register variables in a MEM_REF.
29947 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
29949         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29950         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29951         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29952         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29953         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29954         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29955         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29956         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29957         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29958         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29959         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29960         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29961         * config/gnu-user.h: New.  Copied from linux.h.
29962         (LINUX_TARGET_STARTFILE_SPEC): Rename to
29963         GNU_USER_TARGET_STARTFILE_SPEC.
29964         (LINUX_TARGET_ENDFILE_SPEC): Rename to
29965         GNU_USER_TARGET_ENDFILE_SPEC.
29966         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29967         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29968         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29969         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29970         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29971         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29972         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29973         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29974         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29975         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29976         * config/arm/linux-eabi.h (CC1_SPEC): Use
29977         GNU_USER_TARGET_CC1_SPEC.
29978         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29979         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29980         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29981         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29982         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29983         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29984         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29985         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29987 2011-01-12  Richard Guenther  <rguenther@suse.de>
29989         PR other/46946
29990         * doc/invoke.texi (ffast-math): Document it is turned on
29991         with -Ofast.
29993 2011-01-12  Jan Hubicka  <jh@suse.cz>
29995         PR tree-optimization/47233
29996         * opts.c (common_handle_option): Disable ipa-reference with profile
29997         feedback.
29999 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30001         * c-parser.c (c_parser_objc_at_property_declaration): Improved
30002         error message.
30004 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30006         * c-parser.c (c_lex_one_token): Updated and reindented some
30007         comments.  No changes in code.
30009 2011-01-11  Ian Lance Taylor  <iant@google.com>
30011         * godump.c (go_output_var): Don't output the variable if there is
30012         already a type with the same name.
30014 2011-01-11  Ian Lance Taylor  <iant@google.com>
30016         * godump.c (go_format_type): Don't generate float80.
30018 2011-01-11  Richard Henderson  <rth@redhat.com>
30020         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
30021         declaration.  Rewrite for both speed and size.
30022         (mn10300_address_cost_1): Remove.
30023         (mn10300_register_move_cost): New.
30024         (mn10300_memory_move_cost): New.
30025         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
30026         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
30027         extensions, shifts, BSWAP, CLZ.
30028         (mn10300_wide_const_load_uses_clr): Remove.
30029         (TARGET_REGISTER_MOVE_COST): New.
30030         (TARGET_MEMORY_MOVE_COST): New.
30031         * config/mn10300/mn10300-protos.h: Update.
30032         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
30034         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
30035         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
30036         * config/mn10300/mn10300-protos.h: Update.
30037         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
30038         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
30039         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
30040         (*test_int_bitfield, *test_byte_bitfield): Remove.
30041         (*bit_test, *subreg_bit_test): Remove.
30042         * config/mn10300/predicates.md (const_8bit_operand): Remove.
30044         * config/mn10300/constraints.md ("c"): Rename from "A".
30045         ("A", "D"): New constraint letters.
30046         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
30047         (fmssf4, fnmasf4, fnmssf4): Likewise.
30049         * config/mn10300/mn10300.md (isa): New attribute.
30050         (enabled): New attribute.
30052         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
30053         (abssf2, negsf2): Define only for hardware fp.
30054         (sqrtsf2): Reformat.
30055         (addsf3, subsf3, mulsf3): Merge expander and insn.
30057         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
30058         (DEBUGGER_AUTO_OFFSET): Remove.
30059         (DEBUGGER_ARG_OFFSET): Remove.
30061         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
30062         Emit register stores with the same offsets as the hardware.
30063         (mn10300_store_multiple_operation): Don't check that the register
30064         save offsets are monotonic.
30065         * config/mn10300/mn10300-protos.h: Update.
30067         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
30069         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
30070         in terms of the value on the stack, not the MDR register.
30072 2011-01-11  Jan Hubicka  <jh@suse.cz>
30074         PR lto/45721
30075         PR lto/45375
30076         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
30077         (symbol_alias_set_destroy, symbol_alias_set_contains,
30078         propagate_aliases_backward): Declare.
30079         * lto-streamer-out.c (struct sets): New sturcture.
30080         (trivally_defined_alias): New function.
30081         (output_alias_pair_p): Rewrite.
30082         (output_unreferenced_globals): Fix output of alias pairs.
30083         (produce_symtab): Likewise.
30084         * ipa.c (function_and_variable_visibility): Set weak alias destination
30085         as needed in lto.
30086         * varasm.c (symbol_alias_set_t): Remove.
30087         (symbol_alias_set_destroy): Export.
30088         (propagate_aliases_forward, propagate_aliases_backward): New functions
30089         based on ...
30090         (compute_visible_aliases): ... this one; remove.
30091         (trivially_visible_alias): New
30092         (trivially_defined_alias): New.
30093         (remove_unreachable_alias_pairs): Rewrite.
30094         (finish_aliases_1): Reorganize code checking if alias is defined.
30095         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30096         in LTO mode.
30098 2011-01-11  Richard Guenther  <rguenther@suse.de>
30100         PR tree-optimization/46076
30101         * tree-ssa.c (useless_type_conversion_p): Conversions from
30102         unprototyped to empty argument list function types are useless.
30104 2011-01-11  Richard Guenther  <rguenther@suse.de>
30106         PR middle-end/45235
30107         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30108         volatile MEMs as MEM_READONLY_P.
30110 2011-01-11  Richard Guenther  <rguenther@suse.de>
30112         PR tree-optimization/47239
30113         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30115 2011-01-11  Jeff Law  <law@redhat.com>
30117         PR tree-optimization/47086
30118         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30119         IVs from statements that might throw.
30121 2011-01-10  Jan Hubicka  <jh@suse.cz>
30123         PR lto/45375
30124         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30126 2011-01-10  Jan Hubicka  <jh@suse.cz>
30128         PR lto/45375
30129         * profile.c (read_profile_edge_counts): Ignore profile inconistency
30130         when correcting profile.
30132 2011-01-10  Jan Hubicka  <jh@suse.cz>
30134         PR lto/46083
30135         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30136         DECL_FINI_PRIORITY.
30137         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30138         Restore DECL_FINI_PRIORITY.
30140 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30142         * doc/gimple.texi: Fix quoting of multi-word return values in
30143         @deftypefn statements.  Ensure presence of return value.  Wrap
30144         overlong @deftypefn lines.
30145         (is_gimple_operand, is_gimple_min_invariant_address): Remove
30146         descriptions of removed functions.
30147         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30148         of multi-word return value in @deftypefn statement.
30150 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30152         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30153         (Conditional Expressions, Logical Operators)
30154         (Statement and operand traversals): Do not indent smallexample
30155         code.  Fix duplicate function argument in example.
30157 2011-01-10  Jeff Law  <law@redhat.com>
30159         PR tree-optimization/47141
30160         * ipa-split.c (split_function): Handle case where we are
30161         returning a value and the return block has a virtual operand phi.
30163 2011-01-10  Jan Hubicka  <jh@suse.cz>
30165         PR tree-optimization/47234
30166         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30167         (pass_feedback_split_functions): Declare.
30168         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30169         tree-profile.
30170         * ipa-split.c (gate_split_functions): Update comments; disable
30171         split-functions for profile_arc_flag and branch_probabilities.
30172         (gate_feedback_split_functions): New function.
30173         (execute_feedback_split_functions): New function.
30174         (pass_feedback_split_functions): New global var.
30176 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30178         PR lto/46760
30179         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30180         calling gimple_call_set_cannot_inline.
30182 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
30184         * config/darwin-sections.def: Remove unused section.
30186 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
30188         PR c++/47218
30189         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30191 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
30193         PR objc/47232
30194         * c-parser.c (c_parser_declaration_or_fndef): Improved
30195         error message.
30197 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
30199         * config/i386/winnt.c (i386_pe_start_function): Make sure
30200         to switch back to function's section.
30202 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
30204         PR gcc/46902
30205         PR testsuite/46912
30206         * plugin.c: Move include of dlfcn.h from here...
30207         * system.h: ... to here.
30209 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30211         * doc/cpp.texi (C++ Named Operators): Fix markup for header
30212         file name.
30213         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30214         two extra empty pages in PDF output.
30216 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
30218         PR objc/47078
30219         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30220         for error recovery purposes behave as if it was not specified so
30221         that the default type is usd.
30223 2011-01-07  Jan Hubicka  <jh@suse.cz>
30225         PR tree-optmization/46469
30226         * ipa.c (function_and_variable_visibility): Clear needed flags on
30227         nodes with external decls; handle weakrefs merging correctly.
30229 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
30231         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30232         not false.
30234 2011-01-07  Jan Hubicka  <jh@suse.cz>
30236         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30237         and no longer claim that gold is required for linker plugin.
30238         * configure: Regenerate.
30239         * gcc.c (PLUGIN_COND): New macro.
30240         (LINK_COMMAND_SPEC): Use it.
30241         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30242         * config.in (HAVE_LTO_PLUGIN): New.
30243         * configure.ac (--with-lto-plugin): New parameter; autodetect
30244         HAVE_LTO_PLUGIN.
30246 2011-01-07  Jan Hubicka  <jh@suse.cz>
30248         PR tree-optimization/46367
30249         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30250         when we can update original.
30251         (cgraph_mark_inline_edge): Sanity check.
30252         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30254 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30256         * config/spu/spu.h (ASM_COMMENT_START): Define.
30258 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30260         PR driver/42445
30261         * gcc.c (%>S): New.
30262         (SWITCH_KEEP_FOR_GCC): Likewise.
30263         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30264         (do_spec_1): Handle "%>".
30266         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30268 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
30270         PR target/47201
30271         * config/i386/i386.c (ix86_delegitimize_address): If
30272         simplify_gen_subreg fails, return orig_x.
30274         PR bootstrap/47187
30275         * value-prof.c (gimple_stringop_fixed_value): Handle
30276         lhs of the call properly.
30278 2011-01-07  Jan Hubicka  <jh@suse.cz>
30280         PR lto/45375
30281         * lto-opt.c (lto_reissue_options): Set flag_shlib.
30283 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30285         * target.def (function_switched_text_sections): New hook.
30286         * doc/tm.texi: Regenerated.
30287         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30288         * final.c (default_function_switched_text_sections): New.
30289         (final_scan_insn): Call function_switched_text_sections when a
30290         mid-function section change occurs.
30291         * output.h (default_function_switched_text_sections): Declare.
30292         * config/darwin-protos.h (darwin_function_switched_text_sections):
30293         Likewise.
30294         * config/darwin.c (darwin_function_switched_text_sections): New.
30295         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30297 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30299         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
30300         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
30301         the secondary code fragment when outputting for DWARF == 2.
30303 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
30305         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30306         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30307         Remove.
30308         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30309         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30311 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30313         PR debug/46704
30314         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30315         when it is not empty.
30317 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
30319         Bobcat Enablement
30320         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30321         (case ${target}): Add btver1.
30322         * config/i386/driver-i386.c (host_detect_local_cpu): Let
30323         -march=native recognize btver1 processors.
30324         * config/i386/i386-c.c (ix86_target_macros_internal): Add
30325         btver1 def_and_undef
30326         * config/i386/i386.c (struct processor_costs btver1_cost): New
30327         btver1 cost table.
30328         (m_BTVER1): New definition.
30329         (m_AMD_MULTIPLE): Includes m_BTVER1.
30330         (initial_ix86_tune_features): Add btver1 tune.
30331         (processor_target_table): Add btver1 entry.
30332         (static const char *const cpu_names): Add btver1 entry.
30333         (software_prefetching_beneficial_p): Add btver1.
30334         (ix86_option_override_internal): Add btver1 instruction sets.
30335         (ix86_issue_rate): Add btver1.
30336         (ix86_adjust_cost): Add btver1.
30337         * config/i386/i386.h (TARGET_BTVER1): New definition.
30338         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30339         (enum processor_type): Add PROCESSOR_BTVER1.
30340         * config/i386/i386.md (define_attr "cpu"): Add btver1.
30342 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30344         PR target/43309
30345         * config/i386/i386.c (legitimize_tls_address)
30346         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30347         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30348         (tls_initial_exec_64_sun): New pattern.
30350 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30352         * doc/invoke.texi (Overall Options): Improve wording and markup
30353         of the description of -wrapper.
30355 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30357         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30358         rdynamic, threads): New Driver options.
30360 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30362         PR target/38118
30363         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30364         if coming from .tdata.
30365         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30367 2011-01-06  Jan Hubicka  <jh@suse.cz>
30369         PR lto/47188
30370         * collect2.c (main): Do not enable LTOmode when plugin is active.
30372 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30374         PR other/45915
30375         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30376         --version output if supported.
30377         * configure: Regenerate.
30379 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30381         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30382         Driver options.
30384 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
30386         PR c/47150
30387         * c-convert.c (convert): When converting a complex expression
30388         other than COMPLEX_EXPR to a different complex type, ensure
30389         c_save_expr is called instead of save_expr, unless in_late_binary_op.
30390         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30391         when converting COMPLEX_TYPE.
30393 2011-01-06  Ira Rosen  <irar@il.ibm.com>
30395         PR tree-optimization/47139
30396         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30397         only the last reduction value is used outside the loop.  Update
30398         documentation.
30400 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
30402         * config/rtems.opt: New.
30403         * config.gcc (*-*-rtems*): Use rtems.opt.
30405 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
30407         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30408         processors do not support 3DNow instructions.
30410 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30412         * config/spu/spu.c (spu_option_override): Set parameter
30413         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30415 2011-01-05  Jan Hubicka  <jh@suse.cz>
30417         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30418         at the command line.
30420 2011-01-05  Martin Jambor  <mjambor@suse.cz>
30422         PR lto/47162
30423         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30424         deltas on streamed outgoing edges.
30425         (output_node_opt_summary): Output info for outgoing edges only when
30426         the node is in new parameter set.
30427         (output_cgraph_opt_summary): New parameter set, passed to the two
30428         aforementioned functions.  Update its forward declaration and its
30429         callee too.
30431 2011-01-05  Tom Tromey  <tromey@redhat.com>
30433         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30434         operator to c_finish_omp_atomic.
30435         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30436         (build_unary_op): Update.
30437         (build_modify_expr): Update.
30438         (build_asm_expr): Update.
30440 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30442         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30443         newly inserted insns.
30444         (pad_bb): Likewise.
30445         (spu_emit_branch_hint): Likewise.
30446         (insert_hbrp_for_ilb_runout): Likewise.
30447         (spu_machine_dependent_reorg): Call df_finish_pass after
30448         schedule_insns returns.
30450 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30452         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30454 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
30456         PR tree-optimization/47005
30457         * tree-sra.c (struct access): Add 'non_addressable' bit.
30458         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30459         (decide_one_param_reduction): Return 0 if the parameter is passed by
30460         reference and one of the accesses in the group is non_addressable.
30462 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30464         PR tree-optimization/47056
30465         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30466         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
30467         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
30469 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30471         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30472         initializer.  Skip view conversions from aggregate types.
30474 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
30476         PR bootstrap/47055
30477         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30479 2011-01-04  Philipp Thomas  <pth@suse.de>
30481         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30482         obvious typo.
30484 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30486         * function.c (thread_prologue_and_epilogue_insns): Do not crash
30487         on empty epilogue sequences.
30489 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
30491         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30492         non-static): New Driver options.
30494 2011-01-04  Jie Zhang  <jie@codesourcery.com>
30496         PR driver/47137
30497         * gcc.c (default_compilers[]): Set combinable field to 0
30498         for all assembly languages.
30500 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
30502         * config/mips/loongson3a.md: New file.
30503         * config/mips/mips.md: Include loongson3a.md.
30504         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30505         TUNE_LOONGSON_3A.
30507 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
30509         PR middle-end/47017
30510         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30511         instead of convert_memory_address_addr_space on the base expression.
30513 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30515         * config/spu/spu.c (spu_option_override): Update error text
30516         for bad -march= / -mtune= values.
30518 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30520         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30521         if branch-hint optimization will be performed.
30523 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30525         PR tree-optimization/47148
30526         * ipa-split.c (split_function): Convert arguments to
30527         DECL_ARG_TYPE if possible.
30529         PR tree-optimization/47155
30530         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30531         when computing uns.
30533         PR rtl-optimization/47157
30534         * combine.c (try_combine): If undobuf.other_insn becomes
30535         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30536         and set *new_direct_jump_p too.
30538 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
30540         PR tree-optimization/47021
30541         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30543 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30545         * gcc.c (process_command): Update copyright notice dates.
30546         * gcov.c (print_version): Likewise.
30547         * gcov-dump.c (print_version): Likewise.
30548         * mips-tfile.c (main): Likewise.
30549         * mips-tdump.c (main): Likewise.
30551 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30553         PR tree-optimization/46801
30554         * tree-sra.c (type_internals_preclude_sra_p): Check whether
30555         aggregate fields start at byte boundary instead of the bit-field flag.
30557 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30559         PR driver/47137
30560         * gcc.c (main): Revert revision 168407.
30562 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30564         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30566 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30568         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30569         vector optab to expand vector/scalar shift, update gimple to vector.
30571 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30573         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30574         a thunk.
30576 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30578         PR tree-optimization/46984
30579         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30580         HOST_WIDE_INT.
30581         (cgraph_create_indirect_edge): Fixed line length.
30582         (cgraph_indirect_call_info): Declare.
30583         (cgraph_make_edge_direct) Update declaration.
30584         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30585         (cgraph_create_indirect_edge): Use it.
30586         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
30587         callees.
30588         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30589         the new thunk_delta representation.
30590         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30591         HOST_WIDE_INT.
30592         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30593         (ipa_read_indirect_edge_info): Likewise.
30594         * lto-cgraph.c (output_edge_opt_summary): New function.
30595         (output_node_opt_summary): Call it on all outgoing edges.
30596         (input_edge_opt_summary): New function.
30597         (input_node_opt_summary): Call it on all outgoing edges.
30599 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
30601         PR driver/47137
30602         * gcc.c (main): Don't check have_o when settting combine_inputs.
30604 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
30606         * regrename.c: Add general comment describing the pass.
30607         (struct du_head): Remove 'length' field.
30608         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30609         (regrename_optimize): Do not sort chains.  Rework comments, add others.
30610         Force renaming to the preferred class (if any) in the first pass and do
30611         not consider registers that belong to it in the second pass.
30612         (create_new_chain): Do not set 'length' field.
30613         (scan_rtx_reg): Likewise.
30615 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
30617         PR tree-optimization/47140
30618         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30619         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30620         to bit_value_binop.
30622         PR rtl-optimization/47028
30623         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30624         parm_birth_insn instead of at the beginning of first bb.
30626 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
30628         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30629         Remove the word "see" before "@pxref".
30630         * doc/rtl.texi: Remove the word "see" before "@pxref".
30632 2011-01-01  Jan Hubicka  <jh@suse.cz>
30634         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30635         memory.
30637 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
30639         PR target/38662
30640         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30643 Copyright (C) 2011 Free Software Foundation, Inc.
30645 Copying and distribution of this file, with or without modification,
30646 are permitted in any medium without royalty provided the copyright
30647 notice and this notice are preserved.