OSDN Git Service

2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2
3         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
4         Load GOT pointer for non-pic builds.
5         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
6         (s390_emit_call): Likewise.
7
8 2011-10-07  Tom de Vries  <tom@codesourcery.com>
9
10         PR middle-end/50527
11         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
12         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
13         * tree-ssa-ccp.c (evaluate_stmt): Set align for
14         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
15         * ipa-pure-const.c (special_builtin_state): Handle
16         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
17         * function.c (gimplify_parameters): Lower vla to
18         * gimplify.c (gimplify_vla_decl): Same.
19         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
20         * tree-mudflap.c (mf_xform_statements): Same.
21         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
22         * varasm.c (incorporeal_function_p): Same.
23         * tree-object-size.c (alloc_object_size): Same.
24         * gimple.c (gimple_build_call_from_tree): Same.
25
26 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
27
28         * function.c (frame_required_for_rtx): Remove function.
29         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
30         changed.  Compute a set of mentioned registers and compare against
31         the new arg rather than calling frame_required_for_rtx.
32         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
33         reg set.  Convert the unconverted_simple_returns mechanism to store
34         jump insns rather than their basic blocks.  Also check the
35         orig_entry_edge destination for new blocks.
36
37 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
38
39         PR tree-optimization/50650
40         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
41         call vect_is_simple_cond here, instead fail if cond_expr isn't
42         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
43         for cond_expr's first operand.
44         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
45         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
46
47 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
48
49         * config/s390/s390.md (DWH, dwh): New mode macros.
50         ("umulsidi3"): Extend to support "umulditi3" as well.
51
52 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
53             H.J. Lu  <hongjiu.lu@intel.com>
54
55         PR target/50603
56         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
57         integer PLUS RTX to a register to improve address combine.
58
59 2011-10-06  Richard Henderson  <rth@redhat.com>
60
61         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
62         parameter; use it to decide whether to merge two notes.
63         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
64         for the deallocation case as well.
65
66 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
67
68         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
69         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
70         * doc/tm.texi: Regenerate.
71         * target.def (output_addr_const_extra): Use
72         hook_bool_FILEptr_rtx_false.
73         * targhooks.c (default_asm_output_addr_const_extra): Remove.
74         * targhooks.h (default_asm_output_addr_const_extra): Remove.
75         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
76         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
77
78 2011-10-06  David S. Miller  <davem@davemloft.net>
79
80         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
81         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
82         SI mode 64-bit code gen case explicitly zero-extend and truncate.
83         (*popcount<mode>_sp64): Split up into...
84         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
85         SImode case use truncate.
86         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
87         subtract so the compiler can optimize it.
88         (SIDI): Remove unused mode iterator.
89
90 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
91
92         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
93         on the orig_entry_edge. Don't account for it in prologue_clobbered.
94
95 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
96
97         PR tree-optimization/50596
98         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
99         (NUM_PATTERNS): Change to 6.
100         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
101         function.
102         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
103         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
104         if it already has one, and don't set STMT_VINFO_VECTYPE in it
105         if it is already set.
106         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
107         COND_EXPR in pattern stmts.
108         (vect_is_simple_cond): No longer static.
109
110 2001-10-06  Richard Henderson  <rth@redhat.com>
111
112         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
113         * config/i386/sse.md (sseshuffint): Remove.
114         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
115         (VSHUFFLE_AVX2): New mode iterator.
116         (vshuffle<mode>): Use it.
117         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
118
119         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
120         for vector_all_ones_operand.
121         (ix86_expand_int_vcond): Distinguish between comparison mode
122         and data mode.  Allow them to differ.
123         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
124
125 2001-10-06  Richard Henderson  <rth@redhat.com>
126
127         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
128         mask operand.  Tidy the code.
129
130 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
131
132         * tree-vect-patterns.c (vect_pattern_recog_1): Use
133         vect_recog_func_ptr typedef for the first argument.
134         (vect_pattern_recog): Rename vect_recog_func_ptr variable
135         to vect_recog_func, use vect_recog_func_ptr typedef for it.
136
137         PR tree-optimization/49279
138         * tree-ssa-structalias.c (find_func_aliases): Don't handle
139         CAST_RESTRICT.
140         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
141         restrict propagation.
142         * tree-ssa.c (useless_type_conversion_p): Don't return false
143         if TYPE_RESTRICT differs.
144
145 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
146
147         * function.c (thread_prologue_and_epilogue_insns): Build a vector
148         of unconverted simple return blocks rather than trying to
149         recompute them later based on bb_flags bitmap tests.
150
151 2011-10-06  Michael Matz  <matz@suse.de>
152
153         * tree-flow.h (get_var_ann): Don't declare.
154         * tree-flow-inline.h (get_var_ann): Remove.
155         (set_is_used): Use var_ann, not get_var_ann.
156         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
157         * tree-profile.c (gimple_gen_edge_profiler): Call
158         find_referenced_var_in.
159         (gimple_gen_interval_profiler): Ditto.
160         (gimple_gen_pow2_profiler): Ditto.
161         (gimple_gen_one_value_profiler): Ditto.
162         (gimple_gen_average_profiler): Ditto.
163         (gimple_gen_ior_profiler): Ditto.
164         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
165         (gimple_gen_ic_func_profiler): Call add_referenced_var.
166         * tree-mudflap.c (execute_mudflap_function_ops): Call
167         add_referenced_var.
168
169 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
170
171         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
172         don't set SSA_NAME_DEF_STMT that has been already set by
173         gimple_build_assign_with_ops.
174         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
175         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
176         Likewise.
177
178         * tree.h (avoid_folding_inline_builtin): New prototype.
179         * builtins.c (avoid_folding_inline_builtin): No longer static.
180         * gimple-fold.c (gimple_fold_builtin): Give up if
181         avoid_folding_inline_builtin returns true.
182
183 2011-10-06  Richard Guenther  <rguenther@suse.de>
184
185         * tree-vect-generic.c (vector_element): Look at previous
186         generated results.
187
188 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
189
190         PR target/39950
191         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
192         __powerpc__, __PPC__, __unix__.
193
194 2011-10-06  Michael Matz  <matz@suse.de>
195
196         * i386/i386.opt (recip_mask, recip_mask_explicit,
197         x_recip_mask_explicit): New variables and cl_target member.
198         (mrecip=): New option.
199         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
200         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
201         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
202         TARGET_RECIP_VEC_SQRT): New tests.
203         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
204         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
205         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
206         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
207         * i386/i386.c (ix86_option_override_internal): Set recip_mask
208         for -mrecip and -mrecip=options.
209         (ix86_function_specific_save): Save recip_mask_explicit.
210         (ix86_function_specific_restore): Restore recip_mask_explicit.
211
212         * doc/invoke.texi (ix86 Options): Document the new option.
213
214 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
215
216         PR target/49049
217         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
218
219 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
220
221         PR target/50305
222         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
223         output of a previous pass through legitimize_reload_address.
224         Do not attempt to optimize addresses if the base register is
225         equivalent to a constant.
226
227 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
228
229         * function.c (thread_prologue_and_epilogue_insns): Mark
230         last_bb_active as possibly unused.  It is unused for targets which
231         do neither have "return" nor "simple_return" expanders.
232
233 2011-10-06  Richard Guenther  <rguenther@suse.de>
234
235         * fold-const.c (fold_ternary_loc): Also fold non-constant
236         vector CONSTRUCTORs.  Make more efficient.
237         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
238         (cprop_into_stmt): Don't propagate into virtual operands.
239         (optimize_stmt): Really dump original statement.
240
241 2011-10-06  Nick Clifton  <nickc@redhat.com>
242
243         * config/rx/rx.md (smin3): Revert previous delta.
244
245 2011-10-06  Richard Guenther  <rguenther@suse.de>
246
247         PR tree-optimization/38884
248         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
249         reads from aggregate SSA names.
250
251 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
252
253         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
254         argument, truncate it at the beginning instead of allocating there
255         and freeing at the end.
256         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
257         pass its address to vect_pattern_recog_1.
258
259 2011-10-05  David S. Miller  <davem@davemloft.net>
260
261         * config/sparc/sparc.opt (POPC): New option.
262         * doc/invoke.texi: Document it.
263         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
264         default on Niagara-2 and later.
265         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
266         * config/sparc/sparc.md (SIDI): New mode iterator.
267         (ffsdi2): Delete commented out pattern and comments.
268         (popcount<mode>2, clz<mode>2): New expanders.
269         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
270         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
271
272 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
273
274         PR middle-end/50607
275         * c-tree.h (c_expr_t): New typedef for struct c_expr.
276         (C_EXPR_APPEND): New macro.
277         * c-parser.c (c_parser_get_builtin_args): Preserve
278         original_tree_code of c_expr structure.
279         (c_parser_postfix_expression): Adjust to the new function.
280
281 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
282
283         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
284         if profiling after the prologue.
285
286 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
287
288         PR tree-optimization/50613
289         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
290         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
291         and if it is neither that not SSA_NAME, give up.
292
293 2011-10-05  Richard Henderson  <rth@redhat.com>
294
295         * tree-vect-generic.c (vector_element): Never fail.  Use
296         build_zero_cst.  Tidy up type references.
297         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
298         code duplication.  Do update_stmt here ...
299         (expand_vector_operations_1): ... not here.
300
301         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
302         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
303         duplication.  Handle V2DI without SSE4.1.
304         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
305         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
306
307 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
308
309         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
310         of "found".  Simplify return value calculation.
311         (distance_agu_use): Ditto.
312
313 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
314
315         PR bootstrap/50621
316         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
317         if the function was not shrink-wrapped.
318         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
319         to an insn.
320         * function.c (thread_prologue_and_epilogue_insns): Make sure the
321         shrink_wrapped flag is set even if there is no dump file.
322
323 2011-10-05  DJ Delorie  <dj@redhat.com>
324             Nick Clifton  <nickc@redhat.com>
325
326         * config/rx/rx.opt (mpid): Define.
327         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
328         (MULTILIB_DIRNAMES): Add pid.
329         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
330         (rx_num_interrupt_regs): New variable.
331         (rx_gp_base_regnum): New function.  Returns the number of the
332         small data area register.
333         (rx_pid_base_regnum): New function.  Returns the number of the pid
334         base register.
335         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
336         (rx_pid_data_operand): New function.  Returns whether an object is
337         in the position independent data area.
338         (rx_legitimize_address): New function.  Puts undecided PID
339         objects in the PID data area.
340         (rx_is_legitimate_address): Add support for PID operands.
341         (rx_print_operand_address): Likewise.
342         (rx_print_operand): Likewise.
343         (rx_maybe_pidify_operand): New function.  Determine if an operand
344         is suitable for PID addressing.
345         (rx_gen_move_template): Add PID support.
346         (rx_conditional_register_usage): Likewise.
347         (rx_option_override): Initialise rx_num_interrupt_regs.
348         (rx_is_legitimate_constant): Add support for PID constants.
349         (TARGET_LEGITIMIZE_ADDRESS): Define.
350         * config/rx/constraints.md (Rpid): Define.
351         (Rpda): Define.
352         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
353         (tablejump): Add PID support.
354         (mov<>): Likewise.
355         (mov<>_internal): Likewise.
356         (addsi3): Convert to an expander.  Add PID support.
357         (pid_addr): New pattern.
358         * config/rx/rx.h (CPP_SPEC): Define.
359         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
360         (CASE_VECTOR_PC_RELATIVE): Define.
361         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
362         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
363         * doc/invoke.texi (RX Options): Document -mpid command line option.
364
365 2011-10-05  Richard Guenther  <rguenther@suse.de>
366
367         PR tree-optimization/38885
368         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
369         from constants.
370
371 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
372
373         * doc/invoke.texi (-fshrink-wrap): Document.
374         * opts.c (default_options_table): Add it.
375         * common.opt (fshrink-wrap): Add.
376         * function.c (emit_return_into_block): Remove useless declaration.
377         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
378         requires_stack_frame_p, gen_return_pattern): New static functions.
379         (emit_return_into_block): New arg simple_p.  All callers changed.
380         Use gen_return_pattern.
381         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
382         * config/i386/i386.md (return): Expand into a simple_return.
383         (simple_return): New expander):
384         (simple_return_internal, simple_return_internal_long,
385         simple_return_pop_internal_long, simple_return_indirect_internal):
386         Renamed from return_internal, return_internal_long,
387         return_pop_internal_long and return_indirect_internal; changed to use
388         simple_return.
389         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
390         simple returns.
391         (ix86_pad_returns): Likewise.
392         * function.h (struct rtl_data): Add member shrink_wrapped.
393         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
394         are not jumps or sibcalls can't be compared.
395
396 2011-10-05  Richard Guenther  <rguenther@suse.de>
397
398         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
399         vector type.
400         (simplify_unary_expression): Handle BIT_FIELD_REFs.
401         (try_to_simplify): Handle BIT_FIELD_REFs.
402
403 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
404
405         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
406         * config/avr/avr.c (avr_out_addto_sp): New function.
407         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
408         * config/avr/avr.md (adjust_len): Add "addto_sp".
409         (*movhi_sp): Remove insn.
410         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
411
412 2011-10-05  Richard Guenther  <rguenther@suse.de>
413
414         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
415         with an embedded expression valueize and fold that as well.
416         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
417         results from gimple_fold_stmt_to_constant_1.
418
419 2011-10-05  Nick Clifton  <nickc@redhat.com>
420
421         * config/rx/rx.md (tablejump): Add missing label.
422         (adddi3_internal): Mark operand 0 as early-clobbered.
423         (smaxsi3): Revert previous delta.
424         (adc_internal): Fix whitespace in generated asm.
425         (adc_flags): Likewise.
426
427 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
428
429         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
430         with the new widening_optab_handler.
431
432 2011-10-05  Richard Guenther  <rguenther@suse.de>
433
434         PR tree-optimization/50609
435         * gimple-fold.c (fold_array_ctor_reference): Also handle
436         vector typed constructors.
437         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
438         for vector typed constructors.
439
440 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
441
442         * config/i386/i386.c (ix86_emit_binop): New static function.
443         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
444         instructions.
445         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
446
447 2011-10-04  David S. Miller  <davem@davemloft.net>
448
449         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
450         UNSPEC_XMUL): New unspecs.
451         (muldi3_v8plus): Use output_v8plus_mult.
452         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
453         New VIS 3.0 combiner patterns.
454         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
455         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
456         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
457         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
458         builtins patterns.
459         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
460         (output_v8plus_mult): New function.
461         * config/sparc/sparc-protos.h: Declare it.
462         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
463         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
464         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
465         * doc/extend.texi: Document new builtins.
466
467 2011-10-04  Richard Henderson  <rth@redhat.com>
468
469         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
470         Avoid save_expr unless two_arguments.
471
472 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
473
474         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
475         * config/i386/mingw32.h (CPP_SPEC): Likewise.
476
477 2011-10-04  David S. Miller  <davem@davemloft.net>
478
479         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
480         under Linux.
481
482 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
483
484         PR tree-optimization/50604
485         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
486         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
487         last argument to memcpy has size_type_node type instead of ssizetype.
488         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
489         instead of TREE_TYPE (len) as type for newlen.
490
491         PR tree-optimization/50522
492         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
493         TYPE_RESTRICT.
494         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
495         unconditionally.
496
497         * fold-const.c (fold_unary_loc): Don't optimize
498         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
499         casting the inner pointer if it isn't TYPE_RESTRICT.
500         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
501         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
502
503 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
504
505         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
506
507 2011-10-04  Jan Hubicka  <jh@suse.cz>
508
509         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
510         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
511         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
512         * lto-cgraph.c (order_base): New static var.
513         (lto_output_node): Stream in order.
514         (lto_output_varpool_node): Stream out order.
515         (input_node): Stream in order.
516         (input_varpool_node): Stream out order.
517         (input_cgraph_1): Initialize order base; update call of
518         lto_input_toplevel_asms.
519
520 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
521
522         PR target/50566
523         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
524         prototype.
525         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
526         from here...
527         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
528         function.  Log if avr_log.legitimize_reload_address.
529
530 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
531
532         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
533
534 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
535
536         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
537         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
538
539 2011-10-03  David S. Miller  <davem@davemloft.net>
540
541         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
542         GSR_REG an input operand to UNSPEC instead of a parallel USE.
543         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
544         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
545         Reference GSR_REG in DI mode, simplify convoluted expressions by using
546         zero_extract.
547         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
548
549 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
550
551         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
552
553 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
554             Ian Lance Taylor  <iant@google.com>
555
556         * godump.c (go_output_typedef): Support printing enum values that
557         don't fit in a signed HOST_WIDE_INT.
558
559 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
560
561         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
562         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
563         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
564         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
565
566 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
567
568         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
569         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
570         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
571         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
572
573 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
574
575         PR target/49967
576         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
577         (gcc_cv_ld_static_option): Ditto.
578         (gcc_cv_ld_dynamic_option): Ditto.
579         * configure: Regenerate.
580
581 2011-10-03  David S. Miller  <davem@davemloft.net>
582
583         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
584         and 'si' patterns which describe the GSR changes explicitly in the
585         RTL using zero_extract.
586         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
587
588         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
589         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
590
591 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
592
593         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
594         if given expression can be expanded by the target.
595         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
596         using target vector instructions.
597         * optabs.h: New optab vshuffle.
598         (expand_vec_shuffle_expr_p): New prototype.
599         (expand_vec_shuffle_expr): New prototype.
600         (vshuffle_optab): New optab.
601         * genopinit.c: Adjust to support vecshuffle.
602         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
603         * expr.c (expand_expr_real_2): Adjust.
604         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
605         recognizing the cases of two and three arguments.
606         (convert_arguments) (build_binary_op)
607         (scalar_to_vector) (build_array_ref): Spurious whitespace.
608         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
609         * tree.def: New tree code VEC_SHUFFLE_EXPR.
610         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
611         * tree-vect-generic.c (vector_element): New function. Returns an
612         element of the vector at the given position.
613         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
614         by the backend or expand an expression piecewise.
615         (expand_vector_operations_1): Adjusted.
616         (gate_expand_vector_operations_noop): New gate function.
617         * Makefile.in (tree-vect-generic.o): New include.
618         * gimple.c (get_gimple_rhs_num_ops): Adjust.
619         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
620         * passes.c: Move veclower down.
621         * tree-pretty-print.c (dump_generic_node): Recognize
622         VEC_SHUFFLE_EXPR as valid expression.
623         * c-parser.c (c_parser_get_builtin_args): Helper function for the
624         builtins with variable number of arguments.
625         (c_parser_postfix_expression): Use a new helper function for
626         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
627         * tree-ssa-operands: Adjust.
628         * c-family/c-common.c: New __builtin_shuffle keyword.
629         * c-family/c-common.h: New __builtin_shuffle keyword.
630         * gcc/doc/extend.texi: Adjust.
631
632         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
633         between the vector and the type of the mask when shuffling.
634         (vecshuffle<mode>): New expansion.
635         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
636         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
637         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
638
639 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
640
641         PR tree-optimization/50587
642         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
643         arg0 is not a SSA_NAME.
644
645 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
646
647         * ipa-inline-analysis.c (MAX_TIME): Update comment.
648
649 2011-10-02  Richard Henderson  <rth@redhat.com>
650             David S. Miller  <davem@davemloft.net>
651
652         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
653         conditional insn type setting, we always emit a shift.
654         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
655         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
656         * config/sparc/predicates.md (const_one_operand): Delete.
657
658 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
659
660         * invoke.texi (SPARC Options): Refer to GNU/Linux.
661
662 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
663
664         * config/mips/mips.c (mips_frame_barrier): New function.
665         (mips_expand_prologue): Call it after allocating stack space.
666         (mips_deallocate_stack): New function.
667         (mips_expand_epilogue): Call mips_frame_barrier and
668         mips_deallocate_stack.
669
670 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
671
672         PR target/49696
673         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
674         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
675         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
676
677 2011-10-02  Jan Hubicka  <jh@suse.cz>
678
679         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
680
681         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
682         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
683         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
684         functions are reachable when address is taken.
685         * tree-sra.c (modify_function): Free dominance info.
686
687 2011-10-02  Jan Hubicka  <jh@suse.cz>
688
689         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
690
691         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
692         (reset_inline_summary): New function.
693         (compute_inline_parameters, inline_node_removal_hook,
694         inline_edge_removal_hook): Use it.
695         (inline_free_summary): Reset holders correctly.
696         (inline_generate_summary): Free summary before computing it.
697
698 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
699
700         PR preprocessor/36819
701         * incpath.c (merge_include_chains): Call free_path on
702         heads[QUOTE] and tails[QUOTE].
703
704 2011-10-02  Jan Hubicka  <jh@suse.cz>
705
706         PR lto/47247
707         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
708         when resolution is already availbale from plugin.
709         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
710         * cgraph.c (ld_plugin_symbol_resolution): Add
711         prevailing_def_ironly_exp.
712         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
713         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
714         externally visible.
715         * varasm.c (resolution_to_local_definition_p): Add
716         LDPR_PREVAILING_DEF_IRONLY_EXP.
717         (resolution_local_p): Likewise.
718
719 2011-10-01  David S. Miller  <davem@davemloft.net>
720
721         * config/sparc/sparc.opt (VIS3): New option.
722         * doc/invoke.texi: Document it.
723         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
724         not capable of such instructions.
725         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
726         to 0x300 when TARGET_VIS3.
727         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
728         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
729         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
730         (V64N8, VASS): New mode iterators.
731         (vis3_shift, vis3_addsub_ss): New code iterators.
732         (vbits, vconstr): New mode attributes.
733         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
734         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
735         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
736         fmean16_vis, fpadd64_vis, fpsub64_vis,
737         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
738         VIS 3.0 instruction patterns.
739         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
740         default when targetting capable cpus.  TARGET_VIS3 implies
741         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
742         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
743         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
744         is ignored.
745         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
746         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
747         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
748         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
749         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
750         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
751         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
752         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
753         * doc/extend.texi: Document new VIS 3.0 builtins.
754
755 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
756
757         * ira-color.c (assign_hard_reg): Fix typo.
758
759 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
760
761         * doc/extend.texi: Add missing ','.
762
763 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
764
765         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
766         Enable -fmodulo-sched at -O2 and above.
767         * config/c6x/c6x.md (doloop_end): New expander.
768         (mvilc, sploop, spkernel, loop_end): New patterns.
769         (loop_end with memory destination splitter): New.
770         * config/c6x/c6x.c: Include "hw-doloop.h".
771         (enum unitreqs): New.
772         (unit_req_table): New typedef.
773         (unit_reqs): New static variable.
774         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
775         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
776         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
777         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
778         (struct c6x_sched_context): New member last_scheduled_iter0.
779         (init_sched_state): Initialize it.
780         (c6x_variable_issue): Update it.
781         (sploop_max_uid_iter0): New static variable.
782         (c6x_sched_reorder_1): Be careful about issuing sploop.
783         (c6x_reorg): Call c6x_hwlooops before the final schedule.
784
785 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
786
787         PR target/50566
788         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
789         * config/avr/avr.c (avr_address_cost): Use it.
790         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
791         (avr_log_vadump): Unknown %-codes finish printing.
792
793 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
794
795         PR inline-asm/50571
796         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
797         input constraints allow mem and not reg, pass true instead of
798         false as second argument to maybe_fold_reference.
799
800         PR tree-optimization/46309
801         * fold-const.c (make_range, merge_ranges): Remove prototypes.
802         (make_range_step): New function.
803         (make_range): Use it.
804         * tree.h (make_range_step): New prototypes.
805         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
806         * tree-ssa-reassoc.c: Include diagnostic-core.h.
807         (struct range_entry): New type.
808         (init_range_entry, range_entry_cmp, update_range_test,
809         optimize_range_tests): New functions.
810         (reassociate_bb): Call optimize_range_tests.
811
812 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
813             Richard Guenther  <rguenther@suse.de>
814
815         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
816         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
817         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
818         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
819         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
820         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
821
822 2011-09-30  Jan Beulich  <jbeulich@suse.com>
823
824         * lto-cgraph.c (output_cgraph): Remove processing of
825         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
826         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
827         lto_input_toplevel_asms() instead.
828         * lto-section-in.c (lto_section_name): Add "asm" entry.
829         * lto-streamer-in.c (lto_input_toplevel_asms): New.
830         * lto-streamer-out.c (lto_output_toplevel_asms): New.
831         * lto-streamer.h (LTO_minor_version): Bump.
832         (enum lto_section_type): Add LTO_section_asm.
833         (struct lto_asm_header): New.
834         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
835         * tree-streamer.h (streamer_write_string_cst): Declare.
836         * tree-streamer-out.c (write_string_cst): Rename to
837         streamer_write_string_cst and make global. Handle incoming string
838         being NULL.
839         (streamer_write_tree_header): Adjust call to renamed function.
840
841 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
842
843         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
844         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
845         modulo_last_stage): New static variables.
846         (set_modulo_params, discard_delay_pairs_above): New functions.
847         (struct delay_pair): New member stages.
848         (htab_i2_traverse, htab_i1_traverse): New static functions.
849         (record_delay_slot_pair): New arg stages.  All callers changed.
850         Record it.
851         (pair_delay): Take stages into account.
852         (add_delay_dependencies): Don't do so for stage pairs.
853         (struct sched_block_state): New member modulo_epilogue.
854         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
855         (unschedule_insns_until): Decrease modulo_insns_scheduled.
856         Set HARD_DEP without using or.
857         (resolve_dependencies): New static function.
858         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
859         If it is true, allow only insns with INSN_EXACT_TICK set.
860         (schedule_block): Return bool, always true for normal scheduling,
861         true or false depending on modulo scheduling success otherwise.
862         Add bookkeeping for modulo scheduling, and call resolve_dependencies
863         on everything left over after a modulo schedule.
864         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
865         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
866         declarations.
867         (set_modulo_params, discard_delay_pairs_above): Declare.
868         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
869         * doc/invoke.texi (--param): Document it.
870
871         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
872         New arg modulo_scheduling.  All callers changed.  Move note handling
873         code here from schedule_ebbs.
874         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
875         out of schedule_ebbs.
876         (schedule_ebbs): Call them.  Remove note handling code moved to
877         schedule_ebb.
878         * sched-int.h (schedule_ebb, schedule_ebbs_init,
879         schedule_ebbs_finish): Declare.
880
881 2011-09-30  Richard Guenther  <rguenther@suse.de>
882
883         PR middle-end/50574
884         * tree-cfg.c (verify_gimple_comparison): Compare component
885         mode sizes for vector comparisons.
886
887 2011-09-30  Revital Eres  <revital.eres@linaro.org>
888
889         * ddg.c (autoinc_var_is_used_p): New function.
890         (create_ddg_dep_from_intra_loop_link,
891         add_cross_iteration_register_deps): Call it.
892         * ddg.h (autoinc_var_is_used_p): Declare.
893         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
894         (sms_schedule): Handle instructions with REG_INC.
895
896 2011-09-30  Revital Eres  <revital.eres@linaro.org>
897
898         * modulo-sched.c (generate_reg_moves): Skip instructions that
899         do not set a register and verify no regmoves are created for
900         !single_set instructions.
901
902 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
903
904         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
905         insns.
906
907 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
908
909         PR target/50099
910         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
911         (qhs_zextenddi_op): New.
912         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
913         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
914         Distinguish between ARM and Thumb2 states.
915
916 2011-09-30  David S. Miller  <davem@davemloft.net>
917
918         * config/sparc/sparc.opt (VIS2): New option.
919         * doc/invoke.texi: Document it.
920         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
921         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
922         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
923         (define_attr type): New insn type 'edgen'.
924         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
925         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
926         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
927         patterns.
928         * niagara.md: Handle edgen.
929         * niagara2.md: Likewise.
930         * ultra1_2.md: Likewise.
931         * ultra3.md: Likewise.
932         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
933         to 0x200 when TARGET_VIS2.
934         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
935         default when targetting capable cpus.  TARGET_VIS2 implies
936         TARGET_VIS, clear and it when TARGET_FPU is disabled.
937         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
938         (sparc_expand_builtin): Fix predicate indexing when builtin returns
939         void.
940         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
941         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
942         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
943         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
944         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
945         * doc/extend.texi: Document new VIS 2.0 builtins.
946
947 2011-09-29  Nick Clifton  <nickc@redhat.com>
948             Bernd Schmidt  <bernds@codesourcery.com>
949
950         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
951         * config/frv/frvend.c: Likewise.
952         * config/frv/frv.c (frv_function_prologue): Move misplaced
953         CALL_ARG_LOCATION notes back to their proper locations.
954
955 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
956
957         PR target/50566
958         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
959         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
960         from avr_rtx_costs.
961         (avr_legitimate_address_p): Use avr_edump to print log information
962         filtered by avr_log.
963         (extra_constraint_Q): Ditto.
964         (avr_legitimize_address): Ditto.
965         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
966         (final_prescan_insn): Use avr_log.rtx_costs as filter.
967
968 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
969
970         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
971         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
972         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
973         NEON vector and structure modes to be tied.
974
975 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
976
977         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
978         forward declaration.
979         (remove_duplicate_close_phi): Detect and repair creation of
980         duplicate close-phis for a containing loop.
981
982 2011-09-27   Andi Kleen <ak@linux.intel.com>
983
984         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
985         /dev/urandom.  Add getpid call.
986         (compare_debug_dump_opt_spec_function): Drop getpid call.
987
988 2011-09-26   Andi Kleen <ak@linux.intel.com>
989
990         * toplev.c (init_local_tick): Try reading random seed
991         from /dev/urandom.
992
993 2011-09-26   Andi Kleen <ak@linux.intel.com>
994
995         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
996         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
997         Handle numerical random seed.
998         * lto-streamer.h (lto_file_decl_data): Change id to
999         unsigned HOST_WIDE_INT.
1000         * toplev.c (random_seed): Add.
1001         (init_random_seed): Change for numerical random seed.
1002         (get_random_seed): Return as HOST_WIDE_INT.
1003         (set_random_seed): Crc32 existing string.
1004         * toplev.h (get_random_seed): Change to numercal return.
1005         * tree.c (get_file_function_name): Remove CRC. Handle
1006         numerical random seed.
1007
1008 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
1009
1010         PR target/50566
1011         * config.gcc (extra_objs): Add avr-log.o for $target in:
1012         avr-*-rtems*, avr-*-*.
1013         * config/avr/t-avr (avr-log.o): New rule to compile...
1014         * config/avr/avr-log.c: ...this new file.
1015         * config/avr/avr.opt (mlog=): New option.
1016         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
1017         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
1018         (avr_log_set_avr_log): New prototype.
1019         (avr_log_t): New typedef.
1020         (avr_log): New declaration.
1021         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
1022
1023 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1024
1025         * expr.c (do_store_flag): Expand vector comparison by
1026         building an appropriate VEC_COND_EXPR.
1027         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
1028         (c_objc_common_truthvalue_conversion): Adjust.
1029         * tree-vect-generic.c (do_compare): Helper function.
1030         (expand_vector_comparison): Check if hardware supports
1031         vector comparison of the given type or expand vector piecewise.
1032         (expand_vector_operation): Treat comparison as binary
1033         operation of vector type.
1034         (expand_vector_operations_1): Adjust.
1035
1036 2011-09-29  Richard Guenther  <rguenther@suse.de>
1037
1038         * tree.c (build_opaque_vector_type): Make opaque vectors
1039         variant types of the corresponding non-opaque type.  Make
1040         sure to share opaque vector types properly.
1041
1042 2011-09-29  David S. Miller  <davem@davemloft.net>
1043
1044         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
1045         UNSPEC_ARRAY32): New unspec.
1046         (define_attr type): New type 'array'.
1047         (array{8,16,32}<P:mode>_vis): New patterns.
1048         * config/sparc/ultra1_2.md: Add reservations for 'array'.
1049         * config/sparc/ultra3.md: Likewise.
1050         * config/sparc/niagara.md: Likewise.
1051         * config/sparc/niagara2.md: Likewise.
1052         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
1053         array builtins.
1054         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
1055         __vis_array32): New.
1056         * doc/extend.texi: Document new VIS builtins.
1057
1058         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
1059         (VIS pixel-compare insn): Just use <gcond:name>.
1060
1061         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
1062         code iterator used, so just use <code>.  There are two mode iterators
1063         so explicitly use <GCM:gcm_name>.
1064
1065 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
1066
1067         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
1068         Darwin >= 9.
1069
1070 2011-09-28  David S. Miller  <davem@davemloft.net>
1071
1072         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
1073         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
1074         (UNSPEC_FCMP): New unspec.
1075         (gcond): New code iterator.
1076         (gcond_name): New code attr.
1077         (GCM): New mode iterator.
1078         (gcm_name): New mode attr.
1079         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
1080
1081 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
1082
1083         PR target/49486
1084         * config/sh/sh.md (negdi2): Move expansion into split to
1085         allow more combination options.  Add T_REG clobber.
1086         (abssi2): New expander.
1087         (*negdi2, *abssi2, *negabssi2): New insns.
1088         (cneg): Change from insn to insn_and_split.  Rename to
1089         negsi_cond.  Add alternative for non-SH4.
1090
1091 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
1092
1093         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
1094         (neon_move_hi_quad_<mode>): Likewise.
1095         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
1096
1097 2011-09-28  Nick Clifton  <nickc@redhat.com>
1098
1099         * config/rx/predicates.md (rx_minmax_operand): New predicate.
1100         Accepts immediates and a restricted subset of MEMs.
1101         * config/rx/rx.md (int_modes): New iterator.
1102         (smaxsi3, sminsi3): Delete and replace with...
1103         (smax<int_mode>3, smin<int_mode>3): New patterns.
1104         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
1105
1106 2011-09-28  Richard Guenther  <rguenther@suse.de>
1107
1108         PR middle-end/50460
1109         * fold-const.c (try_move_mult_to_index): Handle &a.array the
1110         same as &a.array[0].
1111
1112 2011-09-28  Kai Tietz  <ktietz@redhat.com>
1113
1114         * configure.ac: Add test for new section attribute
1115         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1116         * config.in: Regenerated.
1117         * configure: Regenerated.
1118         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1119         new section flag "e" for excluded sections, if supported.
1120         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1121
1122 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1123
1124         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1125         throughout file.
1126
1127 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1128
1129         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1130         throughout file.
1131
1132 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
1133
1134         * output.h (SECTION_EXCLUDE): New macro.
1135         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1136
1137 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1138
1139         * fwprop.c (forward_propagate_and_simplify): After checking
1140         reg/subreg combinations, check whether the modes are the same.
1141
1142 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1143             Richard Sandiford  <rdsandiford@googlemail.com>
1144
1145         * config/mips/mips.c (mips_add_cfa_restore): New function.
1146         (mips16e_save_restore_reg): Use it.
1147         (mips_restore_reg): Likewise.  Split double FPRs for
1148         REG_CFA_RESTORE notes.
1149
1150 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1151
1152         PR middle-end/50386
1153         PR middle-end/50326
1154         * tree-sra.c (build_ref_for_model): Use the type of the field as
1155         the type of the COMPONENT_REF.
1156
1157 2011-09-27  Jeff Law  <law@redhat.com>
1158
1159         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
1160         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1161         (find_if_case_1): Use the probability of the THEN clause when
1162         determining if speculation is profitable.
1163         (find_if_case_2): Similarly for the ELSE clause.
1164
1165 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1166
1167         * common.opt: Add -foptimize-strlen option.
1168         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1169         (tree-sssa-strlen.o): Add dependencies.
1170         * opts.c (default_options_table): Enable -foptimize-strlen
1171         by default at -O2 if not -Os.
1172         * passes.c (init_optimization_passes): Add pass_strlen
1173         after pass_object_sizes.
1174         * timevar.def (TV_TREE_STRLEN): New timevar.
1175         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1176         * tree-pass.h (pass_strlen): Declare.
1177         * tree-ssa-strlen.c: New file.
1178         * c-decl.c (merge_decls): If compatible stpcpy prototype
1179         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1180
1181 2011-09-27  Tom de Vries  <tom@codesourcery.com>
1182
1183         PR middle-end/43864
1184         * tree-ssa-tail-merge.c: New file.
1185         (struct same_succ_def): Define.
1186         (same_succ, const_same_succ): New typedef.
1187         (struct bb_cluster_def): Define.
1188         (bb_cluster, const_bb_cluster): New typedef.
1189         (struct aux_bb_info): Define.
1190         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1191         (gvn_uses_equal): New function.
1192         (same_succ_print, same_succ_print_traverse, update_dep_bb)
1193         (stmt_update_dep_bb, local_def, same_succ_hash)
1194         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1195         (same_succ_reset): New function.
1196         (same_succ_htab, same_succ_edge_flags)
1197         (deleted_bbs, deleted_bb_preds): New var.
1198         (debug_same_succ): New function.
1199         (worklist): New var.
1200         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1201         (init_worklist, delete_worklist, delete_basic_block_same_succ)
1202         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1203         (print_cluster, debug_cluster, update_rep_bb)
1204         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1205         (all_clusters): New var.
1206         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1207         (merge_clusters, set_cluster): New function.
1208         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1209         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1210         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1211         (find_clusters_1, find_clusters): New function.
1212         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1213         (update_bbs): New var.
1214         (apply_clusters): New function.
1215         (update_debug_stmt, update_debug_stmts): New function.
1216         (tail_merge_optimize): New function.
1217         tree-pass.h (tail_merge_optimize): Declare.
1218         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1219         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1220         (tree-ssa-tail-merge.o): New rule.
1221         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1222         default at OPT_LEVELS_2_PLUS.
1223         * tree-ssa-sccvn.c (vn_valueize): Move to ...
1224         * tree-ssa-sccvn.h (vn_valueize): Here.
1225         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1226         * common.opt (ftree-tail-merge): New switch.
1227         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1228         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1229         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1230         (-ftree-tail-merge, max-tail-merge-comparisons)
1231         (max-tail-merge-iterations): New item.
1232
1233 2011-09-27  Jan Hubicka  <jh@suse.cz>
1234
1235         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1236
1237 2011-09-27  Jan Hubicka  <jh@suse.cz>
1238
1239         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1240         parameters passed by reference; handle loads from non-SSA scalars
1241         and update comments.
1242
1243 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1244
1245         PR rtl-optimization/50249
1246         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1247         instead of opnum and type.  All callers changed.  Remove useless
1248         declaration.
1249         Search forward for other reloads of the same type for the same operand
1250         using the same register; if any are found, return false.
1251         (reload_regs_reach_end_p): Same argument changes; all callers changed.
1252
1253 2011-09-27  Andi Kleen  <ak@linux.intel.com>
1254             Jan Hubicka  <jh@suse.cz>
1255
1256         * doc/invoke.texi (ffat-lto-objects): Document.
1257         * toplev.c (compile_file): Do not output assembly when doing slim lto;
1258         Output __gnu_slim_lto when doing slim lto.
1259         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1260         (cgraph_optimize): Return early when doing slim lto.
1261         * opts.c (finish_options): Complain about lack of linker plugin
1262         when doing slim lto.
1263         * common.opt (ffat-lto-objects): New.
1264
1265 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1266
1267         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1268         between signed and unsigned.
1269
1270 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
1271
1272         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1273         vectorization.
1274         (vectorizable_type_promotion): Likewise.
1275         (vect_analyze_stmt): Call vectorizable_type_demotion and
1276         vectorizable_type_promotion for basic blocks.
1277         (supportable_widening_operation): Don't assume loop vectorization.
1278         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1279         basic blocks.  Update vectorization factor for basic block
1280         vectorization.
1281         (vect_analyze_slp_instance): Allow multiple types for basic block
1282         vectorization.  Recheck unrolling factor after construction of SLP
1283         instance.
1284
1285 2011-09-27  Richard Guenther  <rguenther@suse.de>
1286
1287         * tree-object-size.c (compute_object_sizes): Fix dumping of
1288         folded statement.
1289
1290 2011-09-27  Richard Guenther  <rguenther@suse.de>
1291
1292         PR tree-optimization/50363
1293         * tree-ssa-pre.c (create_expression_by_pieces): Handle
1294         pointer conversions in POINTER_PLUS_EXPRs properly.
1295
1296 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1297
1298         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1299         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1300         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1301         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1302         that produce subreg moves.  Define using VQX iterators.
1303
1304 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
1305
1306         * config/avr/avr.md (ashrqi3): Split alternative "n"
1307         into its remaining parts C03, C04, C05, C06, C07 and describe
1308         impact in CC by attribute "cc" appropriately.
1309         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1310         by digging RTX.
1311
1312 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1313
1314         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1315         from 3 x MAX_MACHINE_MODE.
1316         (CONSTM1_RTX): Define.
1317         * emit-rtl.c (const_tiny_rtx): Change into array of
1318         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1319         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1320         CONSTM1_RTX.
1321         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1322         MODE_VECTOR_INT modes.
1323         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1324         Optimize if one operand is CONSTM1_RTX.
1325         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1326         into mask | x.
1327
1328 2011-09-26  David S. Miller  <davem@davemloft.net>
1329
1330         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1331         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1332         * config/sparc/visintrin.h: Update edge and pixel-compare
1333         intrinsics to return 'long' instead of 'int'.
1334         * doc/extend.texi: Update documentation to match.
1335         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1336         flat, allow any instruction.  Otherwise, when V9 allow parallels
1337         which consist only of sets to registers outside of %o0 to %o5.
1338         (sparc_vis_init_builtins): Update VIS builtin types for edge
1339         and pixel-compare.
1340
1341         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1342         is enabled, mark %gsr as global.
1343         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1344         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1345
1346         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1347         which will now define __VIS and __VIS__ when -mvis is enabled.
1348         * config/sparc/t-sparc: Likewise.
1349         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1350         and add t-sparc to tmake_file for all sparc targets.
1351         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1352         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1353
1354         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1355         builtins for VIS vector addition and subtraction.
1356         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1357         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1358         __vis_fpsub32, __vis_fpsub32s): New.
1359         * doc/extend.texi: Document new VIS intrinsics.
1360
1361 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1362
1363         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1364         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1365         EQ/NE comparisons against +/-1 in the case of unused-after,
1366         non-ld-regs target.
1367
1368 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
1369
1370         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1371         gctx.into_ssa after push_gimplify_context.
1372
1373         * gimple.c (gimple_build_call_valist): New function.
1374         * gimple.h (gimple_build_call_valist): New prototype.
1375         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1376         (update_gimple_call): Likewise.
1377         (update_call_from_tree): Use finish_update_gimple_call.
1378         * tree-ssa-propagate.h (update_gimple_call): New prototype.
1379
1380 2011-09-26  Richard Guenther  <rguenther@suse.de>
1381
1382         PR tree-optimization/50472
1383         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1384         volatile references.
1385
1386 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
1387
1388         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1389         * target.def: (addr_space_subset_p): Likewise.
1390
1391 2011-09-26  Tom de Vries  <tom@codesourcery.com>
1392
1393         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1394         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1395         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1396         of new var.
1397
1398 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1399
1400         PR target/50465
1401         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1402         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1403         output_reload_insisf.
1404         (adjust_len): Set default to "no".
1405         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
1406         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1407         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1408         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1409         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1410         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1411         *lshrsi3_const): Set attribute "adjust_len".
1412         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1413         (output_movsisf): Don't pass insn to output_reload_insisf.
1414         (adjust_insn_length): Handle new alternatives to adjust_len.
1415         Remove handling of ADJUST_LEN_YES.  Clean-up code.
1416
1417 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
1418
1419         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1420         may_trap_p to detect loads that may trap of fault.
1421
1422 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1423
1424         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1425         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1426         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
1427         prototype.
1428         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1429         * config/avr/avr.c: Rename output_reload_insisf_1 to
1430         output_reload_in_const.
1431         (avr_popcount_each_byte): Handle SFmode, too.
1432         (output_reload_in_const): Change so it can handle HI loads, too.
1433         Use avr_popcount_each_byte to work out if scratch register must be
1434         created on the fly.
1435         (output_reload_inhi): Rewrite using output_reload_in_const and...
1436         (output_movhi): ...use it to print constants' loads.
1437         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1438
1439 2011-09-25  David S. Miller  <davem@davemloft.net>
1440
1441         * config/sparc/constraints.md (C, P, Z): New constraints for
1442         const_doube, const_int, and const_vector "all ones" values.
1443         Make unused constraint letters comment match reality.
1444         * config/sparc/predicates.md (const_all_ones_operand,
1445         register_or_zero_or_all_ones_operand): New predicates.
1446         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1447         as well as zero constants when VIS.
1448         (sparc_legitimate_constant_p): Likewise.
1449         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1450         (movsf_insn): Likewise
1451         (movdi_insn_sp64): Add fone alternative.
1452         (movdf_insn_sp32_v9): Likewise.
1453         (movdf_insn_sp64): Likewise.
1454
1455         * configure.ac: Add feature check to make sure the assembler
1456         supports the FMAF, HPC, and VIS 3.0 instructions found on
1457         Niagara-3 and later cpus.
1458         * configure: Rebuild.
1459         * config.in: Likewise.
1460         * config/sparc/sparc.opt: New option '-mfmaf'.
1461         * config/sparc/sparc.md: Add float fused multiply-add patterns.
1462         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1463         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1464         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1465         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1466         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1467         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
1468         disabled.
1469         (sparc_rtx_costs): Handle 'FMA'.
1470         * doc/invoke.texi: Document -mfmaf.
1471
1472 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
1473
1474         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1475         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1476         DECL_BY_REFERENCE parameters.
1477
1478 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1479
1480         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1481         if there is no outgoing edge.
1482
1483         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1484         integral types.
1485
1486 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1487
1488         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1489         of vect_analyze_bb here.
1490         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1491
1492 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1493
1494         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1495         Allow not simple iv if analyzing basic block.
1496         (create_data_ref): Update call to dr_analyze_innermost.
1497         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1498         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1499         * tree-predcom.c (find_looparound_phi): Likewise.
1500         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1501
1502 2011-09-24  David S. Miller  <davem@davemloft.net>
1503
1504         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1505         (SPARC_GSR_REG): Define.
1506         (FIXED_REGISTERS): Mark GSR as fixed.
1507         (CALL_USED_REGISTERS): Mark GSR as call used.
1508         (HARD_REGNO_NREGS): GSR is always 1 register.
1509         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1510         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1511         (REGISTER_NAMES): Add "%gsr".
1512         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1513         (UNSPEC_WRGSR): New unspec.
1514         (GSR_REG): New constant.
1515         (type): Add new insn type 'gsr'.
1516         (fpack16_vis, fpackfix_vis, fpack32_vis,
1517         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1518         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1519         rdgsr_v8plus): New expanders and insns.
1520         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1521         using patterns which show that this is a plus in addition to a
1522         modification of GSR_REG, instead of an unspec.
1523         * config/sparc/ultra1_2.md: Handle 'gsr'.
1524         * config/sparc/ultra3.md: Likewise.
1525         * config/sparc/niagara.md: Likewise.
1526         * config/sparc/niagara2.md: Likewise.
1527         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1528         end of table.
1529         (sparc_option_override): Make -mvis imply -mv8plus.
1530         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1531         for %gsr.
1532         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1533         __builtin_vis_read_gsr.
1534         (sparc_expand_buildin): Handle builtins that take one argument and
1535         return void.
1536         (sparc_fold_builtin): Never fold writes to %gsr.
1537         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1538         * doc/extend.texi: Document new VIS intrinsics.
1539
1540 2011-09-23  Jan Hubicka  <jh@suse.cz>
1541
1542         * ipa-inline-transform.c (inline_call): Add comment.
1543         * ipa-inline.h (inline_param_summary): New structure and vector.
1544         (struct inline_edge_summary): Add param field.
1545         * ipa-inline-analysis.c (CHANGED): New constant.
1546         (add_clause): Handle CHANGED and NOT_CONSTANT.
1547         (predicate_probability): New function.
1548         (dump_condition): Dump CHANGED predicate.
1549         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1550         of unknown function wide invariant.
1551         (evaluate_conditions_for_edge): Handle change probabilities.
1552         (inline_edge_duplication_hook): Copy param summaries.
1553         (inline_edge_removal_hook): Free param summaries.
1554         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1555         sizes; dump param summaries.
1556         (will_be_nonconstant_predicate): Use CHANGED predicate.
1557         (record_modified_bb_info): New structure.
1558         (record_modified): New function.
1559         (param_change_prob): New function.
1560         (estimate_function_body_sizes): Compute param summaries.
1561         (estimate_edge_size_and_time): Add probability argument.
1562         (estimate_node_size_and_time): Add inline_param_summary argument;
1563         handle predicate probabilities.
1564         (remap_predicate): Fix formating.
1565         (remap_edge_change_prob): New function.
1566         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1567         (remap_edge_predicates): ... this one.
1568         (inline_merge_summary): Remap edge summaries; handle predicate
1569         probabilities; remove param summaries after we are done.
1570         (do_estimate_edge_time): Update.
1571         (do_estimate_edge_growth): Update.
1572         (read_inline_edge_summary): Read param info.
1573         (inline_read_summary): Fix formating.
1574         (write_inline_edge_summary): Write param summaries.
1575
1576 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1577
1578         * config/i386/i386.c (ix86_print_operand): Handle %~.
1579         (ix86_print_operand_punct_valid_p): Return true also for '~'.
1580         * config/i386/sse.md (i128): New mode_attr.
1581         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1582         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1583         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1584         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1585         patterns, use "<sseinsnmode>" for "mode" attribute.
1586         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1587         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1588         %~128 in the patterns, use "OI" for "mode" attribute.
1589
1590 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1591
1592         PR target/50447
1593         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1594         "tstsi", "compare".
1595         (*cmpqi_sign_extend): Use s8_operand.
1596         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1597         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1598         prototypes.
1599         (out_tsthi, out_tstsi): Remove prototypes.
1600         (avr_out_tsthi, avr_out_tstsi): New prototypes.
1601         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1602         (avr_asm_len): Negative length now sets *plen to -length.
1603         (compare_sign_p): Return bool instead of int.
1604         (compare_diff_p, compare_eq_p): Ditto and make static.
1605         (avr_out_tsthi): New function.
1606         (avr_out_tstsi): New function.
1607         (avr_out_compare): New function.
1608         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1609         ADJUST_LEN_COMPARE.
1610
1611 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1612
1613         PR target/50447
1614         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1615         (addsi3): Rewrite using QI scratch register.  Adjust text
1616         peepholes using plus:SI.
1617         (*addsi3_zero_extend.hi): New insn.
1618         (*subsi3_zero_extend.hi): New insn.
1619         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1620         (*subsi3_zero_extend): Ditto.
1621         (subsi3): Change predicate #2 to register_operand.
1622         * config/avr/avr-protos.h (avr_out_plus): New prototype.
1623         (avr_out_plus_1): New static function.
1624         (avr_out_plus): New function.
1625         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1626
1627 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1628
1629         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1630         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1631
1632 2011-09-23  Ian Lance Taylor  <iant@google.com>
1633
1634         * godump.c (go_define): Treat a single character in single quotes,
1635         or a string, as an operand.
1636
1637 2011-09-23  Martin Jambor  <mjambor@suse.cz>
1638
1639         * ipa-prop.h (jump_func_type): Updated comments.
1640         (ipa_known_type_data): New type.
1641         (ipa_jump_func): Use it to describe known type jump functions.
1642         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1643         reflect the new known type jump function contents.
1644         (compute_known_type_jump_func): Likewise.
1645         (combine_known_type_and_ancestor_jfs): Likewise.
1646         (try_make_edge_direct_virtual_call): Likewise.
1647         (ipa_write_jump_function): Likewise.
1648         (ipa_read_jump_function): Likewise.
1649         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1650         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1651         (propagate_accross_jump_function): Likewise.
1652
1653 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1654
1655         PR target/50446
1656         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1657         (rotlqi3_4): Turn insn into expander.
1658         (*rotlqi3): New insn.
1659         (rotlhi3, rotlsi3): Support rotate left/right by 1.
1660         (*rotlhi2.1, *rotlhi2.15): New insns.
1661         (*rotlsi2.1, *rotlsi2.31): New insns.
1662         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1663
1664 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
1665
1666         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1667
1668 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1669
1670         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1671
1672 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1673
1674         * reload.c (find_reloads): Set operand_mode to Pmode for address
1675         operands consisting of just a CONST_INT.
1676
1677 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
1678
1679         PR target/50482
1680         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1681         blendv, force op_true to register if it doesn't satisfy
1682         nonimmediate_operand predicate.
1683
1684 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
1685
1686         PR middle-end/50113
1687         PR middle-end/50061
1688         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1689         get the locate.where_pad value for register-only arguments.
1690         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1691         (arm_pad_reg_upward): Handle null types.
1692
1693 2011-09-22  Jan Hubicka  <jh@suse.cz>
1694
1695         * ipa-inline-analysis.c: Fix overly long lines.
1696
1697 2011-09-22  Jan Hubicka  <jh@suse.cz>
1698
1699         * ipa-inline-transform.c (inline_call): Always update jump functions
1700         after inlining.
1701         * ipa-inline.c (ipa_inline): Likewise; do not call
1702         ipa_create_all_structures_for_iinln.
1703         (ipa_inline): Always free jump functions.
1704         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1705         (remap_edge_predicates): Fix pasto.
1706         (inline_merge_summary): Remove nlined edge predicate; remove hack.
1707         (inline_analyze_function): Always initialize jump functions.
1708         (inline_generate_summary): Likewise.
1709         (inline_write_summary): Always write jump functions when ipa-cp
1710         is not doing that.
1711         (inline_read_summary): Always read jump functions when ipa-cp
1712         is not doing that.
1713         * ipa-prop.c (iinlining_processed_edges): Remove.
1714         (update_indirect_edges_after_inlining): Do not use
1715         iinlining_processed_edges; instead set param_index to -1.
1716         (propagate_info_to_inlined_callees): Only try to indirect inlining
1717         when asked to do so; update jump functions of indirect calls, too;
1718         remove jump functions of the inlined edge.
1719         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1720         (ipa_create_all_structures_for_iinln): Remove.
1721         (ipa_free_all_structures_after_iinln): Do not free
1722         iinlining_processed_edges.
1723         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1724
1725 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
1726
1727         * config/arm/predicates.md (expandable_comparison_operator): New
1728         predicate, extracted from...
1729         (arm_comparison_operator): ...here.
1730         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1731         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1732         (movdfcc): Use expandable_comparison_operator.
1733
1734 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
1735
1736         PR target/50447
1737         PR target/50465
1738         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1739         (avr_popcount_each_byte): New prototype.
1740         * config/avr/avr.c (avr_popcount): New static function.
1741         (avr_popcount_each_byte): New function.
1742         (avr_out_bitop): New function.
1743         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1744         avr_out_bitop.  Cleanup code.
1745         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1746         (Ca4, Co4, Cx4): New constraints.
1747         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1748         alternative.
1749         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1750         (andsi3, iorsi3, xorsi3): Ditto.
1751         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1752
1753 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
1754
1755         PR tree-optimization/50451
1756         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1757         constant operands in reduction.
1758         (vect_get_slp_defs): Don't create vector operand for NULL scalar
1759         operand.
1760
1761 2011-09-22  David S. Miller  <davem@davemloft.net>
1762
1763         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1764         fpack16, fpack32, fpackfix as const.
1765
1766         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1767         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1768         constants.  Use them everywhere.
1769
1770 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
1771
1772         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1773         Added AND special case.  Adapted comments.
1774         (sh_rtx_costs): Added XOR and IOR case.
1775
1776 2011-09-21  Jan Hubicka  <jh@suse.cz>
1777
1778         * ipa-inline-analsis.c (compute_inline_parameters): Set
1779         cfun and current_function_decl.
1780
1781 2011-09-21  Jan Hubicka  <jh@suse.cz>
1782
1783         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1784         handled components in parameter of builtin_constant_p.
1785         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1786
1787 2011-09-21  Jan Hubicka  <jh@suse.cz>
1788
1789         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1790         * ipa-inline.h (estimate_edge_time): Fix pasto.
1791         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1792
1793 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1794
1795         * config/i386/i386.c (ix86_expand_sse_movcc): Use
1796         blendvps, blendvpd and pblendvb if possible.
1797
1798 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
1799
1800         PR target/50464
1801         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1802         operand 1 predicate to register_operand and operand 2 predicate
1803         to nonimmediate_operand.
1804         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1805         xop_pcmov, force op_true to register.  Also, force op_false to
1806         register if it doesn't satisfy nonimmediate_operand predicate.
1807
1808 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1809
1810         * config/i386/bmi2intrin.h (_mulx_u64): New.
1811         (_mulx_u32): Ditto.
1812
1813 2011-09-21  Jan Hubicka  <jh@suse.cz>
1814
1815         PR tree-optimization/50433
1816         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1817         Use get_base_address.
1818
1819 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1820
1821         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1822         nonimmediate_operand instead of register_operand predicate for operands
1823         1 and 2, force them into registers if expanding them as comparison.
1824         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
1825         V8HImode force into register just operand 1.
1826
1827 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1828
1829         PR target/45099
1830         * config/avr/avr.c (avr_function_arg_advance): Change error to
1831         warning if a fixed register is needed as function argument.
1832
1833 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1834
1835         PR target/50449
1836         PR target/50465
1837         * config/avr/avr.md (adjust_len): New insn attribute.
1838         (*reload_insi, *reload_insf): Use it.
1839         (*movsi, *movsf): Use new interface of output_movsisf.
1840         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1841         * config/avr/avr.c (output_movsisf): Ditto.
1842         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1843         lengths of insns *reload_insi, *reload_insf.
1844         (output_reload_insisf_1): New static function.
1845         (output_reload_insisf): Use it.
1846
1847 2011-09-21  David S. Miller  <davem@davemloft.net>
1848
1849         * config/sparc/sparc.c (def_builtin): Change from macro into function.
1850         (def_builtin_const): New.
1851         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1852         other than alignaddr and falignaddr.
1853
1854         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1855         UNSPEC_FCMPEQ): New unspec codes.
1856         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1857         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1858         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1859         new pixel compare VIS patterns.
1860         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1861         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1862         __vis_fcmpeq16, __vis_fcmpeq32): New.
1863         * doc/extend.texi: Document new pixel compare VIS intrinsics.
1864
1865 2011-09-21  Tom de Vries  <tom@codesourcery.com>
1866
1867         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1868
1869 2011-09-20  David S. Miller  <davem@davemloft.net>
1870
1871         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1872         (aligneddrl<P:mode>_vis): New pattern.
1873         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1874         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1875         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1876         alignaddrl insn, and adjust edge operations for updated types.
1877         * config/sparc/visintrin.h: Likewise.
1878         * doc/extend.texi: Make typing in VIS documentation match reality.
1879
1880 2011-09-20  Terry Guo  <terry.guo@arm.com>
1881
1882         * config/arm/arm-arches.def: Add armv6s-m.
1883         * config/arm/arm-tables.opt: Regenerate.
1884
1885 2011-09-20  Wei Guozhi  <carrot@google.com>
1886
1887         PR rtl-optimization/49452
1888         * postreload.c (reload_combine): Invalidate use information when across
1889         volatile insn.
1890
1891 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1892
1893         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1894         Remove maintenance overhead.
1895         (haifa_sched_init, sched_finish): Update.
1896
1897 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1898
1899         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1900         to calculate unit, prefix_rep and prefix_data16 attributes.
1901         (*mov<mode>_internal): Ditto for unit attribute.
1902         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1903         (*movv2sf_internal): Ditto.
1904         * config/i386/sse.md (VI1248_256): Remove mode iterator.
1905         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1906         (*avx2_eq<mode>3): Ditto.
1907         (avx2_gt<mode>3): Ditto.
1908
1909 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1910
1911         * config/i386/i386.md (maxmin): New code iterator.
1912         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1913         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1914         code iterator.
1915         (*avx2_<maxmin:code><mode>3): Macroize isn from
1916         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1917         maxmin code iterator.
1918         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1919         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1920         <umaxmin:code>v16qi3.
1921
1922 2011-09-19  Alan Modra  <amodra@gmail.com>
1923             Michael Meissner  <meissner@linux.vnet.ibm.com>
1924
1925         PR target/50341
1926         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1927         split the load of the indirect function's TOC from the call to
1928         prevent the compiler from moving the load of the new TOC above
1929         code that references the current function's TOC.
1930         (call_indirect_aix<ptrsize>_internal): Ditto.
1931         (call_indirect_aix<ptrsize>_nor11): Ditto.
1932         (call_indirect_aix<ptrsize>_internal2): Ditto.
1933         (call_value_indirect_aix<ptrsize>): Ditto.
1934         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1935         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1936         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1937
1938 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
1939
1940         * config/i386/sse.md (*sse4_1_extractps): Change into
1941         define_insn_and_split, add =x 0 n and =x x n alternatives
1942         and split them after reload.
1943
1944 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1945
1946         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1947
1948 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1949
1950         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1951
1952 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
1953
1954         PR tree-optimization/50413
1955         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1956         a basic block if one of its data-refs can't be analyzed.
1957
1958 2011-09-19  Paul Brook  <paul@codesourcery.com>
1959
1960         * config/arm/predicates.md (shift_amount_operand): Check constant
1961         shift count is in range.
1962         (const_shift_operand): Remove.
1963
1964 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1965             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1966
1967         PR target/50091
1968         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1969         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1970
1971 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1972
1973         * config/i386/bmiintrin.h: Remove tmp.
1974         * config/i386/tbmintrin.h: Likewise.
1975
1976 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1977
1978         PR tree-optimization/50414
1979         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1980         MIN_EXPR.
1981
1982 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1983
1984         PR tree-optimization/50412
1985         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1986         acceses that require epilogue loop if vectorizing outer loop.
1987
1988 2011-09-17  David S. Miller  <davem@davemloft.net>
1989
1990         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1991         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1992         New unspecs.
1993         (define_attr type): New type 'edge'.
1994         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1995         edge32l_vis): New patterns.
1996         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1997         * config/sparc/ultra3.md: Likewise.
1998         * config/sparc/niagara.md: Likewise.
1999         * config/sparc/niagara2.md: Likewise.
2000         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
2001         builtins for VIS edge instructions.
2002         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
2003         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
2004         intrinsics.
2005         (__v8qi, __v4qi): Make unsigned.
2006         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
2007         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
2008         __vis_fpack32): Fix types.
2009         * doc/extend.texi: Document new 'edge' VIS intrinsics.
2010
2011         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
2012         divide costs.
2013         (niagara3_costs): New.
2014         (sparc_option_override): Use it.
2015         * gcc/config/sparc/niagara2.md: Adjust with more accurate
2016         Niagara-3 reservations.
2017
2018 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
2019
2020         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
2021         (sse2_avx, sseinsnmode): Add V2TI.
2022         (REDUC_SMINMAX_MODE): New mode iterator.
2023         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
2024         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
2025         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
2026         (sse2_lshrv1ti3): Rename to...
2027         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
2028         iterator.  Move before umaxmin expanders.
2029         * config/i386/i386.h (VALID_AVX256_REG_MODE,
2030         SSE_REG_MODE_P): Accept V2TImode.
2031         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
2032         V16HImode, V8SImode and V4DImode.
2033
2034         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
2035         and V4DImode.
2036         (ix86_build_signbit_mask): Likewise.
2037         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
2038         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
2039         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
2040         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
2041         (<code><mode>3) ... this.
2042         (avx2_<code><mode>3 smaxmin expand): Rename to...
2043         (<code><mode>3) ... this.
2044         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
2045         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
2046         VI8_AVX2 mode iterator.
2047         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
2048         VI8_AVX2 mode iterator.
2049         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
2050         New expanders.
2051
2052 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
2053
2054         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
2055         throughout file.
2056
2057 2011-09-16  David S. Miller  <davem@davemloft.net>
2058
2059         * config/sparc/visintrin.h: New file.
2060         * config.gcc: Add it to extra_headers on sparc.
2061
2062 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
2065         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
2066         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
2067         reduc_smin_v4sf): Adjust callers.
2068         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
2069         New expanders.
2070
2071         * config/i386/sse.md (vec_extract_hi_<mode>,
2072         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
2073         vextracti128 instead of vextractf128 for -mavx2 and
2074         integer vectors.  For V4DFmode fix up mode attribute.
2075         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
2076         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
2077         instead of V8SF mode attribute.
2078         (avx2_extracti128): Change into define_expand.
2079         * config/i386/i386.c (ix86_expand_vector_extract): Handle
2080         32-byte vector modes if TARGET_AVX.
2081
2082 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2083
2084         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
2085         (umulqi3_highpart, smulqi3_highpart): Ditto.
2086         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
2087         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
2088         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
2089
2090 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
2091
2092         PR target/50358
2093         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
2094         (*maddqi4, *maddqi4.const): New insns.
2095         (*msubqi4, *msubqi4.const): New insns.
2096         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
2097         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
2098         HImode by 1 in the case of multiplying with a CONST_INT.
2099         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
2100
2101 2011-09-15   Jan Hubicka  <jh@suse.cz>
2102
2103         PR lto/50430
2104         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
2105         error_mark_node in the DECL_INITIAL of vtable.
2106
2107 2011-09-15   Diego Novillo  <dnovillo@google.com>
2108
2109         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
2110         @SYSROOT_CFLAGS_FOR_TARGET@.
2111         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
2112         * configure: Regenerate.
2113         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
2114         Remove setting of GCC_UNDER_TEST.
2115
2116 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2117
2118         * config/i386/i386.c (output_fp_compare): Return %v prefixed
2119         instruction mnemonics for TARGET_AVX.
2120
2121         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2122         "type" attribute calculation.
2123         (*movdf_internal): Ditto.
2124         (*movsf_internal): Ditto.
2125
2126 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
2127
2128         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2129
2130 2011-09-15  Jason Merrill  <jason@redhat.com>
2131
2132         PR c++/50361
2133         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2134
2135 2011-09-15  Jan Hubicka  <jh@suse.cz>
2136
2137         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2138         simplify obviously true clauses.
2139         (and_predicates, or_predicates): Add conditions parameter.
2140         (inline_duplication_hoook): Update.
2141         (mark_modified): New function.
2142         (unmodified_parm): New function.
2143         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2144         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2145         Use unmodified_parm.
2146         (estimate_function_body_sizes): Update.
2147         (remap_predicate): Update.
2148
2149 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
2150
2151         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2152         read-after-read dependencies in basic block SLP.
2153
2154 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2155
2156         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2157         throughout file.
2158
2159 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2160
2161         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2162         throughout file.
2163
2164 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2165
2166         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2167         throughout file.
2168
2169 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2170
2171         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2172         throughout file.
2173         * config/rs6000/constraints.md: Likewise.
2174
2175 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2176
2177         * config/microblaze/microblaze.md: Use match_test rather than
2178         eq/ne symbol_ref throughout file.
2179
2180 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2181
2182         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2183         throughout file.
2184
2185 2011-09-14  Tom de Vries  <tom@codesourcery.com>
2186
2187         PR middle-end/50251
2188         * explow.c (emit_stack_restore): Set crtl->need_drap if
2189         stack_restore is emitted.
2190
2191 2011-09-14  Julian Brown  <julian@codesourcery.com>
2192
2193         * config/arm/arm.c (arm_override_options): Add unaligned_access
2194         support.
2195         (arm_file_start): Emit attribute for unaligned access as appropriate.
2196         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2197         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2198         (insv, extzv): Add unaligned-access support.
2199         (extv): Change to expander. Likewise.
2200         (extzv_t1, extv_regsi): Add helpers.
2201         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2202         (unaligned_storesi, unaligned_storehi): New.
2203         (*extv_reg): New (previous extv implementation).
2204         * config/arm/arm.opt (munaligned_access): Add option.
2205         * config/arm/constraints.md (Uw): New constraint.
2206         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2207         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2208         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2209         volatile accesses when -fstrict-volatile-bitfields is in effect.
2210         (extract_bit_field_1): Likewise.
2211
2212 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
2213
2214         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2215         a scalar integer before applying integer-only optimisations to
2216         inner arithmetic.
2217
2218 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2219
2220         * config/mips/mips.c (mips_expand_epilogue): Generate a
2221         simple_return only if the return address is in r31.
2222
2223 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2224
2225         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2226         NULL for a jump that is a cc0 insn, pick the previous insn for
2227         move_before.
2228
2229 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2230
2231         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2232         throughout file.
2233
2234 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2235
2236         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2237         throughout file.
2238
2239 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2240
2241         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2242         symbol_ref throughout file.
2243
2244 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2245
2246         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2247         throughout file.
2248
2249 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2250
2251         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2252         throughout file.
2253
2254 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2255
2256         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2257         throughout file.
2258         * config/arm/neon.md: Likewise.
2259         * config/arm/vfp.md: Likewise.
2260         * config/arm/thumb2.md: Likewise.
2261         * config/arm/cortex-m4.md: Likewise.
2262
2263 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2264
2265         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2266         define_insn patterns for combine.
2267
2268 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
2269
2270         * reorg.c: Always define make_return_insns.
2271
2272 2011-09-13  Jan Hubicka  <jh@suse.cz>
2273
2274         PR other/49533
2275         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2276
2277 2011-09-13  Jan Hubicka  <jh@suse.cz>
2278
2279         PR other/49533
2280         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2281
2282 2011-09-13  Paul Brook  <paul@codesourcery.com>
2283
2284         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2285         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2286         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2287         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2288         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2289         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2290         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2291         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2292         enabling unwind tables.
2293         (c6x_debug_unwind_info): New function.
2294         (TARGET_ARM_EABI_UNWINDER): Define.
2295         (TARGET_DEBUG_UNWIND_INFO): Define.
2296         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2297         (TARGET_EXTRA_CFI_SECTION): Remove.
2298         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2299         * ginclude/unwind-arm-common.h: New file.
2300
2301 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
2302
2303         PR target/50358
2304         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2305         * config/avr/avr.md: (extend_s): New code attribute.
2306         (mul_r_d): New code attribute.
2307         (*maddqihi4, *umaddqihi4): New insns.
2308         (*msubqihi4, *umsubqihi4): New insns.
2309         (*usmaddqihi4, *sumaddqihi4): New insns.
2310         (*usmsubqihi4, *susubdqihi4): New insns.
2311         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2312         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2313         (*umsubqihi4.uconst.ashift): New insn-and-split.
2314         (*msubqihi4.sconst.ashift): New insn-and-split.
2315         (*sumaddqihi4.uconst): New insn-and-split.
2316         (*sumsubqihi4.uconst): New insn-and-split.
2317         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2318         PLUS:HI and MINUS:HI.
2319
2320 2011-09-13  Revital Eres  <revital.eres@linaro.org>
2321
2322         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2323         (optimize_sc): Adjust call to remove_node_from_ps.
2324         (sms_schedule): Add print info.
2325
2326 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2327
2328         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2329         flags specially.
2330
2331 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2332
2333         PR bootstrap/50010
2334         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2335         NOTE_INSN_CFI notes, with the exception of
2336         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2337
2338 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2339             Richard Sandiford  <rdsandiford@googlemail.com>
2340
2341         * config/mips/mips.c (mips_epilogue): New structure.
2342         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2343         restoring registers.
2344         (mips_epilogue_emit_cfa_restores): New function.
2345         (mips_epilogue_set_cfa): Likewise.
2346         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
2347         the current CFA register from the stack, redefine the CFA in terms
2348         of the stack pointer.
2349         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
2350         to the epilogue instructions.
2351
2352 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
2353
2354         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2355         argument.
2356         (mips16e_build_save_restore): Update accordingly.
2357
2358 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2359
2360         PR rtl-optimization/50212
2361         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2362         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2363
2364         PR debug/50299
2365         * calls.c (load_register_parameters): Use use_reg_mode instead
2366         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2367         entry.
2368         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2369         for stack CALL_INSN_FUNCTION_USAGE uses.
2370         * expr.h (use_reg_mode): New prototype.
2371         (use_reg): Changed into inline around use_reg_mode.
2372         * expr.c (use_reg): Renamed to...
2373         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
2374         mode to that mode instead of VOIDmode.
2375         * var-tracking.c (prepare_call_arguments): Don't track parameters
2376         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2377         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
2378         EXPR_LIST mode.
2379
2380 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
2381
2382         PR target/43746
2383         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2384         (progmem_section): New Variable.
2385         (avr_asm_init_sections): Initialize it.
2386         (TARGET_ASM_SELECT_SECTION): Define to...
2387         (avr_asm_select_section): ... this new Function.
2388         (avr_replace_prefix): New Function.
2389         (avr_asm_function_rodata_section): Use it.
2390         (avr_insert_attributes): Don't add section attribute for PROGMEM.
2391         (avr_section_type_flags): Use avr_progmem_p instead of section
2392         name to detect if object is in PROGMEM.
2393         (avr_asm_named_section): Set section name prefix for objects in
2394         PROGMEM.
2395
2396 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2397
2398         PR bootstrap/50352
2399         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2400         sprintf format string.
2401
2402 2011-09-12  Richard Guenther  <rguenther@suse.de>
2403
2404         PR tree-optimization/50343
2405         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2406         that the reduction is over an SSA name before checking its definition.
2407
2408 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2409
2410         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2411         throughout file.
2412
2413 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2414
2415         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2416         throughout file.
2417         * config/mips/sb1.md: Likewise.
2418         * config/mips/predicates.md: Replace (match_test "!...")
2419         with (not (match_test "..."))
2420         * config/mips/constraints.md: Likewise.
2421
2422 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
2423
2424         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2425         * config/arm/arm-tables.opt: Regenerate.
2426         * config/arm/arm-tune.md: Regenerate.
2427         * config/arm/arm.c (arm_file_start): Output .arch directive when
2428         user passes -mcpu=generic-*.
2429         (arm_issue_rate): Add genericv7a support.
2430         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2431         (ASM_CPU_SPEC): New define.
2432         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2433         * config/arm/semi.h (ASM_SPEC): Likewise.
2434         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2435         and -mtune=generic-*.
2436
2437 2011-09-09  Richard Guenther  <rguenther@suse.de>
2438
2439         PR tree-optimization/50328
2440         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2441         constant or default-def operand.
2442
2443 2011-09-09  Richard Guenther  <rguenther@suse.de>
2444
2445         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2446         last statement.
2447
2448 2011-09-09  Richard Guenther  <rguenther@suse.de>
2449
2450         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2451         instead of a statement.
2452         * gimple-fold.c (fold_stmt_inplace): Likewise.
2453         * sese.c (graphite_copy_stmts_from_block): Adjust.
2454         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2455         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2456         fold_stmt.
2457         (forward_propagate_addr_into_variable_array_index): Likewise.
2458         (forward_propagate_addr_expr_1): adjust.
2459         (associate_plusminus): Likewise.
2460         (ssa_forward_propagate_and_combine): Likewise.
2461         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2462         (execute_cse_reciprocals): Likewise.
2463         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2464
2465 2011-09-09  Nick Clifton  <nickc@redhat.com>
2466
2467         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2468         Return a positive value to indicate that the bits at the
2469         bottom of the register should be cleared.
2470
2471 2011-09-09  Richard Guenther  <rguenther@suse.de>
2472
2473         * tree-ssa-operands.c (swap_tree_operands): Always adjust
2474         existing operand positions.
2475
2476 2011-09-09  Richard Guenther  <rguenther@suse.de>
2477
2478         PR middle-end/50333
2479         * tree-data-ref.c (split_constant_offset): Do not try to handle
2480         ternary ops.
2481
2482 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
2483
2484         PR tree-optimization/50318
2485         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2486         typo in use of mult_rhs1 and mult_rhs2.
2487
2488 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
2489
2490         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2491         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2492
2493 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
2494
2495         * config/arm/arm.md (push_multi): Emit predicates.
2496         (push_fp_multi): Likewise.
2497         * config/arm/arm.c (vfp_output_fstmd): Likewise.
2498
2499 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2500
2501         PR c++/33255 - Support -Wunused-local-typedefs warning
2502         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2503         (pushdecl): Use the new record_locally_defined_typedef.
2504         (store_parm_decls): Allocate cfun->language.
2505         (finish_function): Use the new maybe_warn_unused_local_typedefs,
2506         and free cfun->language.
2507         (c_push_function_context): Allocate cfun->language here only if needed.
2508         (c_pop_function_context): Likewise, mark cfun->language
2509         for collection only when it should be done.
2510         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2511         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2512         maybe_record_local_typedef_use.
2513         * doc/invoke.texi: Update documentation for
2514         -Wunused-local-typedefs.
2515
2516 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
2517
2518         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2519         (ix86_avoid_lea_for_add): Likewise.
2520         (ix86_avoid_lea_for_addr): Likewise.
2521         (ix86_split_lea_for_addr): Likewise.
2522
2523         * config/i386/i386.c (LEA_MAX_STALL): New.
2524         (increase_distance): Likewise.
2525         (insn_defines_reg): Likewise.
2526         (insn_uses_reg_mem): Likewise.
2527         (distance_non_agu_define_in_bb): Likewise.
2528         (distance_agu_use_in_bb): Likewise.
2529         (ix86_lea_outperforms): Likewise.
2530         (ix86_ok_to_clobber_flags): Likewise.
2531         (ix86_avoid_lea_for_add): Likewise.
2532         (ix86_avoid_lea_for_addr): Likewise.
2533         (ix86_split_lea_for_addr): Likewise.
2534         (distance_non_agu_define): Search in pred BBs added.
2535         (distance_agu_use): Search in succ BBs added.
2536         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2537         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2538         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2539
2540         * config/i386/i386.md: Split added to transform non destructive
2541         add into move and add.
2542         (lea_1): transformed into insn_and_split to avoid AGU stalls.
2543         (lea<mode>_2): Likewise.
2544
2545 2011-09-08  Martin Jambor  <mjambor@suse.cz>
2546
2547         PR tree-optimization/50287
2548         * ipa-split.c (split_function): Do not create SSA names for
2549         non-gimple-registers.
2550
2551 2011-09-08  Richard Guenther  <rguenther@suse.de>
2552
2553         PR tree-optimization/19831
2554         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2555         skip builtins with vdefs that do not really store something.
2556         (propagate_necessity): For calls to free that we can associate
2557         with an allocation function do not mark the freed pointer
2558         definition necessary.
2559         (eliminate_unnecessary_stmts): Remove a call to free if
2560         the associated call to an allocation function is not necessary.
2561
2562 2011-09-08  Richard Guenther  <rguenther@suse.de>
2563
2564         PR tree-optimization/19831
2565         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2566         allocation functions as necessary.
2567
2568 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
2569
2570         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2571         cut from ...
2572         (darwin_default_min_version): Amended to provide defaults
2573         for the cross directory case.
2574         (darwin_driver_init): call darwin_default_min_version unconditionally.
2575         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2576         * config/darwin9.h: Likewise.
2577         * config/darwin10.h: Likewise.
2578         * config/rs6000/darwin7.h: Likewise.
2579
2580 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR target/50310
2583         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2584         code early if TARGET_AVX.
2585         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2586
2587 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2588
2589         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2590         duplicates.
2591
2592         PR target/50310
2593         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2594         "mode" attribute computation.
2595
2596 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
2597
2598         * regrename.c (struct du_head): Make nregs signed.
2599         (closed_chains): Remove.
2600         (create_new_chain): Return the new chain.
2601         (chain_from_id): New static function.
2602         (dump_def_use_chain): Change argument to be an int, indicating
2603         the first ID to print.  All callers changed.
2604         (merge_overlapping_regs): Use chain_from_id.  Assert that
2605         chains don't conflict with themselves.
2606         (rename_chains): Take no argument.  Iterate over id_to_chain
2607         rather to find chains to rename.  Clear tick before the main loop.
2608         (struct incoming_reg_info): New struct.
2609         (struct bb_rename_info): New struct.
2610         (init_rename_info, set_incoming_from_chain, merge_chains): New
2611         static functions.
2612         (regrename_analyze): New static function, broken out of
2613         regrename_optimize.  Record and make use of open chain information
2614         at basic block boundaries, and merge chains where possible.
2615         (scan_rtx_reg): Make this_nregs signed.  Don't update
2616         closed_chains.
2617         (build_def_use): Return a bool to indicate success.  All callers
2618         changed.  Don't initialize global data here.
2619         (regrename_optimize): Move most code out of here into
2620         regrename_analyze.
2621         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2622         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2623         static inline functions.
2624         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2625
2626         * bb-reorder.c (insert_section_boundary_note): Don't check
2627         optimize_function_for_speed_p.
2628         (gate_handle_partition_blocks): Do it here instead.
2629         (gate_handle_reorder_blocks): Move preliminary checks here ...
2630         (rest_of_handle_reorder_blocks): ... from here.
2631
2632 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2633
2634         PR middle-end/50301
2635         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2636         function index bounds.
2637         (perhaps_add_new_callers): Likewise.
2638
2639 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2640
2641         PR tree-optimization/49911
2642         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2643         enumerations to the corresponding plain integer type.
2644
2645 2011-09-07  Richard Guenther  <rguenther@suse.de>
2646
2647         PR tree-optimization/50319
2648         * tree-if-conv.c (set_bb_predicate): Assert we only set
2649         canonical predicates.
2650         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
2651         around canonical predicates.
2652         (predicate_bbs): Do not re-gimplify already canonical
2653         predicates.  Properly unshare them though.
2654         (find_phi_replacement_condition): Simplify.
2655
2656 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
2657
2658         PR target/49030
2659         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2660         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2661         reusing the old code from get_arm_condition_code.  Return ARM_NV
2662         for invalid comparison codes.
2663         (get_arm_condition_code): Redefine in terms of
2664         maybe_get_arm_condition_code.
2665         * config/arm/predicates.md (arm_comparison_operator): Use
2666         maybe_get_arm_condition_code.
2667
2668 2011-09-07  Richard Guenther  <rguenther@suse.de>
2669
2670         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2671         Canonicalize negated predicates by swapping edges.
2672         (forward_propagate_into_cond): Likewise.
2673
2674 2011-09-07  Richard Guenther  <rguenther@suse.de>
2675
2676         PR tree-optimization/50213
2677         * tree-flow.h (simple_iv_increment_p): Declare.
2678         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
2679         POINTER_PLUS_EXPR.
2680         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2681         not propagate simple IV counter increments.
2682
2683 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
2684             Iain Sandoe  <iains@gcc.gnu.org>
2685
2686         * config/rs6000/rs6000.c (compute_save_world_info): Test
2687         cfun->has_nonlocal_label to determine if the out-of-line save
2688         world call may be used.
2689
2690 2011-09-07  Nick Clifton  <nickc@redhat.com>
2691
2692         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2693         label on the parallel part of the insn.
2694
2695 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2696
2697         PR debug/50191
2698         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2699         avoid_constant_pool_reference first instead of last.
2700
2701 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2702
2703         * doc/configfiles.texi (Configuration Files): Update documentation
2704         about tm_p.h and remove FIXME comment.
2705
2706 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
2707
2708         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2709         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2710
2711 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
2712
2713         * config/darwin10.h Remove duplicate LIB_SPEC.
2714
2715 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
2716
2717         PR middle-end/44382
2718         * target.def (reassociation_width): New hook.
2719
2720         * doc/tm.texi.in (reassociation_width): Likewise.
2721
2722         * doc/tm.texi (reassociation_width): Likewise.
2723
2724         * doc/invoke.texi (tree-reassoc-width): New param documented.
2725
2726         * hooks.h (hook_int_uint_mode_1): New default hook.
2727
2728         * hooks.c (hook_int_uint_mode_1): Likewise.
2729
2730         * config/i386/i386.h (ix86_tune_indices): Add
2731         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2732
2733         (TARGET_REASSOC_INT_TO_PARALLEL): New.
2734         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2735
2736         * config/i386/i386.c (initial_ix86_tune_features): Add
2737         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2738
2739         (ix86_reassociation_width): New function.
2740
2741         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2742
2743         * tree-ssa-reassoc.c (get_required_cycles): New function.
2744         (get_reassociation_width): Likewise.
2745         (swap_ops_for_binary_stmt): Likewise.
2746         (rewrite_expr_tree_parallel): Likewise.
2747
2748         (rewrite_expr_tree): Refactored.  Part of code moved into
2749         swap_ops_for_binary_stmt.
2750
2751         (reassociate_bb): Now checks reassociation width to be used and
2752         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2753
2754 2011-09-06  Richard Guenther  <rguenther@suse.de>
2755
2756         PR tree-optimization/47025
2757         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2758         uses nothing.
2759         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2760         BUILT_IN_FREE.
2761         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2762         definitely points to.
2763         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2764         BUILT_IN_VA_START doesn't let its va_list argument escape.
2765         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2766         not make any previous stores necessary.
2767
2768 2011-09-06  Martin Jambor  <mjambor@suse.cz>
2769
2770         * ipa-inline.h (struct inline_summary): Move versionable flag...
2771         * cgraph.h (struct cgraph_local_info): ...here
2772         * ipa-cp.c (determine_versionability): Use the new versionable flag.
2773         (determine_versionability): Likewise.
2774         (ipcp_versionable_function_p): Likewise.
2775         (ipcp_generate_summary): Likewise.
2776         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2777         versionable flag.
2778         (compute_inline_parameters): Do not clear the versionable flag.
2779         (inline_read_section): Do not stream the versionable flag.
2780         (inline_write_summary): Likewise.
2781         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2782         (input_overwrite_node): Likewise.
2783
2784 2011-09-06  Richard Guenther  <rguenther@suse.de>
2785
2786         PR tree-optimization/48149
2787         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
2788         (vn_valueize): Move earlier.
2789         (valueize_expr): Use vn_valueize.
2790         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2791         operands.
2792         (simplify_unary_expression): Simplify.
2793
2794 2011-09-06  Richard Guenther  <rguenther@suse.de>
2795
2796         PR tree-optimization/48317
2797         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2798         trailing array.
2799         (sizeof_vn_nary_op): New inline function.
2800         (vn_nary_op_lookup_pieces): Adjust.
2801         (vn_nary_op_insert_pieces): Likewise.
2802         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2803         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
2804         any number of operands.
2805         (vn_nary_length_from_stmt): New function.
2806         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2807         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2808         sized temporary.
2809         (vn_nary_op_lookup): Likewise.
2810         (vn_nary_op_lookup_stmt): Likewise.
2811         (vn_nary_op_insert_into): Likewise.
2812         (vn_nary_op_insert_stmt): Likewise.
2813         (visit_use): Handle CONSTRUCTOR as nary.
2814         * tree-ssa-pre.c (phi_translate_1): Adjust.
2815         (create_expression_by_pieces): Likewise.
2816         (compute_avail): Likewise.
2817
2818 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
2819
2820          * config/arm/arm.c (arm_preferred_simd_mode): Check
2821         TARGET_NEON_VECTORIZE_DOUBLE instead of
2822         TARGET_NEON_VECTORIZE_QUAD.
2823         (arm_autovectorize_vector_sizes): Likewise.
2824         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2825         mask of mvectorize-with-neon-double.  Add RejectNegative.
2826         (mvectorize-with-neon-double): New.
2827
2828 2011-09-06  Richard Guenther  <rguenther@suse.de>
2829
2830         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2831
2832 2011-09-06  Tom de Vries  <tom@codesourcery.com>
2833
2834         * recog.c (asm_labels_ok): New function.
2835         (check_asm_operands): Use asm_labels_ok.
2836
2837 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2838
2839         PR target/49606
2840         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2841         (PMODE_INSN): New macro.
2842         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2843         (mips_got_load, mips_expand_synci_loop): Likewise.
2844         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2845         cprestore patterns.
2846         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
2847         copygp_mips16 patterns.
2848         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2849         and use_cprestore patterns.
2850         (mips_override_options): Check for incompatible -mabi and -mlong
2851         combinations.
2852         * config/mips/mips.md (unspec_got<mode>): Rename to...
2853         (unspec_got_<mode>): ...this.
2854         (copygp_mips16): Use the Pmode iterator.
2855         (potential_cprestore, cprestore, use_cprestore): Likewise.
2856         (clear_cache, indirect_jump): Use PMODE_INSN.
2857         (indirect_jump<mode>): Rename to...
2858         (indirect_jump_<mode>): ...this.
2859         (tablejump): Use PMODE_INSN.
2860         (tablejump<mode>): Rename to...
2861         (tablejump_<mode>): ...this.
2862         (exception_receiver): Handle restore_gp_si and restore_gp_di.
2863         (restore_gp): Use the Pmode iterator.
2864         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2865         PMODE_INSN.
2866
2867 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2868
2869         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2870         Fix the type of the BIT_AND_EXPR.
2871
2872 2011-09-05  David S. Miller  <davem@davemloft.net>
2873
2874         * config.host: Add driver-sparc.o and sparc/x-sparc on
2875         native sparc*-*-linux* builds.
2876         * config/sparc/driver-sparc.c: Correct Linux strings.
2877         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2878         * config/sparc/linux64.h: Likewise.
2879         * doc/invoke.texi: Document that Linux also supports
2880         -mcpu=native and -mtune=native on sparc.
2881
2882         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2883         PROCESSOR_NIAGARA4): New.
2884         * config/sparc/sparc.opt: Handle new processor types.
2885         * config/sparc/sparc.md: Add to "cpu" attribute.
2886         * config/sparc/sparc.h (TARGET_CPU_niagara3,
2887         TARGET_CPU_niagara4): New, treat as niagara2.
2888         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2889         * config/sparc/sol2.h: Likewise.
2890         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2891         * config/sparc/sparc.c (sparc_option_override): Add
2892         niagara3 and niagara4 handling.
2893         (sparc32_initialize_trampoline): Likewise.
2894         (sparc64_initialize_trampoline): Likewise.
2895         (sparc_use_sched_lookahead): Likewise.
2896         (sparc_issue_rate): Likewise.
2897         (sparc_register_move_cost): Likewise.
2898         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2899         and niagara4 as appropriate.
2900         * doc/invoke.texi: Document new processor types.
2901         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2902         and --with-tune options.
2903
2904         * config/sparc/sol2-64.h: Move ...
2905         * config/sparc/default-64.h: ... to here.  Update comment.
2906         * config.gcc: Update Solaris sparc to use default-64.h, also
2907         prefix this header into the list on sparc64-*-linux.
2908         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2909         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
2910         to MASK_HARD_QUAD.
2911
2912 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2913
2914         PR target/50289
2915         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2916         that contain global register variable.
2917
2918 2011-09-05  Richard Guenther  <rguenther@suse.de>
2919
2920         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2921
2922 2011-09-05  Richard Guenther  <rguenther@suse.de>
2923
2924         * stor-layout.c (layout_type): Use size_binop for array size
2925         calculations.
2926
2927 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2928
2929         * config/avr/avr.h (progmem_section): Remove Declaration.
2930         * config/avr/avr.c (progmem_section): Make static and rename to
2931         progmem_swtable_section.
2932         (avr_output_addr_vec_elt): No need to switch sections.
2933         (avr_asm_init_sections): Use output_section_asm_op as section
2934         callback for progmem_swtable_section.
2935         (avr_output_progmem_section_asm_op): Remove Function.
2936         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2937         (avr_asm_function_rodata_section): New static Function.
2938         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2939         alignment 2**1 for jump tables.
2940
2941 2011-09-04  Jan Hubicka  <jh@suse.cz>
2942
2943         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2944         parameter is SSA name.
2945
2946 2011-09-04  Richard Guenther  <rguenther@suse.de>
2947
2948         Revert
2949         2011-08-31  Richard Guenther  <rguenther@suse.de>
2950
2951         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2952         special-casing.
2953
2954 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
2955
2956         PR debug/49901
2957         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2958
2959 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
2960             Ira Rosen  <ira.rosen@linaro.org>
2961
2962         PR tree-optimization/50208
2963         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2964         argument.  Check that def_stmt is inside the loop.
2965         (vect_recog_widen_mult_pattern): Update calls to
2966         vect_handle_widen_mult_by_cons.
2967         (vect_operation_fits_smaller_type): Check that def_stmt is
2968         inside the loop.
2969
2970 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2971
2972         * tree-vectorizer.c (vect_print_dump_info): Print line
2973         number when dumping to a file.
2974         (vectorize_loops): Add new messages to dump file.
2975
2976 2011-09-03  Martin Jambor  <mjambor@suse.cz>
2977
2978         * ipa-prop.h (ipa_jump_func_t): New typedef.
2979         (struct ipa_edge_args): Removed field argument_count, field
2980         jump_functions turned into a vector.
2981         (ipa_set_cs_argument_count): Removed.
2982         (ipa_get_cs_argument_count): Updated to work on vectors.
2983         (ipa_get_ith_jump_func): Likewise.
2984         * ipa-prop.c (ipa_count_arguments): Removed.
2985         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2986         jump functions.  Update caller.
2987         (compute_pass_through_member_ptrs): Likewise.
2988         (compute_cst_member_ptr_arguments): Likewise.
2989         (ipa_compute_jump_functions_for_edge): Get number of arguments from
2990         the statement, allocate vector.
2991         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2992         (duplicate_ipa_jump_func_array): Removed.
2993         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2994         (ipa_read_node_info): Allocate vector.
2995
2996 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2997
2998         PR middle-end/50232
2999         * config/pa/pa.md (return): Define "return" insn pattern.
3000         (epilogue): Use it when no epilogue is needed.
3001         * config/pa/pa.c (pa_can_use_return_insn): New function.
3002         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
3003
3004 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
3005
3006         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
3007         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
3008         Force at least BITS_PER_UNIT alignment on the new variable.
3009
3010 2011-09-02  Gary Funck <gary@intrepid.com>
3011
3012         * opts.c (print_specific_help): Fix off-by-one compare in
3013         assertion check.
3014         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3015         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
3016         Increase by +5 to allow for more languages.
3017         * optc-gen.awk: Generate #if that ensures that the number of
3018         languages is within the implementation-defined limit.
3019
3020 2011-09-02  Michael Matz  <matz@suse.de>
3021
3022         PR middle-end/50260
3023         * ipa-split.c (split_function): Call add_referenced_var.
3024
3025         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
3026         (cond_if_else_store_replacement_1): Ditto.
3027         * tree-ssa-pre.c (get_representative_for): Ditto.
3028         (create_expression_by_pieces): Ditto.
3029         (insert_into_preds_of_block): Ditto.
3030         * tree-sra.c (create_access_replacement): Ditto.
3031         (get_replaced_param_substitute): Ditto.
3032
3033 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
3034
3035         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
3036         automata_options.
3037         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
3038         (l1w, s1w, l2w, s2w): Define in the main automaton.
3039         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
3040         units.
3041         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
3042         (c6x_unit_names): Add the new units.
3043         (c6x_unit_codes): New static array.
3044         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
3045         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
3046         UNIT_QID_SIDE_OFFSET): New macros.
3047         (RESERVATION_S2): Adjust value.
3048         (c6x_option_override): Compute c6x_unit_codes.
3049         (assign_reservations): Take the unit_mask of the last instruction
3050         into account.  Detect floating point reservations by looking for
3051         the new units.  Don't assign reservations if the field is already
3052         nonzero.
3053         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
3054         (init_sched_state): Initialize it.
3055         (c6x_clear_sched_context): Free it.
3056         (insn_set_clock): Clear reservation.
3057         (prev_cycle_state): New static variable.
3058         (c6x_init_sched_context): Save it.
3059         (c6x_sched_init): Allocate space for it and clear it.
3060         (c6x_sched_dfa_pre_cycle_insn): New static function.
3061         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
3062         (c6x_variable_issue): Only record units in the unit_mask that
3063         were not set at the start of the cycle.
3064         (c6x_variable_issue): Compute and store the unit_mask from the
3065         current state.
3066         (reorg_split_calls): Ensure the new information remains correct.
3067         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3068         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
3069         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
3070         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
3071         Add special reservations.
3072         * config/c6x/c6x-sched.md: Regenerate.
3073
3074 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3075
3076         * ipa-prop.h (ipa_node_params): Removed fields
3077         called_with_var_arguments and node_versionable.
3078         (ipa_set_called_with_variable_arg): Removed.
3079         (ipa_is_called_with_var_arguments): Likewise.
3080         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
3081         (determine_versionability): Do not check for type attributes and va
3082         builtins.  Record versionability into inline summary.
3083         (initialize_node_lattices): Do not check
3084         ipa_is_called_with_var_arguments.
3085         (propagate_constants_accross_call): Likewise, ignore arguments we do
3086         not have PARM_DECLs for, set variable flag for parameters that were
3087         not passed a value.
3088         (create_specialized_node): Dump info that we cannot change signature.
3089         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
3090         number of arguments.
3091         (ipa_make_edge_direct_to_target): Likewise.
3092         (ipa_update_after_lto_read): Likewise.
3093         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
3094         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
3095         they were remapped.
3096
3097 2011-09-02  Richard Guenther  <rguenther@suse.de>
3098
3099         PR tree-optimization/27460
3100         PR middle-end/29269
3101         * doc/md.texi (vcond): Document.
3102         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
3103         optab with two modes.
3104         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
3105         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
3106         (vcond_optab): Adjust.
3107         (vcondu_optab): Likewise.
3108         (expand_vec_cond_expr_p): Adjust prototype.
3109         * optabs.c (get_vcond_icode): Adjust.
3110         (expand_vec_cond_expr_p): Likewise.
3111         (expand_vec_cond_expr): Likewise.
3112         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
3113         vector type.
3114         (vectorizable_condition): Allow differing types for comparison
3115         and result.
3116         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3117         for the comparison.
3118         * config/i386/sse.md (vcond<mode>): Split to
3119         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3120         vcond<V_128:mode><VI124_128:mode> and
3121         vcondu<V_128:mode><VI124_128:mode>.
3122         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3123         (vconduv2di): Likewise.
3124         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3125         (vcondu<mode>): Likewise.
3126         * config/ia64/vect.md (vcond<mode>): Likewise.
3127         (vcondu<mode>): Likewise.
3128         (vcondv2sf): Likewise.
3129         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3130         * config/rs6000/paired.md (vcondv2sf): Likewise.
3131         * config/rs6000/vector.md (vcond<mode>): Likewise.
3132         (vcondu<mode>): Likewise.
3133         * config/spu/spu.md (vcond<mode>): Likewise.
3134         (vcondu<mode>): Likewise.
3135
3136 2011-09-02  Richard Guenther  <rguenther@suse.de>
3137
3138         * pretty-print.h (pp_unsigned_wide_integer): New.
3139         * tree-pretty-print.c (dump_generic_node): Print unsigned
3140         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3141
3142 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
3143
3144         PR target/49987
3145         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3146         valid CONST_VECTOR operands.
3147         (rs6000_expand_vector_init): Likewise.
3148
3149 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3150
3151         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3152         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3153         BINFO_VTABLE.  Parameter delta removed, all callers updated.
3154         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3155         BINFO_VTABLE.
3156         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3157         all calls.
3158         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3159         handling of thunk_delta.
3160         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3161         (devirtualization_time_bonus): Do not handle thunk deltas.
3162         (ipcp_discover_new_direct_edges): Likewise.
3163         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3164         (try_make_edge_direct_simple_call): Likewise.
3165         (try_make_edge_direct_virtual_call): Likewise.
3166         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3167         parameter set as unused.
3168         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3169         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3170         parameter set as unused.
3171         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3172         (input_edge_opt_summary): Likewise.
3173         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3174         BINFO_VIRTUALS at all.
3175         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3176
3177 2011-09-02  Richard Guenther  <rguenther@suse.de>
3178
3179         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3180         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3181
3182 2011-08-31  Richard Guenther  <rguenther@suse.de>
3183
3184         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3185         handling here, from ...
3186         (expand_expr_real_1): ... here.
3187         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3188         and VEC_COND_EXPR.
3189         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3190         a GIMPLE_TERNARY_RHS.
3191         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3192         and VEC_COND_EXPR here ...
3193         (verify_gimple_assign_single): ... not here.
3194         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3195         * tree-object-size.c (cond_expr_object_size): Adjust.
3196         (collect_object_sizes_for): Likewise.
3197         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3198         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3199         (ssa_forward_propagate_and_combine): Adjust.
3200         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3201         as ternary.
3202         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3203         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3204         * tree-vect-stmt.c (vectorizable_condition): Likewise.
3205         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3206         (extract_range_from_assignment): Likewise.
3207
3208 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3209
3210         * config/i386/i386.md: Use (match_test ...) for attribute tests.
3211         * config/i386/mmx.md: Likewise.
3212         * config/i386/sse.md: Likewise.
3213         * config/i386/predicates.md (call_insn_operand): Use
3214         (not (match_test "...")) instead of (match_test "!...")
3215         * config/i386/constraints.md (w): Likewise.
3216
3217 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3218
3219         * doc/md.texi: Describe the use of match_tests in attribute tests.
3220         * rtl.def (MATCH_TEST): Update commentary.
3221         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3222         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3223
3224 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3225
3226         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3227         (attr_string): Use copy_md_ptr_loc.
3228
3229 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3230
3231         PR middle-end/49886
3232         * ipa-inline-analysis.c (compute_inline_parameters): Set
3233         can_change_signature of noes with typde attributes.
3234         * ipa-split.c (split_function): Do not skip any arguments if
3235         can_change_signature is set.
3236
3237 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3238
3239         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3240         check removed.
3241
3242 2011-08-31  Richard Guenther  <rguenther@suse.de>
3243
3244         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3245         special-casing.
3246
3247 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
3248
3249         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3250
3251 2011-08-31  Tom de Vries  <tom@codesourcery.com>
3252
3253         PR middle-end/43513
3254         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3255         * tree-ssa-ccp.c (params.h): Include.
3256         (fold_builtin_alloca_for_var): New function.
3257         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3258
3259 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
3260
3261         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3262         Handle FMA option.
3263
3264 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3265
3266         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3267         b3 and b4 unsigned.
3268
3269 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3270
3271         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3272         when code is SET.
3273
3274 2011-08-30  Richard Guenther  <rguenther@suse.de>
3275
3276         PR middle-end/48571
3277         * gimple.h (maybe_fold_offset_to_address): Remove.
3278         (maybe_fold_offset_to_reference): Likewise.
3279         (maybe_fold_stmt_addition): Likewise.
3280         (may_propagate_address_into_dereference): Likewise.
3281         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3282         array references.
3283         * gimple-fold.c (canonicalize_constructor_val): Likewise.
3284         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3285         addresses instead.
3286         (may_propagate_address_into_dereference): Remove.
3287         (maybe_fold_offset_to_array_ref): Likewise.
3288         (maybe_fold_offset_to_reference): Likewise.
3289         (maybe_fold_offset_to_address): Likewise.
3290         (maybe_fold_stmt_addition): Likewise.
3291         (fold_gimple_assign): Do not reconstruct array references but
3292         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3293         MEM_REF addresses.
3294         (gimple_fold_stmt_to_constant_1): Likewise.
3295         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3296         * gimplify.c (gimplify_conversion): Likewise.
3297         (gimplify_expr): Likewise.
3298
3299 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
3300
3301         * config/i386/fmaintrin.h: New.
3302         * config.gcc: Add fmaintrin.h.
3303         * config/i386/i386.c
3304         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3305         <IX86_BUILTIN_VFMADDSD3>: Likewise.
3306         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3307         (*fmai_fmadd_<mode>): Likewise.
3308         (*fmai_fmsub_<mode>): Likewise.
3309         (*fmai_fnmadd_<mode>): Likewise.
3310         (*fmai_fnmsub_<mode>): Likewise.
3311         * config/i386/immintrin.h: Add fmaintrin.h.
3312
3313 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
3314
3315         * genautomata.c (NO_COMB_OPTION): New macro.
3316         (no_comb_flag): New static variable.
3317         (gen_automata_option): Handle NO_COMB_OPTION.
3318         (comb_vect_p): False if no_comb_flag.
3319         (add_vect): Move computation of min/max values.  Return early if
3320         no_comb_flag.
3321         * doc/md.texi (automata_option): Document no-comb-vect.
3322
3323         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3324         "__x86.get_pc_thunk".
3325
3326         * bb-reorder.c (insert_section_boundary_note): Only do it if
3327         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3328
3329 2011-08-30  Christian Bruel  <christian.bruel@st.com>
3330
3331         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3332         flag_profile_use.
3333
3334 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3335
3336         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3337         to off.  Document switch.
3338         * doc/invoke.texi (-msave-toc-indirect): Ditto.
3339
3340 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3341
3342         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3343         conditionals and comments inside macro arguments.
3344
3345 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
3346             Richard Guenther  <rguenther@suse.de>
3347
3348         * tree.h (constant_boolean_node): Adjust prototype.
3349         * fold-const.c (fold_convert_loc): Move aggregate conversion
3350         leeway down.
3351         (constant_boolean_node): Make value parameter boolean, add
3352         vector type handling.
3353         (fold_unary_loc): Use constant_boolean_node.
3354         (fold_binary_loc): Preserve types properly when folding
3355         COMPLEX_EXPR <__real x, __imag x>.
3356         * gimplify.c (gimplify_expr): Handle vector comparison.
3357         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3358         comparison.
3359         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3360         comparisons.
3361
3362 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3363
3364         PR middle-end/48722
3365         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3366         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3367         (verify_rtl_sharing): Likewise and verify_rtx_sharing
3368         in there too.
3369         (unshare_all_rtl_in_chain): For CALL_INSNs
3370         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3371
3372 2011-08-29  Richard Guenther  <rguenther@suse.de>
3373
3374         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3375         on the built ADDR_EXPR.
3376
3377 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3378
3379         PR debug/50215
3380         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3381         before adding ENTRY_VALUE to val->locs.
3382
3383 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
3384
3385         PR bootstrap/50218
3386         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3387         comp.
3388
3389 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
3390
3391         * doc/rtl.texi (simple_return): Document.
3392         (parallel, PATTERN): Here too.
3393         * doc/md.texi (return): Mention it's allowed to expand to simple_return
3394         in some cases.
3395         (simple_return): Document standard pattern.
3396         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3397         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3398         * reorg.c (function_return_label, function_simple_return_label):
3399         New static variables, replacing...
3400         (end_of_function_label): ... this.
3401         (simplejump_or_return_p): New static function.
3402         (optimize_skip, steal_delay_list_from_fallthrough,
3403         fill_slots_from_thread): Use it.
3404         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
3405         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3406         (find_end_label): Take a new arg which is one of the two return
3407         rtxs.  Depending on which, set either function_return_label or
3408         function_simple_return_label.  All callers changed.
3409         (make_return_insns): Make both kinds.
3410         (dbr_schedule): Adjust for two kinds of end labels.
3411         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3412         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3413         (gen_expand, gen_split): Use ANY_RETURN_P.
3414         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3415         * rtl.def (SIMPLE_RETURN): New code.
3416         * ifcvt.c (find_if_case_1): Be more careful about
3417         redirecting jumps to the EXIT_BLOCK.
3418         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3419         returnjump_p_1): Handle SIMPLE_RETURNs.
3420         * print-rtl.c (print_rtx): Likewise.
3421         * rtl.c (copy_rtx): Likewise.
3422         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3423         * combine.c (simplify_set): Likewise.
3424         * resource.c (find_dead_or_set_registers, mark_set_resources):
3425         Likewise.
3426         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3427         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3428         (init_emit_regs): Initialize simple_return_rtx.
3429         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3430         force_nonfallthru_and_redirect.
3431         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3432         (GR_SIMPLE_RETURN): New enum value.
3433         (simple_return_rtx): New macro.
3434         * basic-block.h (force_nonfallthru_and_redirect): Adjust
3435         declaration.
3436         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3437         argument.  All callers changed.  Be careful about what kinds of
3438         returnjumps to generate.
3439         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3440         ix86_pad_short_function): Likewise.
3441         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3442         of return.
3443         * config/mips/mips.md (any_return): New code_iterator.
3444         (optab): Add cases for return and simple_return.
3445         (return): Expand to a simple_return.
3446         (simple_return): New pattern.
3447         (*<optab>, *<optab>_internal for any_return): New patterns.
3448         (return_internal): Remove.
3449         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3450         a simple_return_internal.
3451
3452 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3453
3454         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3455         (vec_extract_lo_<mode>): Prevent both operands in memory.
3456         (vec_extract_lo_v16hi): Ditto.
3457         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3458
3459 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3460
3461         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3462         (*sse2_mulv4si3): Ditto.
3463         (mulv2di3): Ditto.
3464         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3465         notes to REG_EQUAL.
3466
3467 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3468
3469         PR target/50202
3470         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3471         when all outputs are unused.
3472         (sse4_2_pcmpistr): Ditto.
3473
3474 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3475
3476         * config/i386/i386.md (round<mode>2): New expander.
3477         * config/i386/i386.c (enum ix86_builtins): Add
3478         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3479         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3480         descriptions.
3481         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3482         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3483
3484 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3485
3486         PR middle-end/50083
3487         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3488         only when TARGET_C99_FUNCTIONS.
3489         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3490         <BUILT_IN_RINT{,F,L}>: Ditto.
3491
3492 2011-08-26  Michael Matz  <matz@suse.de>
3493             Jakub Jelinek  <jakub@redhat.com>
3494
3495         PR lto/50165
3496         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3497         don't call strlen twice, use memcpy.
3498
3499 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
3500
3501         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3502         * config/i386/bmiintrin.h: Likewise.
3503         * config/i386/lzcntintrin.h: Likewise.
3504
3505         * config/i386/immintrin.h: Include <lzcntintrin.h>,
3506         <bmiintrin.h> and <bmi2intrin.h>.
3507
3508 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3509
3510         PR target/50166
3511         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3512         * configure: Regenerate.
3513
3514 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3515
3516         PR c/50179
3517         * c-typeck.c (c_process_expr_stmt): Skip over nops and
3518         call mark_exp_read even if exprv is ADDR_EXPR.
3519
3520 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
3521
3522         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3523         to df_set_dead_notes_for_mw.
3524
3525 2011-08-26  Richard Guenther  <rguenther@suse.de>
3526
3527         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3528
3529 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
3530             Tom de Vries  <tom@codesourcery.com>
3531
3532         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3533         (struct ivopts_data): Add loop_single_exit_p field.
3534         (niter_for_exit): Change parameter desc_p into return value.  Return
3535         desc if desc->may_be_zero.  Free desc if unused.
3536         (niter_for_single_dom_exit): Change return type.
3537         (find_induction_variables): Handle changed return type of
3538         niter_for_single_dom_exit.  Dump may_be_zero.
3539         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3540         (set_use_iv_cost): Add and handle comp parameter.
3541         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3542         comp argument to set_use_iv_cost.
3543         (strip_wrap_conserving_type_conversions, expr_equal_p)
3544         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3545         (may_eliminate_iv): Add comp parameter.  Handle new return type of
3546         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
3547         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3548         and may_eliminate_iv.
3549         (rewrite_use_compare): Move call to iv_elimination_compare to ...
3550         (may_eliminate_iv): Here.
3551         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3552
3553 2011-08-26  Tom de Vries  <tom@codesourcery.com>
3554
3555         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3556         accessing TREE_TYPE.
3557
3558 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
3559
3560         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3561         (*ior_scc_scc_cmp): Likewise
3562         (*and_scc_scc): Likewise.
3563         (*and_scc_scc_cmp): Likewise.
3564         (*and_scc_scc_nodom): Likewise.
3565         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3566
3567 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3568
3569         * rtlanal.c (nonzero_bits1): Handle CLRSB.
3570
3571 2011-08-26  Richard Guenther  <rguenther@suse.de>
3572
3573         * expr.c (string_constant): Handle &MEM_REF.
3574
3575 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3576
3577         * config/arm/arm.c (struct four_ints): New type.
3578         (count_insns_for_constant): Delete function.
3579         (find_best_start): Delete function.
3580         (optimal_immediate_sequence): New function.
3581         (optimal_immediate_sequence_1): New function.
3582         (arm_gen_constant): Move constant splitting code to
3583         optimal_immediate_sequence.
3584         Rewrite constant negation/invertion code.
3585
3586 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3587
3588         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3589         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3590         Remove prototype. Remove static function type.
3591         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3592         Add arch attribute.
3593         * config/arm/constraints.md (Pj, PJ): New constraints.
3594
3595 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3596
3597         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3598         ("cortex_a9_multiply_long"): New and use above.  Handle all
3599         long multiply cases.
3600         ("cortex_a9_multiply"): Handle smmul and smmulr.
3601         ("cortex_a9_mac"): Handle smmla.
3602
3603 2011-08-25  Richard Henderson  <rth@redhat.com>
3604
3605         PR 50132
3606         PR 49864
3607         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3608         non-constant stack adjutment.
3609         * expr.c (find_args_size_adjust): Break out from ...
3610         (fixup_args_size_notes): ... here.
3611         * rtl.h (find_args_size_adjust): Declare.
3612
3613 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
3614
3615         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3616         sse4 and sse4_noavx.
3617         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3618         (*pushdf_rex64): Change Y2 register constraint to x.
3619         (*movdf_internal_rex64): Ditto.
3620         (*zero_extendsidi2_rex64): Ditto.
3621         (*movdi_internal): Change Y2 register constraint to x
3622         and update "isa" attribute.
3623         (*pushdf): Ditto.
3624         (*movdf internal): Ditto.
3625         (zero_extendsidi2_1): Ditto.
3626         (*truncdfdf_mixed): Ditto.
3627         (*truncxfdf2_mixed): Ditto.
3628         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3629         register constraint to x.
3630         (*movv2sf_internal_rex64): Ditto.
3631         (*mov<mode>_internal): Change Y2 register constraint to x
3632         and add "isa" attribute.
3633         (*movv2sf_internal): Ditto.
3634         (*vec_extractv2si_1): Ditto.
3635         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3636         constraints to x and update "isa" attribute.
3637         (*vec_interleave_highv2df): Change Y3 registerconstraint
3638         to x and update "isa" attribute.
3639         (*vec_interleave_lowv2df): Ditto.
3640         (*vec_concatv2df): Change Y2 register constraint to x and
3641         update "isa" attribute.
3642         (sse2_loadld): Ditto.
3643         (*vec_extractv2di_1): Ditto.
3644         (*vec_dupv4si): Ditto.
3645         (*vec_dupv2di): Ditto.
3646         (*vec_concatv4si): Ditto.
3647         (vec_concatv2di): Ditto.
3648         * config/i386/constraints.md (Y2): Remove.
3649         (Y3): Ditto.
3650         (Y4): Ditto.
3651
3652 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3653
3654         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3655         dump_def_use_chain): Don't declare.
3656         (mark_conflict, create_new_chain): Move before users.
3657         (regrename_optimize): Move to near end of file.
3658
3659 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3660
3661         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3662         (secondary_input_reload_class): Remove Prototype.
3663         * config/avr/avr.c (byte_immediate_operand): Remove Function.
3664         * config/avr/avr.md (setmemhi): Use u8_operand.
3665         (strlenhi): Use const0_rtx for comparison.
3666         * config/avr/avr.h (avr_reg_order): Remove Declaration.
3667
3668 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3669
3670         * config/avr/avr.c (reg_class_tab): Make local to
3671         avr_regno_reg_class.  Return smallest register class available.
3672
3673 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3674
3675         * config/avr/avr.c (STR_PREFIX_P): New Define.
3676         (avr_asm_declare_function_name): Use it.
3677         (avr_asm_named_section): Use it.
3678         (avr_section_type_flags): Use it.
3679
3680 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3681
3682         * doc/md.texi (automata_option): Document collapse-ndfa.
3683         * genautomata.c (COLLAPSE_OPTION): New macro.
3684         (collapse_flag): New static variable.
3685         (struct description): New member normal_decls_num.
3686         (struct automaton): New members advance_ainsn and collapse_ainsn.
3687         (gen_automata_option): Check for COLLAPSE_OPTION.
3688         (collapse_ndfa_insn_decl): New static variable.
3689         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3690         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3691         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3692         necessary.  Use normal_decls_num rather than decls_num, remove
3693         test for special decls.
3694         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3695         (make_automaton); Likewise.  Use the new advance_cycle_insn member
3696         of struct automaton.
3697         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3698         is set.
3699         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3700         transition.  Create the necessary transitions for it.
3701         (create_ainsns): Return void.  Take an automaton_t argument, and
3702         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
3703         callers changed.
3704         (COLLAPSE_NDFA_VALUE_NAME): New macro.
3705         (output_tables): Output code to define it.
3706         (output_internal_insn_code_evaluation): Output code to accept
3707         const0_rtx as collapse-ndfa transition.
3708         (output_default_latencies, output_print_reservation_func,
3709         output_print_description): Reorganize loops to use normal_decls_num
3710         as loop bound; remove special case for advance_cycle_insn_decl.
3711         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3712         (check_automata_insn_issues): Check for collapse_ainsn.
3713         (expand_automate): Allocate sufficient space.  Initialize
3714         normal_decls_num.
3715
3716 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3717
3718         * config/avr/avr.md: Fix indentation from r177991.
3719
3720 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3721
3722         * regrename.c (struct du_head): Remove member terminated.
3723         (create_new_chain): Don't initialize it.
3724         (scan_rtx_reg): Don't set or test it, test the open_chains_set
3725         bitmap instead.
3726         (tick, this_tick): New global variables, moved out of
3727         regrename_optimize.
3728         (current_id, open_chains, closed_chains, open_chains_set,
3729         live_in_chains, live_hard_regs): Reorder declarations.
3730         (dump_def_use_chain): Move function earlier in the file.
3731         (rename_chains): New static function, broken out of
3732         regrename_optimize.
3733         (regrename_optimize): Use it.  Remove #if 0'ed code.
3734
3735 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3736
3737         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3738
3739 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
3740
3741         PR target/50172
3742         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3743
3744 2011-08-24  Richard Guenther  <rguenther@suse.de>
3745
3746         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3747         ref in the basic-block case.  Move stripping array-refs
3748         to the place we create an access-function for it.  Remove
3749         bogus stripping down a MEM_REF to its base.
3750
3751 2011-08-24  Richard Guenther  <rguenther@suse.de>
3752
3753         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3754         with -fno-strict-overflow.
3755
3756 2011-08-24  Richard Guenther  <rguenther@suse.de>
3757
3758         * tree-vectorizer.c (vect_print_dump_info): Avoid the
3759         file and location clutter when dumping to dump files.
3760
3761 2011-08-24  Simon Baldwin  <simonb@google.com>
3762
3763         * gengtype-state.c (write_state): Remove timestamped header line.
3764
3765 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3766
3767         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3768         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3769         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3770         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3771         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3772         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3773         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3774         rules.
3775         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3776
3777 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3780
3781 2011-08-24  Richard Guenther  <rguenther@suse.de>
3782
3783         PR tree-optimization/50067
3784         * tree-data-ref.c (dr_analyze_indices): Do not add an access
3785         function for a MEM_REF base that has no evolution in the loop
3786         nest or that is not analyzable.
3787
3788 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
3789
3790         * ira.c (ira_init_register_move_cost): Check small subclasses
3791         through ira_reg_class_max_nregs and ira_available_class_regs.
3792
3793 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3794
3795         * config/i386/constraints.md (Yp): New register constraint.
3796         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3797         Yp register constraint.
3798         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3799         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3800         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3801
3802 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3803
3804         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3805
3806 2011-08-23  Mark Heffernan  <meheff@google.com>
3807
3808         PR middle-end/38509
3809         * common.opt (Wfree-nonheap-object): New option.
3810         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3811         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3812         to warning.
3813         (expand_builtin): Make warning conditional.
3814
3815 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3816
3817         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3818         (length_immediate): Handle imulx, ishiftx and rotatex.
3819         (imm_disp): Ditto.
3820         (isa): Add bmi2.
3821         (enabled): Handle bmi2.
3822         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3823         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
3824         (*bmi2_umulditi3_1): New insn pattern.
3825         (*bmi2_umulsidi3_1): Ditto.
3826         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3827         (*bmi2_ashl<mode>3_1): New insn pattern.
3828         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3829         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3830         (*bmi2_ashlsi3_1_zext): New insn pattern.
3831         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3832         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3833         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3834         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3835         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3836         flags dependency.
3837         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3838         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3839         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3840         flags dependency.
3841         (*bmi2_rorx<mode>3_1): New insn pattern.
3842         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3843         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3844         (*rotatert<mode>3_1 splitter): Ditto.
3845         (*bmi2_rorxsi3_1_zext): New insn pattern.
3846         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3847         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3848         (*rotatertsi3_1_zext splitter): Ditto.
3849
3850 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3851
3852         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3853         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3854         (ix86_handle_option): Handle OPT_mbmi2 case.
3855         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3856         (x86_64-*-*): Likewise.
3857         * config/i386/bmi2intrin.h: New file.
3858         * config/i386/cpuid.h (bit_BMI2): New.
3859         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3860         BMI2 feature.
3861         * config/i386/i386-c.c (ix86_target_macros_internal):
3862         Conditionally define __BMI2__.
3863         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3864         Handle BMI2 option.
3865         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3866         (print_reg): New code.
3867         (ix86_print_operand): Likewise.
3868         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3869         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3870         IX86_BUILTIN_PEXT64.
3871         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3872         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3873         IX86_BUILTIN_PEXT64.
3874         * config/i386/i386.h (TARGET_BMI2): New.
3875         * config/i386/i386.md (UNSPEC_PDEP): New.
3876         (UNSPEC_PEXT): Likewise.
3877         (*bmi2_bzhi_<mode>3): Likewise.
3878         (*bmi2_pdep_<mode>3): Likewise.
3879         (*bmi2_pext_<mode>3): Likewise.
3880         * config/i386/i386.opt (mbmi2): New.
3881         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3882         is defined.
3883         * doc/extend.texi: Document BMI2 built-in functions.
3884         * doc/invoke.texi: Document -mbmi2.
3885
3886 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
3887
3888         PR middle-end/50161
3889         * simplify-rtx.c (simplify_const_unary_operation): If
3890         op is CONST_INT, don't look at op_mode, but use instead mode.
3891         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3892         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3893         operation and TRUNCATE/ZERO_EXTEND if needed.
3894         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3895         Document that operand mode must be same as operation mode,
3896         or VOIDmode.
3897         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3898         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3899         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3900         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3901         use the mode of operand for the operation and add truncate
3902         or zero_extend around if needed.
3903         * config/c6x/c6x.md (ctzdi2): Likewise.
3904         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3905
3906 2011-08-12  Michael Matz  <matz@suse.de>
3907
3908         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3909         (gimple_expand_cfg): Merge alignment info for coalesced pointer
3910         SSA names.
3911
3912 2011-08-23  Richard Guenther  <rguenther@suse.de>
3913
3914         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3915         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3916         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3917         from ...
3918         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3919         (mem_refs_may_alias_p): Adjust.
3920         * tree-data-ref.h (dr_may_alias_p): Adjust.
3921         * tree-data-ref.c: Include tree-affine.h.
3922         (dr_analyze_indices): Do nothing for the non-loop case.
3923         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
3924         more cases in the non-loop case.
3925         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3926         calls to dr_may_alias_p.
3927         (write_alias_graph_to_ascii_ecc): Likewise.
3928         (write_alias_graph_to_ascii_dot): Likewise.
3929         (build_alias_set_optimal_p): Likewise.
3930
3931 2011-08-23  Richard Guenther  <rguenther@suse.de>
3932
3933         PR tree-optimization/50162
3934         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3935
3936 2011-08-23  Richard Guenther  <rguenther@suse.de>
3937
3938         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3939         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3940         (create_data_ref): Also dump access functions for the created data-ref.
3941
3942 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
3943             Kirill Yukhin  <kirill.yukhin@intel.com>
3944
3945         PR target/50155
3946         * config/i386/sse.md (VI_AVX2): New.
3947         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3948         (*<plusminus_insn><mode>3): Ditto.
3949         (<sse2_avx2>_andnot<mode>3): Ditto.
3950         (*andnot<mode>3): Fix order of cond operands.
3951         Add asserts for correct TARGET_xxx.
3952         (*<any_logic:code><mode>3): Ditto.
3953
3954 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
3955
3956         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3957         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3958         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3959         regclass argument type to reg_class_t. Change 'max' and 'v' vars
3960         and return types to unsigned char. Use reg_class_contents instead
3961         of class_contents.
3962         (TARGET_CLASS_MAX_NREGS): Define.
3963
3964 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
3965
3966         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3967         to make computed_jump_p return true.
3968
3969 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3970
3971         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3972         (PICFLAG_FOR_TARGET): Substitute.
3973         * aclocal.m4: Regenerate.
3974         * configure: Regenerate.
3975
3976 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
3977
3978         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3979         after reading in the pch.
3980
3981 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
3982
3983         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3984         * configure: Regenerated.
3985
3986 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
3987
3988         PR tree-optimization/50133
3989         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3990         from stmt instead of some statement around gsi.
3991
3992         PR middle-end/50141
3993         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3994         innerdecl is a VAR_DECL.
3995
3996 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3997
3998         * config/i386/avx2intrin.h: New file.
3999         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
4000         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
4001         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
4002         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
4003         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
4004         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
4005         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
4006         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
4007         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
4008         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
4009         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
4010         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
4011         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
4012         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
4013         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
4014         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
4015         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
4016         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
4017         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
4018         VOID_FTYPE_PV8SI_V8SI_V8SI,
4019         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
4020         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
4021         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
4022         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
4023         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
4024         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
4025         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
4026         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
4027         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
4028         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
4029         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
4030         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
4031         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
4032         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
4033         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
4034         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
4035         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
4036         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
4037         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
4038         V4DI_FTYPE_V4DI_INT_CONVERT,
4039         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
4040         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
4041         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4042         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4043         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4044         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4045         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4046         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4047         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4048         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4049         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4050         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4051         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4052         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4053         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4054         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4055         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4056         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4057         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4058         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4059         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4060         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4061         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4062         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4063         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4064         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4065         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4066         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4067         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4068         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4069         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4070         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4071         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4072         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4073         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4074         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4075         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4076         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4077         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4078         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4079         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4080         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4081         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4082         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4083         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4084         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4085         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4086         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4087         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4088         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4089         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4090         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4091         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4092         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4093         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4094         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4095         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4096         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4097         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4098         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
4099         IX86_BUILTIN_VBROADCASTSS_PS256,
4100         IX86_BUILTIN_VBROADCASTSD_PD256,
4101         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4102         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4103         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4104         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4105         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4106         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4107         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4108         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4109         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4110         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4111         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4112         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4113         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
4114         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4115         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4116         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4117         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4118         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4119         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4120         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4121         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4122         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4123         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4124         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4125         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4126         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4127         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4128         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4129         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4130         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4131         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4132         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
4133         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4134         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4135         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4136         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4137         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4138         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4139         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4140         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4141         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4142         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4143         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4144         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4145         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4146         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4147         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4148         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4149         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4150         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4151         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4152         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4153         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4154         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4155         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4156         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4157         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4158         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4159         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4160         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4161         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4162         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4163         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4164         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4165         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4166         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4167         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4168         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4169         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4170         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4171         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4172         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4173         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4174         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4175         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4176         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4177         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4178         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4179         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4180         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4181         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4182         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4183         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4184         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4185         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4186         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4187         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4188         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4189         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4190         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4191         IX86_BUILTIN_VBROADCASTSD_PD256,
4192         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4193         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4194         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4195         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4196         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4197         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4198         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4199         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4200         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4201         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4202         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4203         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4204         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4205         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4206         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4207         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4208         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4209         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4210         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4211         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4212         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4213         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4214         IX86_BUILTIN_GATHERDIV8SI.
4215         (ix86_preferred_simd_mode): Support AVX2 modes.
4216         (ix86_expand_args_builtin): Support AVX2 builtins.
4217         (ix86_expand_special_args_builtin): Likewise.
4218         (ix86_expand_builtin): Likewise.
4219         * config/i386/i386.md (UNSPEC_VPERMSI): New.
4220         (UNSPEC_VPERMDF): Likewise.
4221         (UNSPEC_VPERMSF): Likewise.
4222         (UNSPEC_VPERMDI): Likewise.
4223         (UNSPEC_VPERMTI): Likewise.
4224         (UNSPEC_GATHER): Likewise.
4225         (ssemodesuffix): Extend.
4226         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4227         is defined.
4228         * config/i386/predicates.md (const1248_operand): New.
4229         * config/i386/sse.md (VI1_AVX2): New mode iterator.
4230         (VI2_AVX2): Likewise.
4231         (VI4_AVX2): Likewise.
4232         (VI8_AVX2): Likewise.
4233         (VIMAX_AVX2): Likewise.
4234         (SSESCALARMODE): Likewise.
4235         (VI12_AVX2): Likewise.
4236         (VI24_AVX2): Likewise.
4237         (VI124_AVX2): Likewise.
4238         (VI248_AVX2): Likewise.
4239         (VI48_AVX2): Likewise.
4240         (VI4SD_AVX2): Likewise.
4241         (V48_AVX2): Likewise.
4242         (AVX256MODE2P): Likewise.
4243         (AVXMODE48P_DI): Likewise.
4244         (sse2_avx2): New mode attribute.
4245         (ssse3_avx2): Likewise.
4246         (sse4_1_avx2): Likewise.
4247         (avx_avx2): Likewise.
4248         (ssebytemode): Likewise.
4249         (AVXTOSSEMODE): Likewise.
4250         (AVXMODE48P_DI): Likewise.
4251         (gthrfirstp): Likewise.
4252         (gthrlastp): Likewise.
4253         (lshift): New code_iterator
4254         (lshift): New code attribute.
4255         (lshift): Likewise.
4256         (ssescalarmodesuffix): Update.
4257         (sseunpackmode): Likewise.
4258         (ssepackmode): Likewise.
4259         (avx2_vec_dupv4sf): New insn pattern.
4260         (avx2_vec_dupv8sf): Likewise.
4261         (avx2_interleave_highv4di): Likewise.
4262         (avx2_interleave_lowv4di): Likewise.
4263         (avx2_umulv4siv4di3): Likewise
4264         (*avx2_umulv4siv4di3): Likewise
4265         (avx2_pmaddwd): Likewise.
4266         (*avx2_pmaddwd): Likewise.
4267         (avx2_lshrqv4di3): Likewise.
4268         (avx2_lshlqv4di3): Likewise.
4269         (avx2_lshl<mode>3): Likewise.
4270         (avx2_<umaxmin:code><mode>3): Likewise.
4271         (*avx2_<umaxmin:code><mode>3): Likewise.
4272         (avx2_<smaxmin:code><mode>3): Likewise.
4273         (*avx2_<smaxmin:code><mode>3): Likewise.
4274         (avx2_eq<mode>3): Likewise.
4275         (*avx2_eq<mode>3): Likewise.
4276         (avx2_gt<mode>3): Likewise.
4277         (avx2_interleave_highv32qi): New.
4278         (avx2_interleave_lowv32qi): Likewise.
4279         (avx2_interleave_highv16hi): Likewise.
4280         (avx2_interleave_lowv16hi): Likewise.
4281         (avx2_interleave_highv8si): Likewise.
4282         (avx2_interleave_lowv8si): Likewise.
4283         (avx2_pshufd): Likewise.
4284         (avx2_pshufd_1): Likewise.
4285         (avx2_pshuflwv3): Likewise.
4286         (avx2_pshuflw_1): Likewise.
4287         (avx2_pshufhwv3): Likewise.
4288         (avx2_pshufhw_1): Likewise.
4289         (avx2_uavgv32qi3): Likewise.
4290         (*avx2_uavgv32qi3): Likewise.
4291         (avx2_uavgv16hi3): Likewise.
4292         (*avx2_uavgv16hi3): Likewise.
4293         (avx2_pmovmskb): Likewise.
4294         (avx2_phaddwv16hi3): Likewise.
4295         (avx2_phadddv8si3): Likewise.
4296         (avx2_phaddswv16hi3): Likewise.
4297         (avx2_phsubwv16hi3): Likewise.
4298         (avx2_phsubdv8si3): Likewise.
4299         (avx2_phsubswv16hi3): Likewise.
4300         (avx2_pmaddubsw256): Likewise.
4301         (avx2_umulhrswv16hi3): Likewise.
4302         (*avx2_umulhrswv16hi3): Likewise.
4303         (avx2_packusdw): Likewise.
4304         (avx2_pblendd<mode>): Likewise.
4305         (avx2_<code>v16qiv16hi2): Likewise.
4306         (avx2_<code>v8qiv8si2): Likewise.
4307         (avx2_<code>v8hiv8si2): Likewise.
4308         (avx2_<code>v4qiv4di2): Likewise.
4309         (avx2_<code>v4hiv4di2): Likewise.
4310         (avx2_<code>v4siv4di2): Likewise.
4311         (avx2_pbroadcast<mode>): Likewise.
4312         (avx2_permvarv8si): Likewise.
4313         (avx2_permv4df): Likewise.
4314         (avx2_permvarv8sf): Likewise.
4315         (avx2_permv4di): Likewise.
4316         (avx2_permv2ti): Likewise.
4317         (avx2_vec_dupv4df): Likewise.
4318         (avx2_vbroadcasti128_<mode>): Likewise.
4319         (avx2_vec_set_lo_v4di): Likewise.
4320         (avx2_vec_set_hi_v4di): Likewise.
4321         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4322         (avx2_extracti128): Likewise.
4323         (avx2_inserti128): Likewise.
4324         (avx2_ashrvv8si): Likewise.
4325         (avx2_ashrvv4si): Likewise.
4326         (avx2_<lshift>vv8si): Likewise.
4327         (avx2_<lshift>v<mode>): Likewise.
4328         (avx2_<lshift>vv2di): Likewise.
4329         (avx2_gathersi<mode>): Likewise.
4330         (*avx2_gathersi<mode>): Likewise.
4331         (avx2_gatherdi<mode>): Likewise.
4332         (*avx2_gatherdi<mode>): Likewise.
4333         (avx2_gatherdi<mode>256): Likewise.
4334         (*avx2_gatherdi<mode>256): Likewise.
4335         (<plusminus_insn><mode>3): Use VI mode iterator.
4336         (*<plusminus_insn><mode>3): Use VI mode iterator.
4337         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4338         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4339         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4340         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4341         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
4342         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
4343         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4344         Use VI2_AVX2 mode iterator.
4345         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4346         Use VI2_AVX2 mode iterator.
4347         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
4348         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
4349         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4350         Use VI4_AVX2 mode iterator.
4351         (ashr<mode>3): Use VI24_AVX2 mode iterator.
4352         (lshr<mode>3): Use VI248_AVX2 mode iterator.
4353         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4354         Use VIMAX_AVX2 mode iterator.
4355         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4356         Use VI mode iterator.
4357         (*andnot<mode>3): Update for AVX2.
4358         (*<any_logic:code><mode>3): Likewise.
4359         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4360         Use VI1_AVX mode iterator.
4361         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
4362         Use VI2_AVX mode iterator.
4363         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4364         Use VI1_AVX mode iterator.
4365         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4366         Use VI8_AVX2 mode iterator.
4367         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4368         Use VI1_AVX2 mode iterator.
4369         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4370         Use VI124_AVX2 mode iterator.
4371         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4372         Use SSESCALARMODE mode iterator.
4373         (abs<mode>2): Use VI124_AVX2 mode iterator.
4374         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4375         Use VI8_AVX2 mode iterator.
4376         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4377         Use VI1_AVX2 mode iterator.
4378         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4379         Use VI1_AVX2 mode iterator.
4380         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4381         Use VI2_AVX2 mode iterator.
4382         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4383         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4384         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4385         avx_maskstore<ssemodesuffix><avxsizesuffix>.
4386         Use V48_AVX2 mode iterator.
4387         * doc/extend.texi: Document AVX2 built-in functions.
4388         * doc/invoke.texi: Document -mavx2.
4389
4390 2011-08-22  Matthias Klose <doko@debian.org>
4391
4392         Revert:
4393         2011-07-11  Arthur Loiret  <aloiret@debian.org>
4394                     Matthias Klose <doko@debian.org>
4395         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4396         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4397         convention.
4398         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4399
4400 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
4401
4402         PR bootstrap/50146
4403         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4404         to #ifndef HONOR_REG_ALLOC_ORDER block.
4405
4406 2011-08-21  Richard Henderson  <rth@redhat.com>
4407
4408         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4409         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4410         * resource.c (next_insn_no_annul): Likewise.
4411         (mark_set_resources): Likewise.
4412         * reorg.c (delete_from_delay_slot): Likewise.
4413         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4414         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4415
4416 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
4417
4418         * config/i386/i386.md (any_div): Remove.
4419         (sgnprefix): Update for removal.
4420         (u): Ditto.
4421
4422 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
4423
4424         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4425         for ira_reg_class_max_nregs.  Increase pressure by 1.
4426         (mark_pseudo_regno_subword_dead): Use allocno class
4427         for ira_reg_class_max_nregs.
4428
4429 2011-08-20  Richard Henderson  <rth@redhat.com>
4430
4431         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4432         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4433         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4434         config/c6x/ltf.c: Adjust include path for soft-fp.
4435
4436 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4437
4438         PR other/46770
4439         * config.gcc (tm_file): Add initfini-array.h if
4440         .init_arrary/.fini_array are supported.
4441
4442         * crtstuff.c: Don't generate .ctors nor .dtors sections if
4443         USE_INITFINI_ARRAY is defined.
4444
4445         * output.h (default_elf_init_array_asm_out_constructor): New.
4446         (default_elf_fini_array_asm_out_destructor): Likewise.
4447         * varasm.c (elf_init_array_section): Likewise.
4448         (elf_fini_array_section): Likewise.
4449         (get_elf_initfini_array_priority_section): Likewise.
4450         (default_elf_init_array_asm_out_constructor): Likewise.
4451         (default_elf_fini_array_asm_out_destructor): Likewise.
4452
4453         * config/initfini-array.h: New.
4454
4455 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4456
4457         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4458         OK for ST_REGS and FP_REGS before taking those classes into account.
4459
4460 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4461
4462         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4463         before checking for annulled branches.
4464
4465 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4466
4467         * config/i386/i386.c (ix86_binary_operator_ok): Use
4468         satisfies_constraint_L.
4469
4470 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4471             Michael Matz  <matz@suse.de>
4472
4473         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4474         trunc (a + copysign (nextafter (0.5, 0.0), a)).
4475
4476 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
4477
4478         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4479         * doc/tm.texi: Regenerate.
4480         * targhooks.c (default_preferred_output_reload_class): Don't use
4481         PREFERRED_OUTPUT_RELOAD_CLASS macro.
4482         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4483
4484 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
4485
4486         PR tree-optimization/48739
4487         * tree-ssa.c: Include cfgloop.h.
4488         (execute_update_addresses_taken): When updating ssa, if in loop closed
4489         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4490         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4491
4492 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
4493
4494         PR rtl-optimization/49936
4495         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4496         for calculation of max register move costs.
4497
4498 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4499
4500         * c-parser.c (c_parser_postfix_expression): Convert operands of
4501         __builtin_complex to their semantic types.
4502
4503 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4504
4505         PR middle-end/49721
4506         * explow.c (convert_memory_address_addr_space): Also permute the
4507         conversion and addition of constant for zero-extend.
4508
4509 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4510
4511         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4512         * doc/extend.texi (__builtin_complex): Document.
4513
4514 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4515
4516         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4517         beyond conversions.
4518         (convert_mult_to_widen): Convert constant inputs to the right type.
4519         (convert_plusminus_to_widen): Don't automatically reject inputs that
4520         are not an SSA_NAME.
4521         Convert constant inputs to the right type.
4522
4523 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4524
4525         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4526         to the correct type.
4527
4528 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4529
4530         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4531         unsigned inputs of different modes.
4532         (convert_plusminus_to_widen): Likewise.
4533
4534 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4535
4536         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4537         'type'.
4538         Use 'type' from caller, not inferred from 'rhs'.
4539         Don't reject non-conversion statements. Do return lhs in this case.
4540         (is_widening_mult_p): Add new argument 'type'.
4541         Use 'type' from caller, not inferred from 'stmt'.
4542         Pass type to is_widening_mult_rhs_p.
4543         (convert_mult_to_widen): Pass type to is_widening_mult_p.
4544         (convert_plusminus_to_widen): Likewise.
4545
4546 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4547
4548         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4549         Ensure the the larger type is the first operand.
4550
4551 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4552
4553         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4554         unsupported unsigned multiplies to signed.
4555         (convert_plusminus_to_widen): Likewise.
4556
4557 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4558
4559         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4560         conversion statement separating multiply-and-accumulate.
4561
4562 2011-08-19  Richard Guenther  <rguenther@suse.de>
4563
4564         PR tree-optimization/50067
4565         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4566         offset only if we accounted for it.
4567
4568 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4569
4570         * config/arm/arm.md (maddhidi4): Remove '*' from name.
4571         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4572         * optabs.c (find_widening_optab_handler_and_mode): New function.
4573         (expand_widen_pattern_expr): Use find_widening_optab_handler.
4574         (expand_binop_directly): Likewise.
4575         (expand_binop): Likewise.
4576         * optabs.h (find_widening_optab_handler): New macro define.
4577         (find_widening_optab_handler_and_mode): New prototype.
4578         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4579         type precision rules.
4580         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4581         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4582         (is_widening_mult_rhs_p): Allow widening by more than one mode.
4583         Explicitly disallow mis-matched input types.
4584         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4585         input types to fit the new handler.
4586         (convert_plusminus_to_widen): Likewise.
4587
4588 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4589
4590         * expr.c (expand_expr_real_2): Use widening_optab_handler.
4591         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4592         (gen_insn): $N now means $a must be wider than $b, not consecutive.
4593         * optabs.c (widened_mode): New function.
4594         (expand_widen_pattern_expr): Use widening_optab_handler.
4595         (expand_binop_directly): Likewise.
4596         (expand_binop): Likewise.
4597         * optabs.h (widening_optab_handlers): New struct.
4598         (optab_d): New member, 'widening'.
4599         (widening_optab_handler): New function.
4600         (set_widening_optab_handler): New function.
4601         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4602         widening_optab_handler.
4603         (convert_plusminus_to_widen): Likewise.
4604
4605 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4606
4607         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4608         pedantic.
4609         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4610         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4611
4612 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4613
4614         * opth-gen.awk: Do not declare target save/restore structures and
4615         functions if IN_RTS defined.
4616
4617 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4618
4619         PR target/49437
4620         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4621         when stack was realigned in interrupt handler prologue.
4622
4623 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
4624
4625         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4626         (quals_from_declspecs): Assert _Noreturn not present.
4627         (grokdeclarator): Handle _Noreturn.
4628         (build_null_declspecs): Initialize noreturn_p.
4629         (declspecs_add_scspec): Handle RID_NORETURN.
4630         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4631         (c_parser_attributes): Handle RID_NORETURN.
4632         * c-tree.h (struct c_declspecs): Add noreturn_p.
4633         * ginclude/stdnoreturn.h: New.
4634         * Makefile.in (USER_H): Add stdnoreturn.h.
4635
4636 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4637
4638         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4639         (OPTION_MASK_ISA_AVX_UNSET): Update.
4640         (OPTION_MASK_ISA_AVX2_UNSET): New.
4641         (ix86_handle_option): Handle OPT_mavx2 case.
4642         * config/i386/cpuid.h (bit_AVX2): New.
4643         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4644         AVX2 feature.
4645         * config/i386/i386-c.c (ix86_target_macros_internal):
4646         Conditionally define __AVX2__.
4647         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4648         Define "core-avx2" processor alias.  Handle avx2 option.
4649         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4650         * config/i386/i386.h (TARGET_AVX2): New.
4651         * config/i386/i386.opt (mavx2): New.
4652         * doc/invoke.texi: Document -mavx2.
4653
4654 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
4655
4656         PR rtl-optimization/49890
4657         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4658         subclasses of class which is superset of a pressure class.
4659
4660 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4661             Igor Zamyatin <igor.zamyatin@intel.com>
4662
4663         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4664         with HOST_WIDE_INT for isa_flag.
4665         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4666         isa variables.
4667
4668         * config/i386/i386.c (ix86_target_string): Replace int with
4669         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
4670         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4671         (pta_flags): Removed.
4672         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4673         (pta): Use HOST_WIDE_INT on flags.
4674         (builtin_isa): Use HOST_WIDE_INT on isa.
4675         (ix86_add_new_builtins): Likewise.
4676         (def_builtin): Use HOST_WIDE_INT on mask.
4677         (def_builtin_const): Likewise.
4678         (builtin_description): Likewise.
4679
4680         * config/i386/i386.opt (ix86_isa_flags): Replace int with
4681         HOST_WIDE_INT.
4682         (ix86_isa_flags_explicit): Likewise.
4683         (x_ix86_isa_flags_explicit): Likewise.
4684
4685 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
4686
4687         PR rtl-optimization/50107
4688         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4689         (ira_hard_reg_in_set_p): New.
4690
4691         * ira-color.c (calculate_saved_nregs): New.
4692         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
4693         hard regs.
4694         (allocno_reload_assign, fast_allocation): Use
4695         ira_hard_reg_set_intersection_p instead of
4696         ira_hard_reg_not_in_set_p.
4697
4698         * ira.c (setup_reg_renumber): Use
4699         ira_hard_reg_set_intersection_p instead of
4700         ira_hard_reg_not_in_set_p.
4701         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4702         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4703
4704         * ira-costs.c (ira_tune_allocno_costs): Use
4705         ira_hard_reg_set_intersection_p instead of
4706         ira_hard_reg_not_in_set_p.
4707
4708 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4709             Igor Zamyatin <igor.zamyatin@intel.com>
4710
4711         * hwint.h (HOST_WIDE_INT_1): New.
4712
4713         * opt-functions.awk (switch_bit_fields): Initialize the
4714         host_wide_int field.
4715         (host_wide_int_var_name): New.
4716         (var_type_struct): Check and return HOST_WIDE_INT.
4717
4718         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4719
4720         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4721
4722         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
4723         check masks for HOST_WIDE_INT.
4724
4725         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4726         (option_enabled): Likewise.
4727         (get_option_state): Likewise.
4728
4729         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
4730         to HOST_WIDE_INT.
4731
4732 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4733             Marc Glisse  <marc.glisse@normalesup.org>
4734
4735         PR libstdc++-v3/1773
4736         * target.def (decl_mangling_context): New C++ hook.
4737         * doc/tm.texi: Regenerate.
4738         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4739         * config/sol2-protos.h: Group by source file.
4740         (solaris_cxx_decl_mangling_context): Declare.
4741         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4742         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4743         Use $<.
4744         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4745         Add sol2-stubs.o to extra_objs.
4746
4747 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
4748
4749         PR target/50009
4750         * stor-layout.c (update_alignment_for_field): Don't ICE on
4751         packed flexible array members if ms_bitfield_layout_p.
4752
4753         PR target/50092
4754         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4755         on the result before returning it.
4756
4757         PR debug/50017
4758         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4759         is a debug stmt, use location of the first non-debug stmt after it.
4760
4761 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4762
4763         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4764         (arm_size_rtx_costs): Likewise.
4765
4766 2011-08-18  Richard Guenther  <rguenther@suse.de>
4767
4768         * tree.h (tree_int_cst_msb): Remove.
4769         * tree.c (tree_int_cst_msb): Likewise.
4770         (tree_int_cst_sign_bit): Move from ...
4771         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4772
4773 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4774
4775         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4776         * doc/tm.texi: Regenerate.
4777         * target.def (rtx_costs): Add an opno parameter.
4778         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4779         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4780         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4781         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4782         * cse.c (COST_IN): Add an opno parameter.
4783         (notreg_cost): Likewise.  Update call to rtx_cost.
4784         (COST, fold_rtx): Update accordingly.
4785         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4786         * expmed.c (emit_store_flag): Likewise.
4787         * optabs.c (avoid_expensive_constant): Add an opno parameter.
4788         Update call to rtx_cost.
4789         (expand_binop_directly, expand_binop): Likewise.
4790         (expand_twoval_binop, prepare_cmp_insn): Likewise.
4791         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4792         (set_src_cost, get_full_set_src_cost): Update accordingly.
4793         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
4794         to target hook.
4795         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
4796         (default_adress_cost): Update calls to rtx_cost.
4797
4798         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4799         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4800         (arm_rtx_costs): Add an opno parameter.
4801         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4802         adjust any recursive rtx-cost calls.
4803         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4804         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4805         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4806         * config/cris/cris.c (cris_rtx_costs): Likewise.
4807         * config/frv/frv.c (frv_rtx_costs): Likewise.
4808         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4809         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4810         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4811         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4812         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4813         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4814         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4815         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4816         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4817         * config/mep/mep.c (mep_rtx_cost): Likewise.
4818         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4819         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4820         (mips_zero_extend_cost): Add an opno parameter.
4821         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4822         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4823         to rtx_cost.
4824         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4825         rtx-cost calls.
4826         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4827         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4828         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4829         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4830         (rs6000_debug_rtx_costs): Likewise.
4831         * config/s390/s390.c (s390_rtx_costs): Likewise.
4832         * config/score/score-protos.h (score_rtx_costs): Likewise.
4833         * config/score/score.c (score_rtx_costs): Likewise.
4834         * config/sh/sh.c (andcosts): Update call to rtx_cost.
4835         (sh_rtx_costs): Add an opno parameter.
4836         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4837         * config/spu/spu.c (spu_rtx_costs): Likewise.
4838         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4839         * config/v850/v850.c (v850_rtx_costs): Likewise.
4840         * config/vax/vax.c (vax_rtx_costs): Likewise.
4841         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4842
4843 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4844
4845         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4846         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4847         rtx_cost.
4848         * calls.c (precompute_register_parameters): Likewise.
4849         * combine.c (expand_compound_operation, make_extraction): Likewise.
4850         (force_to_mode, distribute_and_simplify_rtx): Likewise.
4851         * dse.c (find_shift_sequence): Likewise.
4852         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4853         * expr.c (compress_float_constant): Likewise.
4854         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4855         * gcse.c (want_to_gcse_p): Likewise.
4856         * ifcvt.c (noce_try_sign_mask): Likewise.
4857         * loop-doloop.c (doloop_optimize): Likewise.
4858         * loop-invariant.c (create_new_invariant): Likewise.
4859         * optabs.c (avoid_expensive_constant): Likewise.
4860         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4861         (try_replace_in_use, reload_cse_move2add): Likewise.
4862         * reload1.c (calculate_elim_costs_all_insns): Likewise.
4863         (note_reg_elim_costly): Likewise.
4864         * rtlanal.c (insn_rtx_cost): Likewise.
4865         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4866         * stmt.c (lshift_cheap_p): Likewise.
4867         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4868         * config/avr/avr.c (final_prescan_insn): Likewise.
4869         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4870         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4871
4872 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4873
4874         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4875         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4876         * cfgloopanal.c (seq_cost): Likewise.
4877         * loop-invariant.c (create_new_invariant): Likewise.
4878         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4879         (reload_cse_move2add): Use get_full_set_rtx_cost.
4880
4881 2011-08-18  Richard Guenther  <rguenther@suse.de>
4882
4883         * expr.c (get_inner_reference): Fix typo in last change.
4884
4885 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4886             Joseph Myers  <joseph@codesourcery.com>
4887
4888         PR tree-optimization/49963
4889         * hwint.c (absu_hwi): Define.
4890         * hwint.h (absu_hwi): Declare.
4891         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4892         of abs_hwi.
4893         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4894         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4895
4896 2011-08-18  Richard Guenther  <rguenther@suse.de>
4897
4898         * expr.c (get_inner_reference): Sign-extend the constant
4899         twos-complement offset before doing arbitrary precision
4900         arithmetic on it.
4901         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4902         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4903         to get_constraint_for_ptr_offset.
4904
4905 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4906
4907         PR target/50068
4908         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4909
4910 2011-08-17  Richard Guenther  <rguenther@suse.de>
4911
4912         * tree.h (convert_to_ptrofftype_loc): New function.
4913         (convert_to_ptrofftype): Define.
4914         * builtins.c (expand_builtin_bzero): Use size_type_node.
4915         (fold_builtin_bzero): Likewise.
4916         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4917         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4918         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4919         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4920         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4921         * fold-const.c (build_range_check): Negate using the original type.
4922         (fold_unary_loc): Use fold_build_pointer_plus_loc.
4923         * gimple-fold.c (gimple_adjust_this_by_delta): Use
4924         convert_to_ptrofftype.
4925         * gimplify.c (gimplify_self_mod_expr): Likewise.
4926         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4927         (graphite_create_new_loop_guard): Likewise.
4928         * graphite-sese-to-poly.c (my_long_long): Remove.
4929         (scop_ivs_can_be_represented): Adjust.
4930         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4931         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4932         * tree-loop-distribution.c (build_size_arg_loc): Use
4933         size_type_node.
4934         (generate_memset_zero): Simplify.
4935         * tree-mudflap.c: Use fold_convert, not convert.
4936         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4937         its own type.
4938         (determine_offset): Likewise for DR_STEP.
4939         (valid_initializer_p): Likewise.
4940         * tree-profile.c (prepare_instrumented_value): Convert the pointer
4941         to an integer type of same size.
4942         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4943         to sizetype without need.
4944         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4945         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4946         * tree-ssa-loop-manip.c (create_iv): Likewise.
4947         (determine_exit_conditions): Adjust comment.
4948         * tree-ssa-pre.c (create_expression_by_pieces): Use
4949         convert_to_ptrofftype.
4950         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4951         * varasm.c (array_size_for_constructor): Compute using double_ints.
4952
4953 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4954
4955         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4956         when generating an integer result where possible.  Short-cut
4957         comparison against 0 also for QImode.
4958
4959 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4960
4961         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4962         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4963         prototype.
4964         * config/spu/spu.c (spu_legitimize_reload_address): New function.
4965         (spu_legitimate_address_p): Do not check displacement if the base
4966         is an eliminable stack register.
4967
4968 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
4969
4970         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4971         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4972         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4973         m32c_preferred_output_reload_class): Remove.
4974         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4975         Change rclass argument and return types to reg_class_t. Use
4976         reg_class_subset_p instead of class_sizes.
4977         (m32c_preferred_output_reload_class): Make static. Change rclass
4978         argument and return types to reg_class_t.
4979         (TARGET_PREFERRED_RELOAD_CLASS,
4980         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4981
4982 2011-08-16  Kai Tietz  <ktietz@redhat.com>
4983
4984         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4985
4986 2011-08-16  Richard GUenther  <rguenther@suse.de>
4987
4988         PR tree-optimization/50082
4989         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4990         warnings here, instead of ...
4991         (ssa_forward_propagate_and_combine): ... here.
4992         (forward_propagate_into_comparison_1): Adjust.
4993         (forward_propagate_into_comparison): Likewise.
4994         (forward_propagate_into_gimple_cond): Likewise.
4995         (forward_propagate_into_cond): Likewise.
4996
4997 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4998
4999         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
5000         instead of ggc_alloc_zone_vec_rtvec_def.
5001
5002 2011-08-16  Richard Guenther  <rguenther@suse.de>
5003
5004         * tree.h (ptrofftype_p): New helper function.
5005         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
5006         offset verification.
5007         (verify_gimple_assign_binary): Likewise.
5008         * tree.c (build2_stat): Likewise.
5009         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
5010         (reset_evolution_in_loop): Likewise.
5011         * tree-chrec.h (build_polynomial_chrec): Likewise.
5012
5013 2011-08-16  Liang Wang  <lwang1@marvell.com>
5014
5015         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
5016         ggc_alloc_zone_vec_rtvec_def.
5017
5018 2011-08-16  Richard Guenther  <rguenther@suse.de>
5019
5020         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
5021         helper factored out from ...
5022         (extract_range_from_binary_expr_1): ... here.  Re-structure
5023         to not glob handling too different tree codes.
5024
5025 2011-08-15  Richard Henderson  <rth@redhat.com>
5026
5027         PR middle-end/50006
5028         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
5029         setting out to include allocate_stack named pattern as well.
5030         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
5031         * stmt.c (expand_stack_restore): Likewise.
5032
5033 2011-08-15  Richard Guenther  <rguenther@suse.de>
5034
5035         PR middle-end/50082
5036         * fold-const.c (maybe_canonicalize_comparison_1): Properly
5037         convert the modified operand to the other operand type.
5038         (fold_comparison): Call maybe_canonicalize_comparison_1 with
5039         useless conversions stripped from comparison operands.
5040
5041 2011-08-15  Richard Guenther  <rguenther@suse.de>
5042
5043         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
5044         (extract_range_from_unary_expr_1): Restructure.
5045
5046 2011-08-15  Richard Guenther  <rguenther@suse.de>
5047
5048         PR tree-optimization/50058
5049         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
5050         copy matching.
5051
5052 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5053
5054         PR target/50022
5055         * config/arm/arm.c (output_move_double): Add 2 parameters
5056         to count the number of insns emitted and whether to emit or not.
5057         Use the flag to decide when to emit and count number of instructions
5058         that will be emitted.
5059         Handle case where output_move_double might be called for calculating
5060         lengths with an invalid constant.
5061         (arm_count_output_move_double_insns): Define.
5062         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
5063         (output_move_double): Adjust prototype.
5064         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
5065         output_move_double.
5066         ("*movdi_vfp_cortexa8"): Likewise and add attribute
5067         for ce_count.
5068         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
5069         ("*movdf_soft_insn"): Likewise.
5070         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
5071         ("*cirrus_thumb2_movdi"): Likewise.
5072         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
5073         ("*cirrus_movdf_hard_insn"): Likewise.
5074         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
5075         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
5076         ("mov<mode>_internal VMMX"): Likewise.
5077         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
5078
5079 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
5080
5081         * config/i386/i386.c (ix86_expand_round_sse4): New function.
5082         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
5083         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
5084         for TARGET_ROUND.
5085
5086         (rint<mode>2): Simplify TARGET_ROUND check.
5087         (floor<mode>2): Ditto.
5088         (ceil<mode>2): Ditto.
5089         (btrunc<mode>2): Ditto.
5090
5091 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
5092
5093         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
5094         as mmix_preferred_output_reload_class.
5095
5096 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
5097
5098         * PR target/49903
5099         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
5100         (branch_unspec): New insn.
5101         (branch): Beauty farm.
5102         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
5103         to be IF_THEN_ELSE.
5104         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
5105         New static functions.
5106         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
5107         Use CONST_INT_P.  Beauty.
5108
5109 2011-08-12  Richard Henderson  <rth@redhat.com>
5110
5111         PR rtl-opt/49994
5112         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5113         * sched-deps.c (init_deps): Clear it.
5114         (deps_analyze_insn): Consume it.
5115         (sched_analyze_insn): Fill it.
5116
5117 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5118
5119         PR target/48328
5120         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5121         for tbh instructions.
5122
5123 2011-08-12  Diego Novillo  <dnovillo@google.com>
5124
5125         * data-streamer.h (streamer_write_zero): Rename from output_zero.
5126         (streamer_write_uhwi): Rename from lto_output_uleb128.
5127         (streamer_write_hwi): Rename from output_sleb128.
5128         (streamer_write_string): Rename from lto_output_string.
5129         (streamer_string_index): Rename from lto_string_index.
5130         (streamer_write_string_with_length): Rename from
5131         lto_output_string_with_length.
5132         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5133         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5134         (streamer_read_string): Rename from lto_input_string.
5135         (streamer_read_indexed_string): Rename from input_string_internal.
5136         (streamer_read_uhwi): Rename from lto_input_uleb128.
5137         (streamer_read_hwi): Rename from lto_input_sleb128.
5138         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5139         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5140         (streamer_write_enum): Rename from lto_output_enum.
5141         (streamer_read_enum): Rename from lto_input_enum.
5142         (streamer_write_record_start): Rename from output_record_start.
5143         (streamer_read_record_start): Rename from input_record_start.
5144         (streamer_write_bitpack): Rename from lto_output_bitpack.
5145         (streamer_read_bitpack): Rename from lto_input_bitpack.
5146         (streamer_write_char_stream): Rename from lto_output_1_stream.
5147         (streamer_read_uchar): Rename from lto_input_1_unsigned.
5148         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5149         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5150         (streamer_read_string_cst): Rename from input_string_cst.
5151         (streamer_read_chain): Rename from lto_input_chain.
5152         (streamer_alloc_tree): Rename from lto_materialize_tree.
5153         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5154         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5155         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5156         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5157         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5158         (streamer_write_chain): Rename from lto_output_chain.
5159         (streamer_write_tree_header): Rename from lto_output_tree_header.
5160         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5161         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5162         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5163         (streamer_write_builtin): Rename from lto_output_builtin_tree.
5164         (streamer_check_handled_ts_structures): Rename from
5165         check_handled_ts_structures.
5166         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5167         (streamer_tree_cache_insert_at): Rename from
5168         lto_streamer_cache_insert_at.
5169         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5170         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5171         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5172         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5173         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5174         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5175         (write_identifier): Rename from output_identifier.
5176         (write_ts_common_tree_pointers): Rename from
5177         lto_output_ts_common_tree_pointers.
5178         (write_ts_vector_tree_pointers): Rename from
5179         lto_output_ts_vector_tree_pointers.
5180         (write_ts_complex_tree_pointers): Rename from
5181         lto_output_ts_complex_tree_pointers.
5182         (write_ts_decl_minimal_tree_pointers): Rename from
5183         lto_output_ts_decl_minimal_tree_pointers.
5184         (write_ts_decl_common_tree_pointers): Rename from
5185         lto_output_ts_decl_common_tree_pointers.
5186         (write_ts_decl_non_common_tree_pointers): Rename from
5187         lto_output_ts_decl_non_common_tree_pointers.
5188         (write_ts_decl_with_vis_tree_pointers): Rename from
5189         lto_output_ts_decl_with_vis_tree_pointers.
5190         (write_ts_field_decl_tree_pointers): Rename from
5191         lto_output_ts_field_decl_tree_pointers.
5192         (write_ts_function_decl_tree_pointers): Rename from
5193         lto_output_ts_function_decl_tree_pointers.
5194         (write_ts_type_common_tree_pointers): Rename from
5195         lto_output_ts_type_common_tree_pointers.
5196         (write_ts_type_non_common_tree_pointers): Rename from
5197         lto_output_ts_type_non_common_tree_pointers.
5198         (write_ts_list_tree_pointers): Rename from
5199         lto_output_ts_list_tree_pointers.
5200         (write_ts_vec_tree_pointers): Rename from
5201         lto_output_ts_vec_tree_pointers.
5202         (write_ts_exp_tree_pointers): Rename from
5203         lto_output_ts_exp_tree_pointers.
5204         (write_ts_block_tree_pointers): Rename from
5205         lto_output_ts_block_tree_pointers.
5206         (write_ts_binfo_tree_pointers): Rename from
5207         lto_output_ts_binfo_tree_pointers.
5208         (write_ts_constructor_tree_pointers): Rename from
5209         lto_output_ts_constructor_tree_pointers.
5210         (write_ts_target_option): Rename from lto_output_ts_target_option.
5211         (write_ts_translation_unit_decl_tree_pointers): Rename from
5212         lto_output_ts_translation_unit_decl_tree_pointers.
5213         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5214         Rename from lto_streamer_cache_add_to_node_array.
5215         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5216         (record_common_node): Rename from lto_record_common_node.
5217
5218         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5219         declarations.
5220         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5221         function.
5222         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5223         unused function.
5224         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5225         (ipa-reference.o): Likewise.
5226         * lto-section-out.c: Include data-streamer.h.
5227         * ipa-reference.c: Include data-streamer.h.
5228
5229 2011-08-12  Nick Clifton  <nickc@redhat.com>
5230
5231         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5232         * doc/md.texi (cmpstrn): Note that the comparison stops if both
5233         fetched bytes are zero.
5234         (cmpstr): Likewise.
5235         (cmpmem): Note that the comparison does not stop if both of the
5236         fetched bytes are zero.
5237
5238 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
5239
5240         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5241         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5242         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5243         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5244         to integer_type_node.
5245         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5246         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5247         * builtins.c (expand_builtin_in): Ditto.
5248         (mathfn_built_in_1): Ditto.
5249         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5250         BUILT_IN_IFLOOR.
5251         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5252         BUILT_IN_IROUND.
5253         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5254         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5255         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5256
5257 2011-08-12  Richard Guenther  <rguenther@suse.de>
5258
5259         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5260
5261 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
5262
5263         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5264
5265 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
5266
5267         * config/arm/arm.c (get_label_padding): New function.
5268         (create_fix_barrier, arm_reorg): Use it.
5269
5270 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
5271
5272         PR target/49781
5273         * config/i386/i386.md (*lea_5_zext): New.
5274         (*lea_6_zext): Ditto.
5275         * config/i386/predicates.md (const_32bit_mask): New predicate.
5276         (lea_address_operand): Reject AND.
5277         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5278         const_32bit_mask immediate.
5279         (ix86_print_operand_address): Handle AND.
5280         (memory_address_length): Ditto.
5281
5282 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
5283             Brian Hackett  <bhackett1024@gmail.com>
5284
5285         * plugin.def: Add event for finish_decl.
5286         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5287         * c-decl.c (finish_decl): Invoke callbacks on above event.
5288         * doc/plugins.texi: Document above event.
5289
5290 2011-08-11  Richard Guenther  <rguenther@suse.de>
5291
5292         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5293         lookups, make looking through aggregate copies stronger.
5294
5295 2011-08-11  Richard Henderson  <rth@redhat.com>
5296
5297         PR bootstrap/50018
5298         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5299
5300 2011-08-11  Richard Guenther  <rguenther@suse.de>
5301
5302         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5303         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5304         (vrp_visit_stmt): Likewise.
5305
5306 2011-08-11  Richard Guenther  <rguenther@suse.de>
5307
5308         PR middle-end/50040
5309         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5310         load of the other piece with TREE_NO_WARNING.
5311         * tree-flow.h (warn_uninit): Adjust prototype.
5312         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5313         the base variable and the expression that is used separately.
5314         Properly query all TREE_NO_WARNING flags.
5315         (struct walk_data): Remove.
5316         (warn_uninitialized_var): Likewise.
5317         (warn_uninitialized_vars): Do not walk gimple pieces but simply
5318         look at all SSA uses of the statement.  Handle unused memory
5319         separately.
5320         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5321
5322 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5323
5324         * config/rx/rx.md (movsicc): Allow register to register transfers.
5325         (*movsicc): Likewise.
5326         (*stcc): Restrict this pattern to EQ and NE compares.
5327         (*stcc_reg): New pattern.  Works for any comparison but only for
5328         register transfers.
5329
5330 2011-08-11   Diego Novillo  <dnovillo@google.com>
5331
5332         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5333         Call stream_write_tree instead of output_record_start.
5334         (lto_output_ts_binfo_tree_pointers): Likewise.
5335
5336         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5337         Convert it to a macro.
5338         (stream_read_tree): Likewise.
5339
5340         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5341         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5342
5343         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5344         and tree_read_bitfields.
5345         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5346         (lto_write_tree): Call it.
5347         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5348         * streamer-hooks.h (struct streamer_hooks): Remove fields
5349         name, is_streamable and alloc_tree. Update all users.
5350         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5351         (lto_materialize_tree): ... here.
5352         Handle CALL_EXPR codes.
5353         Remove call to lto_streamer_cache_append.
5354         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5355         * tree-streamer.h (tree_read_bitfields): Declare.
5356
5357         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5358         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5359         * tree-streamer.h (stream_read_tree): New.  Replace all calls
5360         to lto_input_tree with it.
5361         (stream_write_tree): New.  Replace all calls to lto_output_tree,
5362         lto_output_tree_ref and lto_output_tree_or_ref with it.
5363         * lto-streamer-in.c (lto_read_tree): Inline code from
5364         lto_streamer_read_tree.
5365         (lto_input_tree): Move from tree-streamer-in.c.
5366         * lto-streamer-out.c (lto_output_tree_ref): Make static.
5367         Remove handling of NULL values for EXPR.
5368         Do not handle EXPRs that are not indexable.
5369         (lto_write_tree): Move from tree-streamer-out.c.
5370         Inline lto_streamer_write_tree.
5371         (lto_output_tree): Move from tree-streamer-out.c.
5372         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5373         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5374         (lto_preload_common_nodes): Likewise.
5375         Remove assertions and adjustments for nodes
5376         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5377         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5378         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5379         * lto-streamer.h (lto_input_tree): Declare.
5380         (lto_output_tree_ref): Remove.
5381         * streamer-hooks.h (struct streamer_hooks): Remove fields
5382         preload_common_nodes, indexable_with_decls_p,
5383         pack_value_fields, unpack_value_fields and output_tree_header.
5384         Update all users.
5385         * tree-streamer-in.c (lto_materialize_tree): Make extern.
5386         (lto_input_tree_pointers): Likewise.
5387         (lto_read_tree): Move to lto-streamer-in.c.
5388         (lto_input_integer_cst): Make extern.
5389         (lto_get_pickled_tree): Likewise.
5390         (lto_get_builtin_tree): Likewise.
5391         (lto_input_tree): Move to lto-streamer-in.c.
5392         * tree-streamer-out.c (pack_value_fields): Make extern.
5393         (lto_output_tree_or_ref): Remove.  Replace all callers with
5394         calls to stream_write_tree.
5395         (lto_output_builtin_tree): Make extern.
5396         (lto_streamer_write_tree): Inline into lto_write_tree.
5397         (lto_output_tree_pointers): Make extern.
5398         (lto_output_tree_header): Likewise.
5399         (lto_output_integer_cst): Likewise.
5400         (lto_write_tree): Move to lto-streamer-out.c.
5401         (lto_output_tree): Likewise.
5402         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5403         (preload_common_nodes): Likewise.
5404         (lto_streamer_cache_create): Call it.
5405         * tree-streamer.h: Include streamer-hooks.h.
5406         (stream_write_tree): New.
5407         (stream_read_tree): New.
5408         (lto_input_tree): Remove.
5409         (lto_materialize_tree): Declare.
5410         (lto_input_tree_pointers): Declare.
5411         (lto_get_pickled_tree): Declare.
5412         (lto_get_builtin_tree): Declare.
5413         (lto_input_integer_cst): Declare.
5414         (lto_output_tree_header): Declare.
5415         (pack_value_fields): Declare.
5416         (lto_output_tree_pointers): Declare.
5417         (lto_output_integer_cst): Declare.
5418         (lto_output_builtin_tree): Declare.
5419
5420 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5421
5422         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5423         only if producer writes to the register given by regno.
5424
5425 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5426             Alexander Monakov  <amonakov@ispras.ru>
5427
5428         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5429         (sched_get_condition_with_rev_uncached): ... this.  Factor out
5430         condition caching logic into ...
5431         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
5432         attempt to use cache for instructions with zero luid.
5433         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5434         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5435
5436 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5437
5438         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5439         get_seqno_for_a_jump.  Update the caller.
5440         (get_seqno_by_succs): New.  Use it ...
5441         (get_seqno_for_a_jump): ... here to find a seqno if looking at
5442         predecessors was not sufficient.
5443         (get_seqno_by_preds): Include head in iteration range, exclude insn.
5444
5445 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5446
5447         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5448
5449 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5450
5451         * sel-sched-ir.h (register_unavailable_p): Declare.
5452         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
5453         (set_unavailable_target_for_expr): ... here to properly test
5454         availability of a register.
5455         (speculate_expr): Ditto.
5456         * sel-sched.c (substitute_reg_in_expr): Ditto.
5457         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5458
5459 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5460
5461         * sel-sched.c (verify_target_availability): Fix usage of
5462         hard_regno_nregs.
5463
5464 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5465
5466         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5467         recognized by cannot_copy_insn_p hook and volatile instructions.
5468
5469 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5470
5471         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5472
5473 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
5474
5475         * doc/md.texi (define_bypass): Say that the instruction names can
5476         be filename-style globs.
5477         * Makefile.in (FNMATCH_H): Define.
5478         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5479         * genattrtab.c: Include fnmatch.h.
5480         (bypass_list): Change field name from "insn" to "pattern".
5481         (gen_bypass_1): Update accordingly.
5482         (process_bypasses): Use fnmatch to check for matches between
5483         insn reservations and define_bypasses.
5484         * genautomata.c: Include fnmatch.h.
5485         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5486         and out_pattern respectively.
5487         (gen_bypass, insert_bypass): Update accordingly.
5488         (for_each_matching_insn, process_bypass_2, process_bypass_1)
5489         (process_bypass): New functions.
5490         (process_decls): Use process_bypass.  Update after field name changes.
5491
5492 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
5493
5494         PR target/49687
5495         * config/avr/avr.md (smulqi3_highpart): New insn.
5496         (umulqi3_highpart): New insn.
5497         (*subqi3.ashiftrt7): New insn.
5498         (smulhi3_highpart): New expander.
5499         (umulhi3_highpart): Nex expander.
5500         (*smulhi3_highpart_call): New insn.
5501         (*umulhi3_highpart_call): New insn.
5502         (extend_u): New code attribute.
5503         (extend_prefix): Rename code attribute to extend_su.
5504         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5505         widening QI/HI multiply.
5506
5507 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
5508
5509         PR tree-optimization/50039
5510         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5511         that DEF_STMT has a stmt_vec_info.
5512
5513 2011-08-10  Richard Guenther  <rguenther@suse.de>
5514
5515         * tree.h (can_trust_pointer_alignment): Remove.
5516         * builtins.c (can_trust_pointer_alignment): Remove.
5517
5518 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5519
5520         * c-typeck.c (scalar_to_vector): New function. Try scalar to
5521         vector conversion.
5522         (stv_conv): New enum for scalar_to_vector return type.
5523         (build_binary_op): Adjust.
5524         * doc/extend.texi: Description of scalar to vector expansion.
5525
5526 2011-08-10  Richard Guenther  <rguenther@suse.de>
5527
5528         * tree.h (get_pointer_alignment): Remove max-align argument.
5529         (get_object_alignment): Likewise.
5530         * builtins.c (get_object_alignment_1): Adjust.
5531         (get_object_alignment): Remove max-align argument.
5532         (get_pointer_alignment): Likewise.
5533         (expand_builtin_strlen): Adjust.
5534         (expand_builtin_memcpy): Likewise.
5535         (expand_builtin_mempcpy_args): Likewise.
5536         (expand_builtin_strncpy): Likewise.
5537         (expand_builtin_memset_args): Likewise.
5538         (expand_builtin_memcmp): Likewise.
5539         (expand_builtin_strcmp): Likewise.
5540         (expand_builtin_strncmp): Likewise.
5541         (get_builtin_sync_mem): Likewise.
5542         (fold_builtin_memset): Likewise.
5543         (fold_builtin_memory_op): Likewise.
5544         (expand_builtin_memory_chk): Likewise.
5545         * emit-rtl.c (get_mem_align_offset): Likewise.
5546         (set_mem_attributes_minus_bitpos): Likewise.
5547         * expr.c (expand_assignment): Likewise.
5548         (expand_expr_real_1): Likewise.
5549         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5550         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5551         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5552         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5553         * value-prof.c (gimple_stringops_transform): Likewise.
5554
5555 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
5556
5557         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5558         * doc/tm.texi: Regenerate.
5559
5560 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
5561
5562         PR target/29560
5563         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5564         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5565         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5566         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5567         shift target is unused.
5568
5569 2011-08-10  Richard Guenther  <rguenther@suse.de>
5570
5571         PR tree-optimization/49937
5572         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5573         using get_object_alignment_1.
5574
5575 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5576
5577         * config/i386/i386.c (ix86_emit_i387_round): New function.
5578         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5579         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5580         Use ix86_emit_i387_round to expand round function for i387 math.
5581         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5582         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5583
5584 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5585
5586         * config/sync.c: Move to ../libgcc.
5587         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5588         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5589         Remove.
5590
5591 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5592
5593         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5594         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5595         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5596         Change 'from' and 'to' arguments type to reg_class_t.
5597         (TARGET_REGISTER_MOVE_COST): Define.
5598
5599 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
5600
5601         PR target/50026
5602         Revert:
5603         PR rtl-optimization/49990
5604         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5605         ignore classes which can not change mode.
5606         (find_costs_and_classes): Ditto.
5607
5608 2011-08-09  Richard Guenther  <rguenther@suse.de>
5609
5610         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5611         information for ranges with only negative values.
5612         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5613         BIT_AND_EXPR handling to handle ranges with negative values.
5614
5615 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5616
5617         * config/i386/i386.c: Remove traling spaces.
5618         * config/i386/sse.md: Likewise.
5619         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5620         (*fma_fmsub_<mode>): Likewise.
5621         (*fma_fnmadd_<mode>): Likewise.
5622         (*fma_fnmsub_<mode>): Likewise.
5623
5624 2011-08-09  Nick Clifton  <nickc@redhat.com>
5625
5626         * config/rx/rx.md: Disable extender peepholes at -O3.
5627
5628 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5629
5630         PR target/49781
5631         * config/i386/i386.md (reload_noff_load): New.
5632         (reload_noff_store): Ditto.
5633         * config/i386/i386.c (ix86_secondary_reload): Use
5634         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5635         double-word moves from/to non-offsetable addresses instead of
5636         generating XMM temporary.
5637
5638 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5639
5640         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5641
5642 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
5643
5644         PR tree-optimization/50014
5645         * tree-vect-loop.c (vectorizable_reduction): Get def type before
5646         calling vect_get_vec_def_for_stmt_copy ().
5647
5648 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
5649
5650         PR rtl-optimization/49990
5651         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5652         ignore classes which can not change mode.
5653         (find_costs_and_classes): Ditto.
5654
5655 2011-08-08  Richard Henderson  <rth@redhat.com>
5656
5657         PR middle-end/49990
5658         * config/i386/i386.c (ix86_expand_prologue): Call
5659         for SEH target gen_prologue_use instead of gen_blockage
5660         at prologue's end.
5661
5662 2011-08-08  Martin Jambor  <mjambor@suse.cz>
5663
5664         PR middle-end/49923
5665         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5666         memory alignment.
5667
5668 2011-08-08   Diego Novillo  <dnovillo@google.com>
5669
5670         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5671         (DATA_STREAMER_H): New.
5672         (GIMPLE_STREAMER_H): New.
5673         (TREE_STREAMER_H): New.
5674         (STREAMER_HOOKS_H): New.
5675         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5676         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5677         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5678         (data-streamer.o): New.
5679         (data-streamer-in.o): New.
5680         (data-streamer-out.o): New.
5681         (gimple-streamer-in.o): New.
5682         (gimple-streamer-out.o): New.
5683         (streamer-hooks.o): New.
5684         (tree-streamer.o): New.
5685         (tree-streamer-in.o): New.
5686         (tree-streamer-out.o): New.
5687         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5688         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5689         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5690         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5691         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5692         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5693         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5694         (ipa-inline-analysis.o): Likewise.
5695         (ipa-pure-const.o): Likewise.
5696         * data-streamer-in.c: New.
5697         * data-streamer-out.c: New.
5698         * data-streamer.c: New.
5699         * data-streamer.h: New.
5700         * gimple-streamer-in.c: New.
5701         * gimple-streamer-out.c: New.
5702         * gimple-streamer.h: New.
5703         * ipa-inline-analysis.c: Include data-streamer.h.
5704         * ipa-prop.c: Include data-streamer.h.
5705         * ipa-pure-const.c: Include data-streamer.h.
5706         * lto-cgraph.c: Include data-streamer.h.
5707         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5708         (lto_input_widest_uint_uleb128): Likewise.
5709         (lto_input_sleb128): Likewise.
5710         (bp_unpack_var_len_unsigned): Likewise.
5711         (bp_unpack_var_len_int): Likewise.
5712         * lto-section-out.c (lto_output_uleb128_stream): Move to
5713         data-streamer-out.c.
5714         (lto_output_widest_uint_uleb128_stream): Likewise.
5715         (lto_output_sleb128_stream): Likewise.
5716         (bp_pack_var_len_unsigned): Likewise.
5717         (bp_pack_var_len_int): Likewise.
5718         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5719         (struct string_slot): Remove.  Update all users.
5720         (lto_tag_check_set): Make extern.
5721         (lto_tag_check_range): Move to lto-streamer.h.
5722         (lto_tag_check): Likewise.
5723         (hash_string_slot_node): Remove.  Update all users.
5724         (eq_string_slot_node): Remove.  Update all users.
5725         (string_for_index): Move to data-streamer-in.c
5726         (input_string_internal): Likewise.
5727         (input_string_cst): Move to tree-streamer-in.c.
5728         (input_identifier): Likewise.
5729         (lto_input_string): Move to data-streamer-in.c
5730         (input_record_start): Move to data-streamer.h
5731         (canon_file_name): Use new definition of struct string_slot
5732         from data-streamer.h.  Set S_SLOT.LEN.
5733         (lto_input_location): Make extern.
5734         (lto_input_chain): Move to tree-streamer-in.c.
5735         (lto_init_eh): Make extern.
5736         (input_phi): Move to gimple-streamer-in.c.
5737         (input_gimple_stmt): Likewise.
5738         (input_bb): Likewise.
5739         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5740         (unpack_ts_real_cst_value_fields): Likewise.
5741         (unpack_ts_fixed_cst_value_fields): Likewise.
5742         (unpack_ts_decl_common_value_fields): Likewise.
5743         (unpack_ts_decl_wrtl_value_fields): Likewise.
5744         (unpack_ts_decl_with_vis_value_fields): Likewise.
5745         (unpack_ts_function_decl_value_fields): Likewise.
5746         (unpack_ts_type_common_value_fields): Likewise.
5747         (unpack_ts_block_value_fields): Likewise.
5748         (unpack_ts_translation_unit_decl_value_fields): Likewise.
5749         (unpack_value_fields): Likewise.
5750         (lto_materialize_tree): Likewise.
5751         (lto_input_ts_common_tree_pointers): Likewise.
5752         (lto_input_ts_vector_tree_pointers): Likewise.
5753         (lto_input_ts_complex_tree_pointers): Likewise.
5754         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5755         (lto_input_ts_decl_common_tree_pointers): Likewise.
5756         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5757         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5758         (lto_input_ts_field_decl_tree_pointers): Likewise.
5759         (lto_input_ts_function_decl_tree_pointers): Likewise.
5760         (lto_input_ts_type_common_tree_pointers): Likewise.
5761         (lto_input_ts_type_non_common_tree_pointers): Likewise.
5762         (lto_input_ts_list_tree_pointers): Likewise.
5763         (lto_input_ts_vec_tree_pointers): Likewise.
5764         (lto_input_ts_exp_tree_pointers): Likewise.
5765         (lto_input_ts_block_tree_pointers): Likewise.
5766         (lto_input_ts_binfo_tree_pointers): Likewise.
5767         (lto_input_ts_constructor_tree_pointers): Likewise.
5768         (lto_input_ts_target_option): Likewise.
5769         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5770         (lto_input_tree_pointers): Likewise.
5771         (lto_get_pickled_tree): Likewise.
5772         (lto_get_builtin_tree): Likewise.
5773         (lto_read_tree): Likewise.
5774         (lto_input_integer_cst): Likewise.
5775         (lto_input_tree): Likewise.
5776         * lto-streamer-out.c: Include data-streamer.h,
5777         gimple-streamer.h and streamer-hooks.h.
5778         (struct string_slot): Move to data-streamer.h.
5779         (hash_string_slot_node): Likewise.
5780         (eq_string_slot_node): Likewise.
5781         (lto_string_index): Move to data-streamer-out.c.
5782         (lto_output_string_with_length): Likewise.
5783         (lto_output_string): Likewise.
5784         (output_string_cst): Move to tree-streamer-out.c.
5785         (output_identifier): Likewise.
5786         (output_zero): Move to data-streamer-out.c
5787         (output_uleb128): Likewise.
5788         (output_sleb128): Likewise.
5789         (output_record_start): Move to data-streamer.h
5790         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5791         (pack_ts_real_cst_value_fields): Likewise.
5792         (pack_ts_fixed_cst_value_fields): Likewise.
5793         (pack_ts_decl_common_value_fields): Likewise.
5794         (pack_ts_decl_wrtl_value_fields): Likewise.
5795         (pack_ts_decl_with_vis_value_fields): Likewise.
5796         (pack_ts_function_decl_value_fields): Likewise.
5797         (pack_ts_type_common_value_fields): Likewise.
5798         (pack_ts_block_value_fields): Likewise.
5799         (pack_ts_translation_unit_decl_value_fields): Likewise.
5800         (pack_value_fields): Likewise.
5801         (lto_output_chain): Likewise.
5802         (lto_output_ts_common_tree_pointers): Likewise.
5803         (lto_output_ts_vector_tree_pointers): Likewise.
5804         (lto_output_ts_complex_tree_pointers): Likewise.
5805         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5806         (lto_output_ts_decl_common_tree_pointers): Likewise.
5807         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5808         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5809         (lto_output_ts_field_decl_tree_pointers): Likewise.
5810         (lto_output_ts_function_decl_tree_pointers): Likewise.
5811         (lto_output_ts_type_common_tree_pointers): Likewise.
5812         (lto_output_ts_type_non_common_tree_pointers): Likewise.
5813         (lto_output_ts_list_tree_pointers): Likewise.
5814         (lto_output_ts_vec_tree_pointers): Likewise.
5815         (lto_output_ts_exp_tree_pointers): Likewise.
5816         (lto_output_ts_block_tree_pointers): Likewise.
5817         (lto_output_ts_binfo_tree_pointers): Likewise.
5818         (lto_output_ts_constructor_tree_pointers): Likewise.
5819         (lto_output_ts_target_option): Likewise.
5820         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5821         (lto_output_tree_pointers): Likewise.
5822         (lto_output_tree_header): Likewise.
5823         (lto_output_builtin_tree): Likewise.
5824         (lto_write_tree): Likewise.
5825         (lto_output_integer_cst): Likewise.
5826         (lto_output_tree): Likewise.
5827         (output_phi): Move to gimple-streamer-out.c.
5828         (output_gimple_stmt): Likewise.
5829         (output_bb): Likewise.
5830         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5831         (streamer_hooks): Move to streamer-hooks.c.
5832         (check_handled_ts_structures): Move to tree-streamer.c
5833         (lto_streamer_cache_add_to_node_array): Likewise.
5834         (lto_streamer_cache_insert_1): Likewise.
5835         (lto_streamer_cache_insert): Likewise.
5836         (lto_streamer_cache_insert_at): Likewise.
5837         (lto_streamer_cache_append): Likewise.
5838         (lto_streamer_cache_lookup): Likewise.
5839         (lto_streamer_cache_get): Likewise.
5840         (lto_record_common_node): Likewise.
5841         (lto_preload_common_nodes): Likewise.
5842         (lto_streamer_cache_create): Likewise.
5843         (lto_streamer_cache_delete): Likewise.
5844         (streamer_hooks_init): Move to streamer-hooks.c.
5845         * lto-streamer.h: Include diagnostic.h
5846         (struct output_block, struct lto_input_block,
5847         struct data_in, struct bitpack_d): Remove forward declarations.
5848         (struct bitpack_d): Move to data-streamer.h.
5849         (struct lto_streamer_cache_d): Move to tree-streamer.h.
5850         (struct streamer_hooks): Move to streamer-hooks.h.
5851         (bp_pack_var_len_unsigned): Move to data-streamer.h.
5852         (bp_pack_var_len_int): Likewise.
5853         (bp_unpack_var_len_unsigned): Likewise.
5854         (bp_unpack_var_len_int): Likewise.
5855         (lto_input_location): Declare.
5856         (lto_tag_check_set): Declare.
5857         (lto_init_eh): Declare.
5858         (lto_output_tree_ref): Declare.
5859         (lto_output_location): Declare.
5860         (bitpack_create): Move to data-streamer.h.
5861         (bp_pack_value): Likewise.
5862         (lto_output_bitpack): Likewise.
5863         (lto_input_bitpack): Likewise.
5864         (bp_unpack_value): Likewise.
5865         (lto_output_1_stream): Likewise.
5866         (lto_input_1_unsigned): Likewise.
5867         (lto_output_int_in_range): Likewise.
5868         (lto_input_int_in_range): Likewise.
5869         (bp_pack_int_in_range): Likewise.
5870         (bp_unpack_int_in_range): Likewise.
5871         (lto_output_enum): Likewise.
5872         (lto_input_enum): Likewise.
5873         (bp_pack_enum): Likewise.
5874         (bp_unpack_enum): Likewise.
5875         * streamer-hooks.c: New.
5876         * streamer-hooks.h: New.
5877         * tree-streamer-in.c: New.
5878         * tree-streamer-out.c: New.
5879         * tree-streamer.c: New.
5880         * tree-streamer.h: New.
5881
5882 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5883
5884         * gthr-posix95.h: Remove.
5885         * gthr.h [_PTHREADS95]: Remove.
5886         * configure.ac (enable_threads): Remove posix95.
5887         * configure: Regenerate.
5888         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5889
5890 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
5891
5892         PR target/49781
5893         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5894         SImode addresses.
5895         (ix86_print_operand_address): Handle zero-extended addresses.
5896         (memory_address_length): Add length of addr32 prefix for
5897         zero-extended addresses.
5898         (ix86_secondary_reload): Handle moves to/from double-word general
5899         registers from/to zero-extended addresses.
5900         * config/i386/predicates.md (lea_address_operand): Reject
5901         zero-extended operands.
5902
5903 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5904
5905         PR other/48007
5906         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5907
5908         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5909         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5910
5911         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5912         (_Unwind_Context_Reg_Val): Likewise.
5913         (_Unwind_Get_Unwind_Word): Likewise.
5914         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5915         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5916         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5917         for EXTENDED_CONTEXT_BIT.
5918         (__frame_state_for): Likewise.
5919         (uw_init_context_1): Likewise.
5920         (_Unwind_GetGR): Updated.
5921         (_Unwind_SetGR): Likewise.
5922         (_Unwind_GetGRPtr): Likewise.
5923         (_Unwind_SetGRPtr): Likewise.
5924         (_Unwind_SetGRValue): Likewise.
5925         (_Unwind_GRByValue): Likewise.
5926         (uw_install_context_1): Likewise.
5927
5928         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5929         ASSUME_EXTENDED_UNWIND_CONTEXT.
5930         * doc/tm.texi: Regenerated.
5931
5932 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5933
5934         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5935
5936 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5937
5938         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5939         Linux/GNU-specific.
5940         (DEC Alpha Options, -mtune): Likewise.
5941         (MIPS Options, -march): native is supported on IRIX.
5942
5943 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5944
5945         * config/sparc/driver-sparc.c: New file.
5946         * config/sparc/x-sparc: New file.
5947         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5948         * config/sparc/sparc.opt (native): New value for enum processor_type.
5949         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5950         * config/sparc/sparc.c (sparc_option_override): Abort if
5951         PROCESSOR_NATIVE gets here.
5952         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5953         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5954         DRIVER_SELF_SPECS): Define.
5955         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5956         (SPARC Options, -mtune): Likewise.
5957         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5958         Substitute result.
5959         * configure: Regenerate.
5960         * Makefile.in (EXTRA_GCC_LIBS): Set.
5961         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5962         (cpp$(exeext)): Likewise.
5963
5964 2011-08-08  Richard Guenther  <rguenther@suse.de>
5965
5966         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5967         split out from ...
5968         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
5969         by composition.
5970
5971 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
5972
5973         PR tree-optimization/50005
5974         * ipa-inline-analysis (remap_predicate): Add cast to
5975         silence signed/unsigned comparison warning.
5976
5977 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5978
5979         * modulo-sched.c (get_sched_window): Use a table for the debug output.
5980         Print the current ii.
5981         (sms_schedule_by_order): Reduce whitespace in dump line.
5982
5983 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5984
5985         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5986         and one loop for successors.  Fix upper bound of memory range.
5987
5988 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5989
5990         PR target/50001
5991         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5992         (TARGET_INSTANTIATE_DECLS): New define.
5993
5994 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
5995             Mikael Morin   <mikael.morin@sfr.fr>
5996
5997         * Makefile.in (INCLUDES_FOR_TARGET): New.
5998         (LIBGCC2_CFLAGS): Use it.
5999         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
6000
6001 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6002
6003         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
6004         frame->save_regs_using_mov calculation.
6005
6006 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
6007
6008         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
6009         * config/i386/sse.md (castmode): New mode attribute.
6010         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
6011         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
6012
6013 2011-08-05  Jan Hubicka  <jh@suse.cz>
6014
6015         PR middle-end/49494
6016         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
6017
6018 2011-08-05  Jan Hubicka  <jh@suse.cz>
6019
6020         PR middle-end/49500
6021         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
6022         handle aliases.
6023         (create_emultls_var):New function.
6024         (ipa_lower_emutls): Handle aliases correctly.
6025
6026 2011-08-05  Jan Hubicka  <jh@suse.cz>
6027
6028         PR middle-end/49735
6029         * ipa-inline.c (recursive_inlining): Look through aliases.
6030
6031 2011-08-05  Jason Merrill  <jason@redhat.com>
6032
6033         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
6034         declarations to beginning of function.
6035
6036 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6037
6038         PR rtl-optimization/49900
6039         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
6040         ensure basic blocks stay in the same order.
6041
6042 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
6043
6044         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
6045         store_bit_field.
6046         (s390_expand_atomic): Same.
6047
6048 2011-08-05  Richard Henderson  <rth@redhat.com>
6049
6050         PR rtl-opt/49977
6051         * dwarf2cfi.c (scan_insn_after): Split out of ...
6052         (scan_trace): ... here.  Correctly place notes wrt sequences.
6053
6054 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6055             Richard Henderson  <rth@redhat.com>
6056
6057         PR rtl-opt/49982
6058         * expr.c (fixup_args_size_notes): Look through no-op moves.
6059
6060 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6061
6062         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
6063         of "m" for operand 0.  Add type and mode attribute.
6064         (*pushxf_nointeger"): Use "<" constraint for operand 0.
6065         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
6066         constraint instead of "o" for opreand 1.
6067         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
6068         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
6069         operand 0, alternative 4.
6070         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
6071
6072 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6073
6074         * config/i386/predicates.md (lea_address_operand): Rename from
6075         no_seg_address_operand.
6076         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
6077         (*lea_1_zext): Ditto.
6078         (*lea_2): Ditto.
6079         (*lea_2_zext): Ditto.
6080
6081 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
6082
6083         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
6084         parts.base and parts.index.
6085         * config/i386/predicates.md (aligned_operand): Ditto.
6086         (cmpxchg8b_pic_memory_operand): Ditto.
6087
6088 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6089
6090         * config/soft-fp: Move to ../libgcc.
6091         * Makefile.in (SFP_MACHINE): Remove.
6092         (libgcc-support): Remove $(SFP_MACHINE) dependency.
6093         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
6094         * config/arm/t-arm-softfp: Move to
6095         ../libgcc/config/arm/t-softfp.
6096         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
6097         * config/c6x/t-c6x-softfp: Remove.
6098         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
6099         * config/i386/t-fprules-softfp: Move to
6100         ../libgcc/config/t-softfp-tf.
6101         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
6102         * config/ia64/t-fprules-softfp: Remove.
6103         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
6104         * config/lm32/t-fprules-softfp: Remove.
6105         * config/moxie/sfp-machine.h: Remove.
6106         * config/moxie/t-moxie-softfp: Remove.
6107         * config/rs6000/darwin-ldouble-format: Move to
6108         ../libgcc/config/rs6000/ibm-ldouble-format.
6109         * config/rs6000/darwin-ldouble.c: Move to
6110         ../libgcc/config/rs6000/ibm-ldouble.c
6111         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
6112         * config/rs6000/libgcc-ppc64.ver: Likewise.
6113         * config/rs6000/sfp-machine.h: Likewise.
6114         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6115         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6116         (LIB2FUNCS_EXTRA): Remove.
6117         (TARGET_LIBGCC2_CFLAGS): Remove.
6118         * config/rs6000/t-aix52: Likewise
6119         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6120         $(srcdir)/config/rs6000/darwin-ldouble.c.
6121         (SHLIB_MAPFILES): Remove.
6122         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6123         $(srcdir)/config/rs6000/darwin-ldouble.c.
6124         * config/rs6000/t-fprules-softfp: Move to
6125         ../libgcc/config/t-softfp-sfdf.
6126         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6127         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6128         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6129         $(srcdir)/config/rs6000/darwin-ldouble.c.
6130         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6131         * config/score/t-score-softfp: Remove.
6132         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6133         soft-fp/t-softfp from tmake_file.
6134         (arm*-*-uclinux*): Likewise.
6135         (arm*-*-ecos-elf): Likewise.
6136         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6137         (arm*-*-rtems*): Likewise.
6138         (arm*-*-elf): Likewise.
6139         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6140         tmake_file.
6141         (moxie-*-uclinux*): Likewise.
6142         (moxie-*-rtems*): Likewise.
6143         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6144         tmake_file.
6145         (lm32-*-rtems*): Likewise.
6146         (lm32-*-uclinux*): Likewise.
6147         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6148         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6149         (powerpc-*-linux*, powerpc64-*-linux*): Remove
6150         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6151         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6152         tmake_file.
6153         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6154         tmake_file.
6155         (tic6x-*-uclinux): Likewise.
6156         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6157         soft-fp/t-softfp from tmake_file.
6158         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6159         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6160         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6161         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6162         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6163
6164 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6165
6166         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6167         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6168         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6169         TPBIT, TPBIT_FUNCS.
6170         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6171         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6172         Remove.
6173         * config/arm/t-vxworks: Likewise.
6174         * config/arm/t-wince-pe: Likewise.
6175         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6176         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6177         * config/bfin/t-bfin-elf: Likewise.
6178         * config/bfin/t-bfin-linux: Likewise.
6179         * config/bfin/t-bfin-uclinux: Likewise.
6180         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6181         Remove.
6182         * config/fr30/t-fr30: Likewise.
6183         * config/frv/t-frv: Likewise.
6184         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6185         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6186         * config/m32c/t-m32c: Likewise.
6187         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6188         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6189         * config/mcore/t-mcore: Likewise.
6190         * config/mep/t-mep: Likewise.
6191         * config/microblaze/t-microblaze: Likewise.
6192         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6193         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6194         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6195         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6196         * config/mn10300/t-linux: Remove.
6197         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6198         * config/pdp11/t-pdp11: Likewise.
6199         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6200         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6201         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6202         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6203         * config/rs6000/t-aix52: Likewise.
6204         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6205         $(srcdir)/config/rs6000/ppc64-fp.c.
6206         * config/rs6000/t-fprules-fpbit: Remove.
6207         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6208         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6209         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6210         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6211         * config/sparc/t-elf: Likewise.
6212         * config/sparc/t-leon: Likewise.
6213         * config/sparc/t-leon3: Likewise.
6214         * config/spu/t-spu-elf: Likewise.
6215         (DPBIT_FUNCS): Remove.
6216         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6217         * config/v850/t-v850: Likewise.
6218         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6219         (avr-*-*): Likewise.
6220         (h8300-*-rtems*): Set libgcc_tm_file.
6221         (h8300-*-elf*): Likewise.
6222         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6223         tmake_file.
6224         (powerpc-*-eabisim*): Likewise.
6225         (powerpc-*-elf*): Likewise.
6226         (powerpc-*-eabialtivec*): Likewise.
6227         (powerpc-xilinx-eabi*): Likewise.
6228         (powerpc-*-eabi*): Likewise.
6229         (powerpc-*-rtems*): Likewise.
6230         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6231         (powerpcle-*-elf*): Likewise.
6232         (powerpcle-*-eabisim*): Likewise.
6233         (powerpcle-*-eabi*): Likewise.
6234         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6235         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6236         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6237         Remove.
6238
6239 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6240
6241         * Makefile.in (UNWIND_H): Remove.
6242         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6243         ../libgcc/Makefile.in.
6244         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6245         (LIBUNWINDDEP): Remove.
6246         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6247         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6248         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6249         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6250         Don't copy $(UNWIND_H).
6251         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6252         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6253         * aclocal.m4: Regenerate.
6254         * configure: Regenerate.
6255         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6256         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6257         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6258         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6259         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6260         * config/arm/libunwind.S, config/arm/pr-support.c,
6261         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6262         ../libgcc/config/arm.
6263         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6264         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6265         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6266         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6267         ($(T)frvend$(objext)): Likewise.
6268         * config/ia64/t-glibc (LIB2ADDEH): Remove.
6269         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6270         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6271         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6272         ../libgcc/config/ia64.
6273         * config/ia64/t-hpux (LIB2ADDEH): Remove.
6274         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6275         * config/ia64/t-vms (LIB2ADDEH): Remove.
6276         * config/ia64/vms.h (UNW_IVMS_MODE,
6277         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6278         * config/picochip/t-picochip (LIB2ADDEH): Remove.
6279         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6280         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6281         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6282         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6283         $(srcdir)/../libgcc to refer to unwinder sources.
6284         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6285         * config/t-darwin (LIB2ADDEH): Remove.
6286         * config/t-freebsd (LIB2ADDEH): Remove.
6287         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6288         * config/t-libunwind-elf: Move to ../libgcc/config.
6289         * config/t-linux (LIB2ADDEH): Remove.
6290         * config/t-sol2 (LIB2ADDEH): Remove.
6291         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6292         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6293
6294 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
6295
6296         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6297
6298         * doc/invoke.texi: Document core-avx-i.
6299
6300 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6301
6302         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6303
6304 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
6305
6306         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6307         result of multiple results reduction when extracting the final
6308         value using scalar code.
6309
6310 2011-08-05  Richard Guenther  <rguenther@suse.de>
6311
6312         PR tree-optimization/49984
6313         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6314
6315 2011-08-05  Richard Guenther  <rguenther@suse.de>
6316
6317         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6318         return true for constant integer ranges.
6319         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6320         BIT_IOR_EXPR handling.
6321
6322 2011-08-04  Kai Tietz  <ktietz@redhat.com>
6323
6324         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6325         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6326
6327 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
6328
6329         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6330         pattern def statement, and its access macro.
6331         (NUM_PATTERNS): Set to 5.
6332         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6333         pattern def statement.
6334         (vect_transform_loop): Likewise.
6335         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6336         function vect_recog_over_widening_pattern ().
6337         (vect_operation_fits_smaller_type): New function.
6338         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6339         Likewise.
6340         (vect_pattern_recog_1): Move the code that marks pattern
6341         statements to vect_mark_pattern_stmts (), and call it.  Update
6342         documentation.
6343         * tree-vect-stmts.c (vect_supportable_shift): New function.
6344         (vect_analyze_stmt): Handle pattern def statement.
6345         (new_stmt_vec_info): Initialize pattern def statement.
6346
6347 2011-08-04  Richard Henderson  <rth@redhat.com>
6348
6349         PR target/49964
6350         * config/i386/i386.c (ix86_expand_call): Don't create nested
6351         PARALLELs for TARGET_VZEROUPPER.
6352         (ix86_split_call_vzeroupper): Fix extraction of the original call.
6353         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6354         recognize nested PARALLELs.
6355         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6356         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6357         *sibcall_value_pop_vzeroupper): Likewise.
6358
6359 2011-08-04  Richard Henderson  <rth@redhat.com>
6360
6361         PR middle-end/49968
6362         * calls.c (expand_call): Use fixup_args_size_notes for
6363         emit_stack_restore.
6364         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6365         in non-standard modes.
6366
6367 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6368
6369         * gcc.c (self_spec): New variable.
6370         (static_specs): Add self_spec.
6371         (main): Call do_self_spec on "self_spec" specs after reading
6372         user specs files.  Move compare_debug handling right after that.
6373
6374 2011-08-04  Richard Guenther  <rguenther@suse.de>
6375
6376         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6377         (value_range_nonnegative_p): New function.
6378         (ssa_name_nonnegative_p): Use it.
6379         (value_range_constant_singleton): New function.
6380         (op_with_constant_singleton_value_range): Use it.
6381         (extract_range_from_binary_expr_1): New function, split out from ...
6382         (extract_range_from_binary_expr): ... this.  Remove fallback
6383         constant folding done here.
6384
6385 2011-08-04  Richard Guenther  <rguenther@suse.de>
6386
6387         PR tree-optimization/49806
6388         * tree-vrp.c (op_with_boolean_value_range_p): New function.
6389         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
6390         a new statement for a final conversion to bool.
6391
6392 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
6393
6394         * gengtype-state.c: Include "bconfig.h" if
6395         GENERATOR_FILE is defined, "config.h" otherwise.
6396         * gengtype.c: Likewise.
6397         * gengtype-lex.l: Likewise.
6398         * gengtype-parse.c: Likewise.
6399         * Makefile.in (gengtype-lex.o-warn): New variable.
6400         (plugin_resourcesdir): Likewise.
6401         (plugin_bindir): Likewise.
6402         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6403         (MOSTLYCLEANFILES): Add gengtype$(exeext).
6404         (native): Depend on gengtype$(exeext) is $enable_plugin
6405         is set to "yes".
6406         (gtype.state): Depend on s-gtype. Use temporary file.
6407         (gengtype-lex.o): New rule.
6408         (gengtype-parse.o): Likewise.
6409         (gengtype-state.o): Likewise.
6410         (gengtype$(exeext)): Likewise.
6411         (install-gengtype): Likewise.
6412         (gengtype.o): Likewise.
6413         (build/gengtype.o): Depend on version.h.
6414         (build/gengtype-state): Depend on double-int.h, version.h,
6415         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6416         (install-plugin): Depend on install-gengtype.
6417
6418 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6419
6420         PR middle-end/49905
6421         * tree.h (init_attributes): New prototype.
6422         * attribs.c (init_attributes): No longer static.
6423
6424 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6425
6426         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6427         maybe_suffix.
6428
6429 2011-08-03   David Li  <davidxl@google.com>
6430
6431         * tree-optimize.c (execute_fixup_cfg): Fix up entry
6432         outgoing edge counts after inlining.
6433
6434 2011-08-03   David Li  <davidxl@google.com>
6435
6436         * profile.c (compute_branch_probabilities): Compute
6437         function frequency after profile annotation.
6438
6439 2011-08-04  Alan Modra  <amodra@gmail.com>
6440
6441         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6442         use_backchain_to_restore_sp initialisation.
6443         (rs6000_legitimate_offset_address_p): Simplify offset test.
6444
6445 2011-08-03  Richard Henderson  <rth@redhat.com>
6446
6447         * config/spu/spu.md: Use define_c_enum instead of define_constants.
6448         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6449         (UNSPECV_NOP): New.
6450
6451 2011-08-03  Richard Henderson  <rth@redhat.com>
6452
6453         PR target/34888
6454         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6455
6456 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
6457
6458         PR tree-optimization/49948
6459         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6460
6461 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
6462
6463         * config/m32c/m32c.c (class_sizes): Remove.
6464         (reduce_class): Change arguments and return type to reg_class_t.
6465         Change type cc var to HARD_REG_SET. Change type best var to
6466         reg_class_t. Change type best_size var to unsigned int. Remove
6467         initialization class_sizes var. Use reg_class_size array instead
6468         of class_sizes. Use reg_class_contents array instead
6469         of class_contents.
6470
6471 2011-08-03  Richard Guenther  <rguenther@suse.de>
6472
6473         PR middle-end/49958
6474         * fold-const.c (fold_binary_loc): Only associate
6475         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6476         overflow wraps.
6477
6478 2011-08-03  Alan Modra  <amodra@gmail.com>
6479
6480         PR rtl-optimization/49941
6481         * jump.c (mark_jump_label): Comment.
6482         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6483         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6484         (mark_used_flags): Don't mark RETURN.
6485
6486 2011-08-03  Richard Guenther  <rguenther@suse.de>
6487
6488         PR tree-optimization/49938
6489         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6490         deal with a POLYNOMIAL_CHREC.
6491
6492 2011-08-03  Revital Eres  <revital.eres@linaro.org>
6493
6494         * modulo-sched.c (calculate_stage_count,
6495         calculate_must_precede_follow, get_sched_window,
6496         try_scheduling_node_in_cycle, remove_node_from_ps): Add
6497         declaration.
6498         (update_node_sched_params, set_must_precede_follow, optimize_sc):
6499         New functions.
6500         (reset_sched_times): Call update_node_sched_params.
6501         (sms_schedule): Call optimize_sc.
6502         (get_sched_window): Change function arguments.
6503         (sms_schedule_by_order): Update call to get_sched_window.
6504         Call set_must_precede_follow.
6505         (calculate_stage_count): Add function argument.
6506
6507 2011-08-02  Richard Henderson  <rth@redhat.com>
6508
6509         PR target/49864
6510         PR target/49879
6511         * reg-notes.def (REG_ARGS_SIZE): New.
6512         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6513         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6514         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6515         different stack levels.
6516         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6517         (maybe_move_args_size_note): New.
6518         (combine_stack_adjustments_for_block): Use it.
6519         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6520         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6521         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6522         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6523         (cur_cfa): New.
6524         (queued_args_size): Remove.
6525         (add_cfi_args_size): Assert size is non-negative.
6526         (stack_adjust_offset, dwarf2out_args_size): Remove.
6527         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6528         (notice_args_size, notice_eh_throw): New.
6529         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6530         (dwarf2out_frame_debug_adjust_cfa): Likewise.
6531         (dwarf2out_frame_debug_cfa_offset): Likewise.
6532         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
6533         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6534         (change_cfi_row): Don't emit args_size.
6535         (maybe_record_trace_start_abnormal): Split out from ...
6536         (maybe_record_trace_start): Here.  Set args_size_undefined.
6537         (create_trace_edges): Update to match.
6538         (scan_trace): Handle REG_ARGS_SIZE.
6539         (connect_traces): Connect args_size between EH insns.
6540         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6541         * explow.c (suppress_reg_args_size): New.
6542         (adjust_stack_1): Split out from ...
6543         (adjust_stack): ... here.
6544         (anti_adjust_stack): Use it.
6545         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6546         * expr.c (mem_autoinc_base): New.
6547         (fixup_args_size_notes): New.
6548         (emit_single_push_insn_1): Rename from emit_single_push_insn.
6549         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
6550         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6551         * reload1.c (reload_as_needed): Likewise.
6552         * rtl.h (fixup_args_size_notes): Declare.
6553
6554 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
6555
6556         PR bootstrap/49914
6557         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6558         of abs.
6559         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6560         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6561
6562 2011-08-02  Richard Henderson  <rth@redhat.com>
6563
6564         * config/h8300/h8300.c (push, pop): Return the insn.
6565         (h8300_swap_into_er6): Generate correct unwind info.
6566         (h8300_swap_out_of_er6): Likewise.
6567         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6568         complex cfa expression.
6569         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6570
6571 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6572
6573         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6574
6575 2011-08-02  Richard Henderson  <rth@redhat.com>
6576
6577         PR target/49878
6578         * config/h8300/h8300.c (h8300_move_ok): New.
6579         * config/h8300/h8300-protos.h: Declare it.
6580         * config/h8300/h8300.md (P): New mode iterator.
6581         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6582         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6583         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6584         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6585         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6586         and pushqi1_h8300hs_normal; use PRE_MODIFY and
6587         register_no_sp_elim_operand.
6588         (*pushhi1_h8300hs_<P>): Similarly.
6589         (pushqi1, pushhi1, pushhi1_h8300): Remove.
6590         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6591
6592 2011-08-02  Richard Henderson  <rth@redhat.com>
6593
6594         PR target/49881
6595         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6596
6597 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
6598
6599         * c-parser.c (enum c_parser_prec): New enum, moved from within
6600         c_parser_binary_expression.
6601         (c_parser_binary_expression): Add PREC argument.  Stop parsing
6602         if operator has lower or equal precedence than PREC.
6603         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6604         callers.
6605         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6606         Adjust c_finish_omp_atomic caller.
6607         (c_parser_omp_taskyield): New function.
6608         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6609         (c_parser_omp_clause_name): Handle final and mergeable clauses.
6610         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6611         functions.
6612         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6613         and PRAGMA_OMP_CLAUSE_MERGEABLE.
6614         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6615         (c_parser_omp_clause_reduction): Handle min and max.
6616         * c-typeck.c (c_finish_omp_clauses): Don't complain about
6617         const qualified predetermined vars in firstprivate clause.
6618         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6619         Handle MIN_EXPR and MAX_EXPR.
6620         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6621         and OMP_CLAUSE_MERGEABLE.
6622         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6623         and OMP_ATOMIC_CAPTURE_NEW.
6624         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6625         OMP_CLAUSE_MERGEABLE.
6626         (omp_clause_code_name): Likewise.
6627         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6628         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6629         and OMP_CLAUSE_MERGEABLE.
6630         (OMP_CLAUSE_FINAL_EXPR): Define.
6631         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6632         OMP_CLAUSE_MERGEABLE.
6633         (expand_task_call): Likewise.
6634         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6635         (expand_omp_atomic_fetch_op): Handle cases where old or new
6636         value is needed afterwards.
6637         (expand_omp_atomic): Call expand_omp_atomic_load resp.
6638         expand_omp_atomic_store.
6639         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6640         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6641         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6642         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6643         * tree-nested.c (convert_nonlocal_omp_clauses,
6644         convert_local_omp_clauses): Likewise.
6645         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6646         OMP_ATOMIC_CAPTURE_NEW): New.
6647         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6648         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6649         New inlines.
6650         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6651         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6652         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6653
6654 2011-08-02  Kai Tietz  <ktietz@redhat.com>
6655
6656         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6657         boolean-type.
6658         (ssa_forward_propagate_and_combine): Interprete result of
6659         forward_propagate_comparison.
6660         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6661         boolean-typed operands for comparisons.
6662
6663 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
6664
6665         * config/avr/libgcc.S: Gather related function in the
6666         same input section.
6667         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6668         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6669         references.
6670         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6671         __udivmodsi4, __divmodsi4, __prologue_saves__,
6672         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6673         __do_copy_data, __do_clear_bss, __do_global_ctors,
6674         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6675
6676 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
6677
6678         PR target/47766
6679         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6680         (stack_protect_test): The pattern compares ptr_mode value.
6681
6682 2011-08-02  Alan Modra  <amodra@gmail.com>
6683
6684         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6685         note for save_LR_around_toc_setup sequence.
6686
6687 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6688
6689         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6690
6691 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
6692             Joseph Myers  <joseph@codesourcery.com>
6693
6694         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6695         * hwint.c: Include diagnostic-core.h.
6696         (abs_hwi): New.
6697         (gcd): Moved here...
6698         (pos_mul_hwi): New.
6699         (mul_hwi): New.
6700         (least_common_multiple): Moved here...
6701         * hwint.h (gcd): ... from here.
6702         (least_common_multiple): ... from here.
6703         (HOST_WIDE_INT_MIN): New.
6704         (HOST_WIDE_INT_MAX): New.
6705         (abs_hwi): Declared.
6706         (gcd): Declared.
6707         (pos_mul_hwi): Declared.
6708         (mul_hwi): Declared.
6709         (least_common_multiple): Declared.
6710         * omega.c (check_pos_mul): Removed.
6711         (check_mul): Removed.
6712         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6713         mul_hwi instead of check_mul.
6714
6715 2011-08-01  Richard Henderson  <rth@redhat.com>
6716
6717         PR target/49881
6718         * config/avr/avr.h (PUSH_ROUNDING): New.
6719         * config/avr/avr.md (pushqi1): Rename from *pushqi.
6720         (*pushhi, *pushsi, *pushsf): Remove.
6721         (MPUSH): New mode iterator.
6722         (push<MPUSH>1): New expander.
6723
6724 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
6725
6726         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6727         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6728         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6729         mmix_preferred_output_reload_class): Remove.
6730         * config/mmix/mmix.c (mmix_preferred_reload_class,
6731         mmix_preferred_output_reload_class): Make static. Change rclass
6732         argument and return type to reg_class_t.
6733         (TARGET_PREFERRED_RELOAD_CLASS,
6734         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6735
6736 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6737
6738         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6739         handling.
6740
6741 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6742
6743         PR target/47766
6744         * config/i386/i386.md (PTR): New.
6745         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6746         (stack_protect_test): Likewise.
6747         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6748         (stack_tls_protect_set_<mode>): Likewise.
6749         (stack_tls_protect_test_<mode>): Likewise.
6750
6751 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
6752
6753         PR target/49927
6754         * config/i386/i386.c (ix86_address_subreg_operand): New.
6755         (ix86_decompose_address): Use ix86_address_subreg_operand.
6756         (ix86_legitimate_address_p): Do not assert that subregs satisfy
6757         register_no_elim_operand in DImode.
6758
6759 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
6760
6761         PR tree-optimization/49926
6762         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6763         in a chain doesn't have uses both inside and outside the loop.
6764
6765 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6766
6767         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6768         * config/avr/avr-devices.c (avr_mcu_types): Use it.
6769         * config/avr/avr-mcus.def (AVR_MCU): Use it.
6770         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6771         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6772         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6773         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6774         to detect if XJMP must not be skipped.
6775
6776 2011-08-02  Alan Modra  <amodra@gmail.com>
6777
6778         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6779         Delete.
6780         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6781         (rs6000_emit_prologue): Don't prematurely return when
6782         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
6783         save_toc_in_prologue case.
6784         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6785         calls_alloca.
6786
6787 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6788
6789         * config/avr/avr-devices.c: Delete SVN property svn:executable.
6790         * config/avr/predicates.md: Ditto.
6791         * config/avr/driver-avr.c: Ditto.
6792         * config/avr/genopt.sh: Set SVN property svn:executable to *.
6793
6794 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6795
6796         * calls.c (emit_library_call_value_1): Declare size only if
6797         BLOCK_REG_PADDING is defined.
6798
6799 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
6800
6801         PR target/49547
6802         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6803         (x86_64-*-*): Likewise.
6804         * config/i386/i386.opt (mlzcnt): New.
6805         * config/i386/abmintrin.h: File removed.
6806         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6807         * config/i386/lzcntintrin.h: ... here.  New file.
6808         (__lzcnt): Rename to ...
6809         (__lzcnt32): ... this.
6810         * config/i386/bmiintrin.h (head): Update copyright year.
6811         (__lzcnt_u16): Removed.
6812         (__lzcnt_u32): Likewise.
6813         (__lzcnt_u64): Likewise.
6814         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6815         is defined, remove abmintrin.h.
6816         * config/i386/cpuid.h (bit_LZCNT): New.
6817         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6818         LZCNT feature.
6819         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6820         __LZCNT__ if needed.
6821         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6822         (ix86_option_override_internal): Handle LZCNT option.
6823         (ix86_valid_target_attribute_inner_p): Likewise.
6824         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6825         * config/i386/i386.h (TARGET_LZCNT): New.
6826         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6827         * config/i386/i386.md (clz<mode>2): Update insn constraint.
6828         (clz<mode>2_lzcnt): Likewise.
6829         * doc/invoke.texi: Mention -mlzcnt option.
6830         * doc/extend.texi: Likewise.
6831
6832 2011-08-01  Julian Brown  <julian@codesourcery.com>
6833
6834         * configure.ac (fixed-point): Add ARM support.
6835         * configure: Regenerate.
6836         * config/arm/arm.c (arm_fixed_mode_set): New struct.
6837         (arm_set_fixed_optab_libfunc): New.
6838         (arm_set_fixed_conv_libfunc): New.
6839         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6840         ARM-specific names.
6841         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6842         return values in SImode.
6843         (arm_return_in_msb): Return fixed-point types in the msb.
6844         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6845         upwards.
6846         (arm_scalar_mode_supported_p): Support fixed-point modes.
6847         (arm_vector_mode_supported_p): Support vector fixed-point modes.
6848         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6849         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6850         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6851         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6852         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6853         New mode iterators.
6854         (qaddsub_suf): New mode attribute.
6855         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6856         vector modes.
6857         * config/arm/predicates.md (sat_shift_operator): New predicate.
6858         * config/arm/arm-fixed.md: New.
6859         * config/arm/arm.md: Include arm-fixed.md.
6860         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6861
6862 2011-08-01  Julian Brown  <julian@codesourcery.com>
6863
6864         * calls.c (emit_library_call_value_1): Support padding for libcall
6865         arguments and return values.
6866         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6867         downwards in big-endian mode.
6868
6869 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6870
6871         PR debug/49887
6872         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6873         * config/sol2-protos.h: Likewise.
6874         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6875         solaris_code_end.
6876         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6877         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6878         solaris_file_end.
6879         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6880
6881 2011-08-01  Julian Brown  <julian@codesourcery.com>
6882
6883         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6884
6885 2011-08-01  Julian Brown  <julian@codesourcery.com>
6886
6887         * final.c (output_addr_const): Print fixed-point constants as
6888         decimal not hex.
6889
6890 2011-08-01  Richard Guenther  <rguenther@suse.de>
6891
6892         * stor-layout.c (initialize_sizetypes): Properly sign-extend
6893         bitsiztype TYPE_MAX_VALUE.
6894
6895 2011-08-01  Julian Brown  <julian@codesourcery.com>
6896
6897         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6898         comparison helpers.
6899
6900 2011-07-31  Richard Henderson  <rth@redhat.com>
6901
6902         * config/h8300/crti.asm: Add flags to .section directive.
6903         * config/h8300/crtn.asm: Likewise.
6904
6905 2011-07-31  Richard Henderson  <rth@redhat.com>
6906
6907         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6908         * tree.c (build_common_tree_nodes): Likewise.
6909
6910 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6911
6912         PR target/49880
6913         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6914         (divsi3_i1): Likewise.
6915
6916 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6917
6918         PR tree-optimization/49749
6919         * tree-ssa-reassoc.c (get_rank): New forward declaration.
6920         (PHI_LOOP_BIAS): New macro.
6921         (phi_rank): New function.
6922         (loop_carried_phi): Likewise.
6923         (propagate_rank): Likewise.
6924         (get_rank): Add calls to phi_rank and propagate_rank.
6925
6926 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6929         of TARGET_64BIT.
6930         (PTRDIFF_TYPE): Likewise.
6931
6932 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
6933
6934         PR target/49920
6935         * config/i386/i386.md (strset): Do not expand strset_singleop
6936         when %eax or $edi are fixed.
6937         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6938         (*strsetsi_1): Ditto.
6939         (*strsethi_1): Ditto.
6940         (*strsetqi_1): Ditto.
6941         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6942         (*rep_stossi): Ditto.
6943         (*rep_stosqi): Ditto.
6944         (*strlenqi_1): Ditto.
6945         (cmpstrnsi): Also fail when %ecx is fixed.
6946         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6947         (*cmpstrnqi_1): Ditto.
6948         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6949         (*strmovsi_1): Ditto.
6950         (*strmovhi_1): Ditto.
6951         (*strmovqi_1): Ditto.
6952         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6953         (*rep_movsi): Ditto.
6954         (*rep_movqi): Ditto.
6955
6956 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
6957
6958         PR target/47908
6959         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6960         Disable instruction scheduling for non-ColdFire targets.
6961         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6962
6963 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6964
6965         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6966         of anti-dep edge from a branch.
6967         (add_cross_iteration_register_deps): Create anti-dep edge from
6968         a branch.
6969
6970 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6971
6972         * modulo-sched.c: Change comment.
6973         (reset_sched_times): Fix print message.
6974         (print_partial_schedule): Add print info.
6975
6976 2011-07-31  Tom de Vries  <tom@codesourcery.com>
6977
6978         PR middle-end/43513
6979         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6980         get_object_alignment and TYPE_ALIGN.
6981
6982 2011-07-30  Tom de Vries  <tom@codesourcery.com>
6983
6984         PR middle-end/43513
6985         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6986         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6987
6988 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6989
6990         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6991         <sys/sbd.h>.
6992         (cpu_types): New array.
6993         (cputype): New function.
6994         (host_detect_local_cpu): Only define buf, f if !__sgi__.
6995         Use scaninvent instead of /proc/cpuinfo if __sgi__.
6996         * config.host: Also use driver-native.o, mips/x-native on
6997         mips-sgi-irix*.
6998         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6999         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
7000         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
7001
7002 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
7003
7004         PR middle-end/49897
7005         PR middle-end/49898
7006         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
7007         in nested parallel and outer is a gimple_reg, mark it as addressable
7008         and set its bit in task_shared_vars bitmap too.
7009
7010 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7011
7012         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
7013
7014 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7015
7016         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
7017         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
7018         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
7019         AMASK_LOCKPFTCHOK): Define.
7020         (host_detect_local_cpu): Remove buf, f, cpu_names.
7021         Define cpu_types, implver, amask.
7022         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
7023         native CPU.
7024         * config.host: Also use driver-alpha.o, alpha/x-alpha on
7025         alpha*-dec-osf*.
7026         * config/alpha/osf5.h [__alpha__ || __alpha]
7027         (host_detect_local_cpu): Declare.
7028         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
7029         (DRIVER_SELF_SPECS): Define.
7030
7031 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
7032
7033         PR target/47715
7034         * config/i386/i386.md (*load_tp_x32): New.
7035         (*load_tp_x32_zext): Ditto.
7036         (*add_tp_x32): Ditto.
7037         (*add_tp_x32_zext): Ditto.
7038         (*load_tp_<mode>): Disable for TARGET_X32 targets.
7039         (*add_tp_<mode>): Ditto.
7040         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
7041         ptr_mode and convert to Pmode if needed.
7042
7043 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7044
7045         PR target/49687
7046         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
7047         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
7048         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
7049         Add X to register footprint: Clobber r26/r27.
7050
7051 2011-07-29  Richard Guenther  <rguenther@suse.de>
7052
7053         * builtins.c (fold_builtin_signbit): Build the comparison
7054         with a proper type.
7055
7056 2011-07-29  Richard Guenther  <rguenther@suse.de>
7057
7058         PR tree-optimization/49893
7059         * tree-predcom.c (suitable_reference_p): Volatile references
7060         are not suitable.
7061
7062 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
7063
7064         PR target/49313
7065         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7066         (__ctzsi2): Result for 0 may be undefined.
7067         (__ctzhi2): Result for 0 may be undefined.
7068         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7069         (__popcountsi2): Ditto. And don't clobber r26.
7070         (__popcountdi2): Ditto. And don't clobber r27.
7071         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7072         (parityhi2): New expand.
7073         (paritysi2): New expand.
7074         (popcounthi2): New expand.
7075         (popcountsi2): New expand.
7076         (clzhi2): New expand.
7077         (clzsi2): New expand.
7078         (ctzhi2): New expand.
7079         (ctzsi2): New expand.
7080         (ffshi2): New expand.
7081         (ffssi2): New expand.
7082         (copysignsf3): New insn.
7083         (bswapsi2): New expand.
7084         (*parityhi2.libgcc): New insn.
7085         (*parityqihi2.libgcc): New insn.
7086         (*paritysihi2.libgcc): New insn.
7087         (*popcounthi2.libgcc): New insn.
7088         (*popcountsi2.libgcc): New insn.
7089         (*popcountqi2.libgcc): New insn.
7090         (*popcountqihi2.libgcc): New insn-and-split.
7091         (*clzhi2.libgcc): New insn.
7092         (*clzsihi2.libgcc): New insn.
7093         (*ctzhi2.libgcc): New insn.
7094         (*ctzsihi2.libgcc): New insn.
7095         (*ffshi2.libgcc): New insn.
7096         (*ffssihi2.libgcc): New insn.
7097         (*bswapsi2.libgcc): New insn.
7098
7099 2011-07-29  Richard Guenther  <rguenther@suse.de>
7100
7101         * tree-vrp.c (get_value_range): Only set parameter default
7102         definitions to varying, leave others at undefined.
7103         (extract_range_from_binary_expr): Fix undefined handling.
7104         (vrp_visit_phi_node): Handle merged undefined state.
7105
7106 2011-07-29  Wei Guozhi  <carrot@google.com>
7107
7108         PR rtl-optimization/49799
7109         * combine.c (make_compound_operation): Check if the bit field is valid
7110         before change it to bit field extraction.
7111
7112 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7113
7114         PR rtl-optimization/49891
7115         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7116         newly created returnjumps.
7117
7118 2011-07-28  DJ Delorie  <dj@redhat.com>
7119
7120         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7121         local frame in a naked function, and produce a suitable error for
7122         that specific case.
7123
7124         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7125         registers to be reloaded in HI classes when the target is HI.
7126
7127 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7128
7129         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7130         bound_one, bound_two.
7131
7132 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7133
7134         PR middle-end/48648
7135         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7136         CLAST assignments.
7137         (translate_clast): Same.
7138         (translate_clast_assignment): New.
7139
7140 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7141
7142         PR tree-optimization/49876
7143         * sese.c (rename_uses): Do not return false on gloog_error: set
7144         the new_expr to integer_zero_node and continue code generation.
7145         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7146
7147 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7148
7149         PR debug/49846
7150         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7151         arguments also check if they aren't initialized with a MODE_INT
7152         mode of the same size.
7153
7154 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
7155
7156         * expr.c (get_bit_range): Handle *MEM_REF's.
7157
7158 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
7159
7160         * rtlanal.c (tablejump_p): False for returns.
7161         * reorg.c (first_active_target_insn): New static function.
7162         (find_end_label): Set JUMP_LABEL for a new returnjump.
7163         (optimize_skip, get_jump_flags, rare_destination,
7164         mostly_true_jump, get_branch_condition,
7165         steal_delay_list_from_target, own_thread_p,
7166         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7167         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7168         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7169         * jump.c (delete_related_insns): Likewise.
7170         (jump_to_label_p): New function.
7171         (redirect_target): New static function.
7172         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
7173         (redirect_jump_1): Assert that the new label is nonnull.
7174         (redirect_jump): Likewise.
7175         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7176         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7177         exit block.
7178         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
7179         changed.  Ensure that the right label is passed to redirect_jump.
7180         * function.c (emit_return_into_block,
7181         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7182         ret_rtx in their JUMP_LABEL.
7183         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7184         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7185         pass ret_rtx as label.
7186         * cfglayout.c (fixup_reorder_chain): Use
7187         force_nonfallthru_and_redirect rather than force_nonfallthru.
7188         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7189         * rtl.h (ANY_RETURN_P): New macro.
7190         (jump_to_label_p): Declare.
7191         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7192         JUMP_LABELs.
7193         (mark_target_live_regs): Likewise.
7194         * basic-block.h (force_nonfallthru_and_redirect): Declare.
7195         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7196         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7197         alpha_tablejump_best_label): Remove functions.
7198         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7199         alpha_tablejump_best_label): Remove declarations.
7200         * config/sh/sh.c (barrier_align, split_branches): Adjust for
7201         ret_rtx in JUMP_LABELs.
7202         * config/arm/arm.c (is_jump_table): Likewise.
7203
7204 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7205
7206         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7207         special predicate.  Remove explicit mode checks.
7208
7209 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7210
7211         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7212         DW_AT_data_member_location containing just DW_OP_plus_uconst.
7213
7214         PR debug/49871
7215         * dwarf2out.c (size_of_die, value_format, output_die): Use
7216         DW_FORM_udata instead of DW_FORM_data[48] for
7217         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7218
7219 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7220
7221         * config/i386/i386.md (*tls_global_dynamic_64): Update
7222         length attribute.
7223
7224 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         PR target/47715
7227         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7228         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
7229         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7230         (tls_dynamic_gnu2_64): Ditto.
7231         (*tls_dynamic_gnu2_lea_64): Ditto.
7232         (*tls_dynamic_gnu2_call_64): Ditto.
7233         (*tls_dynamic_gnu2_combine_64): Ditto.
7234
7235 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7236
7237         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7238
7239 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7240
7241         PR target/47364
7242         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7243
7244 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7245
7246         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7247         before the core constraints. Adjust attributes.
7248         ("*thumb2_movdf_vfp"): Likewise.
7249
7250 2011-07-28  Kai Tietz  <ktietz@redhat.com>
7251
7252         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7253         (simplify_truth_ops_using_ranges): Likewise.
7254         (build_assert_expr_for): Likewise.
7255         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7256         and handle BIT_NOT_EXPR for truth-operation.
7257
7258 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7259
7260         PR target/49313
7261         Undo r176835 from trunk
7262         2011-07-27  Georg-Johann Lay
7263
7264 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7265
7266         PR target/49687
7267         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7268         Add _muluhisi3, _mulshisi3, _usmulhisi3.
7269         * config/avr/libgcc.S (__mulsi3): Rewrite.
7270         (__mulhisi3): Rewrite.
7271         (__umulhisi3): Rewrite.
7272         (__usmulhisi3): New.
7273         (__muluhisi3): New.
7274         (__mulshisi3): New.
7275         (__mulohisi3): New.
7276         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7277         declare.
7278         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7279         (pseudo_register_or_const_int_operand): New.
7280         (combine_pseudo_register_operand): New.
7281         (u16_operand): New.
7282         (s16_operand): New.
7283         (o16_operand): New.
7284         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7285         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7286         (any_extend, any_extend2): New code iterators.
7287         (extend_prefix): New code attribute.
7288         (mulsi3): Rewrite. Turn insn to expander.
7289         (mulhisi3): Ditto.
7290         (umulhisi3): Ditto.
7291         (usmulhisi3): New expander.
7292         (*mulsi3): New insn-and-split.
7293         (mulu<mode>si3): New insn-and-split.
7294         (muls<mode>si3): New insn-and-split.
7295         (mulohisi3): New insn-and-split.
7296         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7297         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7298         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7299         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7300         insn-and-split.
7301         (*mulsi3_call): Rewrite.
7302         (*mulhisi3_call): Rewrite.
7303         (*umulhisi3_call): Rewrite.
7304         (*usmulhisi3_call): New insn.
7305         (*muluhisi3_call): New insn.
7306         (*mulshisi3_call): New insn.
7307         (*mulohisi3_call): New insn.
7308         (extendqihi2): Use combine_pseudo_register_operand as predicate
7309         for operand 1.
7310         (extendqisi2): Ditto.
7311         (zero_extendqihi2): Ditto.
7312         (zero_extendqisi2): Ditto.
7313         (zero_extendhisi2): Ditto.
7314         (extendhisi2): Ditto. Don't early-clobber operand 0.
7315
7316 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7317
7318         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7319
7320 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7321
7322         PR tree-optimization/49471
7323         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7324         iv only when the largest type is unsigned.  Do not call
7325         lang_hooks.types.type_for_size.
7326
7327 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7328
7329         PR middle-end/45450
7330         * graphite-poly.c (apply_poly_transforms): Disable legality check
7331         after an openscop read.
7332
7333 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7334
7335         PR middle-end/47691
7336         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7337         copy_bb_and_scalar_dependences.
7338         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
7339         (graphite_copy_stmts_from_block): Update call to rename_uses.
7340         (copy_bb_and_scalar_dependences): Update call to
7341         graphite_copy_stmts_from_block.
7342         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7343
7344 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
7345
7346         PR target/49313
7347         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7348         (__ctzsi2): Result for 0 may be undefined.
7349         (__ctzhi2): Result for 0 may be undefined.
7350         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7351         (__popcountsi2): Ditto. And don't clobber r26.
7352         (__popcountdi2): Ditto. And don't clobber r27.
7353         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7354         (parityhi2): New expand.
7355         (paritysi2): New expand.
7356         (popcounthi2): New expand.
7357         (popcountsi2): New expand.
7358         (clzhi2): New expand.
7359         (clzsi2): New expand.
7360         (ctzhi2): New expand.
7361         (ctzsi2): New expand.
7362         (ffshi2): New expand.
7363         (ffssi2): New expand.
7364         (copysignsf3): New insn.
7365         (bswapsi2): New expand.
7366         (*parityhi2.libgcc): New insn.
7367         (*parityqihi2.libgcc): New insn.
7368         (*paritysihi2.libgcc): New insn.
7369         (*popcounthi2.libgcc): New insn.
7370         (*popcountsi2.libgcc): New insn.
7371         (*popcountqi2.libgcc): New insn.
7372         (*popcountqihi2.libgcc): New insn-and-split.
7373         (*clzhi2.libgcc): New insn.
7374         (*clzsihi2.libgcc): New insn.
7375         (*ctzhi2.libgcc): New insn.
7376         (*ctzsihi2.libgcc): New insn.
7377         (*ffshi2.libgcc): New insn.
7378         (*ffssihi2.libgcc): New insn.
7379         (*bswapsi2.libgcc): New insn.
7380
7381 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7382
7383         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7384         the mode of symbolic_opreand RTXes.
7385
7386 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7387
7388         * config/i386/predicates.md (x86_64_movabs_operand): Return false
7389         for pic_32bit_operand RTXes.
7390         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7391         in DImode.
7392
7393 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7394
7395         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7396         for 32-bit, too.
7397         (ix86_handle_abi_attribute): Allow function attributes
7398         ms_abi/sysv_abi in 32-bit mode, too.
7399         * doc/extend.texi: Adjust attribute documentation.
7400
7401         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7402         expression handling.
7403         (and_var_with_comparison_1): Likewise.
7404
7405 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
7406
7407         * params.h (ALLOW_STORE_DATA_RACES): New.
7408         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7409         * Makefile.in (expr.o): Depend on PARAMS_H.
7410         * machmode.h (get_best_mode): Add argument.
7411         * fold-const.c (optimize_bit_field_compare): Add argument to
7412         get_best_mode.
7413         (fold_truthop): Same.
7414         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7415         * expr.c (emit_group_store): Same.
7416         (copy_blkmode_from_reg): Same.
7417         (write_complex_part): Same.
7418         (optimize_bitfield_assignment_op): Add argument.
7419         Add argument to get_best_mode.
7420         (get_bit_range): New.
7421         (expand_assignment): Calculate maxbits and pass it down accordingly.
7422         (store_field): New argument.
7423         (expand_expr_real_2): New argument to store_field.  Include params.h.
7424         * expr.h (store_bit_field): New argument.
7425         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7426         into account maxbits.
7427         * calls.c (store_unaligned_arguments_into_pseudos): New argument
7428         to store_bit_field.
7429         * expmed.c (store_bit_field_1): New argument.  Use it.
7430         (store_bit_field): Same.
7431         (store_fixed_bit_field): Same.
7432         (store_split_bit_field): Same.
7433         (extract_bit_field_1): Pass new argument to get_best_mode.
7434         (extract_bit_field): Same.
7435         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7436         * doc/invoke.texi: Document parameter allow-store-data-races.
7437
7438 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
7439
7440         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7441
7442 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7443
7444         * tree-vrp.c (extract_range_from_binary_expr): Remove
7445         TRUTH-binary cases and add new bitwise-cases.
7446         (extract_range_from_assignment): Likewise.
7447         (register_edge_assert_for_1): Likeiwise.
7448         (register_edge_assert_for): Likewise.
7449         (simplify_truth_ops_using_ranges): Likewise.
7450         (simplify_stmt_using_ranges): Likewise.
7451
7452 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
7453
7454         PR target/47372
7455         * config/i386/i386.c (ix86_delegitimize_address): Call
7456         simplify_gen_subreg for PIC with mode of x only if modes of
7457         x and orig_x are different.
7458
7459 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
7460
7461         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7462         to GC allocated copy of the string.
7463         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7464         before .debug_line, not after it.
7465
7466 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7467
7468         PR middle-end/47046
7469         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7470         evolution_function_is_affine_p on CHREC_RIGHT.
7471
7472 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7473
7474         * tree-data-ref.c (max_stmt_executions_tree): Do not call
7475         lang_hooks.types.type_for_size.
7476
7477 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7478
7479         PR middle-end/47653
7480         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7481         loops using wrapping semantics.
7482
7483 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7484
7485         PR middle-end/48805
7486         * tree-scalar-evolution.c (instantiate_scev_r): Return
7487         chrec_dont_know for ADDR_EXPR.
7488
7489 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7490             H.J. Lu  <hongjiu.lu@intel.com>
7491
7492         PR target/47369
7493         PR target/49853
7494         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7495         if legitimize_tls_address returned operand in wrong mode. Allow
7496         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
7497         if legitimize_pic_address returned operand in wrong mode.
7498
7499 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7500
7501         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7502         return false for invariants.
7503
7504 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7505
7506         * config/i386/i386.md (add->lea splitter): Implement using SWI
7507         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
7508         (add->lea zext splitter): Change operand 2 predicate to
7509         x86_64_nonmemory_operand.
7510
7511 2011-07-26  Richard Guenther  <rguenther@suse.de>
7512
7513         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7514         frequency makes everything hot.
7515
7516 2011-07-26  Richard Guenther  <rguenther@suse.de>
7517
7518         PR tree-optimization/49840
7519         * tree-vrp.c (range_fits_type_p): Properly handle full
7520         double-int precision.
7521
7522 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7523
7524         PR bootstrap/49786
7525         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7526         counts.
7527         (update_specialized_profile): Likewise.
7528
7529 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7530             H.J. Lu  <hongjiu.lu@intel.com>
7531
7532         PR target/47381
7533         PR target/49832
7534         PR target/49833
7535         * config/i386/i386.md (i): Change SImode attribute to "e".
7536         (g): Change SImode attribute to "rme".
7537         (di): Change SImode attribute to "nF".
7538         (general_operand): Change SImode attribute to x86_64_general_operand.
7539         (general_szext_operand): Change SImode attribute to
7540         x86_64_szext_general_operand.
7541         (immediate_operand): Change SImode attribute to
7542         x86_64_immediate_operand.
7543         (nonmemory_operand): Change SImode attribute to
7544         x86_64_nonmemory_operand.
7545         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7546         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
7547         (*lea_1): Use SWI48 mode iterator.
7548         (*lea_1_zext): New insn pattern.
7549         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7550         (*bt<mode>): Ditto.
7551         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7552         Update operand constraints.
7553         (addsi_1_zext): Ditto.
7554         (*add<mode>2): Ditto.
7555         (*addsi_3_zext): Ditto.
7556         (*subsi_1_zext): Ditto.
7557         (*subsi_2_zext): Ditto.
7558         (*subsi_3_zext): Ditto.
7559         (*addsi3_carry_zext): Ditto.
7560         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7561         (*mulsi3_1_zext): Ditto.
7562         (*andsi_1): Ditto.
7563         (*andsi_1_zext): Ditto.
7564         (*andsi_2_zext): Ditto.
7565         (*<any_or:code>si_1_zext): Ditto.
7566         (*<any_or:code>si_2_zext): Ditto.
7567         (*test<mode>_1): Use <general_operand> predicate for operand 1.
7568         (*and<mode>_2): Ditto.
7569         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
7570         (add->lea splitter): Check operand modes in insn constraint.  Extend
7571         operands less than SImode wide to SImode.
7572         (add->lea zext splitter): Do not extend input operands to DImode.
7573         (*lea_general_1): Handle only QImode and HImode operands.
7574         (*lea_general_2): Ditto.
7575         (*lea_general_3): Ditto.
7576         (*lea_general_1_zext): Remove.
7577         (*lea_general_2_zext): Ditto.
7578         (*lea_general_3_zext): Ditto.
7579         (*lea_general_4): Check operand modes in insn constraint.  Extend
7580         operands less than SImode wide to SImode.
7581         (ashift->lea splitter): Ditto.
7582         * config/i386/i386.c (ix86_print_operand_address): Print address
7583         registers with 'q' modifier on 64bit targets.
7584         * config/i386/predicates.md (pic_32bit_opreand): Define as special
7585         predicate.  Reject non-SI and non-DI modes.
7586
7587 2011-07-25  Andrew Pinski  <apinski@cavium.com>
7588
7589         PR tree-opt/49671
7590         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7591         TREE_THIS_NOTRAP into the inner most MEM_REF.
7592         Always copy TREE_THIS_VOLATILE.
7593         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7594         arguments are not volatile references.
7595
7596 2011-07-25  Richard Henderson  <rth@redhat.com>
7597
7598         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7599         * final.c (final_scan_insn): Don't test for it.
7600         (rest_of_clean_state): Likewise.
7601
7602 2011-07-25  Richard Henderson  <rth@redhat.com>
7603
7604         PR debug/49841
7605         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7606         (emit_frame_save): Likewise.
7607         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7608         insn onto a dummy blockage insn after the join label.
7609
7610 2011-07-25  Richard Henderson  <rth@redhat.com>
7611
7612         * dwarf2cfi.c (dw_trace_info): Add ID member.
7613         (get_trace_index): Remove.  Change users to use ID member.
7614         (before_next_cfi_note): New.
7615         (connect_traces): Remove unreachable traces before the main loop.
7616         Look across one trace and generate remember/restore_state if needed.
7617
7618 2011-07-25  Richard Henderson  <rth@redhat.com>
7619
7620         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7621
7622 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
7623
7624         * genattr.c (write_upcase, gen_attr <enum definition writing>):
7625         Move to ...
7626         * genattr-common.c ... here.
7627         (main): Call gen_attr.
7628         * optc-gen.awk: Make generated program include insn-attr-common.h .
7629         * Makefile.in (oprions.o): Depend on insn-attr-common.h
7630
7631 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7632
7633         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7634         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7635         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7636         m32c_print_operand, m32c_print_operand_address): Remove.
7637         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7638         Change return type to bool. Change argument type to bool.
7639         (m32c_print_operand, m32c_print_operand_address): Make static.
7640         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7641         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7642
7643 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7644
7645         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7646         attributes): Document mmap.
7647
7648 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7649
7650         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7651         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7652         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7653         mmix_print_operand, mmix_print_operand_address): Remove.
7654         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7655         Change return type to bool. Change argument type to bool.
7656         (mmix_print_operand, mmix_print_operand_address): Make static.
7657         (mmix_intval, mmix_output_condition): Change 'x' argument type
7658         to const_rtx.
7659         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7660         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7661
7662 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
7663
7664         PR target/39386
7665         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7666         shift counter for x << x and x >> x shifts.
7667
7668 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7669
7670         PR target/47124
7671         * config.gcc: Reject *-*-solaris2 configuration.
7672
7673 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
7674
7675         PR tree-optimization/49809
7676         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7677         gimple_get_lhs instead of gimple_assign_lhs.
7678
7679 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7680
7681         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7682
7683 2011-07-25  Richard Guenther  <rguenther@suse.de>
7684
7685         PR tree-optimization/49822
7686         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7687         more.  Make sure to preserve stmts with side-effects.  Properly
7688         handle virtual defs, follow a longer def chain.
7689
7690 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
7691
7692         PR plugins/45348
7693         PR plugins/48425
7694         PR plugins/46577
7695         * Makefile.in: Do not flatten c-family directory when installing
7696         plugin headers.
7697
7698 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7699
7700         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7701         original nodes if we are dealing with virtual clones.
7702
7703 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
7704
7705         * common/config/c6x/c6x-common.c: New file.
7706
7707 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
7708
7709         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7710
7711 2011-07-25  Richard Guenther  <rguenther@suse.de>
7712
7713         PR tree-optimization/49715
7714         * tree-vrp.c: Include expr.h and optabs.h.
7715         (range_fits_type_): New function.
7716         (simplify_float_conversion_using_ranges): Likewise.
7717         (simplify_stmt_using_ranges): Call it.
7718         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7719         * optabs.c (can_float_p): Export.
7720         * optabs.h (can_float_p): Declare.
7721
7722 2011-07-25  Richard Guenther  <rguenther@suse.de>
7723
7724         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7725         (get_value_range): For out-of-range SSA names or names created
7726         after propagation return a read-only varying range.
7727         (dump_all_value_ranges): Adjust.
7728         (vrp_initialize): Likewise.
7729         (vrp_finalize): Likewise.
7730
7731 2011-07-24  Richard Henderson  <rth@redhat.com>
7732
7733         PR debug/49831
7734         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
7735         them entirely.
7736
7737 2011-07-24  Richard Henderson  <rth@redhat.com>
7738
7739         PR debug/49825
7740         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7741         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7742
7743 2011-07-24  Richard Henderson  <rth@redhat.com>
7744
7745         PR debug/49827
7746         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7747
7748 2011-07-24  Richard Henderson  <rth@redhat.com>
7749
7750         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7751         Zero args_size for abnormal edges.  Adjust all callers.
7752
7753 2011-07-24  Richard Henderson  <rth@redhat.com>
7754
7755         PR debug/49825
7756         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7757
7758 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7759
7760         PR bootstrap/49835
7761         * collect2.c (demangle_flag): Removed.
7762
7763 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
7764
7765         * configure.ac (demangler_in_ld): Default to yes.
7766         * configure: Regenerated.
7767         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7768         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7769         --no-demangle options straight through to ld.  When
7770         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7771         way that has the intended effect on Windows.
7772
7773 2011-07-23  Richard Henderson  <rth@redhat.com>
7774
7775         * dwarf2cfi.c: Include basic-block.h.
7776         (dw_label_info): Remove.
7777         (trace_work_list, trace_index): New.
7778         (remember_row, emit_cfa_remember): Remove.
7779         (dw_trace_info_hash, dw_trace_info_eq): New.
7780         (get_trace_index, get_trace_info): New.
7781         (save_point_p): New.
7782         (free_cfi_row): Remove.
7783         (add_cfi): Do not emit DW_CFA_remember_state.
7784         (cfa_row_equal_p): New.
7785         (barrier_args_size): Remove.
7786         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7787         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7788         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7789         (dwarf2out_cfi_begin_epilogue): Remove.
7790         (dwarf2out_frame_debug_restore_state): Remove.
7791         (connect_traces, create_pseudo_cfg): New.
7792         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7793         * Makefile.in (dwarf2cfi.o): Update.
7794
7795 2011-07-23  Richard Henderson  <rth@redhat.com>
7796
7797         * dwarf2cfi.c (dw_trace_info): New.
7798         (dw_label_info): New.
7799         (cie_return_save): New.
7800         (cur_trace): New.
7801         (queued_args_size): Rename from args_size.  Update all users.
7802         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7803         (def_cfa_1): Use cur_trace instead of cfa_*.
7804         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7805         (clobbers_queued_reg_save, reg_saved_in): Likewise.
7806         (dwarf2out_frame_debug_expr): Likewise.
7807         (create_cie_data): Split out from ...
7808         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
7809
7810 2011-07-23  Richard Henderson  <rth@redhat.com>
7811
7812         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7813         Update all users to match.
7814         (execute_dwarf2_frame): Free reg_saved_in_data.
7815
7816 2011-07-23  Richard Henderson  <rth@redhat.com>
7817
7818         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
7819         (queued_reg_saves): Don't GTY.  Change to a VEC.
7820         (queue_reg_save): Update to match.
7821         (dwarf2out_flush_queued_reg_saves): Likewise.
7822         (clobbers_queued_reg_save): Likewise.
7823         (reg_saved_in): Likewise.
7824         (execute_dwarf2_frame): Free queued_reg_saves.
7825
7826 2011-07-23  Richard Henderson  <rth@redhat.com>
7827
7828         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
7829
7830 2011-07-23  Richard Henderson  <rth@redhat.com>
7831
7832         * dwarf2cfi.c (add_cfi_args_size): Split out from...
7833         (dwarf2out_args_size): ... here.
7834         (add_cfi_restore): Split out from ...
7835         (dwarf2out_frame_debug_cfa_restore): ... here.
7836         (def_cfa_0): Split out from ...
7837         (def_cfa_1): ... here.
7838         (cfi_oprnd_equal_p, cfi_equal_p): New.
7839         (change_cfi_row): New.
7840         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7841         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7842         (output_cfis): Remove.
7843         * dwarf2out.c (output_fde): Simplify output_cfi loop.
7844         (dwarf2out_switch_text_section): Don't call output_cfis.
7845         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7846         * dwarf2out.h: Update decls.
7847         (enum dw_val_class): Add dw_val_class_none.
7848
7849 2011-07-23  Richard Henderson  <rth@redhat.com>
7850
7851         * dwarf2cfi.c (update_row_reg_save): New.
7852         (dwarf2out_frame_debug_cfa_expression): Use it.
7853         (dwarf2out_frame_debug_cfa_restore): Likewise.
7854         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
7855
7856 2011-07-23  Richard Henderson  <rth@redhat.com>
7857
7858         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
7859
7860 2011-07-23  Richard Henderson  <rth@redhat.com>
7861
7862         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7863         (cie_cfi_row): New.
7864         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7865         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7866         (cur_row, remember_row): New.
7867         (def_cfa_1): Use cur_row instead of the old_* variables.
7868         (dwarf2out_frame_debug_restore_state): Similarly.
7869         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7870         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7871         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7872         (dwarf2out_frame_debug_cfa_offset): Likewise.
7873         (dwarf2out_frame_debug_expr): Likewise.
7874         (execute_dwarf2_frame): Set up cur_row.
7875         * dwarf2out.h (struct cfa_loc): Mark for GTY.
7876
7877 2011-07-23  Richard Henderson  <rth@redhat.com>
7878
7879         * basic-block.h (EDGE_PRESERVE): New.
7880         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7881         * bb-reorder.c: Include except.h.
7882         (fix_up_crossing_landing_pad): New.
7883         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7884         landing pads in the right partition.  Duplicate as necessary.
7885         (partition_hot_cold_basic_blocks): Fix up DF info after
7886         duplicating landing pads.
7887         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7888         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7889         is set properly.  Validate that EH edges are not CROSSING.
7890         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7891         (dw2_build_landing_pads): ... here.
7892         (convert_to_eh_region_ranges): Remove code to fixup crossing
7893         landing pads.
7894         * except.h (expand_dw2_landing_pad_for_region): Declare.
7895         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7896
7897 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
7898
7899         PR target/49816
7900         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7901
7902 2011-07-22  Jason Merrill  <jason@redhat.com>
7903
7904         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7905
7906 2011-07-22  Richard Henderson  <rth@redhat.com>
7907
7908         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7909
7910 2011-07-22  Richard Henderson  <rth@redhat.com>
7911
7912         * jump.c (maybe_propagate_label_ref): Split out of...
7913         (mark_all_labels): ... here.  Do not attempt label_ref
7914         propagation while in cfglayout mode.
7915
7916 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7917
7918         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7919         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7920         (dwarf_attr_name): Handle DW_AT_GNU_macros.
7921         (dwarf2out_define): If the vector is empty and
7922         lineno is 0, emit a dummy entry first.
7923         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
7924         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7925         optimize_macinfo_range): New functions.
7926         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
7927         mergeable, optimize longer strings using
7928         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7929         optimize longer sequences of define/undef ops from headers
7930         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
7931         emit a section headers.
7932         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7933         and macinfo_section_label to DEBUG_MACRO_SECTION
7934         resp. DEBUG_MACRO_SECTION_LABEL.
7935         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7936         instead of DW_AT_macro_info.
7937
7938         PR other/32998
7939         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7940         options.
7941         * dwarf2out.c: Include opts.h.
7942         (dchar_p): New typedef.  Define heap VEC for it.
7943         (producer_string): New variable.
7944         (gen_producer_string): New function.
7945         (gen_compile_unit_die): Use it.
7946         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7947         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7948         * doc/invoke.texi: Document -grecord-gcc-switches and
7949         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7950         to -frecord-gcc-switches description.
7951
7952 2011-07-22  Jason Merrill  <jason@redhat.com>
7953
7954         PR c++/30112
7955         * c-decl.c (c_linkage_bindings): Define.
7956
7957 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
7958
7959         PR debug/49815
7960         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7961
7962 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
7963
7964         * config/i386/i386.c (ix86_option_override_internal): Disallow
7965         MS ABI in x32 mode.
7966         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7967         only for TARGET_LP64.
7968         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7969
7970 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7971
7972         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7973         avoid warnings when GCC is built with a C++ compiler.
7974
7975 2011-07-22  Martin Jambor  <mjambor@suse.cz>
7976
7977         PR lto/49796
7978         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7979         if decl node is in another partition, call cgraph_get_node only once.
7980
7981 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
7982
7983         * config.gcc (x86_64-*-linux*): Set
7984         default_gnu_indirect_function to yes.
7985
7986 2011-07-22  Richard Guenther  <rguenther@suse.de>
7987
7988         PR tree-optimization/45819
7989         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7990         preserve volatile and notrap flags.
7991
7992 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7993             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7994
7995         PR bootstrap/49794
7996         * configure.ac: Test AM_ICONV with CXX.
7997         * configure: Regenerate.
7998         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7999
8000 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8001
8002         PR bootstrap/49797
8003         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
8004         (set_cloog_options): Use it.
8005
8006 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
8007
8008         PR c++/49756
8009         * gcc.c (main): Call stack_limit_increase (64MB).
8010         * toplev.c (toplev_main): Likewise.
8011
8012 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8013
8014         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
8015         instead of force_reg.
8016
8017 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8018
8019         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
8020         needed and use force_reg after convert.
8021         (ix86_expand_call): Likewise.
8022         (ix86_expand_special_args_builtin): Likewise.
8023         (ix86_expand_builtin): Likewise.
8024
8025 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8026
8027         PR middle-end/47654
8028         PR middle-end/49649
8029         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
8030         in parameter.  Initialize v1 and v2 based on the values returned
8031         by clast_name_to_lb_ub.
8032         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
8033         values.
8034         (type_for_clast_bin): Same.
8035         (type_for_clast_expr): Same.
8036         (type_for_clast_eq): Update calls to type_for_clast_expr.
8037         (type_for_clast_for): Same.
8038         (build_iv_mapping): Same.
8039         * graphite-ppl.h (value_min): New.
8040
8041 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8042
8043         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
8044         types whenever possible.
8045
8046 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8047
8048         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
8049         and ub fields.
8050         (new_clast_name_index): Add lb and ub parameters.
8051         (free_clast_name_index): New.
8052         (clast_name_to_lb_ub): New.
8053         (save_clast_name_index): Add lb and ub parameters.
8054         (compute_bounds_for_param): New.
8055         (type_for_level): Removed.
8056         (type_for_clast_for): Removed level parameter.  Do not call
8057         type_for_level.
8058         (graphite_create_new_loop): Store the lb and ub for the clast_name
8059         of the iterator of the loop that has been generated.
8060         (graphite_create_new_loop_guard): Remove parameter level.
8061         (create_params_index): Store the lb and ub of each parameter.
8062         (gloog): Use free_clast_name_index.  Pass to create_params_index
8063         the current scop.
8064
8065 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8066
8067         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
8068         (max_precision_type): Inline max_signed_precision_type.
8069         (type_for_clast_red): Use max_precision_type.
8070         (type_for_clast_bin): Same.
8071         (type_for_clast_for): Same.
8072
8073 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8074
8075         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
8076         type_for_interval.
8077         (gcc_type_for_value): Renamed type_for_value.
8078         (gcc_type_for_clast_term): Renamed type_for_clast_term.
8079         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
8080         (gcc_type_for_clast_red): Renamed type_for_clast_red.
8081         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
8082         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
8083         (graphite_translate_clast_equation): Update calls.
8084         (compute_type_for_level): Renamed type_for_level.
8085         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
8086         (build_iv_mapping): Update calls.
8087         (graphite_create_new_loop_guard): Same.
8088
8089 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8090
8091         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
8092         comment.
8093
8094 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8095
8096         * graphite-clast-to-gimple.c (struct ivs_params): New.
8097         (clast_name_to_gcc): Use ivs_params to pass around parameters.
8098         (clast_to_gcc_expression): Same.
8099         (clast_to_gcc_expression_red): Same.
8100         (gcc_type_for_clast_term): Same.
8101         (gcc_type_for_clast_expr): Same.
8102         (gcc_type_for_clast_red): Same.
8103         (gcc_type_for_clast_bin): Same.
8104         (gcc_type_for_clast_eq): Same.
8105         (graphite_translate_clast_equation): Same.
8106         (graphite_create_guard_cond_expr): Same.
8107         (graphite_create_new_guard): Same.
8108         (graphite_create_new_loop): Same.
8109         (build_iv_mapping): Same.
8110         (translate_clast_user): Same.
8111         (graphite_create_new_loop_guard): Same.
8112         (translate_clast): Same.
8113         (translate_clast_for_loop): Same.
8114         (translate_clast_for): Same.
8115         (translate_clast_guard): Same.
8116         (initialize_cloog_names): Fix typo.
8117         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8118
8119 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8120
8121         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8122         (new_clast_name_index): Add level parameter.
8123         (clast_name_to_level): New.
8124         (save_clast_name_index): Add level parameter.
8125         (newivs_to_depth_to_newiv): Removed.
8126         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8127         (graphite_create_new_loop): Add level parameter.  Pass level to
8128         save_clast_name_index.
8129         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8130         (create_params_index): Pass level to save_clast_name_index.
8131
8132 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8133
8134         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8135         recompute type, lb, and ub.  Get them from...
8136         (graphite_create_new_loop_guard): ...here.  Pass in parameter
8137         pointers to type, lb, and ub.
8138         (translate_clast_for_loop): Update function calls.
8139         (translate_clast_for): Same.
8140
8141 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8142
8143         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8144         psct_dynamic_dim.
8145         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8146         (gcc_type_for_iv_of_clast_loop): Update use of level.
8147         (gloog): Start counting nesting level from 0.
8148         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8149         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8150         psct_dynamic_dim on level.
8151
8152 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8153
8154         * config/i386/i386.c (ix86_legitimize_address): Convert to
8155         Pmode if needed.
8156
8157 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * config/i386/i386.c (function_value_64): Always return pointers
8160         in Pmode.
8161         (ix86_promote_function_mode): New.
8162         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8163
8164 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8165
8166         PR tree-optimization/49749
8167         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8168         remove no-longer-used maxrank variable.
8169
8170 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8171
8172         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8173
8174 2011-07-21  Jason Merrill  <jason@redhat.com>
8175
8176         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8177         * recog.h (struct insn_data_d): Check it instead of
8178         HAVE_DESIGNATED_INITIALIZERS.
8179         * genoutput.c (output_insn_data): Likewise.
8180
8181 2011-07-21  Richard Guenther  <rguenther@suse.de>
8182
8183         PR tree-optimization/49770
8184         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8185         valueized any operand.  Renamed from ...
8186         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
8187         (valueize_shared_reference_ops_from_ref): Return whether we
8188         valueized any operand.
8189         (vn_reference_lookup): Only when we valueized any operand
8190         use the valueized reference for alias analysis.  Do not preserve
8191         the original reference tree in this case.
8192
8193 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
8194
8195         * config/i386/i386.c (ix86_decompose_address): Reject all but
8196         register operands and subregs of DImode hard registers in index.
8197
8198 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8199
8200         * fold-const.c (fold_unary_loc): Preserve indirect
8201         comparison cast to none-boolean type.
8202         * tree-ssa.c (useless_type_conversion_p): Preserve cast
8203         from/to boolean-type.
8204         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8205         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8206         * tree-cfg.c (verify_gimple_comparison): Check result
8207         type of comparison expression.
8208         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8209         of condition result and disallow type-cast sinking into comparison.
8210
8211 2011-07-21  Richard Guenther  <rguenther@suse.de>
8212
8213         * tree-ssa-forwprop.c (combine_conversions): Return whether
8214         we have to run cfg-cleanup.  Properly remove dead stmts.
8215         (ssa_forward_propagate_and_combine): Adjust.
8216
8217 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
8218
8219         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8220
8221 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8222
8223         * tree-ssa-propagate.c (substitute_and_fold): Use
8224         do_dce flag to deside, if BB's statements are scanned
8225         in last to first, or first to last order.
8226
8227 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8228
8229         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8230
8231 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
8232             Uros Bizjak  <ubizjak@gmail.com>
8233             Richard Henderson  <rth@redhat.com>
8234
8235         * config/i386/constraints.md (w): New.
8236
8237         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8238         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8239
8240         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8241         instead of TARGET_64BIT.
8242
8243         * config/i386/i386.md (indirect_jump): Replace
8244         nonimmediate_operand with indirect_branch_operand.
8245         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
8246         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8247         Convert operand 0 to Pmode for x32 if not PIC.
8248         (*tablejump_1): Replace nonimmediate_operand with
8249         indirect_branch_operand.  Replace constraint "m" with "w".
8250         (*call_vzeroupper): Replace constraint "m" with "w".
8251         (*call): Likewise.
8252         (*call_rex64_ms_sysv_vzeroupper): Likewise.
8253         (*call_rex64_ms_sysv): Likewise.
8254         (*call_value_vzeroupper): Likewise.
8255         (*call_value): Likewise.
8256         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8257         (*call_value_rex64_ms_sysv): Likewise.
8258         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8259
8260         * config/i386/predicates.md (indirect_branch_operand): New.
8261         (call_insn_operand): Support x32.
8262
8263 2011-07-20  Michael Eager  <eager@eagercon.com>
8264
8265         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8266
8267 2011-07-20  Richard Henderson  <rth@redhat.com>
8268
8269         * cfg.c (dump_bb_info): Dump basic_block->flags.
8270         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8271
8272 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8273
8274         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8275         of DImode hard registers in index.
8276         (ix86_legitimate_address_p): Allow subregs of base and index to span
8277         more than a word.  Assert that subregs of base and index satisfy
8278         register_no_elim_operand predicates.  Reject addresses where
8279         base and index have different modes.
8280
8281 2011-07-20  Robert Millan  <rmh@gnu.org>
8282
8283         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8284
8285 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8286
8287         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8288         removing now-unnecessary assignment.
8289
8290 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8291
8292         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8293         memory address space to the type's address space.
8294
8295 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8296
8297         PR target/36467
8298         PR target/49687
8299         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8300         and expand appropriately if there is a CONST_INT in operand2.
8301         (usmulqihi3): New insn.
8302         (*sumulqihi3): New insn.
8303         (*osmulqihi3): New insn.
8304         (*oumulqihi3): New insn.
8305         (*muluqihi3.uconst): New insn_and_split.
8306         (*muluqihi3.sconst): New insn_and_split.
8307         (*mulsqihi3.sconst): New insn_and_split.
8308         (*mulsqihi3.uconst): New insn_and_split.
8309         (*mulsqihi3.oconst): New insn_and_split.
8310         (*ashifthi3.signx.const): New insn_and_split.
8311         (*ashifthi3.signx.const7): New insn_and_split.
8312         (*ashifthi3.zerox.const): New insn_and_split.
8313         (mulsqihi3): New insn.
8314         (muluqihi3): New insn.
8315         (muloqihi3): New insn.
8316         * config/avr/predicates.md (const_2_to_7_operand): New.
8317         (const_2_to_6_operand): New.
8318         (u8_operand): New.
8319         (s8_operand): New.
8320         (o8_operand): New.
8321         (s9_operand): New.
8322         (register_or_s9_operand): New.
8323
8324 2011-07-20  Kai Tietz  <ktietz@redhat.com>
8325
8326         * builtins.c (fold_builtin_expect): See through the cast
8327         from truthvalue_type_node to long.
8328
8329 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8330
8331         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8332         where we can use them from the standard and altivec instruction
8333         sets, instead of always using the 3 operand VSX forms that require
8334         the destination to overlap one of the inputs.
8335         (vsx_fms*): Ditto.
8336         (vsx_fnma*): Ditto.
8337         (vsx_fnms*): Ditto.
8338
8339         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8340         for DF types.
8341         (fmsdf4_fpr): Ditto.
8342         (nfmadf4_fpr): Ditto.
8343         (nfmsdf4_fpr): Ditto.
8344
8345 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
8346
8347         * genrecog.c (make_insn_sequence): Correct position numbering
8348         when filtering out match_scratch and match_dup.
8349
8350 2011-07-20  Richard Guenther  <rguenther@suse.de>
8351
8352         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8353         against already removed statements.
8354         (forward_propagate_into_comparison): Remove dead defining stmts.
8355         (forward_propagate_into_gimple_cond): Likewise.
8356         (forward_propagate_into_cond): Simplify.
8357         (ssa_forward_propagate_and_combine): Handle changed cfg from
8358         forward_propagate_into_comparison.
8359         * tree-ssa-phiopt.c (conditional_replacement): Use proper
8360         locations for newly built statements.
8361
8362 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8363
8364         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8365
8366 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8367
8368         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8369         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8370
8371 2011-07-20  Richard Guenther  <rguenther@suse.de>
8372
8373         PR middle-end/18908
8374         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8375         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8376         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
8377
8378 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
8379
8380         * config/frv/frv.c (frv_register_move_cost): Define explicitly
8381         costs for subclasses of GR_REGS.
8382
8383 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8384
8385         PR target/49780
8386         * config/i386/predicates.md (no_seg_addres_operand): No more special.
8387         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8388         of DImode hard registers in base.
8389         (ix86_legitimate_address_p): Allow SImode and DImode base and index
8390         registers.
8391
8392 2011-07-20  Richard Guenther  <rguenther@suse.de>
8393
8394         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8395         (unify_nodes): Deal with that.
8396         (solve_graph): Likewise.
8397
8398 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
8399
8400         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8401         canonicalize left operand from ZERO_EXTEND to AND.
8402
8403 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
8404
8405         * target.def (class_max_nregs): New hook.
8406         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8407         * doc/tm.texi: Regenerate.
8408         * targhooks.c (default_class_max_nregs): New function.
8409         * targhooks.h (default_class_max_nregs): Declare.
8410         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8411         x_ira_reg_class_min_nregs arrays to unsigned char.
8412         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8413         hook instead of CLASS_MAX_NREGS macro.
8414         * reginfo.c (restore_register_info): Ditto.
8415         * ira-conflicts.c (process_regs_for_copy): Use
8416         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8417         Change type rclass and aclass vars to reg_class_t.
8418         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8419         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8420         reg_class_t.
8421         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8422         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8423
8424         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8425         * config/i386/i386.c (ix86_class_max_nregs): New function.
8426         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8427         instead of CLASS_MAX_NREGS macro.
8428         (TARGET_CLASS_MAX_NREGS): Define.
8429         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8430         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8431         * config/avr/avr.c (class_max_nregs): Remove function.
8432         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8433         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8434         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8435         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8436         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8437         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8438         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8439         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8440         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8441         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8442         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8443         * config/score/score.h (CLASS_MAX_NREGS): Remove.
8444         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8445         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8446         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8447
8448 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
8449
8450         * cif-code.def (OVERWRITABLE): Fix typo and move around.
8451         (TARGET_OPTIMIZATION_MISMATCH): Delete.
8452         (EH_PERSONALITY): Fix typo.
8453         (NON_CALL_EXCEPTIONS): Fix message.
8454         (OPTIMIZATION_MISMATCH): Adjust message.
8455         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8456
8457 2011-07-19  Ian Lance Taylor  <iant@google.com>
8458
8459         * doc/install.texi (Configuration): Document
8460         --enable-build-poststage1-with-cxx.
8461
8462 2011-07-19  Robert Millan  <rmh@gnu.org>
8463
8464         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
8465         (GLIBC_DYNAMIC_LINKER): Remove.
8466
8467         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
8468         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8469         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8470         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8471         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8472         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8473
8474         * config/mips/linux.h: Remove everything except for ...
8475         (GLIBC_DYNAMIC_LINKER): ... this macro.
8476
8477         * config/mips/linux64.h: Remove everything except for ...
8478         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8479         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8480         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8481         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8482         (GNU_USER_LINK_EMULATIONN32): New macros.
8483
8484         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8485         Use the new headers.
8486
8487 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8488
8489         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8490         Add offset_known_p and size_known_p fields.
8491         (MEM_OFFSET_KNOWN_P): Update accordingly.
8492         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8493         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8494         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8495         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8496         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8497         (init_emit_regs): Likewise.
8498
8499 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8500
8501         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8502         (MEM_OFFSET): Change from returning an rtx to returning a
8503         HOST_WIDE_INT.
8504         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8505         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8506         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8507         (clear_mem_offset): Declare.
8508         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8509         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8510         MEM_OFFSET to get a HOST_WIDE_INT offset.
8511         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
8512         (adjust_offset_for_component_ref): Take a bool "known_p"
8513         parameter and a HOST_WIDE_INT "offset" parameter.
8514         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8515         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8516         than an rtx.  Use clear_mem_offset to clear the offset.
8517         * cfgcleanup.c (merge_memattrs): Likewise.
8518         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8519         * function.c (assign_parm_find_stack_rtl): Likewise.
8520         (assign_parm_setup_stack): Likewise.
8521         * print-rtl.c (print_rtx): Likewise.
8522         * reload.c (find_reloads_subreg_address): Likewise.
8523         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8524         * var-tracking.c (INT_MEM_OFFSET): Likewise.
8525         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8526         (get_mem_align_offset): Likewise.
8527         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8528         (clear_mem_offset): New function.
8529         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8530         offset rather than an rtx.  Assume both the expressio and offset
8531         are available.
8532         (r10k_needs_protection_p_1): Update accordingly, checking the
8533         expression and offset availability here instead.
8534
8535 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8536
8537         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8538         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8539         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8540         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8541         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8542         (clear_mem_size): Declare.
8543         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8544         (clear_mem_size): New function.
8545         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8546         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8547         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
8548         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
8549         to clear the size.
8550         (nonoverlapping_memrefs_p): Likewise.
8551         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8552         (expand_builtin_init_trampoline): Likewise.
8553         * calls.c (compute_argument_addresses): Likewise.
8554         * cfgcleanup.c (merge_memattrs): Likewise.
8555         * dce.c (find_call_stack_args): Likewise.
8556         * dse.c (record_store, scan_insn): Likewise.
8557         * dwarf2out.c (dw_sra_loc_expr): Likewise.
8558         * expr.c (emit_block_move_hints): Likewise.
8559         * function.c (assign_parm_find_stack_rtl): Likewise.
8560         * print-rtl.c (print_rtx): Likewise.
8561         * reload.c (find_reloads_subreg_address): Likewise.
8562         * rtlanal.c (may_trap_p_1): Likewise.
8563         * var-tracking.c (track_expr_p): Likewise.
8564         * varasm.c (assemble_trampoline_template): Likewise.
8565         * config/arm/arm.c (arm_print_operand): Likewise.
8566         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8567         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8568         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8569         (expand_constant_setmem_prologue): Likewise.
8570         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8571         * config/rs6000/rs6000.c (expand_block_move): Likewise.
8572         (adjacent_mem_locations): Likewise.
8573         * config/s390/s390.c (s390_expand_setmem): Likewise.
8574         (s390_expand_insv): Likewise.
8575         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8576         (*extendqi<mode>2_short_displ): Likewise.
8577         * config/sh/sh.c (expand_block_move): Likewise.
8578         * config/sh/sh.md (extv, extzv): Likewise.
8579
8580 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8581
8582         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8583         (mem_attrs_htab_eq): ...here.
8584         (find_mem_attrs): Replace with...
8585         (set_mem_attrs): ...this function.  Take a mem_attrs structure
8586         rather than individual fields.
8587         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8588         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8589         (set_mem_size, change_address, adjust_address_1, offset_address)
8590         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8591         Update accordingly.
8592
8593 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8594
8595         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8596         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8597         Provide a dummy definition of MEM_ADDR_SPACE for generators.
8598         (target_rtl): Add x_mode_mem_attrs.
8599         (mode_mem_attrs): New macro.
8600         (get_mem_attrs): New function.
8601         * emit-rtl.c (get_mem_attrs): Rename to...
8602         (find_mem_attrs): ...this.
8603         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8604         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8605         (set_mem_size, change_address, adjust_address_1, offset_address)
8606         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8607         Update accordingly.
8608         (init_emit_regs): Initialize mode_mem_attrs.
8609
8610 2011-07-19  Richard Guenther  <rguenther@suse.de>
8611
8612         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8613         TRUTH_*_EXPR handling.
8614         * tree-ssa-operands.c (get_expr_operands): Likewise.
8615         * tree-ssa-pre.c (fully_constant_expression): Likewise.
8616         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8617         Likewise.
8618         (is_and_or_or): Likewise.
8619         (is_norm_cond_subset_of): Likewise.
8620
8621 2011-07-19  Richard Guenther  <rguenther@suse.de>
8622
8623         * tree.h (fold_build_pointer_plus_loc): New helper function.
8624         (fold_build_pointer_plus_hwi_loc): Likewise.
8625         (fold_build_pointer_plus): Define.
8626         (fold_build_pointer_plus_hwi): Likewise.
8627         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8628         (fold_builtin_memory_op): Likewise.
8629         (fold_builtin_stpcpy): Likewise.
8630         (fold_builtin_memchr): Likewise.
8631         (fold_builtin_strstr): Likewise.
8632         (fold_builtin_strchr): Likewise.
8633         (fold_builtin_strrchr): Likewise.
8634         (fold_builtin_strpbrk): Likewise.
8635         (fold_builtin_strcat): Likewise.
8636         (expand_builtin_memory_chk): Likewise.
8637         (fold_builtin_memory_chk): Likewise.
8638         * c-typeck.c (build_unary_op): Likewise.
8639         * cgraphunit.c (thunk_adjust): Likewise.
8640         * fold-const.c (build_range_check): Likewise.
8641         (fold_binary_loc): Likewise.
8642         * omp-low.c (extract_omp_for_data): Likewise.
8643         (expand_omp_for_generic): Likewise.
8644         (expand_omp_for_static_nochunk): Likewise.
8645         (expand_omp_for_static_chunk): Likewise.
8646         * tree-affine.c (add_elt_to_tree): Likewise.
8647         * tree-data-ref.c (split_constant_offset_1): Likewise.
8648         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8649         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8650         * tree-predcom.c (ref_at_iteration): Likewise.
8651         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8652         (add_to_parts): Likewise.
8653         (create_mem_ref): Likewise.
8654         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8655         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8656         (number_of_iterations_le): Likewise.
8657         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8658         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8659         (vect_create_addr_base_for_vector_ref): Likewise.
8660         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8661         (vect_create_cond_for_alias_checks): Likewise.
8662         * tree-vrp.c (extract_range_from_assert): Likewise.
8663         * config/alpha/alpha.c (alpha_va_start): Likewise.
8664         (alpha_gimplify_va_arg_1): Likewise.
8665         * config/i386/i386.c (ix86_va_start): Likewise.
8666         (ix86_gimplify_va_arg): Likewise.
8667         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8668         * config/mep/mep.c (mep_expand_va_start): Likewise.
8669         (mep_gimplify_va_arg_expr): Likewise.
8670         * config/mips/mips.c (mips_va_start): Likewise.
8671         (mips_gimplify_va_arg_expr): Likewise.
8672         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8673         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8674         (rs6000_gimplify_va_arg): Likewise.
8675         * config/s390/s390.c (s390_va_start): Likewise.
8676         (s390_gimplify_va_arg): Likewise.
8677         * config/sh/sh.c (sh_va_start): Likewise.
8678         (sh_gimplify_va_arg_expr): Likewise.
8679         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8680         * config/spu/spu.c (spu_va_start): Likewise.
8681         (spu_gimplify_va_arg_expr): Likewise.
8682         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8683         Likewise.
8684         (xstormy16_gimplify_va_arg_expr): Likewise.
8685         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8686         (xtensa_gimplify_va_arg_expr): Likewise.
8687
8688 2011-07-19  Richard Guenther  <rguenther@suse.de>
8689
8690         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8691         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8692         handling.
8693
8694         PR middle-end/18908
8695         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8696         result of BIT_*_EXPR to bitfield precision.
8697
8698 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
8699
8700         PR tree-optimization/49742
8701         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8702         as a potential write.
8703
8704 2011-07-19  Richard Guenther  <rguenther@suse.de>
8705
8706         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8707         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8708         (forward_propagate_comparison): Simplify, remove obsolete code.
8709
8710 2011-07-19  Richard Guenther  <rguenther@suse.de>
8711
8712         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8713         BIT_XOR_EXPR, same as the RTL expander does.
8714         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8715         (verify_gimple_assign_unary): Likewise.
8716         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8717         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8718         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8719
8720 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
8721
8722         PR tree-optimization/49768
8723         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8724         if offset is smaller than bitoffset, but offset+size is bigger
8725         than bitoffset.
8726
8727 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
8728
8729         PR tree-optimization/49771
8730         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8731         zero step, set segment length to the size of the data-ref's type.
8732
8733 2011-07-18  Martin Jambor  <mjambor@suse.cz>
8734
8735         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8736         comments.
8737         (ipcp_values_pool): Declare.
8738         (ipcp_sources_pool): Likewise.
8739         (ipcp_lattice): Changed to forward declaration.
8740         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8741         cannot_devirtualize.
8742         (ipa_node_params): New fields descriptors, lattices, known_vals,
8743         clone_for_all_contexts and node dead, removed fields params and
8744         count_scale.
8745         (ipa_set_param_count): Removed.
8746         (ipa_get_param_count): Made to work with descriptors vector.
8747         (ipa_get_param): Updated.
8748         (ipa_param_cannot_devirtualize_p): Removed.
8749         (ipa_param_types_vec_empty): Likewise.
8750         (ipa_set_param_used): New function.
8751         (ipa_get_param_used): Updated to use descriptors vector.
8752         (ipa_func_list): Removed.
8753         (ipa_init_func_list): Removed declaration.
8754         (ipa_push_func_to_list_1): Likewise.
8755         (ipa_pop_func_from_list): Likewise.
8756         (ipa_push_func_to_list): Removed.
8757         (ipa_lattice_from_jfunc): Remove declaration.
8758         (ipa_get_jf_pass_through_result): Declare.
8759         (ipa_get_jf_ancestor_result): Likewise.
8760         (ipa_value_from_jfunc): Likewise.
8761         (ipa_get_lattice): Update.
8762         (ipa_lat_is_single_const): New function.
8763         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8764         (ipa_init_func_list): Likewise.
8765         (ipa_pop_func_from_list): Likewise.
8766         (ipa_get_param_decl_index): Fix coding style.
8767         (count_formal_params): Removed.
8768         (count_formal_params_1): Renamed to count_formal_params.
8769         (ipa_populate_param_decls): Update to use descriptors vector.
8770         (ipa_initialize_node_params): Likewise.
8771         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8772         (ipa_analyze_params_uses): Likewise.
8773         (ipa_free_node_params_substructures): Likewise and free also lattices
8774         and known values.
8775         (duplicate_array): Removed.
8776         (ipa_edge_duplication_hook): Add the new edge to the list of edge
8777         clones.
8778         (ipa_node_duplication_hook): Update to use new lattices.
8779         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8780         (ipa_free_all_structures_after_iinln): Likewise.
8781         (ipa_write_node_info): Update to use new lattices.
8782         (ipa_read_node_info): Likewise.
8783         (ipa_get_jf_pass_through_result): New function.
8784         (ipa_get_jf_ancestor_result): Likewise.
8785         (ipa_value_from_jfunc): Likewise.
8786         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8787         * ipa-cp.c: Reimplemented.
8788         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8789         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8790         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8791         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8792         * doc/invoke.texi (devirt-type-list-size): Removed description.
8793         (ipa-cp-value-list-size): Added description.
8794
8795 2011-07-18  Richard Henderson  <rth@redhat.com>
8796
8797         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8798         before calling create_basic_block.
8799
8800 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
8801
8802         PR middle-end/49675
8803         * tree.c (build_common_builtin_nodes): Register
8804         __builtin_return_address, __cyg_profile_func_enter
8805         and __cyg_profile_func_exit.
8806
8807 2011-07-18  Richard Henderson  <rth@redhat.com>
8808
8809         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8810         (add_labels_and_missing_jumps): ... here.
8811         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8812
8813 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
8814
8815         PR target/47744
8816         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8817         of DImode hard registers in PLUS address chains.
8818
8819 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8820
8821         PR bootstrap/49769
8822         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8823         (alpha*-*-freebsd*): Likewise.
8824         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8825         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8826         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8827         crtprec80.o, crtfastmath.o to extra_parts for all targets.
8828         (ia64*-*-elf*): Remove extra_parts.
8829         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8830         (sparc64-*-linux*): Likewise.
8831         (sparc64-*-freebsd*): Likewise.
8832
8833         Revert:
8834         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8835         (ia64*-*-linux*): Likewise.
8836         (mips64*-*-linux*): Likewise.
8837         (mips*-*-linux*): Likewise.
8838
8839 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
8840
8841         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8842
8843 2011-07-18  Richard Guenther  <rguenther@suse.de>
8844
8845         * gimplify.c (gimplify_expr): Use input_location, not saved_location
8846         when building new trees.
8847
8848 2011-07-18  Richard Guenther  <rguenther@suse.de>
8849
8850         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8851         expansion result to bitfield precision if required.
8852
8853 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8854
8855         * config.gcc (i[3456x]86-*-netware*): Remove.
8856
8857         * gthr-nks.h: Remove.
8858         * configure.ac (enable_threads): Remove nks.
8859         * configure: Regenerate.
8860
8861         * config/i386/i386.c (ix86_encode_section_info): Remove netware
8862         reference.
8863         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8864         <netware.h> reference.
8865
8866         * config/i386/netware-libgcc.c,
8867         gcc/config/i386/netware-libgcc.def,
8868         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8869         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8870         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8871         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8872
8873         * doc/extend.texi (Function Attributes,
8874         callee_pop_aggregate_return): Remove i?86-netware reference.
8875         * doc/install.texi (Configuration, --enable-threads): Remove nks.
8876
8877 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8878
8879         PR target/49746
8880         Revert:
8881         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8882
8883         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8884         patterns.
8885
8886 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
8887
8888         PR middle-end/49732
8889         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8890
8891 2011-07-16  Matthias Klose  <doko@ubuntu.com>
8892
8893         * doc/install.texi: Document --enable-static-libjava.
8894
8895 2011-07-15  Richard Henderson  <rth@redhat.com>
8896
8897         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8898         Replace all three arguments by returning a VEC of edges.
8899         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8900         pointers and counts.
8901         (fix_edges_for_rarely_executed_code): Merge ...
8902         (rest_of_handle_partition_blocks): ... into...
8903         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
8904         any work was performed.
8905         (pass_partition_blocks): Clear todo_flags_finish.
8906
8907 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
8908             Jakub Jelinek  <jakub@redhat.com>
8909             Jonathan Wakely  <jwakely.gcc@gmail.com>
8910
8911         PR libstdc++/49745
8912         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8913         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8914
8915 2011-07-15  Jason Merrill  <jason@redhat.com>
8916
8917         PR testsuite/49741
8918         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8919         rather than --tool_opts.
8920
8921 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
8922
8923         * doc/plugins.texi (Building GCC plugins): gengtype needs its
8924         corresponding gtype.state.
8925
8926 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8927
8928         PR target/49723
8929         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8930
8931 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8932
8933         PR target/48220
8934         * doc/md.texi (Standard Names): Document window_save.
8935         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8936         expand_debug_expr and expand_debug_source_expr.  If the target has
8937         a window_save instruction, adjust the ENTRY_VALUE_EXP.
8938         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8939         SSA_NAME_VAR is a parameter.
8940         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8941         * var-tracking.c (parm_reg_t): New type and associated vector type.
8942         (windowed_parm_regs): New variable.
8943         (adjust_insn): If the target has a window_save instruction and this
8944         is the instruction, make its effect on parameter registers explicit.
8945         (next_non_note_insn_var_location): New function.
8946         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8947         (vt_add_function_parameter): If the target has a window_save insn,
8948         adjust the incoming RTL and record that in windowed_parm_regs.
8949         (vt_finalize): Free windowed_parm_regs.
8950
8951 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8952
8953         * doc/invoke.texi (C6X Options): New section.
8954         * doc/md.texi (TI C6X family): New section.
8955         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8956         tic6x-*-uclinux.
8957         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8958         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8959         Provide C6X definitions.
8960         * config/c6x/c6x.md: New file.
8961         * config/c6x/constraints.md: New file.
8962         * config/c6x/predicates.md: New file.
8963         * config/c6x/c6x-sched.md.in: New file.
8964         * config/c6x/c6x-sched.md: New file.
8965         * config/c6x/gensched.sh: New file.
8966         * config/c6x/c6x-mult.md.in: New file.
8967         * config/c6x/genmult.sh: New file.
8968         * config/c6x/c6x-mult.md: New file.
8969         * config/c6x/sync.md: New file.
8970         * config/c6x/c6x-protos.h: New file.
8971         * config/c6x/sfp-machine.h: New file.
8972         * config/c6x/c6x.c: New file.
8973         * config/c6x/c6x.h: New file.
8974         * config/c6x/crti.s: New file.
8975         * config/c6x/crtn.s: New file.
8976         * config/c6x/lib1funcs.asm: New file.
8977         * config/c6x/c6x-modes.def: New file.
8978         * config/c6x/genopt.sh: New file.
8979         * config/c6x/c6x.opt: New file.
8980         * config/c6x/c6x-tables.opt: New file.
8981         * config/c6x/c6x-opts.h: New file.
8982         * config/c6x/c6x-isas.def: New file.
8983         * config/c6x/elf.h: New file.
8984         * config/c6x/elf-common.h: New file.
8985         * config/c6x/uclinux-elf.h: New file.
8986         * config/c6x/t-c6x: New file.
8987         * config/c6x/t-c6x-elf: New file.
8988         * config/c6x/t-c6x-uclinux: New file.
8989         * config/c6x/t-c6x-softfp: New file.
8990         * config/c6x/gtd.c: New file.
8991         * config/c6x/gtf.c: New file.
8992         * config/c6x/ltd.c: New file.
8993         * config/c6x/ltf.c: New file.
8994         * config/c6x/ged.c: New file.
8995         * config/c6x/gef.c: New file.
8996         * config/c6x/led.c: New file.
8997         * config/c6x/lef.c: New file.
8998         * config/c6x/eqd.c: New file.
8999         * config/c6x/eqf.c: New file.
9000         * config/c6x/libgcc-c6xeabi.ver: New file.
9001
9002         Revert
9003         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
9004         PR rtl-optimization/11320
9005         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
9006         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
9007         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
9008         current_sched_info->compute_jump_reg_dependencies. Record which
9009         registers are used and which registers are set by the jump.
9010         Clear deps->reg_conditional_sets after a barrier.
9011         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
9012         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
9013         (init_deps): Initialize reg_conditional_sets.
9014         (free_deps): Clear reg_conditional_sets.
9015         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
9016         Mark registers live on entry of the fallthrough block and conditionally
9017         set as set by the jump. Mark registers live on entry of non-fallthrough
9018         blocks as used by the jump.
9019         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
9020         Mark new parameters as unused.
9021
9022 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
9023
9024         PR tree-opt/49309
9025         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
9026         Use fold_build2_loc instead of build2.
9027         Use the correct type for the new tree.
9028
9029 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9030
9031         PR rtl-optimization/11320
9032         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
9033         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
9034
9035 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9036
9037         PR target/49487
9038         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
9039         of REG.
9040         (*rotw<mode>): Use const_int_operand for operand2.
9041         Use match_scatch for operand3.
9042         (*rotb<mode>): Ditto
9043         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
9044
9045 2011-07-14  Richard Guenther  <rguenther@suse.de>
9046
9047         PR tree-optimization/49651
9048         * tree-ssa-structalias.c (get_constraint_for_1): Properly
9049         handle dereferences with subvariables.
9050
9051 2011-07-14  Richard Guenther  <rguenther@suse.de>
9052
9053         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
9054         (fold_stmt_1): Do it here directly on gimple and as a first thing.
9055
9056 2011-07-14  Richard Guenther  <rguenther@suse.de>
9057
9058         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
9059         not bool_var when folding bool_var != 1 or bool_var == 0.
9060
9061 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9062
9063         * haifa-sched.c (schedule_insns): Remove outdated comment.
9064         (schedule_block): When computing a known value for TODO_SPEC,
9065         just set it rather than using logical operations.
9066         (try_ready): Likewise.  Use a local variable rather than a
9067         pointer to TODO_SPEC.  Reorder an if statement to move the
9068         easy case to the then block.
9069         * sched-deps.c (dep_spec_p): New static function.
9070         (update_dep): Use it to decide whether to call
9071         change_spec_dep_to_hard.
9072         (get_back_and_forw_lists): Use it.
9073         (sd_resolve_dep): Likewise.
9074         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
9075         (haifa_note_mem_dep): Likewise.
9076         (check_dep): Likewise.
9077         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
9078         (sched_free_deps): Free in two passes.
9079
9080 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
9081
9082         PR middle-end/49736
9083         * expr.c (all_zeros_p): Undo bogus part of last change.
9084
9085 2011-07-14  Matthias Klose <doko@ubuntu.com>
9086
9087         * doc/extend.texi (optimize attribute): Fix typo.
9088
9089 2011-07-14  Richard Guenther  <rguenther@suse.de>
9090
9091         * gimplify.c (gimplify_expr): Only do required conversions.
9092
9093 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
9094
9095         PR target/43746
9096         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
9097         i.e. use default_elf_select_section.
9098         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
9099         (READONLY_DATA_SECTION_ASM_OP): Remove.
9100         (TARGET_ASM_NAMED_SECTION): Move from here...
9101         * config/avr/avr.c: ...to here.
9102         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
9103         (avr_asm_named_section): Make static.
9104
9105 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9106
9107         PR bootstrap/49739
9108         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
9109         and crtfastmath.o for Linux/x86.
9110
9111 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9112
9113         * haifa-sched.c: Include "hashtab.h"
9114         (sched_no_dce): New global variable.
9115         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9116         SHADOW_P): New macros.
9117         (last_clock_var, cycle_issued_insns): Move declarations.
9118         (must_backtrack): New static variable.
9119         (struct delay_pair): New structure.
9120         (delay_htab, delay_htab_i2): New static variables.
9121         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9122         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9123         functions.
9124         (dep_cost_1): If delay pairs exist, try to look up the insns and
9125         use the correct pair delay if we find them.
9126         (rank-for_schedule): Tweak priority for insns that must be scheduled
9127         soon to avoid backtracking.
9128         (queue_insn): Detect conditions which force backtracking.
9129         (ready_add): Likewise.
9130         (struct sched_block_state): Add member shadows_only_p.
9131         (struct haifa_save_data): New structure.
9132         (backtrack_queue): New static variable.
9133         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9134         unschedule_insns_until, restore_last_backtrack_point,
9135         free_topmost_backtrack_point, free_backtrack_queue,
9136         estimate_insn_tick, estimate_shadow_tick): New functions.
9137         (prune_ready_list): New arg shadows_only_p.  All callers changed.
9138         If true, remove everything that isn't SHADOW_P.  Look up delay
9139         pairs and estimate ticks to avoid scheduling the first insn too early.
9140         (verify_shadows): New function.
9141         (schedule_block): Add machinery to enable backtracking.
9142         (sched_init): Take sched_no_dce into account when setting
9143         DF_LR_RUN_DCE.
9144         (free_delay_pairs): New function.
9145         (init_h_i_d): Initialize INSN_EXACT_TICK.
9146         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9147         * sched-deps.c (sd_unresolve_dep): New function.
9148         * sched-int. (struct haifa_sched_info): New fields save_state
9149         and restore_state.
9150         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9151         feeds_backtrack_insn and shadow_p.
9152         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9153         (sched_no_dce): Declare variable.
9154         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9155         sd_unresolve_dep): Declare functions.
9156         * modulo-sched.c (sms_sched_info): Clear the two new fields.
9157         * sched-rgn.c (rgn_const_sched_info): Likewise.
9158         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9159         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9160         (ebb_sched_info): Add them for the two new fields.
9161         (add_deps_for_risky_insns): Call add_delay_dependencies.
9162
9163 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9164
9165         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9166         Rename -mr11.
9167         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9168         (rs6000_call_indirect_aix): Ditto.
9169         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9170         (call_indirect_aix<ptrsize>_internal): Ditto.
9171         (call_indirect_aix<ptrsize>_nor11): Ditto.
9172         (call_indirect_aix<ptrsize>_internal2): Ditto.
9173         (call_value_indirect_aix<ptrsize>): Ditto.
9174         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9175         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9176         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9177         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9178
9179 2011-07-13  Jason Merrill  <jason@redhat.com>
9180
9181         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9182
9183 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9184
9185         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9186         * config/spu/spu.md ("clrsb<mode>2"): New expander.
9187
9188 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
9189
9190         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9191         * configure: Regenerate.
9192
9193 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9194
9195         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9196         (asm_file_start): Remove.
9197         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9198         free_bb_for_insn around code that modifies insns before
9199         restarting df analysis.
9200
9201 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9202
9203         PR target/49541
9204         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
9205         (LINK_SPEC): ... here.
9206
9207 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9208
9209         * haifa-sched.c (struct sched_block_state): New.
9210         (schedule_block): Move some local variables into such a structure.
9211
9212 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9213
9214         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9215         * config/i386/t-crtpc: Remove.
9216         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9217         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9218         tmake_file.
9219         (x86_64-*-darwin*): Likewise.
9220         (i[34567]86-*-linux*): Likewise.
9221         (x86_64-*-linux*): Likewise.
9222
9223         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9224         Handle -mpc32, -mpc64, -mpc80.
9225
9226 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9227
9228         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9229         * config/alpha/t-crtfm: Remove.
9230         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9231         * config/i386/t-crtfm: Remove.
9232         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9233         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9234         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9235         * config/sparc/t-crtfm: Remove.
9236
9237         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9238         (alpha*-*-freebsd*): Likewise.
9239         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9240         (x86_64-*-darwin*): Likewise.
9241         (i[34567]86-*-linux*): Likewise.
9242         (x86_64-*-linux*): Likewise.
9243         (x86_64-*-mingw*): Likewise.
9244         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9245         (ia64*-*-freebsd*): Likewise.
9246         (ia64*-*-linux*): Likewise.
9247         (mips64*-*-linux*): Likewise.
9248         (mips*-*-linux*): Likewise.
9249         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9250         (sparc64-*-linux*): Likewise.
9251         (sparc64-*-freebsd*): Likewise.
9252
9253 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9254
9255         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9256         * config/darwin-crt3.c: Move to ../libgcc/config.
9257         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9258         ($(T)crt3$(objext)): Remove.
9259         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9260         ($(T)crt2$(objext)): Remove.
9261         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9262         (powerpc64-*-darwin*): Likewise.
9263
9264 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9265
9266         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9267
9268         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9269         (addsi_1_zext): This.
9270
9271 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9272
9273         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9274         * doc/tm.texi: Regenerate.
9275         * target.def (mergeable_rodata_prefix): New defhookpod.
9276         * varasm.c (mergeable_string_section, mergeable_constant_section):
9277         Use it. Allocate name with alloca.
9278
9279 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9280
9281         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9282
9283 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9284
9285         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9286         overlap check.
9287
9288 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9289
9290         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
9291         (count_type_elements): Delete.
9292         (complete_ctor_at_level_p): Declare.
9293         * expr.c (flexible_array_member_p): New function, split out from...
9294         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
9295         parameter with for_ctor_p.  When for_ctor_p is true, return the
9296         number of elements that should appear in the top-level constructor,
9297         otherwise return an estimate of the number of scalars.
9298         (categorize_ctor_elements): Replace p_must_clear with p_complete.
9299         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
9300         (complete_ctor_at_level_p): New function, borrowing union logic
9301         from old categorize_ctor_elements_1.
9302         (mostly_zeros_p): Return true if the constructor is not complete.
9303         (all_zeros_p): Update call to categorize_ctor_elements.
9304         * gimplify.c (gimplify_init_constructor): Update call to
9305         categorize_ctor_elements.  Don't call count_type_elements.
9306         Unconditionally prevent clearing for variable-sized types,
9307         otherwise rely on categorize_ctor_elements to detect
9308         incomplete initializers.
9309
9310 2011-07-13  Richard Guenther  <rguenther@suse.de>
9311
9312         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9313         the final type is integral.
9314
9315 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9316
9317         * sched-int.h (struct _dep): Add member cost.
9318         (DEP_COST, UNKNOWN_DEP_COST): New macros.
9319         * sched-deps.c (init_dep_1): Initialize DEP_COST.
9320         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9321         (sched_change_pattern): Reset it for dependent insns.
9322
9323 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9324
9325         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9326         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9327         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9328         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9329         (CRT0_S, MCRT0_S): Remove.
9330         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9331         Remove.
9332         (s-crt0): Remove.
9333         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9334
9335 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9336
9337         * cse.c (insert_with_costs): Put semi-colon after empty loop body
9338         on the next line.
9339         * emit-rtl.c (push_to_sequence): Likewise.
9340         * haifa-sched.c (max_issue): Likewise.
9341         * matrix-reorg.c (add_allocation_site): Likewise.
9342         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9343         * reload.c (alternative_allows_const_pool_ref): Likewise.
9344         * sched-rgn.c (rgn_add_block): Likewise.
9345         (rgn_fix_recovery_cfg): Likewise.
9346         * tree.c (attribute_list_contained): Likewise.
9347
9348 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
9349
9350         * config/i386/i386.c: Tidy processor feature bitmasks.
9351         (m_P4_NOCONA): New.
9352
9353 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
9354
9355         PR rtl-opt/49474
9356         * cprop.c (find_implicit_sets): Correct the condition.
9357
9358 2011-07-12  Richard Henderson  <rth@redhat.com>
9359
9360         PR target/49713
9361         * dwarf2out.h (dwarf_frame_regnum): Remove.
9362         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
9363         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
9364         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9365         (execute_dwarf2_frame): Initialize them.
9366         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9367         users of the macros with the variables.
9368         (expand_builtin_dwarf_sp_column): Revert last change.
9369         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
9370         result of DWARF_FRAME_REGNUM into a local variable.
9371
9372 2011-07-12  Richard Henderson  <rth@redhat.com>
9373
9374         PR target/49714
9375         * config/i386/i386.c (x86_output_mi_thunk): Use
9376         machopic_indirect_call_target instead of machopic_indirection_name
9377         directly.
9378
9379 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
9380             Eric Botcazou  <ebotcazou@adacore.com>
9381
9382         * prefix.h: Wrap up in extern "C" block.
9383
9384 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
9385
9386         AMD bdver2 Enablement
9387         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9388         (case ${target}): Add bdver2.
9389         * config/i386/driver-i386.c (host_detect_local_cpu): Let
9390         -march=native recognize bdver2 processors.
9391         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9392         bdver2 def_and_undef
9393         * config/i386/i386.c (struct processor_costs bdver2_cost): New
9394         bdver2 cost table.
9395         (m_BDVER2): New definition.
9396         (m_AMD_MULTIPLE): Includes m_BDVER2.
9397         (initial_ix86_tune_features): Add bdver2 tuning.
9398         (processor_target_table): Add bdver2 entry.
9399         (static const char *const cpu_names): Add bdver2 entry.
9400         (ix86_option_override_internal): Add bdver2 instruction sets.
9401         (ix86_issue_rate): Add bdver2.
9402         (ix86_adjust_cost): Add bdver2.
9403         (has_dispatch): Add bdver2.
9404         * config/i386/i386.h (TARGET_BDVER2): New definition.
9405         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9406         (enum processor_type): Add PROCESSOR_BDVER2.
9407         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9408         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9409         description.
9410
9411 2011-07-12  Richard Henderson  <rth@redhat.com>
9412
9413         PR target/49714
9414         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9415         destination address in memory on some paths.
9416
9417 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
9418
9419         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9420         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9421         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9422         * function.c (locate_and_pad_parm): Take it into account.
9423         * target.def (function_arg_round_boundary): New hook.
9424         * targhooks.c (default_function_arg_round_boundary): New function.
9425         * targhooks.h (default_function_arg_round_boundary): Declare.
9426         * doc/tm.texi: Regenerate.
9427
9428 2011-07-12  Richard Guenther  <rguenther@suse.de>
9429
9430         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9431         Do not perform no-op changes.
9432
9433 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
9434
9435         * config/arm/predicates.md (neon_struct_operand): Make a normal
9436         predicate.
9437         (neon_struct_or_register_operand): New predicate.
9438         * config/arm/neon.md (movmisalign<mode>): Replace predicates
9439         with neon_struct_or_register_operand.
9440         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9441         neon_struct_operand instead of memory_operand.
9442
9443 2011-07-12  Martin Jambor  <mjambor@suse.cz>
9444
9445         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9446         * cgraph.c (cgraph_get_node_or_alias): Removed.
9447         (change_decl_assembler_name): Changed all calls to
9448         cgraph_get_node_or_alias to a call to cgraph_get_node.
9449         (cgraph_make_decl_local): Likewise.
9450         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9451         * varasm.c (default_binds_local_p_1): Likewise.
9452         (decl_binds_to_current_def_p): Likewise.
9453
9454 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
9455
9456         PR tree-optimization/49712
9457         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9458
9459 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
9460
9461         * genautomata.c (add_arc): Return void.  All callers changed.
9462         (make_automaton): Remove dead code.
9463
9464 2011-07-11  Richard Henderson  <rth@redhat.com>
9465
9466         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9467         (DW_FRAME_POINTER_REGNUM): New.
9468         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9469         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9470         (dwf_regno): New.
9471         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9472         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9473         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9474         Use it.
9475         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9476         * dwarf2out.h (dwarf_frame_regnum): New.
9477         (struct cfa_loc): Document the domain of the reg member.
9478
9479 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
9480
9481         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9482         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
9483
9484 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
9485
9486         PR debug/49676
9487         * dwarf2out.c (int_shift_loc_descriptor): New function.
9488         (int_loc_descriptor): If shorter, emit i as
9489         (i >> shift), shift, DW_OP_shl for suitable shift value.
9490         Similarly, try to optimize large negative values using
9491         DW_OP_neg of a positive value if shorter.
9492         (size_of_int_shift_loc_descriptor): New function.
9493         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9494         changes.
9495         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9496         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9497         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9498         is shorter.
9499         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9500         addend as added DW_OP_plus if it is shorter.
9501
9502 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9503
9504         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9505         (DTORS_SECTION_ASM_OP): Define.
9506
9507 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9508
9509         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9510         * config/t-dfprules: Move to ../libgcc/config.
9511         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9512         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9513         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9514         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9515         Likewise.
9516         (i[34567]86-*-cygwin*): Likewise.
9517         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
9518         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9519         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9520         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9521         D64PBIT_FUNCS, D128PBIT_FUNCS.
9522
9523 2011-07-11  Richard Guenther  <rguenther@suse.de>
9524
9525         * tree-vrp.c (simplify_conversion_using_ranges): Manually
9526         translate the source value-range through the conversion chain.
9527
9528 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
9529
9530         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9531
9532 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9533
9534         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9535         a bi-arch compiler defaulting to 31-bit. In this case:
9536         (tmake_file): Add s390/t-linux64.
9537         * doc/install.texi: Add s390-linux to the list of targets supporting
9538         --enable-targets=all.
9539
9540 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9541             Matthias Klose <doko@debian.org>
9542
9543         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9544         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9545         (tm_file): Add mips/linux64.h.
9546         (tmake_file): Add mips/t-linux64.
9547         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9548         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9549         instead of hardcoded mabi=n32.
9550         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9551         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9552         convention.
9553
9554 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9555
9556         * passes.c (init_optimization_passes): Add invariant motion pass
9557         after induction variable optimization.
9558
9559 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
9560
9561         PR target/39633
9562         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9563         offsets 1..5 set cc0 in a usable way.
9564
9565 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
9566
9567         * tree.h (call_expr_arg): Remove.
9568         (call_expr_argp): Likewise.
9569
9570 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
9571
9572         * config/sparc/sparc.md (save_register_window_1): Rename to...
9573         (window_save): ...this.
9574         * config/sparc/sparc.c (emit_save_register_window): Rename to...
9575         (emit_window_save): ...this.
9576         (sparc_expand_prologue): Adjust to above renaming.
9577
9578 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9579
9580         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9581         of movabs for x32.
9582
9583 2011-07-10  Richard Henderson  <rth@redhat.com>
9584
9585         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9586         run final, instead of emitting text directly.
9587
9588 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9589
9590         * config/i386/i386.c (ix86_option_override_internal): Turn on
9591         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
9592         small PIC models for TARGET_X32.
9593
9594 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
9595
9596         PR target/49684
9597         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9598         $(LIBGCC2_CFLAGS).
9599
9600         PR bootstrap/49680
9601         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9602         stray notes and debug insns by using prev_nonnote_nondebug_insn
9603         instead of PREV_INSN.
9604
9605 2011-07-09  Richard Henderson  <rth@redhat.com>
9606
9607         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9608         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9609         * dwarf2out.c: ... here.
9610         (output_all_cfis): Remove.
9611         (dwarf2out_switch_text_section): Use output_cfis directly.
9612         (size_of_locs): Export.
9613         (output_loc_sequence, output_loc_sequence_raw): Export.
9614         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9615         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9616         output_cfa_loc_raw): Move to ...
9617         * dwarfcfi.c: ... here.
9618         * dwarf2out.h: Update decls.
9619
9620 2011-07-09  Richard Henderson  <rth@redhat.com>
9621
9622         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9623         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9624         * dwarf2cfi.c: ... here.
9625         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9626         (DWARF_ROUND, DWARF_CIE_ID): Remove.
9627         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9628         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9629         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9630
9631 2011-07-09  Richard Henderson  <rth@redhat.com>
9632
9633         * dwarf2cfi.c (cie_return_save): New.
9634         (queue_reg_save): Use compare_reg_or_pc.
9635         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9636         (dwarf2out_frame_debug_expr): Likewise.
9637         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9638         (initial_return_save): Likewise.
9639         (execute_dwarf2_frame): Save and restore initial return save from
9640         the cie to the fde.
9641         * config/mips/mips.c (mips_frame_set): Remove special case for
9642         DWARF_FRAME_RETURN_COLUMN.
9643
9644 2011-07-09  Richard Henderson  <rth@redhat.com>
9645
9646         * dwarf2cfi.c (lookup_cfa): Remove.
9647         (execute_dwarf2_frame): Assert queues are empty on entry.
9648         Setup initial cfa directly, not via lookup_cfa.
9649         Don't clear args_size state here.
9650
9651 2011-07-09  Richard Henderson  <rth@redhat.com>
9652
9653         * dwarf2cfi.c (add_cfi_vec): New.
9654         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
9655         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
9656         (execute_dwarf2_frame): Set add_cfi_vec.
9657
9658 2011-07-09  Richard Henderson  <rth@redhat.com>
9659
9660         * defaults.h (ASM_COMMENT_START): Move here...
9661         * dwarf2asm.c: ... from here.
9662         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9663         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9664         * varasm.c: Likewise.
9665
9666 2011-07-09  Richard Henderson  <rth@redhat.com>
9667
9668         PR debug/49686
9669         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9670         (create_cfi_notes): ... do it here instead.
9671
9672 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
9673
9674         PR debug/49676
9675         * dwarf2out.c (size_of_int_loc_descriptor): New function.
9676         (address_of_int_loc_descriptor): Use it.
9677         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9678
9679 2011-07-09  Richard Henderson  <rth@redhat.com>
9680
9681         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9682         (prologue, epilogue): New.
9683         (return, *rts): New.
9684         (blockage, setd, seti): New.
9685         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9686         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9687         (pdp11_saved_regno): New.
9688         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9689         generate rtl instead of text.
9690         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9691         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
9692         * config/pdp11/pdp11-protos.h: Update.
9693
9694 2011-07-09  Richard Henderson  <rth@redhat.com>
9695
9696         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9697         try to insert an rtl prologue here.
9698         (rs6000_output_function_epilogue): Similarly.
9699         * config/rs6000/rs6000.md (prologue): Emit a barrier to
9700         satisfy !TARGET_SCHED_PROLOG.
9701         (epilogue, sibcall_epilogue): Likewise.
9702
9703 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
9704
9705         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9706         (FP_REG_P): Delete.
9707         (IN_OR_GLOBAL_P): Likewise.
9708
9709 2011-07-08  Jason Merrill  <jason@redhat.com>
9710
9711         PR c++/45437
9712         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9713         compound assignment.
9714
9715         * cgraph.c (cgraph_add_to_same_comdat_group): New.
9716         * cgraph.h: Declare it.
9717         * ipa.c (function_and_variable_visibility): Make sure thunks
9718         have the right visibility.
9719
9720 2011-07-08  Richard Henderson  <rth@redhat.com>
9721
9722         PR bootstrap/49680
9723         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9724         any tablejump vector.
9725
9726         PR bootstrap/49680
9727         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9728         end of the prologue.
9729
9730 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
9731
9732         PR target/49621
9733         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9734         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9735         * config/rs6000/vector.md (vector_select_<mode>,
9736         vector_select_<mode>_uns): Change second operand of NE to
9737         CONST0_RTX (<MODE>mode) instead of const0_rtx.
9738         * config/rs6000/altivec.md (*altivec_vsel<mode>,
9739         *altivec_vsel<mode>_uns): Expect second operand of NE to be
9740         zero_constant of the corresponding vector mode.
9741         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9742         Likewise.
9743
9744 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
9745
9746         * graphite-dependences.c (build_alias_set_powerset): Remove
9747         continue from loop, add one more assert.
9748
9749 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9750
9751         PR target/46779
9752         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9753         In particular, allow 8-bit values in r28 and r29.
9754         (avr_hard_regno_scratch_ok): Disallow any register that might be
9755         part of the frame pointer.
9756         (avr_hard_regno_rename_ok): Same.
9757         (avr_legitimate_address_p): Don't allow SUBREGs.
9758
9759 2011-07-08  Julian Brown  <julian@codesourcery.com>
9760
9761         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9762         big-endian mode.
9763         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9764         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9765         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9766         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9767         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9768         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9769         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9770         registers in big-endian mode.
9771
9772 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9773
9774         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9775         in terms of another.
9776         (write_attr_value): Write a cast if necessary.
9777
9778         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9779         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9780         (REG_WORDS_BIG_ENDIAN): Document.
9781         * doc/tm.texi: Regenerate.
9782         * reload.c (operands_match_p): Take it into account.
9783         (reload_adjust_reg_for_mode): Likewise.
9784         * rtlanal.c (subreg_get_info): Likewise.
9785
9786 2011-07-08  Richard Guenther  <rguenther@suse.de>
9787
9788         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9789         folding.
9790
9791 2011-07-08  Kai Tietz  <ktietz@redhat.com>
9792
9793         * fold-const.c (fold_truth_andor): Factored out truth_andor
9794         label from fold_binary as function.
9795         (fold_binary_loc): Replace truth_andor lable
9796         by function fold_truth_andor.
9797
9798 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
9799
9800         PR middle-end/49519
9801         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9802         check if address is stored in register. If so - give up.
9803         (check_sibcall_argument_overlap_1): Do not perform check of
9804         overlapping when it is call to address.
9805
9806 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9807
9808         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9809         of magic '31'.
9810
9811 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9812
9813         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9814         GET_MODE_BITSIZE where appropriate.
9815         (widen_leading, expand_parity, expand_ctz, expand_ffs,
9816         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9817         expand_float, expand_fix): Likewise.
9818         * expr.c (convert_move, convert_modes, expand_expr_real_2,
9819         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9820         * stor-layout.c (get_mode_bounds): Likewise.
9821         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9822         Likewise.
9823         * convert.c (convert_to_integer): Likewise.
9824         * expmed.c (expand_shift_1): Likewise.
9825
9826         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9827         a bitsize.
9828
9829         * optabs.c (expand_binop): Tighten conditions for doubleword
9830         expansions.
9831         (widen_bswap): Assert that mode bitsize and precision are the same.
9832         * stor-layout.c (get_best_mode): Skip modes that have lower
9833         precision than bitsize.
9834         * recog.c (simplify_while_replacing): Assert that bitsize and
9835         precision are the same.
9836
9837 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9838
9839         * Makefile.in (LIBGCOV): Remove.
9840         (libgcc.mvars): Remove LIBGCOV.
9841         * libgov.c: Move to ../libgcc.
9842
9843 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9844
9845         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9846
9847 2011-07-08  Martin Jambor  <mjambor@suse.cz>
9848
9849         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9850         is too big for total scalarization.
9851
9852 2011-07-07  Richard Henderson  <rth@redhat.com>
9853
9854         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9855         (DBX_DEBUGGING_INFO): Undef.
9856
9857 2011-07-07  Richard Henderson  <rth@redhat.com>
9858
9859         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
9860         Handle some opcodes specially for debugging.
9861         * print-rtl.c: Include dwarf2out.h
9862         (print_rtx): Handle NOTE_INSN_CFI.
9863         * Makefile.in (print-rtl.o): Update.
9864
9865 2011-07-07  Richard Henderson  <rth@redhat.com>
9866
9867         * tree-pass.h (pass_dwarf2_frame): Declare.
9868         * passes.c (init_optimization_passes): Add it.
9869         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9870         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9871         make static, do not call add_cfis_to_fde.
9872         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9873         dwarf2out_frame_init): Merge into...
9874         (execute_dwarf2_frame): ... here.  New function.
9875         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
9876         saved_do_cfi_asm to a tri-state variable.
9877         (gate_dwarf2_frame, pass_dwarf2_frame): New.
9878         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9879         if it has yet to be done.  Don't call dwarf2cfi_function_init.
9880         * dwarf2out.h, debug.h: Update decls.
9881         * final.c (final_start_function): Don't call
9882         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9883         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9884         * toplev.c (lang_dependent_init): Likewise.
9885
9886 2011-07-07  Richard Henderson  <rth@redhat.com>
9887
9888         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9889         FDE_TABLE_INCREMENT): Replace with...
9890         (fde_vec): ... this, a new vector.
9891         (current_fde): Remove.  Replace all users with cfun->fde.
9892         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9893         (size_of_aranges, dwarf2out_finish): Likewise.
9894         (dwarf2out_alloc_current_fde): Break out from ...
9895         (dwarf2out_begin_prologue): ... here.
9896         (dwarf2out_frame_init): Remove.
9897         * dwarf2cfi.c: Update all users of current_fde.
9898         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9899         * dwarf2out.h: Update decls.
9900         (dw_fde_node): Add fde_index member.
9901         * function.h (struct function): Add fde member.
9902
9903 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9904             Richard Henderson  <rth@redhat.com>
9905
9906         * dwarf2cfi.c (add_cfi): Remove.
9907         (dwarf2out_cfi_label): Remove force argument.  Only generate the
9908         label name.
9909         (add_fde_cfi): Simplify the different code paths.
9910         (add_cie_cfi): New.
9911         (old_cfa, old_cfa_remember): New.
9912         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9913         (last_reg_save_label): Remove.
9914         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9915         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9916         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9917         dwarf2out_frame_debug_cfa_expression,
9918         dwarf2out_frame_debug_cfa_restore,
9919         dwarf2out_frame_debug_cfa_window_save,
9920         dwarf2out_frame_debug_expr): Remove label parameter.
9921         (cfi_label_required_p, add_cfis_to_fde): New.
9922         (dwarf2out_frame_debug_after_prologue): New.
9923         (dwarf2cfi_frame_init): Initialize old_cfa.
9924         (dwarf2out_frame_debug_restore_state): Likewise.
9925         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9926         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9927         * final.c (final_start_function): Call
9928         dwarf2out_frame_debug_after_prologue.
9929
9930 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9931             Richard Henderson  <rth@redhat.com>
9932
9933         * dwarf2cfi.c (cfi_insn): New.
9934         (dwarf2out_cfi_label): Don't emit cfi label here.
9935         (add_fde_cfi): Create a NOTE_INSN_CFI.
9936         (dwarf2out_frame_debug): Setup cfi_insn.
9937         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9938         (dwarf2out_cfi_begin_epilogue): Make static.
9939         (dwarf2out_frame_debug_restore_state): Make static.
9940         * dwarf2out.c (output_cfi_directive): Make static.
9941         (dwarf2out_emit_cfi): New.
9942         * dwarf2out.h: Update.
9943         * final.c (final): Remove CFI notes.
9944         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9945         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9946         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9947         * insn-notes.def (NOTE_INSN_CFI): New.
9948         (NOTE_INSN_CFI_LABEL): New.
9949         * rtl.h (union rtunion_def): Add rt_cfi member.
9950         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9951
9952 2011-07-07  Richard Henderson  <rth@redhat.com>
9953
9954         * dwarf2cfi.c: New file.
9955         * Makefile.in (OBJS): Add it.
9956         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9957         * gengtype.c (open_base_files): Include dwarf2out.h.
9958         * coretypes.h (enum var_init_status): Move from ...
9959         * rtl.h: ... here.
9960         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9961         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9962         expand_builtin_dwarf_sp_column, init_return_column_size,
9963         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9964         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9965         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9966         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9967         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9968         compute_barrier_args_size, dwarf2out_args_size,
9969         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9970         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9971         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9972         queue_reg_save, dwarf2out_flush_queued_reg_saves,
9973         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9974         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9975         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9976         dwarf2out_frame_debug_cfa_expression,
9977         dwarf2out_frame_debug_cfa_restore,
9978         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9979         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9980         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9981         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9982         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9983         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9984         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9985         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9986         dw_loc_descr_node): Move to dwarf2out.h.
9987         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9988         mem_loc_descriptor): Export.
9989         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
9990         (dwarf2out_frame_init): Extract CIE generation code to
9991         dwarf2cfi_frame_init.
9992
9993 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9994
9995         PR target/49660
9996         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9997         MASK_V8PLUS, remove commented out flag and reorder.
9998
9999 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10000
10001         PR c/49644
10002         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
10003         one non-complex and one complex argument, call c_save_expr on both
10004         operands.
10005
10006 2011-07-07  Martin Jambor  <mjambor@suse.cz>
10007
10008         PR middle-end/49495
10009         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
10010         (verify_cgraph_node): Some functinality moved to
10011         verify_edge_corresponds_to_fndecl, call it.
10012
10013 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10014
10015         * config.gcc (*local*): Remove.
10016         * doc/install-old.texi: Don't mention local configurations.
10017
10018 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10019
10020         PR debug/49522
10021         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
10022         referencing debug insns that have been reset.
10023         (dead_debug_insert_before): Don't assert reg is non-NULL,
10024         instead return immediately if it is NULL.
10025
10026 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
10029
10030 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10031
10032         * hw-doloop.c: New file.
10033         * hw-doloop.h: New file.
10034         * Makefile.in (OBJS): Add hw-doloop.o.
10035         (hw-doloop.o): New rule.
10036         ($(obj_out_file)): Add hw-doloop.h dependency.
10037         * config/bfin/bfin.c: Include "hw-doloop.h".
10038         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
10039         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
10040         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
10041         type changed to hwloop_info.  Return bool, true if the loop was
10042         successfully optimized.  Remove code that was moved to
10043         hw-doloop.c, and adjust other parts.
10044         (hwloop_fail): New static function, containing parts that used
10045         to be in bfin_optimize_loop.
10046         (bfin_discover_loop, bfin_discover_loops, free_loops,
10047         bfin_reorder_loops): Remove.
10048         (hwloop_pattern_reg): New static function.
10049         (bfin_doloop_hooks): New variable.
10050         (bfin_reorg_loops): Remove most code, call reorg_loops.
10051         * config/bfin/bfin.md (doloop_end splitter): Also enable if
10052         loop counter is a memory_operand.
10053
10054 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10055
10056         * config.gcc: Support --with-multilib-list for x86 Linux targets.
10057
10058         * configure.ac: Mention x86-64 for --with-multilib-list.
10059         * configure: Regenerated.
10060
10061         * config/i386/gnu-user64.h (SPEC_64): Support x32.
10062         (SPEC_32): Likewise.
10063         (ASM_SPEC): Likewise.
10064         (LINK_SPEC): Likewise.
10065         (TARGET_THREAD_SSP_OFFSET): Likewise.
10066         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
10067         (SPEC_X32): New.
10068
10069         * config/i386/i386.h (TARGET_X32): New.
10070         (TARGET_LP64): New.
10071         (LONG_TYPE_SIZE): Likewise.
10072         (POINTER_SIZE): Likewise.
10073         (POINTERS_EXTEND_UNSIGNED): Likewise.
10074         (OPT_ARCH64): Support x32.
10075         (OPT_ARCH32): Likewise.
10076
10077         * config/i386/i386.opt (mx32): New.
10078
10079         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
10080         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10081         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
10082         (GLIBC_DYNAMIC_LINKERX32): Likewise.
10083
10084         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
10085         (BIONIC_DYNAMIC_LINKERX32): Likewise.
10086         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
10087
10088         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
10089
10090         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
10091
10092         * doc/invoke.texi: Document -mx32.
10093
10094 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10095
10096         * doc/invoke.texi (mwords-little-endian): Deprecate.
10097         * config/arm/arm.opt (mwords-little-endian): Likewise.
10098         * config/arm/arm.c (arm_option_override): Warn about the deprecation
10099         of -mwords-little-endian.
10100
10101 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
10102
10103         * reload1.c (choose_reload_regs): Use mode sizes to check whether
10104         an old reload register completely defines the required value.
10105
10106 2011-07-07  Richard Guenther  <rguenther@suse.de>
10107
10108         * fold-const.c (fold_unary_loc): Do not strip sign-changes
10109         for NEGATE_EXPR.
10110
10111 2011-07-07  Richard Guenther  <rguenther@suse.de>
10112
10113         * tree-vrp.c (simplify_conversion_using_ranges): New function.
10114         (simplify_stmt_using_ranges): Call it.
10115
10116 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10117
10118         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10119         (lookup_logical_inverted_value): Likewise.
10120         (simplify_bitwise_binary_1): Likewise.
10121         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10122
10123 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10124
10125         * gcc.c (%[Spec]): Don't document.
10126         (struct spec_list): Update comment.
10127         (do_spec_1): Don't handle %[Spec].
10128         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10129
10130 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10131
10132         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10133         default based on TARGET_ASM_NAMED_SECTION.
10134         * common/common-target.def (have_named_sections): Default to true.
10135         * common/config/default-common.c: Don't include tm.h.
10136         * common/config/picochip/picochip-common.c
10137         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10138         * common/config/m32c/m32c-common.c: Remove.
10139         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10140         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10141         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10142         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10143         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10144         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10145         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10146
10147 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10148
10149         PR middle-end/49640
10150         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10151         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10152
10153 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10154
10155         PR libmudflap/49550
10156         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10157
10158 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10159
10160         PR target/39150
10161         * configure.ac (gcc_cv_as_hidden): Also accept
10162         x86_64-*-solaris2.1[0-9]*.
10163         (gcc_cv_as_cfi_directive): Likewise.
10164         (gcc_cv_as_comdat_group_group): Likewise.
10165         (set_have_as_tls): Likewise.
10166         * configure: Regenerate.
10167         * config.gcc (i[34567]86-*-solaris2*): Also handle
10168         x86_64-*-solaris2.1[0-9]*.
10169         * config.host (i[34567]86-*-solaris2*): Likewise.
10170         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10171         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10172         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10173         (TARGET_LD_EMULATION): Use it.
10174         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10175         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10176         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10177         (ASM_CPU64_DEFAULT_SPEC): Define.
10178         (ASM_CPU_SPEC): Use %(asm_cpu_default).
10179         (ASM_SPEC): Redefine.
10180         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10181         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10182         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10183         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10184         configuration.
10185         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10186
10187 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10188
10189         * config/sol2.h (ASM_SPEC): Split into ...
10190         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10191         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10192         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10193         (ASM_SPEC): Use ASM_SPEC_BASE.
10194         * config/sparc/sol2.h (ASM_SPEC): Redefine.
10195
10196 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
10197
10198         * config/avr/avr.md (*reload_insi): Change predicate #1 to
10199         const_int_operand.  Ditto for peep2 producing this insn.
10200         Add argument to output_reload_insisf call.
10201         (*movsi,*movsf): Add argument to output_movsisf call.
10202         (*reload_insf): New insn and new peep2 to produce it.
10203         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10204         (output_reload_insisf): Change prototype.
10205         * config/avr/avr.c (avr_asm_len): New function.
10206         (output_reload_insisf): Rewrite.
10207         (output_movsisf): Change prototype.  output_reload_insisf for
10208         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
10209         (adjust_insn_length): Add argument to output_movsisf and
10210         output_reload_insisf call.
10211
10212 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10213
10214         * emit-rtl.c (paradoxical_subreg_p): New function.
10215         * rtl.h (paradoxical_subreg_p): Declare.
10216         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10217         apply_distributive_law, simplify_comparison, simplify_set): Use it.
10218         * cse.c (record_jump_cond, cse_insn): Likewise.
10219         * expr.c (force_operand): Likewise.
10220         * rtlanal.c (num_sign_bit_copies1): Likewise.
10221         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10222         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10223         (push_reload): Use precision to check for paradoxical subregs.
10224         * expmed.c (extract_bit_field_1): Likewise.
10225
10226         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10227         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10228         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10229         simplify_set, simplify_logical, expand_compound_operation,
10230         make_extraction, force_to_mode, if_then_else_cond, extended_count,
10231         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10232         record_value_for_reg): Likewise.
10233         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10234         * simplify-rtx. c (simplify_unary_operation_1,
10235         simplify_binary_operation_1, simplify_const_relational_operation):
10236         Likewise.
10237
10238         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10239         instead of GET_MODE_BITSIZE where appropriate.
10240         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10241         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10242         init_num_sign_bit_copies_in_rep): Likewise.
10243         * cse.c (fold_rtx, cse_insn): Likewise.
10244         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10245         * simplify-rtx.c (simplify_unary_operation_1,
10246         simplify_const_unary_operation, simplify_binary_operation_1,
10247         simplify_const_binary_operation, simplify_ternary_operation,
10248         simplify_const_relational_operation, simplify_subreg): Likewise.
10249         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10250         simplify_if_then_else, simplify_set, expand_compound_operation,
10251         expand_field_assignment, make_extraction, if_then_else_cond,
10252         make_compound_operation, force_to_mode, make_field_assignment,
10253         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10254         extended_count, try_widen_shift_mode, simplify_shift_const_1,
10255         simplify_comparison, record_promoted_value, simplify_compare_const,
10256         record_dead_and_set_regs_1): Likewise.
10257
10258         Revert:
10259         * simplify-rtx.c (simplify_const_binary_operation): Use the
10260         shift_truncation_mask hook instead of performing modulo by width.
10261         Compare against mode precision, not bitsize.
10262         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10263         Use shift_truncation_mask instead of constructing the value manually.
10264
10265 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10266
10267         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10268         declaration.
10269         (rs6000_save_toc_in_prologue_p): Ditto.
10270
10271         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10272         up the static chain (r11) during indirect function calls.
10273         (-msave-toc-indirect): New undocumented debug switch.
10274
10275         * config/rs6000/rs6000.c (struct machine_function): Add
10276         save_toc_in_prologue field to note whether the prologue needs to
10277         save the TOC value in the reserved stack location.
10278         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
10279         to save the TOC in the prologue, do so.
10280         (rs6000_trampoline_init): Don't allow creating AIX style
10281         trampolines if -mno-r11 is in effect.
10282         (rs6000_call_indirect_aix): New function to create AIX style
10283         indirect calls, adding support for -mno-r11 to suppress loading
10284         the static chain, and saving the TOC in the prologue instead of
10285         the call body.
10286         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10287         TOC in the prologue.
10288
10289         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10290         register numbers.
10291         (TOC_REGNUM): Ditto.
10292         (STATIC_CHAIN_REGNUM): Ditto.
10293         (ARG_POINTER_REGNUM): Ditto.
10294         (SFP_REGNO): Delete, unused.
10295         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10296         function descriptor offsets.
10297         (TOC_SAVE_OFFSET_64BIT): Ditto.
10298         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10299         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10300         (AIX_FUNC_DESC_SC_32BIT): Ditto.
10301         (AIX_FUNC_DESC_SC_64BIT): Ditto.
10302         (ptrload): New mode attribute for the appropriate load of a pointer.
10303         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10304         (call_indirect_aix64): Ditto.
10305         (call_value_indirect_aix32): Ditto.
10306         (call_value_indirect_aix64): Ditto.
10307         (call_indirect_nonlocal_aix32_internal): Ditto.
10308         (call_indirect_nonlocal_aix32): Ditto.
10309         (call_indirect_nonlocal_aix64_internal): Ditto.
10310         (call_indirect_nonlocal_aix64): Ditto.
10311         (call): Rewrite AIX indirect function calls.  Add support for
10312         eliminating the static chain, and for moving the save of the TOC
10313         to the function prologue.
10314         (call_value): Ditto.
10315         (call_indirect_aix<ptrsize>): Ditto.
10316         (call_indirect_aix<ptrsize>_internal): Ditto.
10317         (call_indirect_aix<ptrsize>_internal2): Ditto.
10318         (call_indirect_aix<ptrsize>_nor11): Ditto.
10319         (call_value_indirect_aix<ptrsize>): Ditto.
10320         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10321         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10322         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10323         (call_nonlocal_aix32): Relocate in the rs6000.md file.
10324         (call_nonlocal_aix64): Ditto.
10325
10326         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10327         -mno-r11 documentation.
10328
10329 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10330
10331         PR other/49658
10332         * doc/extend.texi (Compound Literals): Fix typo.
10333
10334 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
10335
10336         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10337
10338 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
10339
10340         * configure.ac (plugin-version.h): Generate
10341         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10342         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10343         macros.
10344
10345         * configure: Regenerate.
10346
10347         * doc/plugins.texi (Building GCC plugins): Mention
10348         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10349
10350 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10351
10352         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10353         * combine.c (make_extraction, gen_lowpart_or_truncate,
10354         apply_distributive_law, simplify_comparison,
10355         reg_truncated_to_mode, record_truncated_value): Use it.
10356         * cse.c (notreg_cost): Likewise.
10357         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10358         * expr.c (convert_move, convert_modes): Likewise.
10359         * optabs.c (expand_binop, expand_unop): Likewise.
10360         * postreload.c (move2add_last_label): Likewise.
10361         * regmove.c (optimize_reg_copy_3): Likewise.
10362         * rtlhooks.c (gen_lowpart_general): Likewise.
10363         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10364
10365 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
10366
10367         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10368
10369 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10370
10371         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10372         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10373         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10374         (simplify_const_unary_operation, simplify_binary_operation_1,
10375         simplify_const_binary_operation, simplify_const_relational_operation):
10376         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
10377         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10378         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10379         simplify_shift_const_1, simplify_comparison): Likewise.
10380         * expr.c (convert_modes): Likewise.
10381         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10382         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10383         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10384
10385         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10386
10387 2011-07-06  Richard Guenther  <rguenther@suse.de>
10388
10389         PR tree-optimization/49645
10390         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10391         register variables.
10392         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10393         in type qualification here ...
10394         (copy_reference_ops_from_ref): ... not here.
10395         (vn_reference_lookup_3): ... or here.
10396         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10397         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10398
10399 2011-07-06  Ian Lance Taylor  <iant@google.com>
10400
10401         * doc/install.texi (Configuration): It's
10402         --enable-gnu-indirect-function, not --enable-indirect-function.
10403
10404 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10405
10406         * simplify-rtx.c (simplify_const_binary_operation): Use the
10407         shift_truncation_mask hook instead of performing modulo by width.
10408         Compare against mode precision, not bitsize.
10409         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10410         Use shift_truncation_mask instead of constructing the value manually.
10411
10412 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10413
10414         PR middle-end/47383
10415         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10416         address computation and convert to address_mode if needed.
10417
10418 2011-07-06  Richard Guenther  <rguenther@suse.de>
10419
10420         * tree.c (build_common_tree_nodes_2): Merge with
10421         build_common_tree_nodes.
10422         * tree.h (build_common_tree_nodes): Adjust prototype.
10423         (build_common_tree_nodes_2): Remove.
10424         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10425         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10426
10427 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
10428
10429         PR tree-optimization/49618
10430         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10431         t recurse on the decl.
10432         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10433         return true if expr isn't known to be defined in current
10434         TU or some other LTO partition.
10435
10436 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10437
10438         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10439         override CASE_VALUES_THRESHOLD.
10440
10441         * stmt.c (toplevel): Include params.h.
10442         (case_values_threshold): Use the --param case-values-threshold
10443         value if non-zero, otherwise use machine dependent value.
10444         (expand_case): Use case_values_threshold.
10445
10446         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10447
10448         * doc/invoke.texi (--param case-values-threshold): Document.
10449
10450 2011-07-05  Richard Henderson  <rth@redhat.com>
10451
10452         * dwarf2out.c (dwarf2out_cfi_label): Make static.
10453         (dwarf2out_flush_queued_reg_saves): Make static.
10454         (dwarf2out_reg_save): Remove.
10455         (dwarf2out_return_save): Remove.
10456         (dwarf2out_return_reg): Remove.
10457         (dwarf2out_reg_save_reg): Remove.
10458         (dwarf2out_def_cfa): Merge into ...
10459         (dwarf2out_frame_init): ... here.
10460         * dwarf2out.h, tree.h: Remove declarations as necessary.
10461
10462 2011-07-05  Richard Henderson  <rth@redhat.com>
10463
10464         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10465         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10466         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10467         the alloc insn.
10468
10469         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10470         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10471         (process_epilogue): Don't call dwarf2out_def_cfa.
10472
10473         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10474         indicate the return address save.
10475         (process_cfa_register): Likewise.
10476
10477         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10478         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10479
10480         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10481         for ar.pfs save at alloc insn.
10482
10483 2011-07-05  Richard Henderson  <rth@redhat.com>
10484
10485         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10486         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10487         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10488         stack pointer save.
10489         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10490         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
10491         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10492         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10493
10494 2011-07-05  Richard Henderson  <rth@redhat.com>
10495
10496         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
10497         VUNSPEC_* constants here instead of via define_constants.
10498         (VUNSPEC_PEM): New constant.
10499         (procedure_entry_mask): New insn.
10500         (prologue): New expander.
10501         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10502         (vax_expand_prologue): Rename from vax_output_function_prologue;
10503         emit rtl instead of text.
10504         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10505         (print_operand): Add 'x' prefix.
10506
10507 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10508
10509         PR middle-end/47715
10510         * calls.c (precompute_register_parameters): Promote the function
10511         argument before checking non-legitimate constant.
10512
10513 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10514
10515         PR tree-optimization/47654
10516         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10517         (lst_do_strip_mine_loop): Return an int.
10518         (lst_do_strip_mine): Same.
10519         (scop_do_strip_mine): Same.
10520         (scop_do_block): Loop blocking should strip-mine at least two loops.
10521         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10522         (scop_do_interchange): Same.
10523         * graphite-poly.h (scop_do_interchange): Update declaration.
10524         (scop_do_strip_mine): Same.
10525
10526 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10527
10528         * graphite-clast-to-gimple.c (precision_for_value): Removed.
10529         (precision_for_interval): Removed.
10530         (gcc_type_for_interval): Use mpz_sizeinbase.
10531
10532 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10533
10534         * graphite-ppl.h (value_max): Correct computation of max.
10535
10536 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10537
10538         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10539
10540 2011-07-05  Richard Guenther  <rguenther@suse.de>
10541
10542         * c-decl.c (c_init_decl_processing): Defer building common
10543         tree nodes to c_common_nodes_and_builtins.
10544
10545 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
10546
10547         PR tree-optimization/49580
10548         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10549         the loop's number of iterations.
10550         * tree-parloops.c (transform_to_exit_first_loop): Add the
10551         handling of the loop's number of iterations before the call
10552         to gimple_duplicate_sese_tail.
10553         Insert the stmt caclculating the new rhs of the loop's
10554         condition stmt to the preheader instead of iters_bb.
10555
10556 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10557
10558         PR rtl-optimization/47449
10559         * fwprop.c (forward_propagate_subreg): Don't propagate hard
10560         register nor zero/sign extended hard register.
10561
10562 2011-07-05  Richard Guenther  <rguenther@suse.de>
10563
10564         PR tree-optimization/49518
10565         PR tree-optimization/49628
10566         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10567         irrelevant and invariant data-references.
10568         (vect_analyze_data_ref_access): For invariant loads clear the
10569         group association.
10570
10571 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
10572
10573         PR rtl-optimization/49619
10574         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10575         pass VOIDmode as op0_mode to recursive call, and return temp even
10576         when different from tor, just if it is not IOR of the original
10577         PLUS arguments.
10578
10579         PR rtl-optimization/49472
10580         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10581         negating MULT, negate the second operand instead of first.
10582         (simplify_binary_operation_1) <case MULT>: If one operand is
10583         a NEG and the other is MULT, don't attempt to optimize by negation
10584         of the MULT operand if it only moves the NEG operation around.
10585
10586         PR debug/49602
10587         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10588         get_current_def return value if it can't be trusted to be
10589         the current value of the variable in the current bb.
10590
10591 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
10592
10593         PR target/49600
10594         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10595         general register to memory for !TARGET_INTER_UNIT_MOVES.
10596
10597 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10598
10599         PR target/44643
10600         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10601         instead of TREE_READONLY.
10602
10603 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10604
10605         * doc/extend.texi (AVR Built-in Functions): Update documentation
10606         of __builtin_avr_fmul*.
10607         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10608         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10609         * config/avr/avr.md (fmul): Rename to fmul_insn.
10610         (fmuls): Rename to fmuls_insn.
10611         (fmulsu): Rename to fmulsu_insn.
10612         (fmul,fmuls,fmulsu): New expander.
10613         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10614         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10615         * config/avr/libgcc.S (__fmul): New function.
10616         (__fmuls): New function.
10617         (__fmulsu,__fmulsu_exit): New function.
10618
10619 2011-07-04  Richard Guenther  <rguenther@suse.de>
10620
10621         PR tree-optimization/49615
10622         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10623         basic-block index check.
10624
10625 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10626
10627         * longlong.h (count_leading_zeros, count_trailing_zeros,
10628         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10629         resp. 64.
10630
10631 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
10632
10633         PR tree-optimization/49610
10634         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10635         a basic block.
10636
10637 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
10638             Olivier Hainque  <hainque@adacore.com>
10639             Nicolas Setton  <setton@adacore.com>
10640
10641         * tree.h (TYPE_ARTIFICIAL): New flag.
10642         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10643         the DIE of the type if it is artificial.
10644         (gen_array_type_die): Likewise.
10645         (gen_enumeration_type_die): Likewise.
10646         (gen_struct_or_union_type_die): Likewise.
10647         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10648         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10649
10650 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10651
10652         * tree-object-size.c (pass_through_call): Handle
10653         BUILT_IN_ASSUME_ALIGNED.
10654
10655 2011-07-01  Martin Jambor  <mjambor@suse.cz>
10656
10657         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10658
10659 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
10660
10661         PR middle-end/48016
10662         * explow.c (update_nonlocal_goto_save_area): Use proper mode
10663         for stack save area.
10664         * function.c (expand_function_start): Likewise.
10665
10666 2011-07-01  Richard Guenther  <rguenther@suse.de>
10667
10668         PR middle-end/49596
10669         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10670         may have unknown refs.
10671
10672 2011-07-01  Kai Tietz  <ktietz@redhat.com>
10673
10674         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10675
10676 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10677
10678         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10679         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10680         (Specific, mips-sgi-irix6): Likewise.
10681
10682 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10683
10684         PR libmudflap/49549
10685         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10686
10687 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10688
10689         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10690         [idx]= and [idx1 ... idx2]= before initializers if needed for
10691         array initializers.
10692
10693 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
10694
10695         * config.gcc (score-*-elf): Remove score7.o.
10696         * config/score/t-score-elf: Likewise.
10697         * config/score/score.c: Merge score7 to score.c and
10698         remove forwarding functions.
10699         * config/score/score7.c: Deleted.
10700         * config/score/score7.h: Deleted.
10701
10702 2011-07-01  Richard Guenther  <rguenther@suse.de>
10703
10704         PR tree-optimization/49603
10705         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10706
10707 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10708
10709         * tree-sra.c (struct access): Rename total_scalarization to
10710         grp_total_scalarization
10711         (completely_scalarize_var): New function.
10712         (sort_and_splice_var_accesses): Set total_scalarization in the
10713         representative access.
10714         (analyze_access_subtree): Propagate total scalarization accross the
10715         tree, no holes in totally scalarized trees, simplify coverage
10716         computation.
10717         (analyze_all_variable_accesses): Call completely_scalarize_var instead
10718         of completely_scalarize_record.
10719
10720 2011-06-30  Richard Henderson  <rth@redhat.com>
10721
10722         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10723         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10724         * config/i386/i386.c: Don't include dwarf2out.h.
10725         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10726         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10727         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
10728         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10729         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10730
10731 2011-06-30  Richard Henderson  <rth@redhat.com>
10732
10733         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10734         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10735         * final.c (final_scan_insn): Look for it, and invoke
10736         dwarf2out_frame_debug before the insn if found.
10737
10738 2011-06-30  Richard Henderson  <rth@redhat.com>
10739
10740         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10741         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10742
10743 2011-06-30  Richard Henderson  <rth@redhat.com>
10744
10745         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10746         Define a vector of this type.
10747         (regs_saved_in_regs): Use a VEC.
10748         (num_regs_saved_in_regs): Remove.
10749         (compare_reg_or_pc): New.
10750         (record_reg_saved_in_reg): Split out from...
10751         (dwarf2out_flush_queued_reg_saves): ... here.
10752         (clobbers_queued_reg_save): Update for VEC.
10753         (reg_saved_in): Likewise.
10754         (dwarf2out_frame_debug_init): Likewise.
10755         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10756         (dwarf2out_frame_debug_cfa_register): Likewise.
10757
10758 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10759
10760         PR tree-optimization/49572
10761         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10762         type of the RHS instead of that of the LHS for the expression type.
10763
10764 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10765
10766         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10767         unconditionally.
10768
10769 2011-06-30  Richard Guenther  <rguenther@suse.de>
10770
10771         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10772         * tree-ssa-structalias.c (create_variable_info_for): Do not
10773         add initial constraints for non-var-decls.  Properly handle
10774         globals in other ltrans partitions.
10775         (intra_create_variable_infos): Manually create constraints for
10776         the fake no-alias parameter.
10777         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10778         and assert there are no clones.
10779
10780 2011-06-30  Richard Guenther  <rguenther@suse.de>
10781
10782         PR tree-optimization/46787
10783         * tree-data-ref.c (dr_address_invariant_p): Remove.
10784         (find_data_references_in_stmt): Invariant accesses are ok now.
10785         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10786         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10787         invariant loads.
10788
10789 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10790
10791         PR tree-optimization/49094
10792         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10793         (build_accesses_from_assign): Use it.
10794
10795 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10796
10797         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10798         handling of BUILT_IN_ASSUME_ALIGNED.
10799
10800         PR debug/49364
10801         * dwarf2out.c (output_abbrev_section): Don't return early
10802         if abbrev_die_table_in_use is 1.
10803         (dwarf2out_finish): Instead don't call output_abbrev_section
10804         nor emit abbrev_section_label in that case.
10805
10806 2011-06-30  Nick Clifton  <nickc@redhat.com>
10807
10808         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10809         for the V850E.
10810
10811 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10812
10813         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10814         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10815
10816 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
10817
10818         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10819         both pattern and original statements if necessary.
10820         (vect_transform_loop): Likewise.
10821         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10822         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10823         Mark the pattern statement only if the original statement doesn't
10824         have its own uses.
10825         (process_use): Call vect_mark_relevant with additional parameter.
10826         (vect_mark_stmts_to_be_vectorized): Likewise.
10827         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10828         (vect_analyze_stmt): Handle both pattern and original statements
10829         if necessary.
10830         (vect_transform_stmt): Don't store vectorized pattern statement
10831         in the original statement.
10832         (vect_is_simple_use_1): Use related pattern statement only if the
10833         original statement is irrelevant.
10834         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10835
10836 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
10837
10838         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10839         option.
10840         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10841         entry.
10842         (TARGET_AVX128_OPTIMAL): New definition.
10843         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10844         X86_TUNE_AVX128_OPTIMAL entry.
10845         (ix86_option_override_internal): Enable the generation
10846         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10847         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10848         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10849
10850 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10851
10852         PR tree-optimization/49539
10853         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10854         names by means of stmt_references_abnormal_ssa_name.
10855         (associate_plusminus): Call can_propagate_from before propagating
10856         from definition statements.
10857         (ssa_forward_propagate_and_combine): Remove superfluous newline.
10858
10859 2011-06-29  Richard Guenther  <rguenther@suse.de>
10860
10861         * doc/invoke.texi: Document -scev dump modifier.
10862         * tree-pass.h (TDF_SCEV): New dump flag.
10863         * tree-dump.c (dump_option_value_in): Add scev.
10864         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10865         * tree-scalar-evolution.c: Likewise.
10866
10867 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10868
10869         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10870         (cxa_type_match): Correct declaration.
10871         (__gnu_unwind_pr_common): Reconstruct additional indirection
10872         when __cxa_type_match returns succeeded_with_ptr_to_base.
10873
10874 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10875
10876         PR rtl-optimization/49114
10877         * reload.c (struct replacement): Remove SUBREG_LOC member.
10878         (push_reload): Do not set it.
10879         (push_replacement): Likewise.
10880         (subst_reload): Remove dead code.
10881         (copy_replacements): Remove assertion.
10882         (copy_replacements_1): Do not handle SUBREG_LOC.
10883         (move_replacements): Likewise.
10884         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
10885         Detect subregs via recursive descent instead of via SUBREG_LOC.
10886
10887 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10888
10889         * config/avr/avr.c (avr_encode_section_info): Dispatch to
10890         default_encode_section_info.
10891
10892 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
10893
10894         PR tree-optimization/49545
10895         * builtins.c (get_object_alignment_1): Update function comment.
10896         Do not use DECL_ALIGN for functions, but test
10897         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10898         * fold-const.c (get_pointer_modulus_and_residue): Don't check
10899         for functions here.
10900         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10901
10902 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
10903
10904         PR debug/49567
10905         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10906         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10907
10908 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10909
10910         PR target/34734
10911         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10912         about uninitialized data attributed 'progmem' from here...
10913         (avr_encode_section_info): ...to this new function.
10914         (TARGET_ENCODE_SECTION_INFO): New define.
10915         (avr_section_type_flags): For data in ".progmem.data", remove
10916         section flag SECTION_WRITE.
10917
10918 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10919
10920         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10921         _xmulhisi3_exit.
10922         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10923         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
10924         (__umulhisi3): Ditto.
10925         * config/avr/avr.md (mulhisi3): New insn expender.
10926         (umulhisi3): New insn expender.
10927         (*mulhisi3_call): New insn.
10928         (*umulhisi3_call): New insn.
10929
10930 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10931
10932         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10933
10934 2011-06-28  Richard Henderson  <rth@redhat.com>
10935
10936         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
10937         all code and arguments that handled pushes.  Update all callers.
10938
10939 2011-06-28  Richard Henderson  <rth@redhat.com>
10940
10941         * config/arm/arm.c (arm_output_function_prologue): Don't call
10942         thumb1_output_function_prologue.
10943         (arm_expand_prologue): Avoid dead store.
10944         (number_of_first_bit_set): Use ctz_hwi.
10945         (thumb1_emit_multi_reg_push): New.
10946         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10947         to emit the entire prologue as rtl.
10948         (thumb1_output_interwork): Split out from
10949         thumb1_output_function_prologue.
10950         (thumb1_output_function_prologue): Remove.
10951         (arm_attr_length_push_multi): Handle thumb1.
10952         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10953         (prologue_thumb1_interwork): New.
10954         (*push_multi): Allow thumb1; use push_mult_memory_operand.
10955         * config/arm/predicates.md (push_mult_memory_operand): New.
10956
10957 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10958
10959         * config/sparc/sync.md (*stbar): Delete.
10960         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10961
10962 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10963
10964         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10965
10966 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10967
10968         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10969         (TARGET_64BIT_DEFAULT): Define.
10970         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10971         of tm_file.
10972         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10973
10974 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10975
10976         * common.opt (in_lto_p): New Variable entry.
10977         * flags.h (in_lto_p): Move to common.opt.
10978         * gcc.c: Include params.h.
10979         (set_option_handlers): Also use common_handle_option and
10980         target_handle_option.
10981         (main): Call global_init_params, finish_params and init_options_struct.
10982         * opts.c (debug_type_names): Move from toplev.c.
10983         (print_filtered_help): Access quiet_flag through opts pointer.
10984         (common_handle_option): Return early in the driver for some options.
10985         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10986         opts pointer.
10987         * toplev.c (in_lto_p): Move to common.opt.
10988         (debug_type_names): Move to opts.c.
10989         * Makefile.in (OBJS): Remove opts.o.
10990         (OBJS-libcommon-target): Add opts.o.
10991         (gcc.o): Update dependencies.
10992
10993 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10994
10995         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10996
10997 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10998
10999         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
11000         with '=' constraint modifier.
11001         (*divdf3_vfp): Likewise.
11002         ("*mulsf3_vfp"): Likewise.
11003         ("*muldf3_vfp"): Likewise.
11004         ("*mulsf3negsf_vfp"): Likewise.
11005         ("*muldf3negdf_vfp"): Likewise.
11006
11007 2011-06-28  Nick Clifton  <nickc@redhat.com>
11008
11009         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
11010         relaxation when performing an incremental link.
11011
11012 2011-06-28  Kai Tietz  <ktietz@redhat.com>
11013
11014         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
11015         within BB from last to first.
11016
11017 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * genattr-common.c: New.  Based on genattr.c.
11020         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
11021         (MOSTLYCLEANFILES): Add insn-attr-common.h.
11022         (opts.o): Update dependencies.
11023         (.PRECIOUS): Add insn-attr-common.h.
11024         (simple_rtl_generated_h): Add insn-attr-common.h.
11025         (build/genattr-common.o): New.
11026         (genprogrtl): Add attr-common.
11027         * genattr.c (main): Include insn-attr-common.h.  Don't generate
11028         definitions of DELAY_SLOTS or INSN_SCHEDULING.
11029         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
11030
11031 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
11032
11033         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
11034         avr-*-* and avr-*-rtems* targets.
11035
11036         * config/avr/elf.h: New file.
11037         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
11038         (TARGET_ASM_SELECT_SECTION): Define.
11039         (INIT_SECTION_ASM_OP): Undefine.
11040         (FINI_SECTION_ASM_OP): Undefine.
11041         (READONLY_DATA_SECTION_ASM_OP): Undefine.
11042         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
11043         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
11044         * config/avr/avr.h:
11045         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
11046         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
11047         (MAX_OFILE_ALIGNMENT): Move to elf.h.
11048         (STRING_LIMIT): Move to elf.h.
11049         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
11050         (ASM_DECLARE_OBJECT_NAME): Remove.
11051         (ESCAPES): Remove.
11052         (ASM_OUTPUT_SKIP): Remove.
11053         (DWARF2_DEBUGGING_INFO): Remove.
11054         (OBJECT_FORMAT_ELF): Remove.
11055         (USER_LABEL_PREFIX): Remove.
11056         (ASM_OUTPUT_EXTERNAL): Remove.
11057         (ASM_OUTPUT_ASCII): Remove.
11058         (TYPE_ASM_OP): Remove.
11059         (SIZE_ASM_OP): Remove.
11060         (WEAK_ASM_OP): Remove.
11061         (STRING_ASM_OP): Remove.
11062         (SET_ASM_OP): Remove.
11063         (ASM_WEAKEN_LABEL): Remove.
11064         (TYPE_OPERAND_FMT): Remove.
11065         (ASM_DECLARE_FUNCTION_SIZE): Remove.
11066         (ASM_FINISH_DECLARE_OBJECT): Remove.
11067         (NO_DOLLAR_IN_LABEL): Remove.
11068         (ASM_GENERATE_INTERNAL_LABEL): Remove.
11069         (ASM_OUTPUT_CASE_LABEL): Remove.
11070         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
11071         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
11072         (gas_output_ascii): Remove.
11073         (gas_output_limited_string): Remove.
11074         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
11075         * config/avr/avr-protos.h
11076         (gas_output_ascii): Remove prototye.
11077         (gas_output_limited_string): Remove prototype.
11078
11079 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
11080
11081         PR target/48637
11082         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
11083         asm operands.
11084
11085 2011-06-27  Jan Hubicka  <jh@suse.cz>
11086
11087         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
11088         node instead of references in node.
11089
11090 2011-06-27  Richard Henderson  <rth@redhat.com>
11091
11092         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
11093         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
11094         inside ifdef.
11095
11096 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
11097
11098         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
11099
11100         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
11101         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
11102         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
11103         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
11104         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
11105         (evaluate_stmt, execute_fold_all_builtins): Handle
11106         BUILT_IN_ASSUME_ALIGNED.
11107         * tree-ssa-dce.c (propagate_necessity): Likewise.
11108         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11109         call_may_clobber_ref_p_1): Likewise.
11110         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
11111         (expand_builtin_assume_aligned): New function.
11112         * doc/extend.texi (__builtin_assume_aligned): Document.
11113
11114         PR debug/49544
11115         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11116         and l has two DEBUG_INSN owned locs instead of just one, adjust
11117         the second location's setting_insn too.
11118
11119 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11120
11121         PR libmudflap/38738
11122         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11123
11124 2011-06-27  Nick Clifton  <nickc@redhat.com>
11125
11126         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11127         bit position of highest bit set into a count of the high zero bits.
11128
11129 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11130
11131         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11132
11133 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11134
11135         PR lto/48492
11136         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11137         to a NULL parent.
11138
11139 2011-06-27  Richard Guenther  <rguenther@suse.de>
11140
11141         PR tree-optimization/49394
11142         * passes.c (execute_one_pass): Restore current_pass after
11143         applying IPA transforms.
11144
11145 2011-06-27  Kai Tietz  <ktietz@redhat.com>
11146
11147         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11148         out of type precision after operation.
11149         (find_bswap): Take for limit value the integer auto-promotion
11150         into account.
11151
11152 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11153
11154         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11155         forward scan as well.
11156
11157 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11158
11159         PR target/44241
11160         * config/vms/vms-protos.h: New file.
11161         * config/vms/vms-crtlmap.map: New file.
11162         * config/vms/vms.c: New file.
11163         * config/vms/make-crtlmap.awk: New file.
11164         * config/vms/vms-crtl.h: File removed.
11165         * config/vms/vms-crtl-64.h: File removed.
11166         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11167         * config/alpha/vms64.h: Do not include vms-crtl-64.h
11168         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11169         clear some builtins on VMS.  Calls vms_patch_builtins.
11170         (avms_asm_output_external): Remove.
11171         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11172         (struct crtl_name_spec): Remove
11173         (DO_CTRL_NAMES): Remove.
11174         * config/ia64/vms.h (struct crtl_name_spec): Remove
11175         (DO_CTRL_NAMES): Remove.
11176         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11177         clear some builtins on VMS.  Calls vms_patch_builtins.
11178         (ia64_asm_output_external): Remove DO_CRTL_NAME.
11179         * config/ia64/vms64.h: Do not include vms-crtl-64.h
11180         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11181
11182 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11183
11184         * config/alpha/alpha.c (alpha_end_function): Always generate .end
11185         directive on VMS.
11186
11187 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11188
11189         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11190         the function receives nonlocal gotos.
11191
11192 2011-06-27  Richard Guenther  <rguenther@suse.de>
11193
11194         PR tree-optimization/49536
11195         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11196         For non-scalar inner types use a scalar type according to
11197         the scalar inner mode.
11198
11199 2011-06-27  Richard Guenther  <rguenther@suse.de>
11200
11201         PR tree-optimization/49365
11202         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11203
11204 2011-06-27  Richard Guenther  <rguenther@suse.de>
11205
11206         PR tree-optimization/49169
11207         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11208         the alignment of function decls.
11209
11210 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
11211
11212         PR target/47997
11213         * config/darwin.c (darwin_mergeable_string_section): Place string
11214         constants in '.cstring' rather than '.const' when CF/NSStrings are
11215         active.
11216
11217 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
11218
11219         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11220         (emit_save_register_window): Likewise.
11221         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11222         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
11223         Swap back %o7/%i7 in register naming.
11224
11225 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
11226
11227         PR driver/49371
11228         * config/darwin.c (darwin_override_options): Improve warning when
11229         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11230         is given with fpie/fPIE.
11231         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11232         * config/darwin9.h (PIE_SPEC): New.
11233
11234 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11235
11236         * timevar.c (timevar_print): Increase width for display of timevar
11237         name.
11238
11239 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
11240
11241         PR c++/46400
11242         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11243         instead of TYPE_CHAIN for chain_next for types.
11244
11245 2011-06-24  Richard Henderson  <rth@redhat.com>
11246
11247         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11248         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11249         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11250         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11251         (sparc_flat_expand_prologue): Emit individual instructions
11252         instead of one of the above.
11253
11254 2011-06-24  Easwaran Raman  <eraman@google.com>
11255
11256         PR rtl-optimization/49429
11257         PR target/49454
11258         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
11259         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11260         used to copy y into x.
11261         * calls.c (initialize_argument_information): Mark
11262         an argument addressable if it is passed by invisible reference.
11263         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
11264         if it is passed by reference.
11265
11266 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11267
11268         PR rtl-optimization/49504
11269         * rtlanal.c (nonzero_bits1): Properly handle addition or
11270         subtraction of a pointer in Pmode if pointers extend unsigned.
11271         (num_sign_bit_copies1): Likewise.
11272
11273 2011-06-24  Martin Jambor  <mjambor@suse.cz>
11274
11275         PR tree-optimizations/49516
11276         * tree-sra.c (sra_modify_assign): Choose the safe path for
11277         aggregate copies if we also did scalar replacements.
11278
11279 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11280
11281         PR target/49335
11282         * config/arm/predicates.md (add_operator): New.
11283         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11284
11285 2011-06-24  Andi Kleen  <ak@linux.intel.com>
11286
11287         * tree-sra.c (type_internals_preclude_sra_p): Add msg
11288         parameter. Split up ifs and report reason in *msg.
11289         (reject): Add.
11290         (find_var_candiate): Add msg variable.
11291         Split up ifs and report reason to reject.
11292         (find_param_candidates): Add msg variable.
11293         Pass msg to type_internals_preclude_sra_p.
11294
11295 2011-06-23  Jeff Law  <law@redhat.com>
11296
11297         PR middle-end/48770
11298         * reload.h (reload): Change to return a bool.
11299         * ira.c (ira): If requested by reload, run a fast DCE pass after
11300         reload has completed.  Fix comment typo.
11301         * reload1.c (need_dce): New file scoped static.
11302         (reload): Set reload_completed here.  Return whether or not a DCE
11303         pass after reload is needed.
11304         (delete_dead_insn): Set need_dce as needed.
11305
11306         PR middle-end/49465
11307         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11308         to detect threading through joiner block.  If there was already
11309         an edge to the new target, then do not change the PHI nodes.
11310
11311 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
11312
11313         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11314         get_pointer_alignment to see if base isn't sufficiently aligned.
11315
11316 2011-06-23  Jan Hubicka  <jh@suse.cz>
11317
11318         PR tree-optimize/49373
11319         * tree-pass.h (all_late_ipa_passes): Declare.
11320         * cgraphunit.c (init_lowered_empty_function): Fix properties.
11321         (cgraph_optimize): Execute late passes; remove unreachable funcions
11322         after materialization.
11323         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11324         LTOing.
11325         * passes.c (all_late_ipa_passes): Declare.
11326         (dump_passes, register_pass): Handle late ipa passes.
11327         (init_optimization_passes): Move ipa_pta to late passes; schedule
11328         fixup_cfg at beggining of all_passes.
11329         (apply_ipa_transforms): New function.
11330         (execute_one_pass): When doing simple ipa pass, apply all transforms.
11331
11332 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
11333
11334         * params.c: Include common/common-target.h.  Don't include tm.h.
11335         (lang_independent_params): Move from toplev.c.
11336         (global_init_params): New.
11337         * params.h (global_init_params): Declare.
11338         * target.def (default_params): Move to common-target.def.
11339         * toplev.c (lang_independent_options): Remove.
11340         (lang_independent_params): Move to params.c.
11341         (general_init): Use global_init_params.
11342         * common/common-target.def (option_default_params): Move from
11343         target.def.
11344         * common/config/ia64/ia64-common.c: Include params.h.
11345         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11346         from ia64.c.
11347         * common/config/rs6000/rs6000-common.c: Include params.h.
11348         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11349         from rs6000.c.
11350         * common/config/sh/sh-common.c: Include params.h.
11351         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11352         from sh.c.
11353         * common/config/spu/spu-common.c: Include params.h.
11354         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11355         from spu.c.
11356         * config/ia64/ia64.c (ia64_option_default_params,
11357         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11358         * config/rs6000/rs6000.c (rs6000_option_default_params,
11359         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11360         * config/sh/sh.c (sh_option_default_params,
11361         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11362         * config/spu/spu.c (spu_option_default_params,
11363         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11364         * Makefile.in (OBJS): Remove params.o.
11365         (OBJS-libcommon-target): Add params.o.
11366         (params.o, $(common_out_object_file)): Update dependencies.
11367         * doc/tm.texi: Regenerate.
11368
11369 2011-06-23  Alan Modra  <amodra@gmail.com>
11370
11371         PR bootstrap/49383
11372         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11373         invocation for 2011-06-09 changes.
11374
11375 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11376
11377         PR libgomp/49490
11378         * omp-low.c (expand_omp_for_static_nochunk): Only
11379         use n ceil/ nthreads size for the first n % nthreads threads in the
11380         team instead of all threads except for the last few ones which
11381         get less work or none at all.
11382
11383         PR debug/49496
11384         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11385         uses.
11386
11387 2011-06-22  Richard Guenther  <rguenther@suse.de>
11388
11389         PR tree-optimization/49493
11390         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11391         Refer to the alias target of variables.
11392         (associate_varinfo_to_alias_1): Remove.
11393         (ipa_pta_execute): Do not associate aliases with anything.
11394         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11395         (cgraph_function_node): Likewise.
11396         (cgraph_function_or_thunk_node): Likewise.
11397         (varpool_variable_node): Likewise.
11398
11399 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11400
11401         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11402         * config.gcc (arm*-*-linux*): Default to gnu tls.
11403         (arm*-*-*): Add --with-tls option.
11404         (all_defaults): Add 'tls'.
11405
11406 2011-06-22  Richard Henderson  <rth@redhat.com>
11407
11408         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11409         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11410         (dwarf2out_frame_debug_cfa_window_save): Rename from
11411         dwarf2out_window_save; make static.
11412         * tree.h (dwarf2out_window_save): Don't declare.
11413
11414         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11415         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11416         (emit_save_register_window): Rename from gen_save_register_window;
11417         emit the insn and add REG_CFA_* notes.
11418         (sparc_expand_prologue): Update to match.
11419         * config/sparc/sparc.md (save_register_window_1): Simplify from
11420         save_register_window<P:mode>.
11421
11422 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11423
11424         PR target/49497
11425         * config/i386/i386.md (*lea_general_2): Always allow SImode.
11426         (*lea_general_2_zext): Likewise.
11427         (imul to lea peepholes): Use const359_operand and check
11428         TARGET_PARTIAL_REG_STALL.
11429
11430         * config/i386/predicates.md (const359_operand): New.
11431
11432 2011-06-22  Michael Matz  <matz@suse.de>
11433
11434         * cgraphunit.c (assemble_thunk): Use correct return type.
11435
11436 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
11437             Dmitry Melnik  <dm@ispras.ru>
11438
11439         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11440         (neon_output_shift_immediate): Ditto.
11441         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11442         prototype.
11443         (neon_output_shift_immediate): Ditto.
11444         * config/arm/neon.md (vashl<mode>3): Modified constraint.
11445         (vashr<mode>3_imm): New insn pattern.
11446         (vlshr<mode>3_imm): Ditto.
11447         (vashr<mode>3): Modified constraint.
11448         (vlshr<mode>3): Ditto.
11449         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11450         predicate.
11451         (imm_for_neon_rshift_operand): Ditto.
11452         (imm_lshift_or_reg_neon): Ditto.
11453         (imm_rshift_or_reg_neon): Ditto.
11454
11455         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11456
11457 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11458
11459         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11460         builtin calls even if likelyvalue is not CONSTANT.
11461         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11462         Return get_value_for_expr of first operand
11463         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11464         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11465         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11466         their non-checking counterparts.
11467         (call_may_clobber_ref_p_1): Likewise.
11468         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11469         like their non-checking counterparts.
11470         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11471         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11472         like their non-checking counterparts.
11473         (find_func_clobbers): Likewise.
11474         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11475         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11476
11477         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11478         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11479         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11480         of base type reference as argument.
11481         (resolve_addr_in_expr): Likewise.  Fix keep computation.
11482         (convert_descriptor_to_signed): Renamed to...
11483         (convert_descriptor_to_mode): ... this.  For wider types convert to
11484         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11485         (typed_binop): New function.
11486         (scompare_loc_descriptor, ucompare_loc_descriptor,
11487         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11488         default to unsigned type instead of signed.
11489
11490         PR debug/47858
11491         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11492         (gimple_build_debug_source_bind_stat): New prototype.
11493         (gimple_build_debug_source_bind): Define.
11494         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11495         gimple_debug_source_bind_get_value,
11496         gimple_debug_source_bind_get_value_ptr,
11497         gimple_debug_source_bind_set_var,
11498         gimple_debug_source_bind_set_value): New inlines.
11499         * gimple.c (gimple_build_debug_source_bind_stat): New function.
11500         * gimple-pretty-print.c (dump_gimple_debug): Handle
11501         GIMPLE_DEBUG_SOURCE_BIND.
11502         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11503         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11504         * tree-parloops.c (eliminate_local_variables,
11505         separate_decls_in_region): Likewise.
11506         (separate_decls_in_region_debug): Renamed from
11507         separate_decls_in_region_debug_bind.  Handle
11508         gimple_debug_source_bind_p.
11509         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11510         prototypes.
11511         (DECL_HAS_DEBUG_ARGS_P): Define.
11512         (struct tree_function_decl): Add has_debug_args_flag field.
11513         * tree.c (debug_args_for_decl): New variable.
11514         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11515         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11516         (rewrite_debug_stmt_uses): New function.
11517         (rewrite_stmt): Use it to rewrite debug stmt uses.
11518         * rtl.def (DEBUG_PARAMETER_REF): New.
11519         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11520         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11521         DEBUG_PARAMETER_REF.
11522         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11523         * print-rtl.c (print_rtx): Likewise.
11524         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11525         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11526         debug stmts in the first bb.
11527         * tree-inline.c (remap_ssa_name): If remapping default def
11528         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11529         a source bind debug stmt.
11530         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11531         (maybe_move_debug_stmts_to_successors): Likewise.
11532         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
11533         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11534         debug args vector from old_decl to new_decl.
11535         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11536         or modified parameters, add debug bind stmts before call
11537         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11538         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11539         on DECL_DEBUG_EXPRs from debug args vector.
11540         (expand_debug_source_expr): New function.
11541         (expand_debug_locations): Use it for source bind insns.
11542         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11543         * var-tracking.c (prepare_call_arguments): Add debug args
11544         to call_arguments if any.
11545         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11546         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11547         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11548         (get_ref_die_offset, parameter_ref_descriptor): New functions.
11549         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11550         (gen_subprogram_die): Handle parameters identified by
11551         DEBUG_PARAMETER_REF.
11552
11553 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11554
11555         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11556         * doc/install.texi (Configuration): Document --with-tls.
11557         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11558         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11559         (arm_tls_descseq_addr): New.
11560         (legitimize_tls_address): Add tlsdesc support.
11561         (arm_cannot_copy_insn_p): Check for tlscall.
11562         (arm_emit_tls_decoration): Likewise.
11563         * config/arm/arm.h (TARGET_GNU2_TLS): New.
11564         (OPTION_DEFAULT_SPECS): Add with-tls support.
11565         * config/arm/arm.md (R1_REGNUM): Define.
11566         (tlscall): New.
11567         * config/arm/arm.opt (tls_type): New enumeration type and values.
11568         (mtls-dialect): New switch.
11569         * config/arm/arm-opts.h (enum tls_type): New.
11570
11571 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11572
11573         * attribs.c (register_attribute): Added assert to check that all
11574         attribute specs are registered with a name that is not empty and
11575         does not start with '_'.
11576         (decl_attributes): Avoid the lookup of the "naked" attribute spec
11577         if the function has no attributes.
11578         * tree.c (is_attribute_with_length_p): Removed.
11579         (is_attribute_p): Removed.
11580         (private_is_attribute_p): New.
11581         (private_lookup_attribute): New.
11582         (lookup_attribute): Removed.
11583         (lookup_ident_attribute): New.
11584         (remove_attribute): Require the first argument to be in the form
11585         'text', not '__text__'.  Updated asserts.
11586         (merge_attributes): Use lookup_ident_attributes instead of
11587         lookup_attribute.
11588         (merge_dllimport_decl_attributes): Use remove_attribute.
11589         (attribute_list_contained): Likewise.
11590         (attribute_list_equal): Immediately return 1 if the arguments are
11591         identical pointers.
11592         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
11593         'int'.  Require the first argument to be in the form 'text', not
11594         '__text__'.  Require the second argument to be an identifier.
11595         (lookup_attribute): Made inline.  Require the first argument to be
11596         in the form 'text', not '__text__'.
11597         (private_is_attribute_p, private_lookup_attribute): New.
11598         Updated comments.
11599
11600 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
11601
11602         * builtins.c: Add sync_ or SYNC__ to builtin names.
11603         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11604         * omp-low.c: Add sync_ or SYNC__ to builtin names.
11605
11606 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11607
11608         PR target/33049
11609         * config/avr/avr.md (extzv): New expander.
11610         (*extzv): New insn.
11611         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11612         * config/avr/constraints.md (C04): New constraint.
11613         * doc/md.texi (Machine Constraints): Document it.
11614
11615 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11616
11617         PR middle-end/49489
11618         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11619         unsignedp argument instead of 1 for clrsb_optab.
11620         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11621         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
11622         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11623         * optabs.c (widen_leading): Call widen_operand and expand_unop
11624         with 0 as unsignedp argument instead of 1 for clrsb_optab.
11625         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11626
11627 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11628
11629         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11630
11631 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
11632
11633         * gensupport.c (add_define_attr): New static function.
11634         (is_predicable): Allow multi-alternative lists for the "predicable"
11635         attribute.
11636         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11637         (process_one_cond_exec): Call alter_attrs_for_insn.
11638         * doc/md.texi (Defining Attributes): Mention some standard names.
11639         (Conditional Execution): Update documentation for "predicable".
11640
11641         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11642         __builtin_clrsbll): Document.
11643         * doc/rtl.texi (clrsb): New entry.
11644         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
11645         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
11646         (expand_unop): Handle clrsb_optab.
11647         (init_optabs): Initialize it.
11648         * optabs.h (enum optab_index): New entry OTI_clrsb.
11649         (clrsb_optab): Define.
11650         * genopinit.c (optabs): Add an entry for it.
11651         * builtins.c (expand_builtin): Handle clrsb builtin functions.
11652         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11653         BUILT_IN_CLRSBLL): New.
11654         * rtl.def (CLRSB): New code.
11655         * dwarf2out.c (mem_loc_descriptor): Handle it.
11656         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11657         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11658         and popcount.
11659         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11660         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11661         (__ctzDI2): Move declaration.
11662         * config/bfin/bfin.md (clrsbsi2): New expander.
11663         (signbitssi2): Use the CLRSB rtx.
11664         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
11665         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11666
11667 2011-06-21  Richard Guenther  <rguenther@suse.de>
11668
11669         * ipa-inline-transform.c (inline_transform): Fix previous change.
11670
11671 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
11672
11673         PR tree-optimization/49478
11674         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11675         with constant operand.
11676
11677 2011-06-21  Richard Guenther  <rguenther@suse.de>
11678
11679         * ipa-inline-transform.c (inline_transform): Fix typo.
11680
11681 2011-06-21  Richard Guenther  <rguenther@suse.de>
11682
11683         PR tree-optimization/49483
11684         * tree-vect-stmts.c (vectorizable_assignment): Also handle
11685         VIEW_CONVERT_EXPR conversions.
11686
11687 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
11688
11689         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11690         * config/avr/avr-tables.opt: New file (generated).
11691         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11692         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11693         avr-mcus.def.
11694         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11695         (avr_option_override): Don't process -mmcu= argument here.  Set
11696         avr_current_device using avr_mcu_index.
11697         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11698         * config/avr/avr.opt (mmcu=): Use Enum.
11699         * config/avr/t-avr (avr-devices.o): Update dependencies.
11700         ($(srcdir)/config/avr/avr-tables.opt): New.
11701         * target.def (help): Remove.
11702         * doc/tm.texi.in (TARGET_HELP): Remove.
11703         * doc/tm.texi: Regenerate.
11704         * opts.c: Don't include target.h.
11705         (common_handle_option): Don't call targetm.help.
11706         * system.h (TARGET_HELP): Poison.
11707         * Makefile.in (opts.o): Update dependencies.
11708
11709 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11710
11711         * config/usegld.h: New file.
11712         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11713         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11714         (LIB_SPEC): Likewise.  Search /lib.
11715         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11716         (RDYNAMIC_SPEC): Handle GNU ld.
11717         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11718         Define.
11719         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11720         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11721         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11722         (STACK_CHECK_STATIC_BUILTIN): Define.
11723         * config/sol2.opt (compat-bsd): Remove.
11724         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11725         * config/sol2-bi.h: New file.
11726         * config/sol2-gld.h: Remove.
11727         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11728         (NO_DBX_BNSYM_ENSYM): Remove.
11729         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11730         (STACK_CHECK_STATIC_BUILTIN): Remove.
11731         Test USE_GLD instead of TARGET_GNU_LD.
11732         * config/i386/sol2-10.h: Rename to ...
11733         * config/i386/sol2-bi.h .. this.
11734         (SUBTARGET_EXTRA_SPECS): Redefine.
11735         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11736         (MULTILIB_DEFAULTS): Remove.
11737         (DEFAULT_ARCH32_P): Define.
11738         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11739         (ARCH64_SUBDIR): Define.
11740         Test USE_GLD instead of TARGET_GNU_LD.
11741         (I386_EMULATION): Rename to ...
11742         (ARCH32_EMULATION): ... this.
11743         (X86_64_EMULATION): Rename to ...
11744         (ARCH64_EMULATION): ... this.
11745         (TARGET_LD_EMULATION): Remove.
11746         (LINK_ARCH_SPEC): Remove.
11747         * config/i386/sol2-gas.h: Remove.
11748         * config/i386/t-sol2-10: Rename to ...
11749         * config/i386/t-sol2-64: ... this.
11750         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11751         (AS_SPARC64_FLAG): Define.
11752         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11753         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11754         depending on TARGET_CPU_DEFAULT.
11755         (CPP_CPU_SPEC): Redefine.
11756         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11757         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11758         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11759         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11760         ASM_ARCH_DEFAULT_SPEC): Redefine.
11761         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11762         LINK_ARCH_DEFAULT_SPEC.
11763         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11764         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11765         (ARCH64_SUBDIR): Define.
11766         (LINK_ARCH64_SPEC): Redefine.
11767         (CC1_SPEC): Redefine.
11768         (OPTION_DEFAULT_SPECS): Redefine.
11769         (MULTILIB_DEFAULTS): Define.
11770         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11771         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11772         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11773         (NO_DBX_BNSYM_ENSYM): Remove.
11774         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11775         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11776         (TARGET_ASM_NAMED_SECTION): Likewise.
11777         (STACK_CHECK_STATIC_BUILTIN): Remove.
11778         * config/sparc/sol2-bi.h: Remove.
11779         * config/sparc/sol2-gas-bi.h: Remove.
11780         * config/sparc/sol2-gas.h: Remove.
11781         * config/sparc/sol2-gld-bi.h: Remove.
11782         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11783         common parts ...
11784         (*-*-solaris2*): ... here.
11785
11786 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11787
11788         PR other/43564
11789         * ipa-inline.c (can_inline_edge_p): Check
11790         !DECL_DISREGARD_INLINE_LIMITS.
11791
11792 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11793
11794         PR middle-end/49139
11795         * cgraphunit.c (process_function_and_variable_attributes): warn when
11796         always_inline functions that are not inline.
11797         * ipa-inline-transform.c (inline_transform): Always call
11798         optimize_inline.
11799         * tree-inline.c (tree_inlinable_function_p): Use error instead
11800         of sorry.
11801         (expand_call_inline): Likewise.
11802
11803 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11804
11805         * Makefile.in (dg_target_exps): Set.
11806         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11807         instead of 7, try to divide it more evenly.
11808
11809 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
11810
11811         PR target/49089
11812         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11813         (avx256_split_unaligned_store): New definition.
11814         (ix86_option_override_internal): Enable avx256 unaligned load/store
11815         splitting only when avx256_split_unaligned_load/store is set.
11816
11817 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11818
11819         * regrename.c (scan_rtx_reg): Handle the case where we write to an
11820         open chain in a smaller mode without failing the entire block.
11821
11822 2011-06-21  Alan Modra  <amodra@gmail.com>
11823
11824         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11825         CONST high part large-toc address.
11826         (rs6000_tls_referenced_p): Make static.
11827         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11828
11829 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11830
11831         PR target/49385
11832         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11833         one of the operands is a register.
11834
11835 2011-06-20  Kai Tietz  <ktietz@redhat.com>
11836
11837         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11838         operations in combination with binary and.
11839
11840 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11841
11842         * regrename.c (do_replace): Don't update notes.
11843
11844 2011-06-20  Alan Modra  <amodra@gmail.com>
11845
11846         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11847         of toc-relative address in CONST.
11848         (rs6000_delegitimize_address): Recognize changed address.
11849         (rs6000_legitimize_reload_address): Likewise.
11850         (rs6000_emit_move): Don't force these constants to memory.
11851         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11852         toc-relative address in CONST.
11853         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11854         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11855
11856 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11857
11858         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11859         (count_trailing_zeros): Likewise.
11860
11861 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11862
11863         PR other/49325
11864         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11865         .init_array can be used with .ctors on targets.
11866         * configure: Regenerated.
11867
11868 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11869
11870         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11871         if the element type is volatile.
11872
11873 2011-06-18  Jan Hubicka  <jh@suse.cz>
11874
11875         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11876         extra name aliases.
11877         (lto_symtab_resolve_can_prevail_p): Likewise.
11878         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11879         * cgraphbuild.c (record_reference): Remove extra body alias code.
11880         (mark_load): Likewise.
11881         (mark_store): Likewise.
11882         * cgraph.h (varpool_node): Remove extra_name filed;
11883         add alias_of and extraname_alias.
11884         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11885         (varpool_alias_aliased_node): New inline function.
11886         (varpool_variable_node): New function.
11887         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11888         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11889         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11890         (input_varpool_node): Likewise.
11891         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11892         (varpool_externally_visible_p): Remove extra body alias code.
11893         (function_and_variable_visibility): Likewise.
11894         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11895         (ipa_pta_execute): Use it.
11896         * varpool.c (varpool_remove_node): Remove extra name alias code.
11897         (varpool_mark_needed_node): Likewise.
11898         (varpool_analyze_pending_decls): Analyze aliases.
11899         (assemble_aliases): New functoin.
11900         (varpool_assemble_decl): Use it.
11901         (varpool_create_variable_alias): New function.
11902         (varpool_extra_name_alias): Rewrite.
11903         (varpool_for_node_and_aliases): New function.
11904
11905 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
11906
11907         PR target/49411
11908         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11909         last_arg_constant and last argument doesn't match its predicate,
11910         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11911         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11912         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11913         spelling of error message.
11914         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11915         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11916         const_0_to_255_operand instead of const_int_operand.
11917
11918         Revert:
11919         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11920
11921         * config/i386/sse.md (blendbits): Remove mode attribute.
11922         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11923         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11924         Check integer value of operand 3 in insn constraint.
11925
11926 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
11927
11928         PR rtl-optimization/48542
11929         * reload.c (find_equiv_reg): Stop looking when finding a
11930         setjmp-type call.
11931         * reload1.c (reload_as_needed): Invalidate all reload
11932         registers when crossing a setjmp-type call.
11933
11934 2011-06-16  Jeff Law  <law@redhat.com>
11935
11936         * tree-ssa-threadupdate.c (struct redirection_data): New field
11937         intermediate_edge.
11938         (THREAD_TARGET2): Define.
11939         (redirection_data_eq): Also check that the intermediate edge is equal.
11940         (lookup_redirection_data): Drop useless argument.  Extract the
11941         outgoing_edge and intermediate edge from E.  Callers updated.
11942         (copy_phi_args, update_destination_phis): New functions.
11943         (fix_duplicate_block_edges): Likewise.
11944         (create_edge_and_update_destination_phis): Duplicate all the edges
11945         hung off e->aux.  Use copy_phi_args.
11946         (create_duplicates): Use fix_duplicate_block_edges.
11947         (fixup_template_block): Likewise.
11948         (redirect_edges): If necessary, redirect the joiner block's incoming
11949         edge to the duplicate of the joiner block.
11950         (thread_block): Don't muck up loops when threading through a joiner
11951         block.
11952         (thread_through_loop_header): Handle threading through a joiner block.
11953         (mark_threaded_blocks, register_jump_thread): Likewise.
11954         * tree-flow.h (register_jump_thread): Add new argument.  Callers
11955         updated.
11956         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11957         (thread_across_edge): Handle threading through a joiner block.
11958
11959 2011-06-16  Martin Jambor  <mjambor@suse.cz>
11960
11961         PR tree-optimization/49343
11962         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11963         calculate offset, provide 2nd operand for the new COMPONENT_REF.
11964
11965 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
11966
11967         * config/darwin-protos.h (machopic_select_rtx_section): Move to
11968         inside RTX_CODE ifdef.
11969
11970 2011-06-16  Tom de Vries  <tom@codesourcery.com>
11971
11972         PR target/45098
11973         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11974         Disallow NULL pointer for pointer arithmetic.
11975
11976 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11977
11978         PR target/49398
11979         Revert.
11980         2011-06-10  Wei Guozhi  <carrot@google.com>
11981
11982         PR target/45335
11983         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11984         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11985         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11986         related peephole2.
11987         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11988         related peephole2.
11989         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11990         (arm_legitimate_ldrd_p): New prototype.
11991         (arm_output_ldrd): New prototype.
11992         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11993         (arm_legitimate_ldrd_p): New function.
11994         (arm_output_ldrd): New function.
11995
11996 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11997
11998         PR middle-end/46500
11999         * doc/tm.texi.in: Update Copyright date.
12000         * doc/tm.texi: Regenerate.
12001         * targhooks.c (default_setup_incoming_varargs): Replace
12002         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12003         (default_pretend_outgoing_varargs_named): Likewise.
12004         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12005         (hook_callee_copies_named): Likewise.
12006         (default_function_arg_advance): Likewise.
12007         (default_function_arg): Likewise.
12008         (default_function_incoming_arg): Likewise.
12009         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12010         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12011         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12012         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12013         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12014         * targhooks.h (default_setup_incoming_varargs): Likewise.
12015         (default_pretend_outgoing_varargs_named): Likewise.
12016         (hook_pass_by_reference_must_pass_in_stack): Likewise.
12017         (hook_callee_copies_named): Likewise.
12018         (default_function_arg_advance): Likewise.
12019         (default_function_arg): Likewise.
12020         (default_function_incoming_arg): Likewise.
12021         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
12022         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
12023         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
12024         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12025         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
12026         * target.def (pass_by_reference): Likewise.
12027         (setup_incoming_varargs, strict_argument_naming): Likewise.
12028         (pretend_outgoing_varargs_named, callee_copies): Likewise.
12029         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
12030         (function_incoming_arg): Likewise.
12031         * target.h: Don't include "tm.h" .
12032         (cumulative_args_t): New typedef.
12033         [GCC_TM_H] (get_cumulative_args): New static inline function.
12034         [GCC_TM_H] (pack_cumulative_args): Likewise.
12035         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
12036         argument type with cumulative_args_t.
12037         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
12038         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
12039         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12040         (frv_arg_partial_bytes, frv_function_arg): Likewise.
12041         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
12042         (frv_function_arg_1): Likewise.
12043         * config/s390/s390.c (s390_pass_by_reference): Likewise.
12044         (s390_function_arg_advance, s390_function_arg): Likewise.
12045         * config/m32c/m32c.c (m32c_function_arg): Likewise.
12046         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
12047         (m32c_strict_argument_naming): Likewise.
12048         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
12049         (spu_function_arg_advance): Likewise.
12050         (spu_setup_incoming_varargs): Likewise.  Make static.
12051         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
12052         Remove prototype.
12053         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
12054         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12055         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
12056         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
12057         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
12058         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
12059         (mep_pass_by_reference, mep_function_arg): Likewise.
12060         (mep_function_arg_advance): Likewise.
12061         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12062         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
12063         (m32r_function_arg, m32r_function_arg_advance): Likewise.
12064         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
12065         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12066         (ix86_function_arg, ix86_pass_by_reference): Likewise.
12067         (ix86_setup_incoming_varargs): Likewise.
12068         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12069         (sh_strict_argument_naming): Likewise.
12070         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
12071         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
12072         (sh_function_arg_advance, sh_function_arg): Likewise.
12073         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12074         (pdp11_function_arg_advance): Likewise.
12075         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12076         Likewise.
12077         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
12078         * config/avr/avr.c (avr_function_arg): Likewise.
12079         (avr_function_arg_advance): Likewise.
12080         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12081         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
12082         (xtensa_function_arg_1): Likewise.
12083         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
12084         Likewise.
12085         (xstormy16_function_arg): Likewise.
12086         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12087         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12088         (fr30_function_arg_advance): Likewise.
12089         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12090         (lm32_function_arg, lm32_function_arg_advance): Likewise.
12091         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12092         (moxie_function_arg, moxie_function_arg_advance): Likewise.
12093         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
12094         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12095         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
12096         (cris_function_arg, cris_function_incoming_arg): Likewise.
12097         (cris_function_arg_advance, cris_function_arg_1): Likewise.
12098         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12099         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
12100         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
12101         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12102         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
12103         (mn10300_arg_partial_bytes): Likewise.
12104         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12105         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
12106         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
12107         (ia64_function_arg_1): Likewise.
12108         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12109         (m68k_function_arg): Likewise.
12110         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
12111         (rs6000_function_arg, setup_incoming_varargs): Likewise.
12112         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
12113         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
12114         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12115         (picochip_arg_advance): Likewise.
12116         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12117         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12118         (mcore_function_arg_advance): Likewise.
12119         * config/score/score.c (score_pass_by_reference): Likewise.
12120         (score_function_arg_advance): Likewise.
12121         (score_arg_partial_bytes): Likewise.  Make static.
12122         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12123         * config/arm/arm.c (arm_arg_partial_bytes): Replace
12124         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12125         (arm_function_arg, arm_function_arg_advance): Likewise.
12126         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12127         * config/pa/pa.c (pa_pass_by_reference): Likewise.
12128         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12129         (pa_function_arg): Likewise.
12130         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12131         (mips_function_arg, mips_function_arg_advance): Likewise.
12132         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12133         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12134         * config/vax/vax.c (vax_function_arg): Likewise.
12135         (vax_function_arg_advance): Likewise.
12136         * config/h8300/h8300.c (h8300_function_arg): Likewise.
12137         (h8300_function_arg_advance): Likewise.
12138         * config/v850/v850.c (v850_pass_by_reference): Likewise.
12139         (v850_strict_argument_naming, v850_function_arg): Likewise.
12140         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12141         (v850_setup_incoming_varargs): Likewise.
12142         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12143         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12144         (mmix_function_arg, mmix_pass_by_reference): Likewise.
12145         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12146         with const void *.
12147         * config/bfin/bfin.c (setup_incoming_varargs): Replace
12148         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12149         (bfin_function_arg_advance, bfin_function_arg): Likewise.
12150         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12151         * calls.c (emit_call_1): Change type of args_so_far to
12152         cumulative_args_t.  Changed all callers.
12153         (initialize_argument_information): Likewise.
12154         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12155         * dse.c (get_call_args): Likewise.
12156         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12157         * function.c (pass_by_reference, reference_callee_copied): Likewise.
12158         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12159         New member args_so_far_v.  Changed all users.
12160         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12161         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12162         * config/mips/mips.c (mips_output_args_xfer): Likewise.
12163         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12164         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12165         * config/microblaze/microblaze.c (microblaze_expand_prologue):
12166         Likewise.
12167         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12168         m32r_pass_by_reference.
12169
12170 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
12171
12172         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12173         argument to be a VEC of statements.
12174         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12175         assert that pattern statements have to have their vector type set.
12176         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12177         Change the first argument to be a VEC of statements.  Update
12178         documentation.
12179         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12180         (vect_handle_widen_mult_by_const): New function.
12181         (vect_recog_widen_mult_pattern):  Change the first argument to be a
12182         VEC of statements.  Update documentation.  Check that the constant is
12183         INTEGER_CST.  Support multiplication by a constant that fits an
12184         intermediate type - call vect_handle_widen_mult_by_const.
12185         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12186         call.  Handle additional pattern statements if necessary.
12187
12188 2011-06-16  Nick Clifton  <nickc@redhat.com>
12189
12190         PR target/49427
12191         * config.gcc: Set cpu_type to v850 for any V850 architecture.
12192         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12193         md_file, extra_modes, out_file and extra_options are these are all
12194         deduced from cpu_type.
12195
12196 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12197
12198         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12199         truncation mask to 63.
12200
12201 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12202
12203         PR target/49313
12204         PR target/29524
12205         * longlong.h: Add AVR support:
12206         (count_leading_zeros): New macro.
12207         (count_trailing_zeros): New macro.
12208         (COUNT_LEADING_ZEROS_0): New macro.
12209         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12210         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12211         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12212         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12213         (LIB2FUNCS_EXCLUDE): Add _clz.
12214         * config/avr/libgcc.S (XCALL): Move up in file.
12215         (XJMP): New C Macro.
12216         (DEFUN): New asm macro.
12217         (ENDF): New asm macro.
12218         (__ffssi2): New function.
12219         (__ffshi2): New function.
12220         (__loop_ffsqi2): New function.
12221         (__ctzsi2): New function.
12222         (__ctzhi2): New function.
12223         (__clzdi2): New function.
12224         (__clzsi2): New function.
12225         (__clzhi2): New function.
12226         (__paritydi2): New function.
12227         (__paritysi2): New function.
12228         (__parityhi2): New function.
12229         (__parityqi2): New function.
12230         (__popcounthi2): New function.
12231         (__popcountsi2): New function.
12232         (__popcountdi2): New function.
12233         (__popcountqi2): New function.
12234         (__bswapsi2): New function.
12235         (__bswapdi2): New function.
12236         (__ashldi3): New function.
12237         (__ashrdi3): New function.
12238         (__lshrdi3): New function.
12239         Fix suspicous lines.
12240
12241 2011-06-16  Richard Guenther  <rguenther@suse.de>
12242
12243         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12244         the same as x != 0.
12245         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12246         to (bool) X & 1.
12247         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12248         equality compares against zero for the lower bit.
12249
12250 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
12251
12252         PR tree-optimization/49419
12253         * tree-vrp.c (execute_vrp): Call init_range_assertions
12254         before estimate_numbers_of_iterations, call
12255         free_number_of_iterations_estimates before calling
12256         remove_range_assertions.
12257
12258 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12259
12260         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12261         (struct partial_schedule): Add rows_length field.
12262         (verify_partial_schedule): Check rows_length.
12263         (ps_insert_empty_row): Handle rows_length.
12264         (create_partial_schedule): Likewise.
12265         (free_partial_schedule): Likewise.
12266         (reset_partial_schedule): Likewise.
12267         (create_ps_insn): Remove rest_count argument.
12268         (remove_node_from_ps): Update rows_length.
12269         (add_node_to_ps): Update rows_length and call create_ps_insn
12270         without passing row_rest_count.
12271         (rotate_partial_schedule): Update rows_length.
12272
12273 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12274
12275         * ddg.c (add_intra_loop_mem_dep): New function.
12276         (build_intra_loop_deps): Call it.
12277
12278 2011-06-13  Jeff Law  <law@redhat.com>
12279
12280         * df-problems.c (df_lr_local_compute): Manually CSE
12281         PIC_OFFSET_TABLE_REGNUM.
12282         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12283         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12284
12285 2011-06-13  Jan Hubicka  <jh@suse.cz>
12286
12287         * cgraphunit.c (handle_alias_pairs): New function.
12288         (cgraph_finalize_compilation_unit): Use it.
12289         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12290         as externally visible.
12291
12292 2011-06-15  Richard Guenther  <rguenther@suse.de>
12293
12294         * expr.c (expand_expr_real_2): Reduce all integral types to
12295         bitfield precision.
12296         (expand_expr_real_1): Likewise.
12297
12298 2011-06-15  Martin Jambor  <mjambor@suse.cz>
12299
12300         PR tree-optimization/48613
12301         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12302         ipa_node_params_vector is NULL.
12303
12304 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
12305
12306         PR debug/49382
12307         * dwarf2out.c (dw_loc_list_node): Add force field.
12308         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12309         location in the list, even if it is modified before first real insn.
12310         (output_loc_list): Emit empty ranges with force flag set.
12311         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12312
12313 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
12314
12315         PR target/49349
12316         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12317         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
12318         above a fence.  Update comments.
12319         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12320         placed just above it.  Do not allow NULL place_to_insert.
12321
12322 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
12323
12324         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12325         (slpeel_tree_peel_loop_to_edge): Don't call
12326         remove_dead_stmts_from_loop.
12327         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12328         remove irrelevant pattern statements.  For irrelevant statements
12329         check if it is the last statement of a detected pattern, use
12330         corresponding pattern statement instead.
12331         (destroy_loop_vec_info): No need to remove pattern statements,
12332         only free stmt_vec_info.
12333         (vect_transform_loop): For irrelevant statements check if it is
12334         the last statement of a detected pattern, use corresponding
12335         pattern statement instead.
12336         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12337         pattern statements.  Set basic block for the new statement.
12338         (vect_pattern_recog): Update documentation.
12339         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12340         operands of pattern statements.
12341         (vectorizable_call): Fix printing.  In case of a pattern statement
12342         use the lhs of the original statement when creating a dummy
12343         statement to replace the original call.
12344         (vect_analyze_stmt): For irrelevant statements check if it is
12345         the last statement of a detected pattern, use corresponding
12346         pattern statement instead.
12347         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12348         statements use gsi of the original statement.
12349
12350 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12351
12352         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12353         common/common-target-def.h.
12354         * target.def (default_target_flags, handle_option,
12355         supports_split_stack, optimization_table, init_struct,
12356         except_unwind_info, unwind_tables_default, have_named_sections):
12357         Move to common/common-target.def.
12358         * target.h (enum opt_levels, struct default_options): Move to
12359         common/common-target.h.
12360         * targhooks.c (default_except_unwind_info,
12361         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12362         default_target_handle_option, empty_optimization_table): Move to
12363         common/common-targhooks.c.
12364         * targhooks.h (default_except_unwind_info,
12365         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12366         default_target_handle_option, empty_optimization_table): Move to
12367         common/common-targhooks.h.
12368         * common/common-target-def.h: Include common/common-targhooks.h.
12369         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12370         defined.
12371         * common/common-target.def (handle_option, option_init_struct,
12372         option_optimization_table, default_target_flags,
12373         except_unwind_info, supports_split_stack, unwind_tables_default,
12374         have_named_sections): Move from target.def.
12375         (HOOK_PREFIX): Undefine at end of file.
12376         * common/common-target.h: Include input.h.
12377         (enum opt_levels, struct default_options): Move from target.h.
12378         * common/common-targhooks.c, common/common-targhooks.h: New.
12379         * config.gcc (target_has_targetm_common): Default to yes.
12380         (moxie*): Set target_has_targetm_common=no.
12381         (hppa*-*-*): Don't set target_has_targetm_common=yes.
12382         * doc/tm.texi: Regenerate.
12383         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12384         (C_TARGET_DEF_H): Add common/common-targhooks.h.
12385         (GCC_OBJS): Remove vec.o.
12386         (OBJS): Remove hooks.o and vec.o.
12387         (OBJS-libcommon-target): Add vec.o, hooks.o and
12388         common/common-targhooks.o.
12389         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12390         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12391         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12392         cfglayout.o, $(out_object_file), $(common_out_object_file)):
12393         Update dependencies.
12394         (common/common-targhooks.o): New.
12395         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
12396         * common/config/pa/pa-common.c: Include more headers.  Take
12397         copyright dates from pa.c.
12398         (pa_option_optimization_table, pa_handle_option,
12399         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12400         TARGET_HANDLE_OPTION): Move from pa.c.
12401         * common/config/alpha/alpha-common.c,
12402         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12403         common/config/bfin/bfin-common.c,
12404         common/config/cris/cris-common.c,
12405         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12406         common/config/h8300/h8300-common.c,
12407         common/config/i386/i386-common.c,
12408         common/config/ia64/ia64-common.c,
12409         common/config/iq2000/iq2000-common.c,
12410         common/config/lm32/lm32-common.c,
12411         common/config/m32c/m32c-common.c,
12412         common/config/m32r/m32r-common.c,
12413         common/config/m68k/m68k-common.c,
12414         common/config/mcore/mcore-common.c,
12415         common/config/mep/mep-common.c,
12416         common/config/microblaze/microblaze-common.c,
12417         common/config/mips/mips-common.c,
12418         common/config/mmix/mmix-common.c,
12419         common/config/mn10300/mn10300-common.c,
12420         common/config/pdp11/pdp11-common.c,
12421         common/config/picochip/picochip-common.c,
12422         common/config/rs6000/rs6000-common.c,
12423         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12424         common/config/score/score-common.c, common/config/sh/sh-common.c,
12425         common/config/sparc/sparc-common.c,
12426         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12427         common/config/vax/vax-common.c,
12428         common/config/xstormy16/xstormy16-common.c,
12429         common/config/xtensa/xtensa-common.c: New.
12430         * config/alpha/alpha.c: Include common/common-target.h.
12431         (alpha_option_optimization_table, alpha_handle_option,
12432         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12433         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12434         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12435         * config/arm/arm.c (arm_option_optimization_table,
12436         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12437         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12438         arm-common.c.
12439         * config/avr/avr.c (avr_option_optimization_table,
12440         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12441         to avr-common.c.
12442         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12443         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12444         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12445         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12446         * config/cris/cris.c (cris_option_optimization_table,
12447         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12448         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12449         cris-common.c.
12450         * config/fr30/fr30.c (fr30_option_optimization_table,
12451         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12452         to fr30-common.c.
12453         * config/frv/frv.c (frv_option_optimization_table,
12454         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12455         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12456         * config/h8300/h8300.c (h8300_option_optimization_table,
12457         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12458         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12459         * config/i386/i386-protos.h (ix86_handle_option): Declare.
12460         * config/i386/i386.c: Include common/common-target.h.
12461         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12462         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12463         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12464         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12465         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12466         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12467         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12468         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12469         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12470         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12471         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12472         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12473         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12474         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12475         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12476         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12477         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12478         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12479         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12480         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12481         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12482         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12483         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12484         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12485         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12486         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12487         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12488         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12489         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12490         ix86_option_optimization_table, ix86_option_init_struct,
12491         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12492         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12493         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12494         i386-common.c.
12495         * config/i386/t-i386 (i386.o): Update dependencies.
12496         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12497         * config/ia64/ia64.c (ia64_option_optimization_table,
12498         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12499         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12500         ia64_handle_option): Move to ia64-common.c.
12501         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12502         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12503         * config/lm32/lm32.c (lm32_option_optimization_table,
12504         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12505         to lm32-common.c.
12506         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12507         m32c-common.c.
12508         * config/m32r/m32r.c (m32r_option_optimization_table,
12509         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12510         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12511         m32r_handle_option): Move to m32r-common.c.
12512         (m32r_memory_move_cost): Remove comment referring to
12513         TARGET_HANDLE_OPTION.
12514         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12515         Move to m68k-common.c.
12516         * config/mcore/mcore.c (mcore_option_optimization_table,
12517         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12518         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12519         * config/mep/mep.c (mep_option_optimization_table,
12520         mep_handle_option, TARGET_HANDLE_OPTION,
12521         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12522         Move to mep-common.c.
12523         * config/microblaze/microblaze.c
12524         (microblaze_option_optimization_table,
12525         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12526         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12527         * config/mips/mips.c (mips_handle_option,
12528         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12529         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12530         mips-common.c.
12531         * config/mmix/mmix.c (mmix_option_optimization_table,
12532         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12533         Move to mmix-common.c.
12534         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12535         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12536         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12537         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12538         * config/pa/pa.c: Include common/common-target.h.
12539         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12540         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12541         pa_handle_option): Move to pa-common.c.
12542         (pa_option_override): Use targetm_common.except_unwind_info.
12543         (pa_asm_output_mi_thunk, pa_function_section): Use
12544         targetm_common.have_named_sections.
12545         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12546         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12547         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12548         pdp11_handle_option, pdp11_option_init_struct): Move to
12549         pdp11-common.c.
12550         * config/picochip/picochip.c (picochip_option_optimization_table,
12551         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12552         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12553         * config/rs6000/rs6000.c: Include common/common-target.h.
12554         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12555         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12556         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12557         rs6000_handle_option): Move to rs6000-common.c.
12558         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12559         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12560         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12561         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12562         * config/s390/s390.c (processor_flags_table,
12563         s390_option_optimization_table, s390_option_init_struct,
12564         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12565         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12566         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12567         * config/s390/s390.h (processor_flags_table): Declare.
12568         * config/score/score.c (score_option_optimization_table,
12569         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12570         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12571         score_handle_option): Move to score-common.c.
12572         * config/sh/sh.c (sh_option_optimization_table,
12573         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12574         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12575         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12576         * config/sparc/sparc.c: Include common/common-target.h.
12577         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12578         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12579         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12580         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12581         spu_option_init_struct): Move to spu-common.c.
12582         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12583         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12584         * config/v850/v850.c (small_memory_physical_max,
12585         v850_handle_memory_optionn v850_handle_option,
12586         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12587         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12588         v850-common.c.
12589         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12590         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12591         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12592         Move to xtensa-common.c.
12593         * cfglayout.c: Include common/common-target.h.
12594         (fixup_reorder_chain): Use targetm_common.have_named_sections.
12595         * cfgrtl.c: Include common/common-target.h.
12596         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12597         targetm_common.have_named_sections.
12598         * dbxout.c: Include common/common-target.h.
12599         (dbxout_function_end): Use targetm_common.have_named_sections.
12600         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12601         targetm_common.except_unwind_info.
12602         * dwarf2out.c: Include common/common-target.h.
12603         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12604         dwarf2out_begin_prologue, dwarf2out_frame_init,
12605         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12606         targetm_common.except_unwind_info.
12607         * except.c: Include common/common-target.h.
12608         (init_eh, finish_eh_generation,
12609         output_one_function_exception_table): Use
12610         targetm_common.except_unwind_info.
12611         (switch_to_exception_section): Use targetm_common.have_named_sections.
12612         * explow.c: Include common/common-target.h.
12613         * expr.c: Include common/common-target.h.
12614         (build_personality_function): Use targetm_common.except_unwind_info.
12615         * function.c: Include common/common-target.h.
12616         (expand_function_end): Use targetm_common.except_unwind_info.
12617         * haifa-sched.c: Include common/common-target.h.
12618         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12619         * lto-opts.c: Include common/common-target.h instead of target.h.
12620         (lto_reissue_options): Use targetm_common.handle_option.
12621         * opts.c: Include common/common-target.h.
12622         (target_handle_option): Use targetm_common.handle_option.
12623         (init_options_struct): Update comment referring to
12624         targetm.target_option.optimization.  Use
12625         targetm_common.default_target_flags,
12626         targetm_common.unwind_tables_default and
12627         targetm_common.option_init_struct.
12628         (default_options_optimization): Use
12629         targetm_common.option_optimization_table.
12630         (finish_options): Use targetm_common.except_unwind_info,
12631         targetm_common.unwind_tables_default,
12632         targetm_common.have_named_sections and
12633         targetm_common.supports_split_stack.
12634         * toplev.c: Include common/common-target.h.
12635         (process_options): Use targetm_common.have_named_sections.
12636         * tree-tailcall.c: Include common/common-target.h.
12637         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12638         * tree.c: Include common/common-target.h.
12639         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12640         * varasm.c: Include common/common-target.h.
12641         (resolve_unique_section, hot_function_section,
12642         default_function_section): Use targetm_common.have_named_sections.
12643
12644 2011-06-14  Easwaran Raman  <eraman@google.com>
12645
12646         PR rtl-optimization/44194
12647         * dse.c: Include tree-flow.h
12648         (insn_info): Add new field non_frame_wild_read.
12649         (group_info): Add new fields escaped_n and escaped_p.
12650         (kill_on_calls): New variable.
12651         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12652         (dse_step0): Initialize kill_on_calls.
12653         (can_escape): New function.
12654         (set_usage_bits): Add additional parameter; record information
12655         about escaped locations.
12656         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12657         (dse_step2_nospill): Set kill_on_calls based on
12658         group->escaped_n and group->escaped_n.
12659         (add_wild_read): Refactor into...
12660         (reset_active_stores): ... New function, and
12661         (free_read_records): ... New function.
12662         (add_non_frame_wild_read): New function.
12663         (scan_insn): Call add_non_frame_wild_read on non-const calls.
12664         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12665         (dse_step5_nospill): Call scan_reads_nospill for instructions
12666         marked as non_frame_wild_read.
12667         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12668
12669 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12670
12671         * common/common-target-def.h, common/common-target.def,
12672         common/common-target.h, common/config/default-common.c,
12673         common/config/pa/pa-common.c: New files.
12674         * Makefile.in (common_out_file, common_out_object_file,
12675         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12676         (OBJS-libcommon-target): Include $(common_out_object_file).
12677         (prefix.o): Update dependencies.
12678         ($(common_out_object_file), common/common-target-hooks-def.h,
12679         s-common-target-hooks-def-h): New.
12680         (s-tm-texi): Also check timestamp on common-target.def.
12681         (build/genhooks.o): Update dependencies.
12682         * config.gcc (common_out_file, target_has_targetm_common): Define.
12683         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12684         TARGET_ALWAYS_STRIP_DOTDOT.
12685         * configure.ac (common_out_object_file): Define.
12686         (common_out_file, common_out_object_file): Substitute.
12687         (common): Create directory.
12688         * configure: Regenerate.
12689         * doc/tm.texi.in (targetm_common): Document.
12690         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12691         * doc/tm.texi: Regenerate.
12692         * genhooks.c (hook_array): Also include common/common-target.def.
12693         * prefix.c (tm.h): Don't include.
12694         (common/common-target.h): Include.
12695         (ALWAYS_STRIP_DOTDOT): Don't define.
12696         (update_path): Use targetm_common.always_strip_dotdot instead of
12697         ALWAYS_STRIP_DOTDOT.
12698         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12699
12700 2011-06-14  David Li  <davidxl@google.com>
12701
12702         * passes.c (execute_function_todo): Remove TODO_dump_func.
12703         (execute_one_pass): Remove TODO_dump_func.
12704         (execute_function_dump): New function.
12705         * tree-vrp.c: Remove TODO_dump_func.
12706         * regrename.c: Remove TODO_dump_func.
12707         * fwprop.c: Remove TODO_dump_func.
12708         * tree-into-ssa.c: Remove TODO_dump_func.
12709         * tree-complex.c: Remove TODO_dump_func.
12710         * tracer.c: Remove TODO_dump_func.
12711         * tree-loop-distribution.c: Remove TODO_dump_func.
12712         * postreload-gcse.c: Remove TODO_dump_func.
12713         * postreload.c: Remove TODO_dump_func.
12714         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12715         * tree-tailcall.c: Remove TODO_dump_func.
12716         * ipa-cp.c: Remove TODO_dump_func.
12717         * final.c: Remove TODO_dump_func.
12718         * tree-emutls.c: Remove TODO_dump_func.
12719         * omp-low.c: Remove TODO_dump_func.
12720         * tree-ssa-dse.c: Remove TODO_dump_func.
12721         * tree-ssa-uncprop.c: Remove TODO_dump_func.
12722         * auto-inc-dec.c: Remove TODO_dump_func.
12723         * reorg.c: Remove TODO_dump_func.
12724         * tree-ssa-copyrename.c: Remove TODO_dump_func.
12725         * tree-ssa-ccp.c: Remove TODO_dump_func.
12726         * compare-elim.c: Remove TODO_dump_func.
12727         * mode-switching.c: Remove TODO_dump_func.
12728         * modulo-sched.c: Remove TODO_dump_func.
12729         * tree-call-cdce.c: Remove TODO_dump_func.
12730         * cse.c: Remove TODO_dump_func.
12731         * web.c: Remove TODO_dump_func.
12732         * tree-stdarg.c: Remove TODO_dump_func.
12733         * lto-streamer-out.c: Remove TODO_dump_func.
12734         * tree-ssa-math-opts.c: Remove TODO_dump_func.
12735         * tree-ssa-dom.c: Remove TODO_dump_func.
12736         * tree-nrv.c: Remove TODO_dump_func.
12737         * loop-init.c: Remove TODO_dump_func.
12738         * gimple-low.c: Remove TODO_dump_func.
12739         * ipa-inline.c: Remove TODO_dump_func.
12740         * tree-ssa-sink.c: Remove TODO_dump_func.
12741         * jump.c: Remove TODO_dump_func.
12742         * ifcvt.c: Remove TODO_dump_func.
12743         * tree-ssa-loop.c: Remove TODO_dump_func.
12744         * recog.c: Remove TODO_dump_func.
12745         * dse.c: Remove TODO_dump_func.
12746         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12747         * matrix-reorg.c: Remove TODO_dump_func.
12748         * tree-eh.c: Remove TODO_dump_func.
12749         * regmove.c: Remove TODO_dump_func.
12750         * function.c: Remove TODO_dump_func.
12751         * tree-vectorizer.c: Remove TODO_dump_func.
12752         * ipa-split.c: Remove TODO_dump_func.
12753         * gcse.c: Remove TODO_dump_func.
12754         * tree-if-conv.c: Remove TODO_dump_func.
12755         * init-regs.c: Remove TODO_dump_func.
12756         * tree-ssa-phiopt.c: Remove TODO_dump_func.
12757         * implicit-zee.c: Remove TODO_dump_func.
12758         * lower-subreg.c: Remove TODO_dump_func.
12759         * bt-load.c: Remove TODO_dump_func.
12760         * tree-dfa.c: Remove TODO_dump_func.
12761         * except.c: Remove TODO_dump_func.
12762         * emit-rtl.c: Remove TODO_dump_func.
12763         * store-motion.c: Remove TODO_dump_func.
12764         * cfgexpand.c: Remove TODO_dump_func.
12765         * tree-cfgcleanup.c: Remove TODO_dump_func.
12766         * cfgcleanup.c: Remove TODO_dump_func.
12767         * tree-ssa-pre.c: Remove TODO_dump_func.
12768         * tree-sra.c: Remove TODO_dump_func.
12769         * tree-mudflap.c: Remove TODO_dump_func.
12770         * tree-ssa-copy.c: Remove TODO_dump_func.
12771         * cfglayout.c: Remove TODO_dump_func.
12772         * tree-ssa-forwprop.c: Remove TODO_dump_func.
12773         * tree-ssa-dce.c: Remove TODO_dump_func.
12774         * ira.c: Remove TODO_dump_func.
12775         * tree-ssa.c: Remove TODO_dump_func.
12776         * integrate.c: Remove TODO_dump_func.
12777         * tree-optimize.c: Remove TODO_dump_func.
12778         * tree-ssa-phiprop.c: Remove TODO_dump_func.
12779         * tree-object-size.c: Remove TODO_dump_func.
12780         * combine.c: Remove TODO_dump_func.
12781         * bb-reorder.c: Remove TODO_dump_func.
12782         * cprop.c: Remove TODO_dump_func.
12783         * var-tracking.c: Remove TODO_dump_func.
12784         * tree-profile.c: Remove TODO_dump_func.
12785         * tree-vect-generic.c: Remove TODO_dump_func.
12786         * reg-stack.c: Remove TODO_dump_func.
12787         * sched-rgn.c: Remove TODO_dump_func.
12788         * tree-ssa-structalias.c: Remove TODO_dump_func.
12789         * tree-switch-conversion.c: Remove TODO_dump_func.
12790         * tree-cfg.c: Remove TODO_dump_func.
12791         * tree-ssa-reassoc.c: Remove TODO_dump_func.
12792         * combine-stack-adj.c: Remove TODO_dump_func.
12793         * dce.c: Remove TODO_dump_func.
12794         * tree-ssanames.c: Remove TODO_dump_func.
12795         * regcprop.c: Remove TODO_dump_func.
12796
12797 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12798
12799         PR middle-end/47364
12800         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12801         and properly handle result not in Pmode.
12802
12803 2011-06-14  Robert Millan  <rmh@gnu.org>
12804
12805         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12806         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12807         `config/linux.h'.
12808
12809         * config/i386/kfreebsd-gnu64.h: New file.
12810         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12811         with `i386/kfreebsd-gnu64.h'.
12812
12813         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12814         (GNU_USER_LINK_EMULATION64): New macros.
12815         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12816         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12817         of hardcoding `elf_i386' and `elf_x86_64'.
12818
12819 2011-06-14  Nick Clifton  <nickc@redhat.com>
12820
12821         PR target/49403
12822         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12823
12824         PR target/49402
12825         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12826
12827 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
12828
12829         PR fortran/49103
12830         * tree.h (DECL_NONSHAREABLE): Define.
12831         (struct tree_decl_common): Change decl_common_unused to
12832         decl_nonshareable_flag.
12833         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12834         Ignore vars with DECL_NONSHAREABLE bit set.
12835         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12836         on stores to automatic aggregate vars.
12837
12838         PR rtl-optimization/49390
12839         Revert:
12840         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12841
12842         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12843         MEM_ALIAS_SET.
12844
12845 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
12846             Tom de Vries  <tom@codesourcery.com>
12847
12848         PR target/45098
12849         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12850         Document changed semantics.
12851         (max_stmt_executions, max_stmt_executions_int): Declare.
12852         * tree-data-ref.c (estimated_loop_iterations)
12853         (estimated_loop_iterations_int): Move functions...
12854         * tree-ssa-loop-niter.c (estimated_loop_iterations)
12855         (estimated_loop_iterations_int): here.
12856         (record_estimate): Change nb_iterations_upper_bound and
12857         nb_iterations_estimate semantics.
12858         (max_stmt_executions, max_stmt_executions_int): New function.
12859         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12860         (max_stmt_executions_tree): this.
12861         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12862         estimated_loop_iterations_tree.
12863         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12864         max_stmt_executions_int instead of estimated_loop_iterations_int.
12865         * predict.c (predict_loops): Idem.
12866         * tree-parloops.c (parallelize_loops): Idem.
12867         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12868         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12869         (init_omega_for_ddr_1): Idem.
12870         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12871         (loop_prefetch_arrays): Idem
12872         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12873         max_stmt_executions instead of estimated_loop_iterations.
12874         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12875         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12876         instead of nb_iterations_upper_bound.
12877
12878 2011-06-13  Jan Hubicka  <jh@suse.cz>
12879
12880         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12881
12882 2011-06-14  Richard Henderson  <rth@redhat.com>
12883
12884         PR debug/48459
12885         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12886         (based_loc_descr): Assert it's true.
12887         (compute_frame_pointer_to_fb_displacement): Set it, rather than
12888         aborting immediately.
12889
12890 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
12891             Mingfeng Wu  <mingfeng@faraday-tech.com>
12892
12893         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12894
12895 2011-06-13  Jan Hubicka  <jh@suse.cz>
12896
12897         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12898
12899 2011-06-13  Jan Hubicka  <jh@suse.cz>
12900
12901         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12902         similarly to DECL_COMDAT.
12903         * cgraphunit.c (cgraph_analyze_function): Likewise.
12904         * ipa.c (function_and_variable_visibility): Likewise.
12905
12906 2011-06-13  Jan Hubicka  <jh@suse.cz>
12907
12908         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12909         BINFO_VIRTUALS when streaming for ltrans unit.
12910
12911 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
12912
12913         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12914         (movdi_internal64): Same.
12915
12916 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12917
12918         PR target/44618
12919         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12920         a set of similar patterns, where the MATCH_OPERAND for the function
12921         argument is replaced with individual references to hardware registers.
12922         (save_fpregs_<mode>): Ditto
12923         (restore_gpregs_<mode>): Ditto
12924         (return_and_restore_gpregs_<mode>): Ditto
12925         (return_and_restore_fpregs_<mode>): Ditto
12926         (return_and_restore_fpregs_aix_<mode>): Ditto
12927
12928 2011-06-13  Jan Hubicka  <jh@suse.cz>
12929
12930         * ipa-utils.c (postorder_stack): New structure.
12931         (ipa_reverse_postorder): Handle aliases.
12932
12933 2011-06-13  Jan Hubicka  <jh@suse.cz>
12934
12935         * ipa-inline.c (reset_edge_caches): Walk aliases.
12936         (update_caller_keys): Do not test inlinability of aliases.
12937         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12938         (do_estimate_growth): Fix typo.
12939
12940 2011-06-13  Jan Hubicka  <jh@suse.cz>
12941
12942         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12943         (can_remove_node_now_p): ... here; handle same comdat groups.
12944         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12945         (inline_call): Update use of can_remove_node_now_p.
12946
12947 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12948
12949         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12950         condition to disallow non-identical memory locations.
12951         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12952         preference to bit manipulation instructions.
12953
12954 2011-06-13  Jan Hubicka  <jh@suse.cz>
12955
12956         * cgraph.c (cgraph_for_node_thunks_and_aliases,
12957         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12958         (nonremovable_p): New function.
12959         (cgraph_can_remove_if_no_direct_calls_p): New function.
12960         (used_from_object_file_p): New functoin.
12961         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12962         references from aliases.
12963         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12964         * ipa-inline.c (check_caller_edge): New function.
12965         (want_inline_function_called_once_p): Use it; accept aliases called
12966         once, too.
12967         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12968
12969 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12970
12971         PR target/48454
12972         * config/arm/neon.md (vec_pack_trunc): Set the lengths
12973         correctly for the case with Quad vectors.
12974
12975 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
12976            Ira Rosen  <ira.rosen@linaro.org>
12977
12978         PR tree-optimization/49352
12979         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12980         all, make sure loop_use_stmt after the loop is a def stmt of a used
12981         SSA_NAME that is the only one defined inside of the loop.  Don't
12982         check for COND_EXPR and GIMPLE_BINARY_RHS.
12983         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12984         check_reduction is true.
12985
12986 2011-06-11  Jan Hubicka  <jh@suse.cz>
12987
12988         PR middle-end/49373
12989         * ipa.c (cgraph_externally_visible_p): Check resolution info.
12990
12991 2011-06-11  Jan Hubicka  <jh@suse.cz>
12992
12993         PR middle-end/48836
12994         * ipa-inline-transform.c: Include tree-pass.h
12995         (inline_transform): Set TODO_update_ssa_only_virtuals.
12996         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12997
12998 2011-06-11  Jan Hubicka  <jh@suse.cz>
12999
13000         PR middle-end/49378
13001         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
13002         aliases and thunks.
13003
13004 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
13005
13006         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
13007         Take number of iterations to peel into account for equally frequent
13008         misalignment values.
13009
13010 2011-06-11  Jan Hubicka  <jh@suse.cz>
13011
13012         * lto-streamer-out.c (produce_symtab): Stream out the newly
13013         represented aliases.
13014
13015 2011-06-11  Jan Hubicka  <jh@suse.cz>
13016
13017         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
13018         varying args.
13019         (ipa_update_after_lto_read): Likewise.
13020         (ipa_write_node_info): Do not sream call_with_var_arguments.
13021         (ipa_read_node_info): Likewise.
13022
13023 2011-06-11  Jan Hubicka  <jh@suse.cz>
13024
13025         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
13026
13027 2011-06-11  Jan Hubicka  <jh@suse.cz>
13028
13029         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
13030         (lto_symtab_resolve_can_prevail_p): Likewise.
13031         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
13032         * cgraph.c (same_body_aliases_done): New global var.
13033         (cgraph_same_body_alias_1): Rename to ...
13034         (cgraph_create_function_alias): ... this one; reorg to new
13035         representation.
13036         (cgraph_same_body_alias): Use cgraph_create_function_alias;
13037         record references when asked to.
13038         (cgraph_add_thunk): Fix formating.
13039         (cgraph_get_node): Kill same body alias code.
13040         (cgraph_node_for_asm): Likewise.
13041         (cgraph_remove_same_body_alias): Remove.
13042         (cgraph_remove_node): Kill same body alias code.
13043         (cgraph_mark_address_taken_node): Mark also the aliased function
13044         as having address taken.
13045         (dump_cgraph_node): Dump same body aliases.
13046         (cgraph_for_node_thunks_and_aliases): Update for new alias
13047         representation.
13048         (cgraph_for_node_and_aliases): Likewise.
13049         * cgraph.h (same_body): Kll pointer.
13050         (same_body_alias): Update comment.
13051         (same_body_aliases_done): Declare.
13052         (cgraph_remove_same_body_alias): Remove declaration.
13053         (cgraph_create_function_alias): Declare.
13054         (cgraph_process_same_body_aliases): Declare.
13055         (cgraph_function_with_gimple_body_p): Check for alias.
13056         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
13057         (cgraph_alias_aliased_node): New function.
13058         (cgraph_function_node): Update for new aliases.
13059         (cgraph_function_or_thunk_node): Likewise.
13060         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
13061         (inline_call): Remove dead aliases.
13062         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
13063         name hack for same body aliases.
13064         (clone_of_p): Look through aliases.
13065         (verify_cgraph_node): Verify aliases.
13066         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
13067         (cgraph_process_same_body_aliases): New function.
13068         (process_function_and_variable_attributes): Disable weakref warning on
13069         alias.
13070         (cgraph_analyze_functions): Handle aliases.
13071         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
13072         (assemble_thunks): Rename to ...
13073         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
13074         (cgraph_expand_function): Remove alias output code.
13075         (cgraph_output_in_order): Skip aliases.
13076         (cgraph_preserve_function_body_p): Aliases don't need preserving.
13077         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
13078         (ipa_record_reference): Do not assert on alias references.
13079         (ipa_ref_has_aliases_p): New function.
13080         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
13081         (ipa_ref_has_aliases_p): Declare.
13082         * lto-cgraph.c (lto_output_node): Handle aliases.
13083         (input_node): Likewise.
13084         * lto-streamer-out.c (lto_output): Skip aliases.
13085         (produce_symtab): Kill same_body_alias code.
13086         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
13087         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
13088         * ipa-inline.c (update_caller_keys): Walk aliases.
13089         (inline_small_functions): Fix thinko in previous patch.
13090         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
13091         (function_and_variable_visibility): Do not walk same body aliases.
13092         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
13093         (ipa_pta_execute): Use it.
13094
13095 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13096
13097         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
13098         (*vec_dupv2df): Rename from vec_dupv2df.
13099         (vec_dupv2df): New expander.
13100
13101 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13102
13103         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
13104
13105 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
13106
13107         * config/i386/i386.md: Use default value in "isa" attribute.
13108         * config/i386/sse.md: Ditto.
13109         * config/i386/mmx.md: Ditto.
13110
13111 2011-06-10  Wei Guozhi  <carrot@google.com>
13112
13113         PR target/45335
13114         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13115         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13116         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13117         related peephole2.
13118         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13119         related peephole2.
13120         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13121         (arm_legitimate_ldrd_p): New prototype.
13122         (arm_output_ldrd): New prototype.
13123         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13124         (arm_legitimate_ldrd_p): New function.
13125         (arm_output_ldrd): New function.
13126
13127 2011-06-10  David Li  <davidxl@google.com>
13128
13129         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13130         * passes.c (passr_eq): New function.
13131         (create_pass_tab): New function.
13132         (pass_traverse): New function.
13133         (dump_one_pass): New function.
13134         (dump_pass_list): New function.
13135         (dump_passes): New function.
13136
13137 2011-06-10  Jan Hubicka  <jh@suse.cz>
13138
13139         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13140         setting the nothrow flag.
13141         * ipa-reference.c (propagate): Skip aliases.
13142         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13143         (propagate_nothrow): Skip aliases; do not update cgraph.
13144         (local_pure_const): Do not update cgraph.
13145         * tree-profile.c (tree_profiling): Do fixup_cfg.
13146
13147 2011-06-10  Jan Hubicka  <jh@suse.cz>
13148
13149         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13150         (cgraph_local_node_p): ... here; handle aliases.
13151         (has_addr_references_p): Break out from ...;
13152         (cgraph_remove_unreachable_nodes) ... here.
13153
13154 2011-06-10  Jan Hubicka  <jh@suse.cz>
13155
13156         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13157         * common.opt (flag_inline_functions_called_once): Do not
13158         initialize to 1.
13159
13160 2011-06-10  Jan Hubicka  <jh@suse.cz>
13161
13162         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13163         (ipcp_initialize_node_lattices): Do not deal with aliases;
13164         Do not try to propagate through thunks.
13165         (ipcp_change_tops_to_bottom): Do not deal with aliases.
13166
13167 2011-06-10  Jan Hubicka  <jh@suse.cz>
13168
13169         * ipa-prop.c (ipa_write_node_info): Stream jump functions
13170         for indirect calls.
13171         (ipa_read_node_info): Likewise.
13172
13173 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13174
13175         PR lto/49302
13176         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13177         (build_and_insert_call): Likewise.
13178         (build_and_insert_ref): New.
13179         (gimple_expand_builtin_pow): Minor cleanup.
13180         (gimple_expand_builtin_cabs): New.
13181         (execute_cse_sincos): Add case for BUILT_IN_CABS.
13182
13183 2011-06-10  Jan Hubicka  <jh@suse.cz>
13184
13185         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13186         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13187         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13188         (ipcp_propagate_stage): Skip aliases when propagating.
13189         (ipcp_need_redirect_p): Skip aliases.
13190         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13191         collect_callers_of_node.
13192         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13193         for aliases.
13194         (ipa_compute_jump_functions): Look through aliases.
13195
13196 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13197
13198         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13199
13200 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13201
13202         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13203         Adjust comments.
13204         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13205
13206 2011-06-10  Jan Hubicka  <jh@suse.cz>
13207
13208         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13209         Update call of gimple_get_virt_method_for_binfo.
13210         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13211         refuse_thunks parameter.
13212         (gimple_fold_call): Update.
13213         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13214
13215 2011-06-10  Jan Hubicka  <jh@suse.cz>
13216
13217         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13218         (not_all_callers_have_enough_arguments_p): ... this one; turn into
13219         worker for cgraph_for_node_and_aliases.
13220         (convert_callers_for_node): Break out from ...
13221         (convert_callers): ... here.
13222         (modify_function): Use collect_callers_of_node.
13223         (ipa_early_sra): Use cgraph_for_node_and_aliases.
13224
13225 2011-06-10  Richard Guenther  <rguenther@suse.de>
13226
13227         PR tree-optimization/49361
13228         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13229         when not already in gimple form.
13230
13231 2011-06-10  Richard Guenther  <rguenther@suse.de>
13232
13233         PR bootstrap/49344
13234         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13235         FOR_EACH_PHI_OR_STMT_USE.
13236
13237 2011-06-10  Jan Hubicka  <jh@suse.cz>
13238
13239         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13240         (clone_inlined_nodes): ... here.
13241         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13242         to real destination prior inlining.
13243         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13244         can_early_inline_edge_p, want_early_inline_function_p,
13245         want_early_inline_function_p, want_inline_small_function_p,
13246         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13247         edge_badness, update_all_callee_keys, lookup_recursive_calls,
13248         add_new_edges_to_heap, inline_small_functions, flatten_function,
13249         inline_always_inline_functions, early_inline_small_functions): Use
13250         cgraph_function_or_thunk_node.
13251         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13252         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13253         (do_estimate_edge_growth_1): Break out from ...
13254         (do_estimate_growth) ... here; walk aliases.
13255         (inline_generate_summary): Skip aliases.
13256
13257 2011-06-10  Richard Guenther  <rguenther@suse.de>
13258
13259         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13260         forward when combining, visit inserted stmts when a stmt was changed.
13261
13262 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
13263
13264         * tree.h (error_operand_p): Add.
13265         * dbxout.c (dbxout_type_fields): Use the latter.
13266         * c-decl.c (add_stmt): Likewise.
13267         * gimplify.c (omp_add_variable, omp_notice_variable,
13268         gimplify_scan_omp_clauses): Likewise.
13269
13270 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
13271
13272         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13273         when a value is actually passed in regs.
13274
13275 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
13276             Laurent Rougé  <laurent.rouge@menta.fr>
13277
13278         * doc/invoke.texi (SPARC options): Add -mflat.
13279         * config/sparc/sparc.opt: Likewise.
13280         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13281         (sparc_flat_expand_prologue): Declare.
13282         (sparc_flat_expand_epilogue): Likewise.
13283         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13284         (CPP_ENDIAN_SPEC): Replace with...
13285         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
13286         (CPP_SPEC): Adjust to above change.
13287         (EXTRA_SPECS): Likewise.
13288         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13289         (INCOMING_REGNO): Likewise.
13290         (OUTGOING_REGNO): Likewise.
13291         (LOCAL_REGNO): Likewise.
13292         (SETUP_FRAME_ADDRESSES): Likewise.
13293         (FIXED_REGISTERS): Set 0 for %fp.
13294         (CALL_USED_REGISTERS): Likewise.
13295         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13296         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13297         (RETURN_ADDR_REGNUM): Define.
13298         (RETURN_ADDR_RTX): Use it.
13299         (INCOMING_RETURN_ADDR_REGNUM): Define.
13300         (INCOMING_RETURN_ADDR_RTX): Use it.
13301         (DWARF_FRAME_RETURN_COLUMN): Likewise.
13302         (EH_RETURN_REGNUM): Define.
13303         (EH_RETURN_STACKADJ_RTX): Use it.
13304         (EH_RETURN_HANDLER_RTX): Delete.
13305         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13306         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13307         Delete.
13308         (struct machine_function): Add frame_size, apparent_frame_size,
13309         frame_base_reg, frame_base_offset, n_global_fp_regs and
13310         save_local_in_regs_p fields.
13311         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13312         sparc_frame_base_offset, sparc_n_global_fp_regs,
13313         sparc_save_local_in_regs_p): New macros.
13314         (sparc_option_override): Error out if -fcall-saved-REG is specified
13315         for Out registers.
13316         (eligible_for_restore_insn): Fix formatting.
13317         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
13318         (eligible_for_sibcall_delay): Likewise.
13319         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13320         (sparc_legitimate_address_p): Adjust to above change.
13321         (save_global_or_fp_reg_p): New predicate.
13322         (return_addr_reg_needed_p): Likewise.
13323         (save_local_or_in_reg_p): Likewise.
13324         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
13325         (SORR_SAVE, SORR_RESTORE): Delete.
13326         (sorr_pred_t): New typedef.
13327         (sorr_act_t): New enum.
13328         (save_or_restore_regs): Rename to...
13329         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
13330         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13331         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
13332         mechanism.  Add CFI information for double-word saves in 32-bit mode.
13333         (emit_adjust_base_to_offset): New function extracted from...
13334         (emit_save_or_restore_regs): ...this.  Rename the rest to...
13335         (emit_save_or_restore_regs_global_fp_regs): ...this.
13336         (emit_save_or_restore_regs_local_in_regs): New function.
13337         (gen_create_flat_frame_[123]): New functions.
13338         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
13339         (sparc_flat_expand_prologue): New function.
13340         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13341         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
13342         (sparc_flat_expand_epilogue): New function.
13343         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13344         (output_return): Likewise.
13345         (output_sibcall): Likewise.
13346         (sparc_output_mi_thunk): Likewise.
13347         (sparc_frame_pointer_required): Likewise.
13348         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13349         function optimization.
13350         * config/sparc/sparc.md (flat): New attribute.
13351         (prologue): Add TARGET_FLAT handling.
13352         (save_register_window): Disable if TARGET_FLAT.
13353         (create_flat_frame_[123]): New patterns.
13354         (epilogue): Add TARGET_FLAT handling.
13355         (sibcall_epilogue): Likewise.
13356         (eh_return): New expander.
13357         (eh_return_internal): New insn and splitter.
13358         (return_internal): Add TARGET_FLAT handling.
13359         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13360         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13361         (nonlocal_goto): Add TARGET_FLAT handling.
13362         * config/sparc/t-elf: Add -mflat multilib.
13363         * config/sparc/t-leon: Likewise.
13364
13365 2011-06-10  Jan Hubicka  <jh@suse.cz>
13366
13367         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13368         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13369         (self_recursive_p): Use cgraph_function_node.
13370         (propagate_pure_const): Likewise.
13371         (propagate_nothrow): Likewise.
13372         * ipa-reference.c (ipa_reference_get_not_read_global): Use
13373         cgraph_function_node.
13374         (propagate_bits): Likewise.
13375         (propagate): Likewise.
13376
13377 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13378             Richard Earnshaw  <rearnsha@arm.com>
13379
13380         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13381         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13382         (*thumb2_movdi_vfp): Delete.
13383         (*arm_movdi_vfp_cortexa8): Delete.
13384         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13385         (*movdi_vfp_cortexa8): Likewise.
13386
13387 2011-06-10  Richard Guenther  <rguenther@suse.de>
13388
13389         * stor-layout.c (initialize_sizetypes): Give names to all
13390         sizetype kinds.
13391
13392 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
13393
13394         PR tree-optimization/49318
13395         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13396         irrelevant pattern statements.
13397
13398 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13399
13400         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13401
13402         PR bootstrap/49354
13403         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13404         to last assignment.
13405
13406 2011-06-09  Jan Hubicka  <jh@suse.cz>
13407
13408         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13409         do not recompute reachable flag.
13410         (cgraph_finalize_function, cgraph_analyze_functions): Set
13411         redefined_extern_inline here.
13412
13413 2011-06-09  Jan Hubicka  <jh@suse.cz>
13414
13415         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13416         (cgraph_only_called_directly_p): ... this one; bring offline.
13417         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13418         varpool_used_from_object_file_p): Drop names from the declaratoin.
13419         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13420         collect_callers_of_node): New.
13421         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13422         (cgraph_edge_recursive_p): Use cgraph_function_node.
13423         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13424         (cgraph_node_cannot_be_local_p_1): Break out from ...
13425         (cgraph_node_can_be_local_p): ... here; walk aliases.
13426         (cgraph_for_node_thunks_and_aliases): New function.
13427         (cgraph_for_node_and_aliases): New function.
13428         (cgraph_make_node_local_1): Break out from ...
13429         (cgraph_make_node_local) ... here; use
13430         cgraph_for_node_thunks_and_aliases.
13431         (cgraph_set_nothrow_flag_1): Break out from ...
13432         (cgraph_set_nothrow_flag) ... here;
13433         use cgraph_for_node_thunks_and_aliases.
13434         (cgraph_set_const_flag_1): Break out from ...
13435         (cgraph_set_const_flag) ... here;
13436         use cgraph_for_node_thunks_and_aliases.
13437         (cgraph_set_pure_flag_1): Break out from ...
13438         (cgraph_set_pure_flag) ... here;
13439         use cgraph_for_node_thunks_and_aliases.
13440         (cgraph_propagate_frequency_1): Break out from ...
13441         (cgraph_propagate_frequency) ... here; use
13442         cgraph_for_node_thunks_and_aliases.
13443         (cgraph_used_from_object_file_p): Do not care about aliases.
13444         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13445         New functions.
13446         (collect_callers_of_node_1, collect_callers_of_node): New functions.
13447
13448 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13449
13450         PR rtl-optimization/49154
13451         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13452         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13453         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13454         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13455         * config/cris/cris.h (cris_register_move_cost): Remove
13456         !TARGET_V32 code.  Tweak comments.
13457
13458 2011-06-09  Jan Hubicka  <jh@suse.cz>
13459
13460         * cgraphbuild.c (record_eh_tables): Mark personality function as having
13461         address taken.
13462
13463 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13464
13465         PR rtl-optimization/49154
13466         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13467         is a matching slot in the hashtable, assign it to classes_ptr.
13468
13469         PR rtl-optimization/49154
13470         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13471         register classes.
13472         * doc/tm.texi: Regenerate.
13473
13474 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13475
13476         PR target/49307
13477         * config/sh/sh.md (UNSPEC_CHKADD): New.
13478         (chk_guard_add): New define_insn_and_split.
13479         (symGOT_load): Use chk_guard_add instead of blockage.
13480
13481 2011-06-09  Kai Tietz  <ktietz@redhat.com>
13482
13483         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13484
13485 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13486
13487         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13488
13489 2011-06-09  Wei Guozhi  <carrot@google.com>
13490
13491         PR target/46975
13492         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13493         (peephole2 for conditional move): Generate 16 bit instructions.
13494
13495 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
13496
13497         * config/i386/i386.md (*movdi_internal_rex64): Merge
13498         alternatives 6 and 8.
13499
13500 2011-06-09  David Li  <davidxl@google.com>
13501
13502         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13503         * passes.c (passr_eq): New function.
13504         (create_pass_tab): New function.
13505         (pass_traverse): New function.
13506         (dump_one_pass): New function.
13507         (dump_pass_list): New function.
13508         (dump_passes): New function.
13509
13510 2011-06-09  David Li  <davidxl@google.com>
13511
13512         * tree-complex.c (tree_lower_complex): Gate cleanup.
13513         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13514         (execute_optimize_stdarg): Ditto.
13515         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13516         (execute_cleanup_eh_1): Ditto.
13517         (execute_cleanup_eh): Ditto.
13518         * gcse.c (gate_rtl_pre): Ditto.
13519         (execute_rtl_pre): Ditto.
13520         * except.c (finish_eh_generation): Ditto.
13521         (convert_to_eh_region_ranges): Ditto.
13522         * cprop.c (one_cprop_pass): Ditto.
13523
13524 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
13525
13526         PR target/48673
13527         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13528         in all basic blocks.
13529
13530 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13531
13532         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13533         (HAVE_ENABLE_EXECUTE_STACK): Define.
13534         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13535         (HAVE_ENABLE_EXECUTE_STACK): Define.
13536         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13537         (HAVE_ENABLE_EXECUTE_STACK): Define.
13538         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13539         (ENABLE_EXECUTE_STACK): Remove.
13540         (HAVE_ENABLE_EXECUTE_STACK): Define.
13541         [IN_LIBGCC2]: Don't include <windows.h>.
13542         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13543         (HAVE_ENABLE_EXECUTE_STACK): Define.
13544         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13545         (HAVE_ENABLE_EXECUTE_STACK): Define.
13546         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13547         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13548         (HAVE_ENABLE_EXECUTE_STACK): Define.
13549         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13550         (HAVE_ENABLE_EXECUTE_STACK): Define.
13551         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13552         (HAVE_ENABLE_EXECUTE_STACK): Define.
13553         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13554         (HAVE_ENABLE_EXECUTE_STACK): Define.
13555         * config/alpha/alpha.c (alpha_trampoline_init): Test
13556         HAVE_ENABLE_EXECUTE_STACK.
13557         * config/i386/i386.c (ix86_trampoline_init): Likewise.
13558         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13559         (sparc64_initialize_trampoline): Likewise.
13560         * libgcc2.c [L_enable_execute_stack]: Remove.
13561         * system.h (ENABLE_EXECUTE_STACK): Poison.
13562         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13563         * doc/tm.texi: Regenerate.
13564         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13565
13566 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
13567
13568         PR middle-end/49308
13569         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13570         variable.  After resetting and rescanning insn continue with previous
13571         statement.
13572
13573 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13574
13575         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13576         (gcc_cv_ld_hidden): Likewise.
13577         * configure: Regenerate.
13578         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13579         (ix86_stack_protect_fail): Mark unused.
13580         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13581         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13582         [TARGET_MACHO]: Don't define.
13583         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13584         (TARGET_STACK_PROTECT_FAIL): Likewise.
13585         (rs6000_stack_protect_fail): Mark unused.
13586         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13587         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
13588
13589 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13590
13591         * varasm.c (get_section): Print location of other conflict
13592         for section conflicts.
13593
13594 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13595
13596         * config/i386/driver-i386.c (host_detect_local_cpu):
13597         Add model 0x2d Intel CPU.
13598
13599 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13600
13601         * reginfo.c (global_regs_decl): Add.
13602         (globalize_reg): Add decl parameter. Compute location.  Pass location
13603         to warnings and add inform. Store decl in global_regs_decl.
13604         * rtl.h (globalize_reg): Update prototype.
13605         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13606
13607 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
13608
13609         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13610
13611 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13612
13613         PR target/49305
13614         * config/sh/predicates.md (general_movsrc_operand): Check
13615         mode for memory with indexed address for QI and HImode.
13616         (general_movdst_operand): Likewise.
13617
13618 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13619
13620         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13621
13622 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
13623
13624         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13625         (num_ssa_operands): Likewise.
13626         (op_iter_init_phiuse): Forward-declare.
13627         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13628
13629 2011-06-08  Nick Clifton  <nickc@redhat.com>
13630
13631         * doc/invoke.texi (ARM Options): Update description of
13632         -mthumb-interwork.
13633
13634 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13635
13636         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13637         unknown Intel family 0x6 CPUs.
13638
13639 2011-06-08  Martin Jambor  <mjambor@suse.cz>
13640
13641         * tree-sra.c (mark_rw_status): Removed.
13642         (analyze_access_subtree): New parameter parent instead of
13643         mark_read and mark_write, propagate from that.
13644
13645 2011-06-08  Julian Brown  <julian@codesourcery.com>
13646
13647         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13648         for double-precision helper functions in hard-float mode if only
13649         single-precision arithmetic is supported in hardware.
13650
13651 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
13652
13653         PR rtl-optimization/49303
13654         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
13655         code_motion_path_driver returned 0 or 1.
13656         (sel_region_finish): Clear h_d_i_d.
13657
13658 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13659
13660         * config/sh/sh.c (prepare_move_operands): Set pic register
13661         appropriately for global and local dynamic tls models even
13662         if flag_pic is unset.
13663
13664 2011-06-07  Jason Merrill  <jason@redhat.com>
13665
13666         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13667
13668 2011-06-07  Xinliang David Li  <davidxl@google.com>
13669         * passes.c (enable_disable_pass): Handle assembler name.
13670         (is_pass_explicitly_enabled_or_disabled): Ditto.
13671
13672 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13673
13674         PR tree-optimization/48497
13675         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13676
13677 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13678
13679         PR tree-optimization/46728
13680         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13681         to use gimple_val_nonnegative_real_p.
13682         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13683         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13684
13685 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
13686
13687         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13688
13689 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
13690
13691         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13692         constant vectors.
13693
13694 2011-06-07  Richard Guenther  <rguenther@suse.de>
13695
13696         * stor-layout.c (initialize_sizetypes): Initialize all
13697         sizetypes based on target definitions.
13698         (set_sizetype): Remove.
13699         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13700         * tree.h (set_sizetype): Remove.
13701
13702 2011-06-07  Nick Clifton  <nickc@redhat.com>
13703
13704         * config.gcc: Unify V850 architecture options and add support for
13705         newer V850 architectures.
13706         * config/v850/t-v850e: Delete.
13707
13708 2011-06-07  Richard Guenther  <rguenther@suse.de>
13709
13710         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13711         Call set_sizetype from here.
13712
13713 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
13714
13715         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13716         (*maddhisi4tb, *maddhisi4tt): New define_insns.
13717
13718 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
13719             Andrew Stubbs  <ams@codesourcery.com>
13720
13721         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13722         multiplies.
13723         * doc/md.texi (Canonicalization of Instructions): Document widening
13724         multiply canonicalization.
13725
13726 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
13727
13728         PR gcov-profile/49299
13729         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13730
13731 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
13732
13733         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13734         a pointer.
13735         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13736         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13737         vect_recog_pow_pattern): Likewise.
13738         (vect_pattern_recog_1): Remove declaration.
13739         (widened_name_p): Remove declaration.  Add new argument to specify
13740         whether to check that both types are either signed or unsigned.
13741         (vect_recog_widen_mult_pattern): Update documentation.  Handle
13742         unsigned patterns and multiplication by constants.
13743         (vect_pattern_recog_1): Update vect_recog_func references.  Use
13744         statement information from the statement returned from pattern
13745         detection functions.
13746         (vect_pattern_recog): Update vect_recog_func reference.
13747         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13748         multiplication by a constant use the type of the other operand.
13749
13750 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
13751
13752         PR rtl-optimization/49145
13753         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13754
13755 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
13756
13757         PR debug/49262
13758         * dwarf2out.c (native_encode_initializer): Decrement count in each
13759         iteration.
13760
13761         PR debug/49294
13762         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13763         non-MODE_INT modes.
13764
13765         PR c++/49264
13766         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13767         if stmt folded into nothing.
13768         * tree-inline.c (fold_marked_statements): If a builtin at the end of
13769         a bb folded into nothing, just update cgraph edges and move to next bb.
13770         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13771         to be NULL.  Don't compute count and frequency if new_call is NULL.
13772
13773 2011-06-04  Diego Novillo  <dnovillo@google.com>
13774
13775         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13776         (cgraph.o): Likewise.
13777         (cgraphunit.o): Likewise.
13778         * cgraphunit.c: Include lto-streamer.h
13779         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13780         if LTO is enabled.
13781         * lto-streamer-in.c (unpack_value_fields): Call
13782         streamer_hooks.unpack_value_fields if set.
13783         (lto_materialize_tree): For unhandled nodes, first try to
13784         call lto_streamer_hooks.alloc_tree, if it exists.
13785         (lto_input_ts_decl_common_tree_pointers): Move reading of
13786         DECL_INITIAL to lto_streamer_read_tree.
13787         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13788         (lto_streamer_read_tree): New.
13789         (lto_reader_init): Rename from lto_init_reader.
13790         Move initialization code to lto/lto.c.
13791         * lto-streamer-out.c (pack_value_fields): Call
13792         streamer_hooks.pack_value_fields if set.
13793         (lto_output_tree_ref): For tree nodes that are not normally indexable,
13794         call streamer_hooks.indexable_with_decls_p before giving up.
13795         (lto_output_ts_decl_common_tree_pointers): Move handling
13796         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13797         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13798         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
13799         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13800         (lto_streamer_write_tree): New.
13801         (lto_output): Call lto_streamer_init directly.
13802         (lto_writer_init): Remove.
13803         * lto-streamer.c (streamer_hooks): New.
13804         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13805         instead of lto_preload_common_nodes.
13806         (lto_is_streamable): Move from lto-streamer.h
13807         (lto_streamer_hooks_init): New.
13808         (streamer_hooks): New.
13809         (streamer_hooks_init): New.
13810         * lto-streamer.h (struct output_block): Forward declare.
13811         (struct lto_input_block): Likewise.
13812         (struct data_in): Likewise.
13813         (struct bitpack_d): Likewise.
13814         (struct streamer_hooks): Declare.
13815         (streamer_hooks): Declare.
13816         (lto_streamer_hooks_init): Declare.
13817         (lto_streamer_write_tree): Declare.
13818         (lto_streamer_read_tree): Declare.
13819         (streamer_hooks_init): Declare.
13820         (lto_is_streamable): Move to lto-streamer.c
13821
13822 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13823
13824         * longlong.h (smul_ppmm): The resulting register pair contains the
13825         higher order word first.
13826
13827 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13828
13829         PR tree-optimization/46728
13830         * builtins.c (powi_table): Remove.
13831         (powi_lookup_cost): Remove.
13832         (powi_cost): Remove.
13833         (expand_powi_1): Remove.
13834         (expand_powi): Remove.
13835         (expand_builtin_pow_root): Remove.
13836         (expand_builtin_pow): Remove.
13837         (expand_builtin_powi): Eliminate handling of constant exponent.
13838         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13839
13840 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13841
13842         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13843
13844 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13845
13846         * dce.c (reset_unmarked_insns_debug_uses): New.
13847         (delete_unmarked_insns): Skip debug insns.
13848         (prescan_insns_for_dce): Likewise.
13849         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13850         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13851         active reg can be found.
13852         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
13853         (convert_regs_1): Use it.
13854
13855 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13856
13857         * tree-pretty-print.c (dump_function_header): Add flags.
13858         Don't dump decl_uid with nouid.
13859         * tree-pretty-print.h (dump_function_header): Adjust.
13860         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13861         * passes.c (pass_init_dump_file): Pass dump_flags on.
13862         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13863
13864 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13865
13866         PR bootstrap/49270
13867         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13868
13869 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
13870
13871         PR tree-optimization/49243
13872         * calls.c (setjmp_call_p): Also check if fndecl has the
13873         returns_twice attribute.
13874
13875 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13876
13877         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13878         -ffast-math etc.
13879
13880 2011-06-06  Richard Henderson  <rth@redhat.com>
13881             Georg-Johann Lay  <avr@gjlay.de>
13882
13883         PR target/42210
13884         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13885         New predicates.
13886         * config/avr/avr.md ("insv"): New insn expander.
13887         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13888         "*insv.not.io", "*insv.reg"): New insns.
13889
13890 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
13891
13892         PR target/49285
13893         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13894         to nonimmediate_operand from memory_operand for the operand that is to
13895         be forced to memory by the expander.  Lose the constraints.
13896
13897 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13898
13899         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13900         EH return when delayed branches are disabled.
13901
13902 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
13903
13904         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13905         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
13906         calculation.
13907         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13908         Simplify MODE_V1DF and MODE_V2SF handling.
13909         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13910         Simplify MODE_SF handling.
13911
13912 2011-06-04  Jan Hubicka  <jh@suse.cz>
13913
13914         PR tree-optimization/48893
13915         PR tree-optimization/49091
13916         PR tree-optimization/49179
13917         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13918         Bounds check.
13919
13920 2011-06-04  Jan Hubicka  <jh@suse.cz>
13921
13922         PR lto/48954
13923         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13924         bitmaps.
13925
13926 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
13927
13928         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13929
13930 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13931
13932         PR target/49281
13933         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13934         to be strictly smaller than 1 << shiftcount.
13935
13936 2011-06-04  Jan Hubicka  <jh@suse.cz>
13937
13938         PR tree-optimize/48929
13939         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13940         of empty predicate.
13941
13942 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
13943
13944         PR debug/48333
13945         * calls.c (emit_call_1): Prefer the __builtin declaration of
13946         builtin functions.
13947
13948 2011-06-03   Diego Novillo  <dnovillo@google.com>
13949
13950         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13951         (lto_input_tree_pointers): Likewise.
13952         * lto-streamer-out.c (pack_value_fields): Likewise.
13953         (lto_output_tree_pointers): Likewise.
13954         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13955         and OPTIMIZATION_NODE.
13956
13957 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13958
13959         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13960         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13961         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13962         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13963         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13964         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13965         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13966         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13967         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13968         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13969         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13970         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13971         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13972         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13973         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13974         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13975         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13976         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13977         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13978         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13979         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13980         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13981         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13982         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13983         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13984         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13985         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13986         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13987         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13988         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13989         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13990         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13991         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13992         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13993         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13994         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13995         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13996         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13997         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13998         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13999         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
14000         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
14001         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
14002         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
14003         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
14004         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
14005         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
14006         * system.h (MD_UNWIND_SUPPORT): Poison.
14007         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
14008         * doc/tm.texi: Regenerate.
14009         * unwind-dw2.c: Include md-unwind-support.h instead of
14010         MD_UNWIND_SUPPORT.
14011         * config/ia64/unwind-ia64.c: Likewise.
14012         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14013
14014 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
14015
14016         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
14017
14018 2011-06-03  Richard Henderson  <rth@redhat.com>
14019             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14020
14021         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
14022         (sigill_hdlr): Correct insn, insn size.
14023         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
14024
14025 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14026
14027         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
14028         t-slibgcc-dummy.
14029         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
14030         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
14031         * config/mips/t-iris: Remove.
14032         * config/mips/t-irix6: New file.
14033         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
14034
14035 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14036
14037         * Makefile.in (LIB2ADDEHDEP): Remove.
14038         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
14039         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
14040         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
14041         * config/t-darwin (LIB2ADDEHDEP): Remove.
14042         * config/t-freebsd (LIB2ADDEHDEP): Remove.
14043         * config/t-linux (LIB2ADDEHDEP): Remove.
14044
14045 2011-06-03  Diego Novillo  <dnovillo@google.com>
14046
14047         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
14048         (lto_register_var_decl_in_symtab): Likewise.
14049         (lto_register_function_decl_in_symtab): Likewise.
14050         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
14051         logic to uniquify_nodes.
14052
14053 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14054
14055         * config/alpha/t-osf5: Remove.
14056         * config/alpha/t-osf-pthread: Remove.
14057         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14058         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
14059
14060 2011-06-03  Julian Brown  <julian@codesourcery.com>
14061
14062         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
14063         (strongarm1110): Use strongarm tuning.
14064         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
14065         * config/arm/arm.c (arm_strongarm_tune): New.
14066         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14067         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
14068         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
14069         setting, using previous defaults or 1 for Cortex-A5.
14070         (arm_option_override): Set max_insns_skipped from current tuning.
14071
14072 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
14073
14074         * doc/install.texi (Options specification): Document --with-specs.
14075
14076 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14077
14078         * config/arm/neon.md (orndi3_neon): Actually split it.
14079
14080 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14081
14082         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
14083         * var-tracking.c (reverse_op): Limite recurse depth to 5.
14084
14085 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
14086
14087         PR debug/47590
14088         * target.def (delay_sched2, delay_vartrack): New.
14089         * doc/tm.texi.in: Update.
14090         * doc/tm.texi: Rebuild.
14091         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
14092         * var-tracking.c (gate_handle_var_tracking): Likewise.
14093         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
14094         (bfin_flag_var_tracking): Drop.
14095         (output_file_start): Don't save and override flag_var_tracking.
14096         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
14097         (bfin_reorg): Test original variables.
14098         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14099         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
14100         (ia64_flag_var_tracking): Drop.
14101         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14102         (ia64_file_start): Don't save and override flag_var_tracking.
14103         (ia64_override_options_after_change): Ditto
14104         flag_schedule_insns_after_reload.
14105         (ia64_reorg): Test original variables.
14106         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
14107         (picochip_flag_var_tracking): Drop.
14108         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
14109         (picochip_option_override): Don't save and override
14110         flag_schedule_insns_after_reload.
14111         (picochip_asm_file_start): Ditto flag_var_tracking.
14112         (picochip_reorg): Test original variables.
14113         * config/spu/spu.c (spu_flag_var_tracking): Drop.
14114         (TARGET_DELAY_VARTRACK): Define.
14115         (spu_var_tracking): New.
14116         (spu_machine_dependent_reorg): Call it.
14117         (asm_file_start): Don't save and override flag_var_tracking.
14118
14119 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14120
14121         PR target/49163
14122         * config/sh/predicates.md (general_movsrc_operand): Return 0
14123         for memory and memory subreg of which address is an invalid
14124         indexed address for QI and HImode.
14125         (general_movdst_operand): Likewise.
14126
14127 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14128
14129         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14130         edges only, when there is a non-local label in the function.
14131         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14132
14133 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14134
14135         * config/i386/constraints.md (Y3): New register constraint.
14136         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14137         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14138         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14139         *sse2_interleave_lowv2df.
14140
14141 2011-06-02  Julian Brown  <julian@codesourcery.com>
14142
14143         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14144         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14145         (arm_cortex_a5_tune): New.
14146
14147 2011-06-02  Julian Brown  <julian@codesourcery.com>
14148
14149         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14150         * config/arm/arm.c (arm_default_branch_cost): New.
14151         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14152         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14153         (arm_fa726_tune): Set branch_cost field using
14154         arm_default_branch_cost.
14155         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14156         current_tune structure.
14157         * dojump.c (tm_p.h): Include file.
14158
14159 2011-06-02  Julian Brown  <julian@codesourcery.com>
14160
14161         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14162         tuning.
14163         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14164         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14165         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14166         field.
14167         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14168         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14169         (arm_fa726te_tune): Add prefer_constant_pool setting.
14170         (arm_v6t2_tune, arm_cortex_tune): New.
14171         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14172         prefer_constant_pool setting.
14173
14174 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14175
14176         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14177         switch statement.
14178         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14179         (*movdf_internal) <case 6,7,8>: Ditto.
14180
14181         * config/i386/constraints.md (Y4): New register constraint.
14182         * config/i386/sse.md (vec_set<mode>_0): Merge with
14183         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14184         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14185         *vec_extractv2di_1_sse.
14186         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14187         and *vec_concatv2di_rex64_sse.
14188
14189 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
14190
14191         PR target/48807
14192         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14193         of cgraph_local_info for null before attempting to use it.
14194
14195 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14196
14197         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14198         (current_function_dynamic_alloc_count): Delete.
14199         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14200         (expand_builtin_nonlocal_goto): Remove obsolete comment.
14201         (expand_builtin_update_setjmp_buf): Remove dead code.
14202         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14203         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14204         support.
14205         * function.c (instantiate_virtual_regs): Likewise.
14206         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14207         for a block with a single abnormal incoming edge.
14208         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14209         (SETJMP_VIA_SAVE_AREA): Delete.
14210         * config/sparc/sparc-protos.h (load_got_register): Declare.
14211         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14212         (load_got_register): Make global.
14213         (sparc_frame_pointer_required): Add 'static'.
14214         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
14215         (sparc_builtin_setjmp_frame_value): New function.
14216         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14217         (save_stack_nonlocal): New expander.
14218         (restore_stack_nonlocal): Likewise.
14219         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14220         (nonlocal_goto_internal): New insn.
14221         (goto_handler_and_restore): Delete.
14222         (builtin_setjmp_setup): Likewise.
14223         (do_builtin_setjmp_setup): Likewise.
14224         (setjmp): Likewise.
14225         (builtin_setjmp_receiver): New expander.
14226
14227 2011-06-01  David Li  <davidxl@google.com>
14228
14229         PR middle-end/49261
14230         * tree-pretty-print.c (dump_function_header): Format cleanup.
14231
14232 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14233
14234         PR target/49238
14235         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14236         needed when original operands are used for msw_skip comparison.
14237
14238 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14239
14240         PR debug/49250
14241         * var-tracking.c (add_uses, add_stores): Don't call
14242         cselib_subst_to_values on ENTRY_VALUE.
14243
14244 2011-06-01  Diego Novillo  <dnovillo@google.com>
14245
14246         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14247         output_record_start with LTO_null instead of output_zero.
14248         (lto_output_ts_binfo_tree_pointers): Likewise.
14249         (lto_output_tree): Likewise.
14250         (output_eh_try_list): Likewise.
14251         (output_eh_region): Likewise.
14252         (output_eh_lp): Likewise.
14253         (output_eh_regions): Likewise.
14254         (output_bb): Likewise.
14255         (output_function): Likewise.
14256         (output_unreferenced_globals): Likewise.
14257         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14258         instead of NUM_TREE_CODES.
14259         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14260         (lto_output_int_in_range): Change << to >> when shifting VAL.
14261
14262 2011-06-01  Diego Novillo  <dnovillo@google.com>
14263
14264         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14265         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14266
14267 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14268
14269         PR target/45074
14270         * optabs.h (valid_multiword_target_p): Declare.
14271         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14272         doing multi-word operations.
14273         * optabs.c (expand_binop): Likewise.
14274         (expand_doubleword_bswap): Likewise.
14275         (expand_absneg_bit): Likewise.
14276         (expand_unop): Likewise.
14277         (expand_copysign_bit): Likewise.
14278         (multiword_target_p): New function.
14279
14280 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14281
14282         PR rtl-optimization/48830
14283         PR rtl-optimization/48808
14284         PR rtl-optimization/48792
14285         * reload.c (push_reload): Check contains_reg_of_mode.
14286         * reload1.c (strip_paradoxical_subreg): New function.
14287         (gen_reload_chain_without_interm_reg_p): Use it to handle
14288         paradoxical subregs.
14289         (emit_output_reload_insns, gen_reload): Likewise.
14290
14291 2011-06-01  David Li  <davidxl@google.com>
14292
14293         * predict.c : Change pass name
14294         * ipa.c: Ditto.
14295         * dce.c: Ditto.
14296         * tree-profile.c: Ditto.
14297         * except.c: Ditto.
14298
14299 2011-06-01  David Li  <davidxl@google.com>
14300
14301         * tree-pretty-print.c (dump_function_header): New function.
14302         * final.c (rest_of_clean_state): Use header dumper.
14303         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14304         * passes.c (pass_init_dump_file): Use header dumper.
14305
14306 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14307
14308         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14309         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14310         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14311         New functions.
14312         (mem_loc_descriptor): Use them.
14313
14314         * var-tracking.c (create_entry_value): New function.
14315         (vt_add_function_parameter): Use it.
14316
14317 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14318
14319         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14320         Include <signal.h>, <ucontext.h>.
14321         (sigill_caught): Define.
14322         (sigill_hdlr): New function.
14323         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14324         insns can be executed.
14325         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14326         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14327
14328 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14329
14330         * config/t-slibgcc-darwin: Move to ...
14331         * config/t-slibgcc-dummy: ... this.  Clarify comments.
14332         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14333         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14334         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14335         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
14336         Remove i386/t-crtstuff from tmake_file.
14337         (i[34567]86-*-solaris2*): Remove t-svr4,
14338         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14339         t-slibgcc-dummy.
14340         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14341         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14342         sparc/t-crtfm from tmake_file.
14343         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14344         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14345         Remove extra_parts.
14346         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14347         * config/i386/t-nwld (SHLIB_LINK): Remove.
14348         * config/i386/t-rtems-i386: Rename to ...
14349         * config/i386/t-rtems: ... this.
14350         ($(T)crti.o, $(T)crtn.o): Remove.
14351         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14352         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14353         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14354         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14355         EXTRA_MULTILIB_PARTS): Remove.
14356         * config/sparc/t-sol2-64: Likewise.
14357         * config/sparc/t-sol2: Remove.
14358         * config/sparc/t-crtin: Remove.
14359         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14360         * config/i386/gmon-sol2.c: Remove.
14361         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14362         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14363         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14364         * config/i386/sol2-gc1.asm: Remove.
14365         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14366         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14367         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14368         * config/t-slibgcc-sld: Remove.
14369
14370 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14371
14372         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14373         base_type_for_mode with op_mode instead of mode.
14374
14375 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
14376
14377         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
14378         Cortex-A15.
14379         * config/arm/arm-tune.md: Regenerate.
14380         * config/arm/arm-tables.opt: Regenerate.
14381         * config/arm/arm.c (FL_DIV): Rename...
14382         (FL_THUMB_DIV): ... to this.
14383         (FL_ARM_DIV): Define.
14384         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14385         (arm_arch_hwdiv): Remove.
14386         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14387         (arm_issue_rate): Add cortexr5.
14388         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14389         __ARM_ARCH_EXT_IDIV__.
14390         (TARGET_IDIV): Define.
14391         (arm_arch_hwdiv): Remove.
14392         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14393         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14394         (divsi3, udivsi3): New patterns.
14395         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14396         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14397
14398 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14399
14400         * ipa-utils.c (ipa_dfs_info): New field scc_no.
14401         * ipa-utils.c (searchc): Set scc_no.
14402
14403 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14404
14405         * ipa-utils.c (searchc_env): New field allow_overwritable.
14406         (searchc): do not ignore edges to overwritable nodes if indicated
14407         by env->allow_overwritable.
14408         (ipa_reduced_postorder): Set env.allow_overwritable.
14409
14410 2011-06-01  Richard Guenther  <rguenther@suse.de>
14411
14412         * tree.c (free_lang_data): Do not reset boolean_type_node nor
14413         char_type_node.
14414         * lto-streamer.c (lto_record_common_node): Take node pointer,
14415         do not register types.
14416         (lto_preload_common_nodes): Explicitly skip preloading nodes
14417         that differ between frontends.
14418
14419 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14420
14421         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14422         NON_FLOAT_REGS.
14423
14424 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14425
14426         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14427         parameter value for dump. Dump cost on outermost call only.
14428         (rs6000_memory_move_cost): Dump cost on outermost call only.
14429
14430 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14431
14432         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14433         DW_OP_GNU_convert ops.
14434
14435         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14436         cselib_preserve_constants.
14437         (cselib_lookup_1): If cselib_preserve_constants,
14438         a new VALUE is being created for REG and there is a VALUE for the
14439         same register in wider mode, add another loc with lowpart SUBREG of
14440         the wider VALUE.
14441         (cselib_subst_to_values): Handle ENTRY_VALUE.
14442         * var-tracking.c  (replace_expr_with_values): Return NULL for
14443         ENTRY_VALUE too.
14444         * dwarf2out.c (convert_descriptor_to_signed): New function.
14445         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14446         instead of two shifts.
14447         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14448         the right mode if needed.
14449         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14450         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14451         convert_descriptor_to_signed.
14452         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14453         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14454
14455         PR target/48688
14456         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14457
14458 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14459
14460         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14461         of X87MODEI12 and SWI48x instead of SSEMODEI24.
14462         (SWI248x): New mode iterator, rename from X87MODEI.
14463         (X87MODEI): Remove mode iterator.
14464         (X87MODEI12): Ditto.
14465         (SSEMODEI24): Ditto.
14466
14467 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14468
14469         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14470         * doc/invoke.texi: Document max-vartrack-expr-depth.
14471         * var-tracking.c (EXPR_DEPTH): New.
14472         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14473
14474 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14475
14476         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14477         * config/i386/sse.md: Add n to negated FMA pattern names.
14478
14479 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14480
14481         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14482
14483 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14484
14485         * gengtype-state.c (read_state_params_structs): Initialize previous.
14486
14487 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14488
14489         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14490         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14491
14492 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14493
14494         * config/i386/i386.md (*movtf_internal): Avoid allocating general
14495         registers.  Penalize F*r->o alternative to prevent partial memory
14496         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
14497         CONST_DOUBLE immediates when optimizing function for size.  Do not move
14498         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14499         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14500         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14501         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14502         alternatives.
14503         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14504
14505         (fp_register_operand splitters): Use fp_register_operand
14506         constraint.  Do not use FP_REG_P in insn condition.
14507         (any_fp_register_operand splitters): Use any_fp_register_operand
14508         constraint.  Do not use ANY_FP_REG_P in insn condition.
14509
14510 2011-05-31  Jan Hubicka  <jh@suse.cz>
14511
14512         * cgraph.h (cgraph_inline_failed_t): Give enum a name
14513         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14514         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14515         (lto_output_edge): Use output_enum and var_len_unsigned.
14516         (lto_output_varpool_node): Likewise.
14517         (input_overwrite_node): Do not take resolution parameter;
14518         extract it from a bitpack.
14519         (input_node): Do not read resolution; use input_enum and
14520         var_len_unsigned.
14521         (input_varpool_node): Likewise.
14522         (input_edge): Likewise.
14523         (input_cgraph_1): Likewise.
14524
14525 2011-05-31  Richard Guenther  <rguenther@suse.de>
14526
14527         * gimple.c (gimple_register_canonical_type): Do not register
14528         any types via gimple_register_type.
14529
14530 2011-05-31  Jan Hubicka  <jh@suse.cz>
14531
14532         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14533         of thunks.
14534
14535 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14536
14537         PR rtl-optimization/49235
14538         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14539         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14540
14541 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
14542
14543         PR tree-optimization/49093
14544         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14545         data references.
14546
14547 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
14548
14549         PR debug/49047
14550         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14551         for concrete functions containing the code of cloned functions.
14552
14553 2011-05-31  Richard Guenther  <rguenther@suse.de>
14554
14555         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14556         to ...
14557         (forward_propagate_into_comparison_1): ... this.
14558         (forward_propagate_comparison): Rename to ...
14559         (forward_propagate_into_comparison): ... this.  Split out
14560         real forward propagation code to ...
14561         (forward_propagate_comparison): ... this.
14562         (forward_propagate_into_gimple_cond): Remove looping.
14563         (forward_propagate_into_cond): Likewise.
14564         (simplify_not_neg_expr): Return whether we have done something.
14565         (simplify_gimple_switch): Likewise.
14566         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14567         (ssa_forward_propagate_and_combine): ... this.  Re-structure
14568         to do a forward forward-propagation walk on BBs and a backward
14569         stmt combining walk on BBs.  Consistently re-scan changed statements.
14570         (pass_forwprop): Adjust.
14571
14572 2011-05-30  Ian Lance Taylor  <iant@google.com>
14573
14574         * godump.c (go_format_type): Correct length of name added to
14575         obstack for anonymous field.
14576
14577 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14578
14579         PR target/49186
14580         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14581         part of the second operand is 0.
14582
14583 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
14584
14585         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14586         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
14587         to memory for !TARGET_MEMORY_MISMATCH_STALL.
14588         (*movdf_internal_rex64): Do not penalize F->r alternative.
14589         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14590         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
14591         when optimizing function for size.  Do not move CONST_DOUBLEs
14592         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14593         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
14594         SUBREGs.  Do not check for MEM_P operands in the insn condition,
14595         check for ANY_FP_REGNO_P instead.
14596         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14597         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14598         function for speed.
14599         * config/i386/i386.c (ix86_option_override_internal): Do not
14600         set TARGET_INTEGER_DFMODE_MOVES here.
14601
14602 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14603
14604         PR target/49168
14605         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14606
14607 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14608
14609         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14610         DW_TAG_rvalue_reference_type even for
14611         -gdwarf-4 -fno-debug-types-section.
14612
14613 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14614
14615         PR tree-optimization/46728
14616         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14617         (build_and_insert_binop): New.
14618         (gimple_expand_builtin_pow): Reorder args for
14619         build_and_insert_call; use build_and_insert_binop; add more
14620         optimizations for fractional exponents.
14621
14622 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
14623
14624         PR bootstrap/49190
14625
14626         Revert:
14627         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14628
14629         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14630         tree_common.
14631         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14632         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14633         TS_BASE instead of TS_COMMON.
14634         * varasm.c (assemble_name): Remove assert.
14635
14636 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
14637
14638         * config.gcc: Keep obselete list sorted.
14639
14640 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14641             Eric Botcazou  <ebotcazou@adacore.com>
14642
14643         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14644         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14645         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14646         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14647         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14648
14649 2011-05-30  Richard Guenther  <rguenther@suse.de>
14650
14651         * gimple.c (gimple_types_compatible_p_1): Compare record
14652         and union type members properly.
14653
14654 2011-05-30  Richard Guenther  <rguenther@suse.de>
14655
14656         PR tree-optimization/49210
14657         * ipa-split.c (split_function): Care for the case where the call
14658         result is not trivially convertible to the result holding variable.
14659
14660 2011-05-30  Richard Guenther  <rguenther@suse.de>
14661
14662         PR tree-optimization/49218
14663         * tree-vrp.c (adjust_range_with_scev): Properly check whether
14664         overflow occured.
14665
14666 2011-05-30  Richard Guenther  <rguenther@suse.de>
14667
14668         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14669         New function split out from ...
14670         (forward_propagate_into_gimple_cond): ... here.  Adjust.
14671         (forward_propagate_into_cond): Likewise.
14672         (forward_propagate_comparison): Also propagate into
14673         comparisons on assignment RHS.  Change return value to
14674         behave similar to forward_propagate_into_cond.
14675         (tree_ssa_forward_propagate_single_use_vars): Handle
14676         strict-overflow warnings properly for forward_propagate_comparison.
14677
14678 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14679
14680         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14681         from plugin linker.
14682         * configure: Regenerate.
14683
14684 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
14685
14686         PR tree-optimization/49199
14687         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14688         non-reduction operands are either defined in the loop or by induction.
14689
14690 2011-05-29  Xinliang David Li  <davidxl@google.com>
14691
14692         * opts-global.c (handle_common_deferred_options): Handle new options.
14693         * passes.c (register_one_dump_file): Call register_pass_name.
14694         (execute_one_pass): Check explicit enable/disable flag.
14695         (passr_hash): New function.
14696         (passr_eq): Ditto.
14697         (register_pass_name): Ditto.
14698         (get_pass_by_name): Ditto.
14699         (pass_hash): Ditto.
14700         (pass_eq): Ditto.
14701         (enable_pass): Ditto.
14702         (disable_pass): Ditto.
14703         (is_pass_explicitly_enabled_or_disabled): Ditto.
14704
14705 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
14706
14707         * config/i386/i386.md (*movoi_internal_avx): Use
14708         standard_sse_constant_opcode for alternative 0.
14709         (*movti_internal_sse): Ditto.
14710         (*movti_internal_rex64): Use standard_sse_constant_opcode for
14711         alternative 2.
14712         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14713         sselog1 type moves.
14714         (*movsi_internal): Ditto.
14715         (*movdi_internal): Ditto.  Add ssecvt type moves.
14716
14717 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14718
14719         PR target/48830
14720         * rtlanal.c (simplify_subreg_regno): Adjust comment.
14721
14722 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
14723
14724         PR rtl-optimization/49095
14725         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14726         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14727
14728 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14729
14730         PR target/43995
14731         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14732         recurse_p argument.  Only follow register copies if it is set,
14733         and prevent mips_find_pic_call_symbol from recursing.
14734         (mips_find_pic_call_symbol): Add a recurse_p argument.
14735         Pass it to mips_pic_call_symbol_from_set.
14736         (mips_annotate_pic_calls): Update accordingly.
14737
14738 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14739
14740         * emit-rtl.c (try_split): Use a loop to search for
14741         NOTE_INSN_CALL_ARG_LOCATIONs.
14742
14743 2011-05-29  Richard Guenther  <rguenther@suse.de>
14744
14745         PR tree-optimization/49217
14746         * ipa-pure-const.c (propagate_pure_const): Fix typos.
14747
14748 2011-05-28  Jan Hubicka  <jh@suse.cz>
14749
14750         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14751         length.
14752         (string_slot_free): Remove
14753         (create_output_block): Initialize obstack.
14754         (destroy_output_block): Free obstack.
14755         (lto_string_index): Add PERSISTENT parameter; do not duplicate
14756         the string unless it needs to be added into the hash.
14757         (lto_output_string_with_length): Add persistent attribute;
14758         handle NULL strings.
14759         (lto_output_string): Add PERSISTENT parameter.
14760         (output_string_cst, output_identifier): Simplify.
14761         (lto_output_location_bitpack): Update.
14762         (lto_output_builtin_tree): Update.
14763         * lto-streamer.h (struct output_block): Add obstack.
14764         (lto_output_string, lto_output_string_with_length): Remove
14765         declarations; functions are static now.
14766
14767 2011-05-28  Jan Hubicka  <jh@suse.cz>
14768
14769         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14770         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14771         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14772         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14773         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14774         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14775         unpack_ts_decl_with_vis_value_fields,
14776         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14777         lto_get_builtin_tree): Use enum and variable length i/o.
14778         * basic-block.h (profile_status_d): Add PROFILE_LAST.
14779         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14780         New functions.
14781         (bp_pack_enum, bp_unpack_enum): New macros.
14782
14783 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14784
14785         * genrecog.c: Remove redundant forward declarations.
14786
14787 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14788
14789         * config.gcc: Deprecate mips*-*-openbsd*.
14790
14791 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14792
14793         PR bootstrap/49195
14794         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14795         for match_op_dup.
14796
14797 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
14798
14799         PR middle-end/48981
14800         * gengtype.c (vec_prefix_type): New function.
14801         (note_def_vec): Use vec_prefix_type and change the length
14802         attribute to be based on the prefix.
14803         * vec.c: Include coretypes.h before vec.h.
14804         (struct vec_prefix): Remove.
14805         (vec_gc_p_reserve): Change the offsetof to sizeof.
14806         (vec_gc_p_reserve_exact): Likewise.
14807         (vec_heap_p_reserve): Likewise.
14808         (vec_heap_p_reserve_exact): Likewise.
14809         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14810         (vec_stack_p_reserve): Change the offsetof to sizeof.
14811         (vec_stack_p_reserve_exact): Likewise.
14812         * vec.h (struct vec_prefix): New struct definition.
14813         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14814         (VEC_T_GTY(T,B)): Likewise.
14815         (DEF_VEC_FUNC_P(T)): Use prefix field.
14816         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14817         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14818
14819 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14820
14821         PR tree-optimization/46728
14822         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14823         (powi_as_mults): Add gimple_set_location.
14824         (build_and_insert_call): New.
14825         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14826         0.5, 0.25, 0.75, 1./3., or 1./6.
14827
14828 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
14829
14830         * doc/contrib.texi: Update copyright years.
14831         (Contributors): Add Zdenek Sojka.
14832
14833 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
14834
14835         * c-decl.c (c_push_function_context): Copy the current statement
14836         list stack.
14837         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14838         (finish_struct): Call building_stmt_list_p instead of checking
14839         cur_stmt_list.
14840         * c-parser.c (c_parser_postfix_expression): Likewise.
14841         * c-typeck.c (c_end_compound_stmt): Likewise.
14842         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14843         * tree-iterator.c (stmt_list_cache): Change to a VEC.
14844         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14845         (free_stmt_list): Likewise.
14846         * tree.h (struct tree_statement_list): Include typed_tree instead
14847         of tree_common.
14848         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14849         as TS_TYPED instead of TS_COMMON.
14850
14851 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14852             Uros Bizjak  <ubizjak@gmail.com>
14853
14854         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14855         (HAVE_AS_IX86_TLSGDPTL): Define.
14856         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14857         (HAVE_AS_IX86_TLSLDMPLT): Define.
14858         * configure: Regenerate.
14859         * config.in: Regenerate.
14860         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14861         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14862         TARGET_SUN_TLS, use @tlsgdplt or @plt.
14863         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14864         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14865         @tlsldmplt or @plt.
14866         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14867
14868 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14869
14870         * sched-int.h (struct _haifa_deps_insn_data): New members cond
14871         and reverse_cond.
14872         (INSN_COND, INSN_REVERSE_COND): New macros.
14873         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14874         once.
14875         (sched_get_condition_with_rev): Cache the results, and look them up
14876         if possible.
14877         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14878         are clobbered by the current insn.
14879         * target.def (exposed_pipline): New sched data hook.
14880         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14881         * doc/tm.texi: Regenerate.
14882
14883 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14884
14885         PR tree-optimization/49170
14886         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
14887         sincos or cexp.
14888
14889 2011-05-27  Richard Guenther  <rguenther@suse.de>
14890
14891         PR middle-end/49189
14892         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14893         of comparisons.
14894
14895 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14896
14897         * haifa-sched.c (sched_scan_info): Remove.
14898         (schedule_block): Call sched_extend_luids rather than sched_init_luids
14899         with NULL args.
14900         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14901         Remove functions.
14902         (sched_scan): Remove.
14903         (sched_extend_luids): Renamed from luids_extend_insn and no longer
14904         static.  All callers changed.
14905         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14906         static.  All callers changed.
14907         (sched_init_luids): Remove all arguments except the first.  All
14908         callers changed.  Don't use sched_scan.
14909         (haifa_init_h_i_d): Likewise.
14910         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14911         manually rather than using sched_init_luids.  Likewise with
14912         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14913         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14914         rather than sched_init_luids with NULL args.
14915         * sel-sched-ir.c (new_insns): Remove variable.
14916         (sched_scan): New static function, previously in haifa-sched.c.  Remove
14917         all arguments but the first two; all callers changed.
14918         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14919         rather than sched_init_luids.
14920         (sel_init_bbs): Remove second argument.  All callers changed.
14921         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14922         with NULL arguments.
14923         (create_insn_rtx_from_pattern): Likewise.
14924         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14925         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14926         (sched_init_insn_luid, sched_extend_luids): Declare.
14927         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14928         declarations.
14929
14930 2011-05-27  Richard Guenther  <rguenther@suse.de>
14931
14932         PR middle-end/49177
14933         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14934         A CMP B ? (T) true : (T) false for non-integral types T again.
14935
14936 2011-05-27  Jan Hubicka  <jh@suse.cz>
14937
14938         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14939         so 0 means NULL string.
14940         (lto_output_string_with_length): ... here.
14941         (lto_output_string, output_string_cst, output_identifier): Update
14942         handling of NULL strings.
14943         (lto_output_location_bitpack): New function.
14944         (lto_output_location): Use it.
14945         (lto_output_tree_ref): Use output_record_start.
14946         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14947         len values.
14948         * lto-streamer-in.c (string_for_index): Break out from ...; offset
14949         values by 1.
14950         (input_string_internal): ... here;
14951         (input_string_cst, input_identifier, lto_input_string): Update handling
14952         of NULL strings.
14953         (lto_input_location_bitpack): New function
14954         (lto_input_location): Use it.
14955         (unpack_ts_type_common_value_fields): Pack align & alias in var len
14956         values.
14957         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14958         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14959         (bp_pack_value): Sanity check the value range.
14960         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14961         New functions.
14962         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14963         New functions.
14964
14965 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
14966
14967         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14968         call_arg_location instructions down the floor.
14969
14970 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
14971
14972         PR rtl-optimization/49154
14973         * ira.c (setup_pressure_classes): Process class without sublcasses
14974         as a candidate for pressure classes.
14975
14976 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
14977
14978         PR rtl-optimization/48575
14979         * genrecog.c (position_type): New enum.
14980         (position): New structure.
14981         (decision): Use position structure instead of a string.
14982         (root_pos, peep2_insn_pos_list): New variables.
14983         (next_position, compare_positions): New functions.
14984         (new_decision): Use position structures instead of strings.
14985         (maybe_both_true): Likewise.
14986         (change_state): Likewise.
14987         (write_tree): Likewise.
14988         (make_insn_sequence): Likewise.
14989
14990 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14991
14992         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14993         TS_BASE instead of TS_COMMON.
14994         (find_decls_types_r): Check for TS_TYPED structure before looking at
14995         TREE_TYPE.
14996         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14997         Add chain field.
14998         (BLOCK_CHAIN): Use new chain field.
14999
15000 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
15001
15002         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
15003         moves expensive on Power7 also.
15004
15005 2011-05-26  Richard Guenther  <rguenther@suse.de>
15006
15007         * fold-const.c (fold_unary_loc): Remove bogus code.
15008
15009 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
15010
15011         * tree.h (struct tree_identifier): Inherit from tree_typed, not
15012         tree_common.
15013         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
15014         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
15015         TS_BASE instead of TS_COMMON.
15016         * varasm.c (assemble_name): Remove assert.
15017
15018 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15019
15020         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
15021         substituted first.
15022         * libgcc-std.ver: Delete file.
15023
15024 2011-05-26  Richard Guenther  <rguenther@suse.de>
15025
15026         PR tree-optimization/48702
15027         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
15028         only when we know the base address is within bounds.
15029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
15030         assume the base address of TARGET_MEM_REFs is in bounds.
15031
15032 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15033
15034         PR target/49099
15035         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
15036         declaration in TARGET_SOLARIS.
15037
15038 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
15039
15040         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
15041         The instruction is then expanded explicitly.
15042         (supported_compare): Callable instruction.
15043         (compare): Likewise.
15044
15045 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15046
15047         PR c++/49165
15048         * gimplify.c (shortcut_cond_r): Don't special case
15049         COND_EXPRs if they have void type on one of their arms.
15050
15051 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
15052
15053         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
15054         to reduce duplication, and to achieve a slightly more logical order
15055         of operations.
15056
15057 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
15058
15059         PR tree-optimization/49161
15060         * tree-vrp.c (struct case_info): New type.
15061         (compare_case_labels): Sort case_info structs instead of
15062         trees, and not primarily by CASE_LABEL uids but by
15063         label_for_block indexes.
15064         (find_switch_asserts): Put case labels into struct case_info
15065         array instead of TREE_VEC, adjust sorting, compare label_for_block
15066         values instead of CASE_LABELs.
15067
15068 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15069
15070         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
15071         ("orndi3_neon"): Likewise.
15072         ("bic<mode>3_neon"): Likewise.
15073
15074 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
15075
15076         PR tree-optimization/49038
15077         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
15078         Ensure at least one epilogue iteration if required by data
15079         accesses with gaps.
15080         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15081         to mark loops that require peeling for gaps.
15082         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
15083         (vect_get_known_peeling_cost): Take peeling for gaps into
15084         account.
15085         (vect_transform_loop): Generate epilogue if required by data
15086         access with gaps.
15087         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
15088         loop as requiring an epilogue if there are gaps in the end of
15089         the strided group.
15090
15091 2011-05-25  Ian Lance Taylor  <iant@google.com>
15092
15093         * godump.c (go_format_type): Output the first field with a usable
15094         Go type, if any.
15095
15096 2011-05-25  Ian Lance Taylor  <iant@google.com>
15097
15098         * godump.c (go_format_type): Check for invalid type names, pointer
15099         target types, and struct field types.
15100
15101 2011-05-25  Jason Merrill  <jason@redhat.com>
15102
15103         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
15104
15105 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
15106
15107         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
15108
15109 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15110
15111         * config/i386/i386.md (*movqi_extv_1)): Put back
15112         "register_operand" check in "type" calculation.
15113         (*movqi_extzv_2): Likewise.
15114
15115 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15116
15117         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15118
15119 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15120
15121         PR bootstrap/49160
15122         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15123         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15124         __divxc3, __divtc3): Wrap definitions in #ifndef.
15125
15126 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15127
15128         PR target/49142
15129         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15130         "register_operand" check and replace q_regs_operand with
15131         QIreg_operand in "type" calculation.
15132         (*movqi_extv_1): Likewise.
15133         (*movqi_extzv_2_rex64): Likewise.
15134         (*movqi_extzv_2): Likewise.
15135
15136         * config/i386/predicates.md (QIreg_operand): New.
15137
15138 2011-05-25  Richard Guenther  <rguenther@suse.de>
15139
15140         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15141         type-based offset disambiguation, streamline MEM_REF and
15142         TARGET_MEM_REF handling.
15143
15144 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15145
15146         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15147         (bdesc_special_args): Add pause intrinsic.
15148
15149         * config/i386/i386.md (UNSPEC_PAUSE): New.
15150         (pause): Likewise.
15151         (*pause): Likewise.
15152         * config/i386/ia32intrin.h (__pause): Likewise.
15153
15154         * doc/extend.texi (X86 Built-in Functions): Add documentation for
15155         pause intrinsic.
15156
15157 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15158
15159         PR tree-optimization/46728
15160         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15161         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15162
15163 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
15164
15165         * tree.h (struct tree_exp): Inherit from struct tree_typed.
15166         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15167         instead of TS_COMMON.
15168
15169 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15170
15171         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15172         LIBGCC2_GNU_PREFIX is defined.
15173         (__N): New macro.
15174         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15175         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15176         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15177         __clz_tab): Define using __N.
15178         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15179         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15180         * target.def (libfunc_gnu_prefix): New hook.
15181         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15182         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15183         * doc/tm.texi: Regenerate.
15184         * system.h (LIBGCC2_GNU_PREFIX): Poison.
15185         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15186         account.
15187         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15188         (init_optabs): Likewise for the bswap libfuncs.
15189         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15190         and divide.
15191         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15192         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15193         * libgcc-std.ver: Remove.
15194         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15195         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15196         libgcc-std.ver.
15197         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15198         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15199         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15200         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15201         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15202         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15203         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15204         * config/fixed-bit.h (FIXED_OP): Define differently depending on
15205         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15206         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15207
15208 2011-05-25  Jan Hubicka  <jh@suse.cz>
15209
15210         * lto-streamer-out.c (output_record_start): Use lto_output_enum
15211         (lto_output_tree): Use output_record_start.
15212         * lto-streamer-in.c (input_record_start): Use lto_input_enum
15213         (lto_get_pickled_tree): Use input_record_start.
15214         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15215         (lto_value_range_error): New function.
15216         * lto-streamer.h (lto_value_range_error): Declare.
15217         (lto_output_int_in_range, lto_input_int_in_range): New functions.
15218         (lto_output_enum, lto_input_enum): New macros.
15219
15220 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15221
15222         * common.opt (flag_stack_usage_info): New variable.
15223         (-Wstack-usage): New option.
15224         * doc/invoke.texi (Warning options): Document -Wstack-usage.
15225         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15226         <OPT_fstack_usage>: Likewise.
15227         * toplev.c (output_stack_usage): Handle -Wstack-usage.
15228         * calls.c (expand_call): Test flag_stack_usage_info variable instead
15229         of flag_stack_usage.
15230         (emit_library_call_value_1): Likewise.
15231         * explow.c (allocate_dynamic_stack_space): Likewise.
15232         * function.c (instantiate_virtual_regs ): Likewise.
15233         (prepare_function_start): Likewise.
15234         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15235         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15236         * config/arm/arm.c (arm_expand_prologue): Likewise.
15237         (thumb1_expand_prologue): Likewise.
15238         * config/avr/avr.c (expand_prologue): Likewise.
15239         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15240         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15241         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15242         * config/mips/mips.c (mips_expand_prologue): Likewise.
15243         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15244         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15245         * config/s390/s390.c (s390_emit_prologue): Likewise.
15246         * config/sh/sh.c (sh_expand_prologue): Likewise.
15247         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15248         * config/spu/spu.c (spu_expand_prologue): Likewise.
15249
15250 2011-05-25  Richard Guenther  <rguenther@suse.de>
15251
15252         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15253         (gimple_canonical_types_compatible_p): Likewise.
15254
15255 2011-05-25  Jan Hubicka  <jh@suse.cz>
15256
15257         PR middle-end/49062
15258         * ipa.c (function_and_variable_visibility): Only add to same
15259         comdat group list if DECL_ONE_ONLY.
15260
15261 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
15262
15263         PR rtl-optimization/49014
15264         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15265
15266 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15267
15268         PR target/49128
15269         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15270
15271 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15272
15273         PR rtl-optimization/48757
15274         * ira-build.c (loop_with_eh_edge_p): Rename to
15275         loop_with_complex_edge_p, check edges on complexity, make function
15276         conditional.
15277         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15278         conditional.
15279
15280 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15281
15282         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15283         force flag_ira_share_save_slots to 0.
15284
15285 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15286
15287         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15288         (vt_initialize): Set PROLOGUE_BB unconditionally.
15289         Add block comment about CFA_BASE_RTX machinery.
15290         Reset FP_CFA_OFFSET to -1 on all invalid paths.
15291         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15292
15293 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
15294
15295         PR objc/48187
15296         * c-parser.c (c_parser_objc_class_instance_variables): More robust
15297         parsing of syntax error in ObjC instance variable lists.  In
15298         particular, avoid an infinite loop if there is a stray ']'.
15299         Updated error message.
15300
15301 2011-05-24  Ian Lance Taylor  <iant@google.com>
15302
15303         * godump.c (go_define): Don't accept a string immediately after
15304         another operand.
15305
15306 2011-05-24  Ian Lance Taylor  <iant@google.com>
15307
15308         * godump.c (struct godump_container): Add invalid_hash field.
15309         (go_format_type): Return false if type is found in invalid_hash.
15310         (go_output_typedef): Add invalid type to invalid_hash.
15311         (go_finish): Create and delete invalid_hash.
15312
15313 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15314
15315         PR tree-optimization/46728
15316         * tree-ssa-math-opts.c (powi_table): New.
15317         (powi_lookup_cost): New.
15318         (powi_cost): New.
15319         (powi_as_mults_1): New.
15320         (powi_as_mults): New.
15321         (gimple_expand_builtin_powi): New.
15322         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15323         (gate_cse_sincos): Remove sincos/cexp restriction.
15324
15325 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15326
15327         PR target/3746
15328         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15329         mips-tdump native.
15330         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15331         * mips-tdump.c: Likewise.
15332
15333 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15334
15335         PR target/49128
15336         * config/i386/driver-i386.c (host_detect_local_cpu): Always
15337         add -mno-XXX.  Handle FMA.
15338
15339 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15340
15341         PR rtl-optimization/48633
15342         * ira-build.c (loop_with_eh_edge_p): New function.
15343         (mark_loops_for_removal): Use it.
15344
15345 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15346
15347         PR rtl-optimization/48971
15348         * ira.c (setup_pressure_classes): Don't check register move cost
15349         for classes with one registers.  Don't add pressure class if there
15350         is a pressure class with the same available hard registers.
15351         Check contains_reg_of_mode.  Fix a typo in collecting
15352         temp_hard_regset.  Ignore hard registers not belonging to a class.
15353
15354 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
15355
15356         PR target/49133
15357         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15358
15359 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15360             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15361
15362         PR gcov-profile/48845
15363         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15364
15365 2011-05-24  Richard Guenther  <rguenther@suse.de>
15366
15367         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15368         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15369         (gimple_types_compatible_p_1): Adjust.
15370         (iterative_hash_canonical_type): Do not bother about complete vs.
15371         incomplete types.
15372         (gimple_canonical_types_compatible_p): Likewise.
15373
15374 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15375
15376         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15377
15378 2011-05-24  Richard Guenther  <rguenther@suse.de>
15379
15380         PR bootstrap/49078
15381         * gimple.c (gimple_register_canonical_type): Revert
15382         previous change.
15383         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15384         does not for a tree for the case where it matters.  Cache
15385         pointer-type alias-sets.
15386
15387 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
15388
15389         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15390         (OBJS): Remove options.o, opts-common.o and prefix.o.
15391         (OBJS-libcommon-target): New.
15392         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15393         (BACKEND): Include libcommon-target.a.
15394         (MOSTLYCLEANFILES): Include libcommon-target.a.
15395         (libcommon-target.a): New.
15396         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15397         prefix.o.
15398
15399 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
15400
15401         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
15402         parts of output shared with the driver.
15403         * optc-gen.awk: Don't generate parts of output not shared with the
15404         driver.
15405         * opth-gen.awk: Remove GCC_DRIVER conditionals.
15406         * doc/options.texi (SourcerInclude): Mention options-save.c.
15407         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15408         (OBJS): Add options-save.o.
15409         (options-save.c, options-save.o): New.
15410         (options.o): Update dependencies.
15411         (gcc-options.o): Remove.
15412         (mostlyclean): Remove options-save.c.
15413
15414 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15415
15416         PR debug/49032
15417         * dbxout.c: Include cgraph.h.
15418         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15419         and without value expr, return NULL if no varpool node exists for
15420         it or if it is not needed.
15421         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15422
15423         PR c/49120
15424         * c-decl.c (start_decl): Convert expr to void_type_node.
15425
15426 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
15427
15428         PR rtl-optimization/48826
15429         * emit-rtl.c (try_split): When splitting a call that is followed
15430         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15431
15432 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15433
15434         * cfgexpand.c (expand_debug_expr): For unused non-addressable
15435         parameters passed in memory prefer using DECL_INCOMING_RTL over
15436         the pseudos it will be copied into.
15437
15438 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15439
15440         PR target/47315
15441         * config/i386/i386.c (ix86_option_override_internal): Save the
15442         initial options after checking vzeroupper.
15443
15444 2011-05-23  David Li  <davidxl@google.com>
15445
15446         PR tree-optimization/48988
15447         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15448         Initialize has_valid_pred for each pred chain.
15449
15450 2011-05-23  Richard Guenther  <rguenther@suse.de>
15451
15452         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15453         (iterative_hash_gimple_type): Always hash type names.
15454
15455 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
15456
15457         * c-typeck.c (build_function_call_vec): Tweak call to
15458         check_function_arguments.
15459
15460 2011-05-23  Richard Guenther  <rguenther@suse.de>
15461
15462         PR tree-optimization/49115
15463         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15464         is not necessarily carried out, do not claim it kills the ref.
15465         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15466
15467 2011-05-23  Richard Guenther  <rguenther@suse.de>
15468
15469         PR middle-end/15419
15470         * builtins.c (fold_builtin_memory_op): Be less restrictive about
15471         what pointer types we accept for folding.
15472
15473 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15474
15475         * gthr-gnat.c: Remove.
15476         * gthr-gnat.h: Remove.
15477         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15478         * config/t-freebsd (LIB2ADDEH): Likewise.
15479         * config/t-linux (LIB2ADDEH): Likewise.
15480         * config/t-sol2 (LIB2ADDEH): Likewise.
15481         * config/ia64/t-vms (LIB2ADDEH): Likewise.
15482         * configure.ac (target_thread_file): Remove gnat handling.
15483         * configure: Regenerate.
15484         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15485
15486 2011-05-23  Tristan Gingold  <gingold@adacore.com>
15487             Eric Botcazou  <ebotcazou@adacore.com>
15488
15489         * gcov.c (create_file_names): If no object directory is specified,
15490         keep the directory of the file.
15491
15492 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15493
15494         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15495         * configure: Regenerate.
15496
15497 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15498
15499         PR middle-end/48973
15500         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15501         failed and the comparison has a single bit signed type, use
15502         constm1_rtx instead of const1_rtx for true value.
15503         (do_store_flag): If ops->type is single bit signed type, disable
15504         signel bit test optimization and pass -1 instead of 1 as last
15505         parameter to emit_store_flag_force.
15506
15507 2011-05-23  Tom de Vries  <tom@codesourcery.com>
15508
15509         PR target/45098
15510         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15511         function.
15512         (infer_loop_bounds_from_undefined): Use new function.
15513
15514 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15515
15516         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15517         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
15518         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15519         and -O0 otherwise.
15520         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15521
15522 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15523
15524         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15525         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15526         returns true.
15527
15528 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15529
15530         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15531
15532 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15533
15534         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15535         UNSPEC_MOVE_PIC pattern.
15536
15537 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15538
15539         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15540         (sparc-*-rtems*): Likewise.
15541         (sparc64-*-elf*): Likewise.
15542         (sparc64-*-rtems*): Likewise.
15543         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
15544         * config/sparc/t-crtin: New file.
15545         * config/sparc/t-sol2 (crti.o): Delete rule.
15546         (crtn.o): Likewise.
15547         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15548         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15549         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15550         (ENDFILE_SPEC): Add crtn.o.
15551
15552 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15553
15554         PR middle-end/48689
15555         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15556         CODE_CONTAINS_STRUCT (TS_COMMON).
15557
15558 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
15559
15560         PR middle-end/49029
15561         * expmed.c (extract_fixed_bit_field): Test whether target can be used
15562         only after deciding which mode to use.
15563
15564 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15565
15566         PR target/45098
15567         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15568         for call to get_shiftadd_cost.
15569
15570 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
15571
15572         PR target/49104
15573         * config/i386/cpuid.h (bit_MMXEXT): New define.
15574
15575 2011-05-22  Nick Clifton  <nickc@redhat.com>
15576
15577         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15578         initialisation of non-existant args[2] element.  Use args[] array
15579         not arg[] array to pass arguments to build_function_type_list.
15580
15581 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
15582
15583         PR tree-optimization/49087
15584         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15585
15586 2011-05-21  Jason Merrill  <jason@redhat.com>
15587
15588         PR c++/49092
15589         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15590         static storage duration.
15591
15592 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15593
15594         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15595         frame pointer.
15596
15597 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15598
15599         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15600         false if there are call-saved registers here...
15601         (sparc_can_use_return_insn_p): ...but here instead.
15602         (save_or_restore_regs): Fix thinko.
15603         (sparc_expand_prologue): Use current_function_is_leaf.
15604         (sparc_frame_pointer_required): Likewise.
15605
15606 2011-05-21  Nick Clifton  <nickc@redhat.com>
15607
15608         PR target/49098
15609         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15610
15611 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
15612
15613         * gengtype.c (walk_type): Implemented "atomic" GTY option.
15614         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15615
15616 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
15617
15618         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
15619         * optc-gen.awk: Move common code to opt-read.awk.
15620         * opth-gen.awk: Likewise.
15621         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15622
15623 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
15624
15625         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15626
15627 2011-05-20  Tom de Vries  <tom@codesourcery.com>
15628
15629         PR target/45098
15630         * tree-ssa-loop-ivopts.c: Include expmed.h.
15631         (get_shiftadd_cost): New function.
15632         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
15633
15634 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15635
15636         PR bootstrap/49086
15637         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15638         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15639
15640 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15641
15642         * Makefile.in: Update comment referring to $(OBJS-common).
15643
15644 2011-05-20  Ian Lance Taylor  <iant@google.com>
15645
15646         * godump.c (go_output_typedef): Put enum constants in the macro
15647         hash table to avoid duplicate Go const definitions.
15648
15649 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15650
15651         * Makefile.in (LIBDEPS): Add libcommon.a.
15652         (LIBS): Likewise.
15653         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15654         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15655         pretty-print.o and version.o.
15656         (OBJS-libcommon): New.
15657         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15658         (BACKEND): Add libcommon.a.
15659         (MOSTLYCLEANFILES): Likewise.
15660         (libcommon.a): New.
15661         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15662         (cpp$(exeext)): Likewise.
15663         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15664         pretty-print.o and input.o.
15665         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15666         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15667         (errors.o): Remove.
15668         (mips-tfile): Don't explicitly use version.o.
15669         (mips-tdump): Likewise.
15670         (gcov.o): Depend on $(DIAGNOSTIC_H).
15671         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15672         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15673         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15674         * gcov-dump.c: Include intl.h and diagnostic.h.
15675         (main): Initialize diagnostics.
15676         * gcov.c: Include diagnostic.h.
15677         (fnotice): Remove.
15678         (main): Initialize diagnostics.
15679         * lto-wrapper.c: Include diagnostic.h.
15680         (main): Initialize diagnostics.
15681
15682 2011-05-20  Michael Matz  <matz@suse.de>
15683
15684         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15685
15686 2011-05-20  Michael Matz  <matz@suse.de>
15687             Richard Guenther  <rguenther@suse.de>
15688
15689         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15690         use lto_streamer_cache_append directly instead of returning a VEC.
15691         (preload_common_node): Remove.
15692         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15693         track seen nodes.
15694         (lto_streamer_cache_create): Call lto_preload_common_nodes.
15695
15696 2011-05-20  Richard Guenther  <rguenther@suse.de>
15697
15698         PR tree-optimization/49079
15699         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15700         MEM_REFs correctly for the trailing array access detection.
15701         Special case constants the same way as decls for overall size
15702         constraining.
15703
15704 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
15705
15706         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15707         argument expansion.
15708
15709 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15710
15711         PR tree-optimization/49073
15712         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15713         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15714         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15715
15716 2011-05-20  Richard Guenther  <rguenther@suse.de>
15717
15718         PR middle-end/48849
15719         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15720         of pointer types the same way the middle-end does.
15721
15722 2011-05-20  Richard Guenther  <rguenther@suse.de>
15723
15724         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15725         or pointer-to chains.  Delay all fixup to uniquify_nodes.
15726
15727 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
15728
15729         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15730         (fma4_fmaddsub): Likewise
15731
15732 2011-05-19  Jan Hubicka  <jh@suse.cz>
15733
15734         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15735         (GIMPLE_TYPE_PAIR_SIZE): New macro.
15736         (type_pair_cache): New static var.
15737         (lookup_type_pair): Use fixed sized custom hash; make inline.
15738         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15739         calls of lookup_type_pair.
15740         (print_gimple_types_stats): Remove cache stats.
15741         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15742         and gtc_ob.
15743
15744 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
15745
15746         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15747         when TARGET_RDRND is active.
15748         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15749         Generate dummy SImode target register when target is NULL.
15750
15751 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15752
15753         * config/arm/arm-fpus.def: New.
15754         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15755         arm-fpus.def.
15756         * config/arm/arm-tables.opt: Regenerate.
15757         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15758         (arm_option_override): Don't decode FPU name to string here.
15759         * config/arm/arm.opt (mfpu=): Use Enum.
15760         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15761         Update dependencies.
15762
15763 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15764
15765         * collect2.c: Include diagnostic.h.
15766         (fatal_perror, fatal, error, fancy_abort): Remove.
15767         (main): Set progname.  Call xmalloc_set_program_name and
15768         diagnostic_initialize.
15769         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15770         scan_libraries, resolve_lib_name): Call fatal_error instead of
15771         fatal and fatal_perror.
15772         * collect2.h (error, fatal, fatal_perror): Don't declare.
15773         * tlink.c: Include diagnostic-core.h.
15774         (recompile_files): Call fatal_error instead of fatal_perror.
15775         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15776         pretty-print.o and input.o.
15777         (collect2.o, tlink.o): Update dependencies.
15778
15779 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15780
15781         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15782
15783 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15784
15785         PR target/40483
15786         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15787         COMDAT group syntax, both SPARC and x86 variants.
15788         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15789         * configure: Regenerate.
15790         * config/sol2.h (TARGET_SOLARIS): Define.
15791         (PUSHSECTION_FORMAT): Remove.
15792         (SECTION_NAME_FORMAT): Define.
15793         * config/sol2.c: Include hashtab.h.
15794         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15795         expansion, using SECTION_NAME_FORMAT.
15796         (solaris_comdat_htab): New variable.
15797         (struct comdat_entry): Define.
15798         (comdat_hash): New function.
15799         (comdat_eq): New function.
15800         (solaris_elf_asm_comdat_section): New function.
15801         (solaris_define_comdat_signature): New function.
15802         (solaris_code_end): New function.
15803         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15804         (solaris_code_end): Declare.
15805         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15806         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15807         solaris_code_end.
15808         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15809         Remove ATTRIBUTE_UNUSED.
15810         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15811         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15812         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15813         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15814         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15815         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15816         (PUSHSECTION_FORMAT): Remove.
15817         (SECTION_NAME_FORMAT): Redefine.
15818
15819 2011-05-19  Kai Tietz  <ktietz@redhat.com>
15820
15821         * tree-cfg.c (verify_gimple_assign_binary): Barf on
15822         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15823         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15824
15825 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
15826             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15827
15828         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15829
15830 2011-05-19  Richard Guenther  <rguenther@suse.de>
15831
15832         PR middle-end/48985
15833         * tree-object-size.c (addr_object_size): If the pointed-to
15834         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15835
15836 2011-05-19  Richard Guenther  <rguenther@suse.de>
15837
15838         * gimple.c (gimple_types_compatible_p_1): Compare names of
15839         the types themselves.
15840         (iterative_hash_gimple_type): And hash them that way.
15841         (gimple_register_type_1): If we register a main variant properly
15842         initialize the leader to ourselves.
15843
15844 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15845
15846         PR target/45098
15847         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15848         get_loop_invariant_expr_id.
15849         (get_loop_invariant_expr_id): Use get_expr_id.
15850         (parm_decl_cost): New function.
15851         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15852         Improve bound cost estimation.  Use different inv_expr_id for elim and
15853         express cases.
15854
15855 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15856
15857         PR target/45098
15858         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15859         cost_base.cost == 0.
15860
15861 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15862
15863         PR target/49002
15864         * config/i386/sse.md
15865         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15866         load cast.
15867
15868 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15869
15870         PR tree-optimization/49039
15871         * tree-vrp.c (extract_range_from_binary_expr): For
15872         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15873         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15874
15875 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15876
15877         PR target/45098
15878         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15879
15880 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
15881
15882         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15883         (*tls_global_dynamic_64): Ditto.
15884         (*tls_local_dynamic_base_32_gnu): Ditto.
15885         (*tls_local_dynamic_base_64): Ditto.
15886         (tls_initial_exec_64_sun): Ditto.
15887
15888 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
15889
15890         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15891         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15892         bf592-none.
15893         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15894         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15895         * config/bfin/bfin.c (bfin_cpus): Add bf592.
15896         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15897         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15898         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15899         * config/bfin/elf.h (LIB_SPEC): Add bf592.
15900
15901 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15902
15903         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15904         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15905         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15906         target_thread_pointer, arm_structure_size_boundary, struct
15907         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15908         struct abi_name, arm_all_abis): Remove.
15909         (arm_option_override) Don't process most enumerated option values here.
15910         Don't process target_fpe_name here.  Work with integer not string for
15911         structure size boundary; use separate diagnostics for each case.
15912         * config/arm/arm.h (enum float_abi_type, enum
15913         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15914         to arm-opts.h.
15915         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15916         arm_structure_size_boundary): Remove.
15917         * config/arm/arm.opt (mabi=): Use Enum and Init.
15918         (arm_abi_type): New Enum and EnumValue entries.
15919         (mfloat-abi=): Use Enum and Init.
15920         (float_abi_type): New Enum and EnumValue entries.
15921         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15922         (mfp16-format=): Use Enum and Init.
15923         (arm_fp16_format_type): New Enum and EnumValue entries.
15924         (mstructure-size-boundary=): Use UInteger and Init.
15925         (mtp=): Use Enum and Init.
15926         (arm_tp_type): New Enum and EnumValue entries.
15927
15928 2011-05-18  Richard Guenther  <rguenther@suse.de>
15929
15930         PR tree-optimization/49018
15931         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15932         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15933         gimple_has_side_effects.
15934
15935 2011-05-18  Richard Guenther  <rguenther@suse.de>
15936
15937         * gimple.c (gimple_register_type_1): New function, split out from ...
15938         (gimple_register_type): ... here.  Avoid infinite recursion.
15939
15940 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15941
15942         PR tree-optimization/41881
15943         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15944         reduction_chains along with a macro for its access.
15945         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15946         (destroy_loop_vec_info): Free reduction chains.
15947         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15948         (vect_is_slp_reduction): New function.
15949         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15950         (vect_create_epilog_for_reduction): Support SLP reduction chains.
15951         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15952         definition types for reduction chains.
15953         (vect_supported_load_permutation_p): Don't allow permutations for
15954         reduction chains.
15955         (vect_analyze_slp_instance): Support reduction chains.
15956         (vect_analyze_slp): Try to build SLP instance from reduction chains.
15957         (vect_get_constant_vectors):  Handle reduction chains.
15958         (vect_schedule_slp_instance): Mark the first statement of the
15959         reduction chain as reduction.
15960
15961 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15962
15963         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15964         names for group elements access.
15965         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15966         reduction chains as well.  Remove data reference and interleaving
15967         related words from the fields names.
15968         * tree-vect-loop.c (vect_transform_loop): Use new names for group
15969         elements access.
15970         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15971         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15972         vect_update_interleaving_chain, vect_same_range_drs,
15973         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15974         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15975         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15976         vect_analyze_group_access, vect_analyze_data_ref_access,
15977         vect_create_data_ref_ptr, vect_transform_strided_load,
15978         vect_record_strided_load_vectors): Likewise.
15979         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15980         vect_model_load_cost, vectorizable_store, vectorizable_load,
15981         vect_remove_stores, new_stmt_vec_info): Likewise.
15982         * tree-vect-slp.c (vect_build_slp_tree,
15983         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15984
15985 2011-05-18  Richard Guenther  <rguenther@suse.de>
15986
15987         PR middle-end/48989
15988         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15989         operand verification.
15990         (verify_gimple_assign_binary): Likewise.
15991         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15992         to non-1-precision BOOLEAN_TYPEs.
15993
15994 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15995
15996         PR target/45098
15997         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15998
15999 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
16000
16001         PR tree-optimization/49000
16002         * tree-ssa.c (execute_update_addresses_taken): Call
16003         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
16004         be rewritten and decl has been marked for renaming, reset
16005         the debug stmt.
16006
16007 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
16008
16009         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
16010         enum_opts_set when testing if attributes have set -mfpmath=.
16011
16012 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
16013
16014         * config/mips/mips.c (mips_handle_option): Remove unused variable.
16015
16016 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16017
16018         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
16019         info->entry with 0
16020         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
16021         id.transform_lang_insert_block with NULL.
16022
16023 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
16024
16025         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
16026         (output_fp_compare): Change args 3 and 4 to bool.
16027         (ix86_expand_call): Change arg 6 to bool.
16028         (ix86_attr_length_immediate_default): Change arg 2 to bool.
16029         (ix86_attr_length_vex_default): Change arg 3 to bool.
16030         * config/i386/i386.md: Update all uses.
16031         * config/i386/i386.c: Ditto.
16032         (ix86_flags_dependent): Change return type to bool.
16033
16034 2011-05-17  Richard Guenther  <rguenther@suse.de>
16035
16036         * gimple.c (type_hash_pair_compare): Fix comparison.
16037
16038 2011-05-17  Richard Guenther  <rguenther@suse.de>
16039
16040         * gimple.c (iterative_hash_gimple_type): Simplify singleton
16041         case some more, fix final hash value of the non-singleton case.
16042
16043 2011-05-17  Richard Guenther  <rguenther@suse.de>
16044
16045         PR bootstrap/49013
16046         Revert
16047         2011-05-16  Richard Guenther  <rguenther@suse.de>
16048
16049         * gimple.c (gimple_types_compatible_p_1): Use names of the
16050         type itself, not its main variant.
16051         (iterative_hash_gimple_type): Likewise.
16052
16053 2011-05-17  Richard Guenther  <rguenther@suse.de>
16054
16055         * gimple.c (gimple_register_canonical_type): Use the main-variant
16056         leader for computing the canonical type.
16057
16058 2011-05-17  Nick Clifton  <nickc@redhat.com>
16059
16060         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
16061         moves.
16062
16063         * config/rx/rx.md: Add peephole to remove redundant extensions
16064         after loads.
16065         (bitset_in_memory): Use rx_restricted_mem_operand.
16066         (bitinvert_in_memory): Likewise.
16067         (bitclr_in_memory): Likewise.
16068
16069 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
16070             Nick Clifton  <nickc@redhat.com>
16071
16072         * config/rx/rx.md: Add peepholes to match a register move followed
16073         by a comparison of the moved register.  Replace these with an
16074         addition of zero that does both actions in one instruction.
16075
16076 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
16077
16078         PR target/48986
16079         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
16080         predicate to allow CONST_INT.
16081         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
16082
16083 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16084
16085         * opts-common.c (opt_enum_arg_to_value): New.
16086         * opts.h (opt_enum_arg_to_value): Declare.
16087         * config/i386/i386.opt (fpmath): Remove.
16088         (mfpmath=): Use Enum, Init and Save.
16089         (fpmath_unit): New Enum and EnumValue entries.
16090         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
16091         name for function fpmath state.
16092         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
16093         * config/i386/i386.c: Include diagnostic.h.
16094         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
16095         (ix86_target_string): Take enum fpmath_unit value instead of string.
16096         (ix86_debug_options): Update call to ix86_target_string.
16097         (ix86_option_override_internal): Don't process fpmath strings here.
16098         (x86_function_specific_save, ix86_function_specific_restore):
16099         Don't handle fpmath state specially.
16100         (ix86_function_specific_print): Pass fpmath state to
16101         ix86_target_string instead of printing in this function.
16102         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
16103         Handle enum attributes.
16104         (IX86_ATTR_ENUM, ix86_opt_enum): New.
16105         (ix86_valid_target_attribute_tree): Update option_strings
16106         handling.  Handle fpmath as enum option.
16107         (ix86_can_inline_p): Update field names for function fpmath state.
16108         (ix86_expand_builtin): Update call to ix86_target_string.
16109         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
16110         (ix86_fpmath): Remove.
16111         * config/i386/t-i386 (i386.o): Update dependencies.
16112
16113 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
16114
16115         PR preprocessor/48677
16116         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16117         from decoded_options[0], not from itself.
16118
16119 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
16120
16121         * config/i386/constraints.md (z): New constraint.
16122         * config/i386/i386.c (c): New mode attribute.
16123         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16124         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16125         constraint for operand 0.
16126         (*call_vzeroupper): Ditto.
16127         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
16128         (*call_rex64_ms_sysv_vzeroupper): Ditto.
16129         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16130         Use "lzm" constraint for operand 0.
16131         (*call_pop_vzeroupper): Ditto.
16132         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16133         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16134         constraint for operand 0.
16135         (*sibcall_vzeroupper): Ditto.
16136         (*sibcall_rex64_ms_sysv): Ditto.
16137         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16138         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16139         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
16140         (*sibcall_pop_vzeroupper): Ditto.
16141         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16142         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16143         mode iterator.  Use "<c>zm" constraint for operand 1.
16144         (*call_value_vzeroupper): Ditto.
16145         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
16146         for operand 1.
16147         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16148         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16149         *call_value_pop_1.  Use "lzm" constraint for operand 1.
16150         (*call_value_pop_vzeroupper): Ditto.
16151         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16152         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16153         mode iterator.  Use "Uz" constraint for operand 1.
16154         (*sibcall_value_vzeroupper): Ditto.
16155         (*sibcall_value_rex64_ms_sysv): Ditto.
16156         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16157         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
16158         constraint for operand 1.
16159         (*sibcall_value_pop_vzeroupper): Ditto.
16160         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16161         and "z" constraint for operand 2.
16162         (*tls_global_dynamic_32_gnu): Ditto.
16163         (*tls_local_dynamic_base_32_gnu): Ditto.
16164         (*tls_local_dynamic_base_64): Ditto.
16165         (*tls_local_dynamic_32_once): Ditto.
16166         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16167         Update all callers.
16168         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16169
16170 2011-05-16  Richard Guenther  <rguenther@suse.de>
16171
16172         * gimple.c (gimple_types_compatible_p_1): Use names of the
16173         type itself, not its main variant.
16174         (iterative_hash_gimple_type): Likewise.
16175
16176 2011-05-16  Richard Guenther  <rguenther@suse.de>
16177
16178         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16179         always visit pointer target and function result and argument types.
16180
16181 2011-05-16  Jason Merrill  <jason@redhat.com>
16182
16183         PR c++/48999
16184         * tree-inline.c (copy_statement_list): Put back recursion.
16185
16186 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16187
16188         PR target/27663
16189         PR target/41076
16190         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16191         * config/avr/avr.md ("*ior<mode>qi.byte0",
16192         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16193
16194 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16195
16196         PR target/45099
16197         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16198         register is needed for a function argument.
16199
16200 2011-05-16  Richard Guenther  <rguenther@suse.de>
16201
16202         * gimple.c (struct type_hash_pair): New type.
16203         (type_hash_pair_compare): New function.
16204         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16205
16206 2011-05-16  Revital Eres  <revital.eres@linaro.org>
16207
16208         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16209
16210 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16211
16212         * config/i386/i386.md (floating point move splitters): Fix
16213         usage of standard_80387_constant_p.
16214         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16215
16216 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16217
16218         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16219
16220 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16221
16222         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16223         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16224         (tree_ssa_lim_finalize): Likewise.
16225
16226 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
16227
16228         * config/i386/constraint.md (Yd, Yx): New register constraints.
16229         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
16230         Yd conditional register constraint.
16231         (*movtf_internal): Use standard_sse_constant_opcode.
16232         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
16233         Yx conditional register constraint.
16234         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
16235         Yd conditional register constraint.  Use standard_sse_constant_p to
16236         check for valid SSE constants and call standard_sse_constant_opcode to
16237         output SSE insn.
16238         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16239         constants and call standard_sse_constant_opcode to output SSE insn.
16240         * config/i386/i386.c (ix86_option_ovverride_internal): Set
16241         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
16242         optimize_size is set.
16243         (standard_sse_constant_opcode): Output conditional AVX insn templates.
16244
16245 2011-05-14  Tobias Burnus  <burnus@net-b.de>
16246
16247         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16248
16249 2011-05-13  Martin Jambor  <mjambor@suse.cz>
16250
16251         * ipa-prop.c (ipa_cst_from_jfunc): New function.
16252         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16253         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16254         (evaluate_conditions_for_ipcp_clone): Removed.
16255         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16256         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16257         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16258
16259 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16260
16261         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16262         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16263         lieu of MAY_HAVE_DEBUG_STMTS.
16264         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16265         debug statements if !MAY_HAVE_DEBUG_STMTS.
16266
16267 2011-05-13  Martin Thuresson  <martint@google.com>
16268
16269         PR gcov-profile/47793
16270         * libgcov.c (gcov_exit): Support relative profile paths.
16271         * doc/invoke.texi (-fprofile-dir): Update for above change.
16272
16273 2011-05-13  Richard Guenther  <rguenther@suse.de>
16274
16275         * gimple.c (gimple_canonical_types_compatible_p): Do not use
16276         type-pair caching, do not compare hashes.
16277
16278 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
16279
16280         PR middle-end/48965
16281         * tree-cfg.c (edge_to_cases_cleanup): Return true.
16282         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16283
16284 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16285
16286         * gimplify.c (gimplify_expr): Make sure operand is boolified.
16287         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16288         compatible type for TRUTH_NOT_EXPR.
16289
16290 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16291
16292         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16293         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
16294         can_create_pseudo_p ().
16295
16296 2011-05-13  Richard Guenther  <rguenther@suse.de>
16297
16298         PR lto/48978
16299         * gimple.c (iterative_hash_gimple_type): Revert change in
16300         pointer target and function result and argument hashing.
16301
16302 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
16303
16304         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16305         (*movxf_internal_nointeger): Ditto.
16306         (*movdf_internal_rex64): Ditto.
16307         (*movdf_internal): Ditto.
16308         (*movdf_internal_nointeger): Ditto.
16309         (*movsf_internal): Ditto.
16310         (sincos splitters): Use can_create_pseudo ().
16311
16312 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
16313
16314         * config/i386/i386-opts.h: New.
16315         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16316         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16317         ix86_section_threshold): Remove.
16318         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
16319         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16320         OPT_mbranch_cost_.
16321         (ix86_option_override_internal): Don't decode strings for options
16322         other than -march=, -mtune= and -mfpmath=.  Don't allow for
16323         __attribute__ uses in remaining diagnostics for options with
16324         string arguments.  Don't check for integer arguments being negative.
16325         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16326         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16327         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16328         ix86_branch_cost, ix86_section_threshold): Remove.
16329         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16330         HeaderInclude.
16331         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16332         but not Var.
16333         (masm=): Use Enum and Init.
16334         (asm_dialect): New Enum and EnumValue entries.
16335         (mbranch-cost=): Use UInteger.
16336         (mlarge-data-threshold=): Use UInteger and Init.
16337         (mcmodel=): Use Enum and Init.
16338         (cmodel): New Enum and EnumValue entries.
16339         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16340         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16341         mregparm=): Use UInteger.
16342         (mstringop-strategy=): Use Enum and Init.
16343         (stringop_alg): New Enum and EnumValue entries.
16344         (mtls-dialect=): Use Enum and Init.
16345         (tls_dialect): New Enum and EnumValue entries.
16346         (mabi=): Use Enum and Init.
16347         (calling_abi): New Enum and EnumValue entries.
16348         (mveclibabi=): Use Enum and Init.
16349         (ix86_veclibabi): New Enum and EnumValue entries.
16350
16351 2011-05-13  Nick Clifton  <nickc@redhat.com>
16352
16353         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16354         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16355
16356 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16357
16358         PR middle-end/48984
16359         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16360         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16361         (gimple_boolify): Check for cast for boolean_type_node instead for
16362         BOOLEAN_TYPE.
16363
16364 2011-05-13  Richard Guenther  <rguenther@suse.de>
16365
16366         PR tree-optimization/48172
16367         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16368         multiplying by number of iterations for equal step.
16369         (vect_create_cond_for_alias_checks): Likewise.
16370
16371 2011-05-13  Andreas Schwab  <schwab@redhat.com>
16372
16373         * configure.ac: Use AS_HELP_STRING throughout.
16374         * configure: Regenerate.
16375
16376 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16377
16378         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16379         (ix86_emit_restore_regs_using_mov): Likewise.
16380         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16381
16382 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
16383
16384         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16385         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16386         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16387         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16388         RTX_OK_FOR_OLO10_P): ...here.
16389         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16390         SYMBOLIC_CONST.
16391
16392 2011-05-12  Kai Tietz  <ktietz@redhat.com>
16393
16394         * gimplify.c (gimple_boolify): Re-boolify expression
16395         arguments even if expression type is of kind BOOLEAN_TYPE.
16396         (gimplify_boolean_expr): Removed.
16397         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16398         and XOR. Additional take care that we keep expression's type.
16399         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16400         of TRUTH_AND|OR|XOR_EXPR.
16401
16402 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16403
16404         PR tree-optimization/48975
16405         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16406         on all bbs here and free and clear ifc_bbs at the end.
16407
16408 2011-05-12  Richard Guenther  <rguenther@suse.de>
16409
16410         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16411         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
16412         until after simple checks.
16413         (gimple_types_compatible_p): Likewise.
16414         (iterative_hash_gimple_type): Always hash pointer targets
16415         and function return and argument types.
16416         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16417         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
16418         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16419         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
16420         completely in the simple compare section.
16421         (gimple_register_canonical_type): Query the cache again after
16422         registering.
16423
16424 2011-05-12  Richard Guenther  <rguenther@suse.de>
16425
16426         PR tree-optimization/48172
16427         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16428         the number of iterations from the segment size calculation.
16429         (vect_create_cond_for_alias_checks): Adjust.
16430
16431 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16432
16433         PR debug/48967
16434         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16435         if validate_subreg fails.
16436
16437 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
16438
16439         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16440         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16441         early.
16442
16443 2011-05-12  DJ Delorie  <dj@redhat.com>
16444
16445         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16446         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16447         created builtin into rx_builtins array.
16448         (rx_builtin_decl): New function.
16449         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
16450
16451 2011-05-12  DJ Delorie  <dj@redhat.com>
16452             Nick Clifton  <nickc@redhat.com>
16453
16454         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16455         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16456         (rx_is_legitimate_address): Add pre-decrement and post-increment
16457         addressing in HImode and QImode.  Fix test for out of range
16458         REG+INT addressing.
16459         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16460         (rx_align_for_label): Test label before extracting its usage count.
16461         (rx_adjust_insn_lengths): Fix selection of insn codes.
16462         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16463
16464 2011-05-11  Jason Merrill  <jason@redhat.com>
16465
16466         * tree.c (type_hash_canon): Use struct tree_type_non_common.
16467
16468 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16469
16470         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16471         reindent the subsequent block.
16472
16473 2011-05-11  Satoru Takabayashi  <satorux@google.com>
16474             Paul Pluzhnikov  <ppluzhnikov@google.com>
16475
16476         * doc/install.texi (Configuration): Document --with-linker-hash-style.
16477         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16478         * config.in: Add LINKER_HASH_STYLE.
16479         * configure.ac: Add --with-linker-hash-style.
16480         * configure: Regenerate.
16481
16482 2011-05-11  Richard Guenther  <rguenther@suse.de>
16483
16484         PR middle-end/48964
16485         * gimple.c (iterative_hash_canonical_type): Fix typo.
16486
16487 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
16488
16489         * config/i386/i386.c (legitimize_tls_address)
16490         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16491         expanders directly for TARGET_GNU2_TLS.  Determine pic and
16492         __tls_get_addr symbol reference here.  Update call to
16493         gen_tls_global_dynamic_{32,64} for added arguments.
16494         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16495         expanders directly for TARGET_GNU2_TLS.  Determine
16496         __tls_get_addr symbol reference here.  Update call to
16497         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
16498         unique UNSPEC REG_EQUIV to libcall block.
16499         (ix86_tls_get_addr): Declare static.
16500         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16501         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16502         Do not determine pic and __tls_get_addr symbol reference here. Do not
16503         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16504         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16505         (tls_global_dynamic_64): Add operand 2.  Do not determine
16506         __tls_get_addr symbol reference here.  Do not call
16507         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16508         (tls_local_dynamic_base64): Ditto for operand 1.
16509
16510 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16511
16512         * function.c (expand_function_start): Initialize stack_check_probe_note
16513         only if the generic stack checking mechanism is used.
16514
16515 2011-05-11  Richard Guenther  <rguenther@suse.de>
16516
16517         PR tree-optimization/15256
16518         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16519         (A & B) | C, combine (A op CST1) op CST2.
16520         (tree_ssa_forward_propagate_single_use_vars): Only bother to
16521         visit assigns that have uses.
16522
16523 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
16524
16525         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16526         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16527         (unpack_ts_type_common_value_fields): ...this.  Update comment.
16528         (unpack_value_fields): Adjust for renaming.
16529         (lto_input_ts_type_tree_pointers): Split into...
16530         (lto_input_ts_type_common_tree_pointer): ...this and...
16531         (lto_input_ts_type_non_common_tree_pointers): ...this.
16532         (lto_input_tree_pointers): Adjust for above split.
16533         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16534         (pack_ts_type_common_value_fields): ...this.  Update comment.
16535         (lto_output_ts_type_tree_pointers): Split into...
16536         (lto_output_ts_type_common_tree_pointers): ...this and...
16537         (lto_output_ts_type_non_common_tree_pointers): ...this.
16538         (lto_output_tree_pointers): Adjust for above split.
16539         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16540         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16541         * stor-layout.c (vector_type_mode): Adjust location of mode field.
16542         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16543         Define.
16544         (struct tree_type): Split into...
16545         (struct tree_type_common: ...this and...
16546         (struct tree_type_with_lang_specific): ...this and...
16547         (struct tree_type_non_common): ...this.  Adjust accessor macros
16548         accordingly.
16549         (TYPE_VALUES_RAW): Define.
16550         (union tree_node): Update for above changes.
16551         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16552         TS_TYPE_NON_COMMON.
16553         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16554         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16555         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16556         * treestructu.def (TS_TYPE): Remove.
16557         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16558         Define.
16559
16560 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
16561
16562         PR debug/48159
16563         * tree-ssa.c (reset_debug_uses): New function.
16564         * tree-flow.h (reset_debug_uses): New prototype.
16565         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16566         * tree-loop-distribution.c (generate_loops_for_partition): Call
16567         reset_debug_uses on the stmts that will be removed.  Keep around
16568         all debug stmts, don't count them as bits in partition bitmap.
16569         (generate_builtin): Don't count debug stmts or labels as bits in
16570         partition bitmap.
16571
16572 2011-05-11  Richard Guenther  <rguenther@suse.de>
16573
16574         * gimple.c (gimple_type_hash_1): Merge with ...
16575         (gimple_type_hash): ... this.
16576         (gtc_visit): Remove mode parameter and simplify accordingly.
16577         (gimple_types_compatible_p_1): Likewise.
16578         (gimple_types_compatible_p): Likewise.
16579         (iterative_hash_gimple_type): Likewise.
16580         (visit): Likewise.
16581         (gimple_type_eq): Adjust.
16582
16583 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16584
16585         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16586         enters the branch create an anti edge in the opposite direction
16587         to prevent the creation of reg-moves.
16588         * modulo-sched.c: Adjust comment to reflect the fact we are
16589         scheduling closing branch.
16590         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16591         (stage_count): New field in struct partial_schedule.
16592         (calculate_stage_count): New function.
16593         (normalize_sched_times): Rename to reset_sched_times and handle
16594         incrementing the sched time of the nodes by a constant value
16595         passed as parameter.
16596         (duplicate_insns_of_cycles): Skip closing branch.
16597         (sms_schedule_by_order): Schedule closing branch.
16598         (ps_insn_find_column): Handle closing branch.
16599         (sms_schedule): Call reset_sched_times and adjust the code to
16600         support scheduling of the closing branch.
16601         (ps_insert_empty_row): Update calls to normalize_sched_times
16602         and rotate_partial_schedule functions.
16603
16604 2011-05-11  Richard Guenther  <rguenther@suse.de>
16605
16606         PR middle-end/48953
16607         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16608
16609 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
16610
16611         * opts.c (finish_options): Move warning settings from process_options.
16612         * toplev.c (process_options): Move warning settings to finish_options.
16613
16614 2011-05-11  Richard Guenther  <rguenther@suse.de>
16615
16616         PR tree-optimization/18041
16617         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16618         (simplify_bitwise_binary): ... this.  Handle operand conversions
16619         by applying them to the result instead.
16620         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
16621
16622 2011-05-11  Richard Guenther  <rguenther@suse.de>
16623
16624         * gimple.c (gimple_canonical_types_compatible_p): Split out
16625         from gimple_types_compatible_p and friends.  Do not recurse
16626         to pointed-to types.
16627         (gimple_canonical_type_eq): Use it.
16628         (iterative_hash_canonical_type): Split out from
16629         iterative_hash_gimple_type and friends.  Do not recurse
16630         to pointed-to types.
16631         (gimple_canonical_type_hash): Use it, allocate the hash here.
16632
16633 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16634
16635         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16636         recognizing doloop.
16637
16638 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16639
16640         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16641         instead of PREV_INSN.
16642
16643 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16644
16645         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16646         * loop-doloop.c (doloop_condition_get): Likewise.
16647         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16648         (doloop_end): New.
16649         * config/arm/arm.md (*addsi3_compare0): Remove "*".
16650
16651 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
16652
16653         * tree.def (CASE_LABEL_EXPR): Add an operand.
16654         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16655
16656 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16657
16658         * c-decl.c (c_override_global_bindings_to_false): Remove.
16659         (global_bindings_p): Don't check
16660         c_override_global_bindings_to_false.
16661         * c-tree.h (c_override_global_bindings_to_false): Remove.
16662         * c-typeck.c (composite_type): Don't set
16663         c_override_global_bindings_to_false.
16664
16665 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16666
16667         PR target/48857, 48495
16668         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16669         (VSX_MODE): Ditto.
16670         (VSX_MOVE_MODE): Ditto.
16671         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16672         VSX vector types.  Add V2DImode.
16673         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16674         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16675         (MODES_TIEABLE_P): Ditto.
16676
16677         * config/rs6000/rs6000.c (rs6000_emit_move): Use
16678         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16679         VSX_VECTOR_MODE.
16680         (init_cumulative_args): Ditto.
16681         (rs6000_function_arg_boundary): Ditto.
16682         (rs6000_function_arg_advance_1): Ditto.
16683         (rs6000_function_arg): Ditto.
16684         (rs6000_function_ok_for_sibcall): Ditto.
16685         (emit_frame_save): Ditto.
16686         (rs6000_function_value): Ditto.
16687         (rs6000_libcall_value): Ditto.
16688
16689 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16690
16691         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16692         i386/darwin-lib.h to $libgcc_tm_file.
16693         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16694
16695 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16696
16697         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16698
16699 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16700
16701         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16702         * config/rs6000/rs6000-tables.opt: New file (generated).
16703         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16704         rs6000/rs6000-tables.opt to extra_options.
16705         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16706         * config/rs6000/rs6000.c (rs6000_select): Remove.
16707         (processor_target_table): Move contents to rs6000-cpus.def.
16708         (darwin_rs6000_override_options): Check
16709         global_options_set.x_rs6000_cpu_index instead of
16710         rs6000_select[1].string.
16711         (rs6000_option_override_internal): Likewise.
16712         (rs6000_handle_option): Don't assert that global structures are in
16713         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
16714         (rs6000_default_cpu): New variable.
16715         (rs6000_file_start): Set it instead of local default_cpu.  Check
16716         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16717         global_options_set.x_rs6000_tune_index instead of rs6000_select.
16718         (rs6000_darwin_file_start): Check rs6000_default_cpu and
16719         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16720         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16721         rs6000_select): Remove.
16722         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16723         Remove.
16724         (mcpu=, mtune=): Use Var, Init, Enum and Save.
16725         * config/rs6000/t-rs6000
16726         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16727         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16728         global_options_set.x_rs6000_cpu_index instead of
16729         rs6000_select[1].string.
16730         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16731         global_options_set.x_rs6000_cpu_index instead of
16732         rs6000_select[1].string.
16733
16734 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16735
16736         * config.gcc (libgcc_tm_file): Define instead of including files
16737         from ../../libgcc/config/ in tm_file.
16738         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16739         * configure: Regenerate.
16740         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16741         libgcc_tm.h, cs-libgcc_tm.h): New.
16742         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16743         (clean): Remove libgcc_tm.h.
16744         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16745         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16746         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16747
16748 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
16749
16750         PR target/48896
16751         * config/avr/avr.c (avr_ret_register): Return unsigned int
16752         instead of int.
16753         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16754         it to avr_libcall_value.
16755         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16756         expand_expr.
16757         (avr_expand_binop_builtin): Ditto.
16758         (avr_expand_unop_builtin): Ditto.
16759
16760 2011-05-10  DJ Delorie  <dj@redhat.com>
16761
16762         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16763         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16764         * config/rx/rx.c (rx_align_for_label): Add label and
16765         uses_threshold parameters.  Do not align when the label is not
16766         used enough.
16767         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16768
16769 2011-05-10  Richard Guenther  <rguenther@suse.de>
16770
16771         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16772         a series of conversions and apply foldings similar to what
16773         fold-const does.
16774         (tree_ssa_forward_propagate_single_use_vars): Call it.
16775
16776 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
16777
16778         PR tree-optimization/48611
16779         PR tree-optimization/48794
16780         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16781         referenced from RESX or EH_DISPATCH arguments.
16782
16783         PR debug/48928
16784         * dfp.c (decimal_to_decnumber): Handle conversion from
16785         dconst{1,2,m1,half}.
16786
16787 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16788
16789         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16790         for !flag_prefer_avx128.
16791         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16792
16793 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16794
16795         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16796         (fold_ternary_loc): Use expr_location_or.
16797
16798 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16799
16800         PR debug/48853
16801         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16802         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16803         Pmode and mem_mode is not VOIDmode.
16804
16805 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
16806
16807         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16808         TYPE_QUAL_RESTRICT): Convert to enum.
16809
16810 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16811
16812         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16813         (const_pow2_1_to_8_operand): Ditto.
16814         (const_pow2_1_to_128_operand): Ditto.
16815         (const_pow2_1_to_32768_operand): Ditto.
16816         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16817         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
16818         in insn constraint to check integer value of operand 3.
16819         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16820
16821         (PINSR_MODE): New mode iterator.
16822         (sse2p4_1): New mode attribute.
16823         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16824         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16825         iterator.  Use const_int_operand instead of
16826         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
16827         exact_log2 in insn constraint to check integer value of operand 3.
16828
16829 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16830
16831         * config/i386/sse.md (blendbits): Remove mode attribute.
16832         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16833         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16834         Check integer value of operand 3 in insn constraint.
16835
16836 2011-05-09  Richard Guenther  <rguenther@suse.de>
16837
16838         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16839         for diagnostics.
16840         (lto_symtab_merge): Likewise.  Do not register types here.
16841         (lto_symtab_merge_decls_2): Likewise.
16842         (lto_symtab_merge_decls_1): Likewise.
16843         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16844         * gimple.c (enum gtc_mode): Declare.
16845         (gimple_types_compatible_p): Make static.
16846
16847 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16848
16849         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16850         temporary register to match Pmode.
16851
16852 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16853
16854         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16855         and *vec_concatv4si_1_avx.
16856
16857 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16858
16859         PR rtl-optimization/48927
16860         * ira-conflicts.c (commutative_constraint_p): Use
16861         recog_data.alternative_enabled_p to disable alternatives where
16862         "enabled" attribute is false.
16863         (get_dup_num): Ditto.
16864         * ira-lives.c (single_reg_class): Ditto.
16865         (ira_implicitly_set_insn_hard_regs): Ditto.
16866
16867 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16868
16869         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16870         (dataflow_set_preserve_mem_locs): Likewise.
16871
16872 2011-05-09  Philipp Thomas  <pth@suse.de>
16873
16874         * config/mep/mep.c (mep_validate_vliw): Syntax description
16875         should not be translated.
16876
16877 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
16878
16879         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16880         * config/mips/mips-tables.opt: New file (generated).
16881         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16882         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16883         MIPS_ARCH_OPTION_NATIVE): Define.
16884         * config/mips/mips.c (mips_cpu_info_table): Move contents to
16885         mips-cpus.def.
16886         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16887         mips_parse_cpu): Remove.
16888         (mips_cpu_info_from_opt, mips_default_arch): New.
16889         (mips_handle_option): Don't assert that global structures are in
16890         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16891         (mips_option_override): Use new variables and functions to set
16892         state of these options.  Use strcmp to check for individual CPU names.
16893         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16894         definition.
16895         * config/mips/mips.opt (march=): Use ToLower and Enum.
16896         (mips): Use ToLower, Enum and Var.
16897         (mtune=): Use ToLower and Enum.
16898         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16899
16900 2011-05-08  Jan Hubicka  <jh@suse.cz>
16901
16902         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16903         Arrange type pairs to be UID ordered.
16904         (gimple_lookup_type_leader): Make inline.
16905
16906 2011-05-09  Nick Clifton  <nickc@redhat.com>
16907
16908         PR target/48899
16909         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16910         PROCESSOR_DEFAULT.
16911
16912         PR target/48897
16913         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16914         variable 's'.
16915
16916 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
16917
16918         * combine.c (simplify_comparison): Abstract out parts into...
16919         (simplify_compare_const): ... new function.
16920         (try_combine): Generalize parallel arithmetic/compare combining
16921         to call simplify_compare_const() and CANONICALIZE_COMPARE().
16922
16923 2011-05-08  Jan Hubicka  <jh@suse.cz>
16924
16925         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16926         (cgraph_create_virtual_clone): Call hooks once virtual clone
16927         is finished.
16928         * cgraph.h (cgraph_clone_node): Update prototype.
16929         * ipa-cp.c (ipcp_estimate_growth): Use
16930         estimate_ipcp_clone_size_and_time.
16931         * ipa-inline-transform.c (clone_inlined_nodes): Update.
16932         * lto-cgraph.c (input_node): Update.
16933         * ipa-inline.c (recursive_inlining): Update.
16934         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16935         (evaluate_conditions_for_known_args): Break out from ...
16936         (evaluate_conditions_for_edge): ... here.
16937         (evaluate_conditions_for_ipcp_clone): New function.
16938         (inline_node_duplication_hook): Update clone summary based
16939         on parameter map.
16940         (estimate_callee_size_and_time): Rename to ...
16941         (estimate_node_size_and_time): take NODE instead of EDGE;
16942         take POSSIBLE_TRUTHS as argument.
16943         (estimate_callee_size_and_time): Update.
16944         (estimate_ipcp_clone_size_and_time): New function.
16945         (do_estimate_edge_time): Update.
16946
16947 2011-05-08  Richard Guenther  <rguenther@suse.de>
16948
16949         PR middle-end/48908
16950         PR middle-end/48905
16951         * expmed.c (expand_shift_1): Compute adjusted constant shift
16952         amount manually.
16953
16954 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16955
16956         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16957
16958 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16959
16960         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16961
16962 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16963
16964         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16965
16966 2011-05-07  Jan Hubicka  <jh@suse.cz>
16967
16968         * ipa-inline-transform.c (inline_call): Account when program size
16969         decreases.
16970         * ipa-inline.c (relative_time_benefit): New function.
16971         (edge_badness): Reorganize to be power 2 based; fix thinko when
16972         computing badness for negative growth; update comments to match
16973         reality; better dumps.
16974
16975 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16976
16977         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16978         type to bool and adjust comment.
16979         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16980         (fold_mathfn_compare): Remove calls to global_bindings_p.
16981         (fold_inf_compare): Likewise.
16982         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16983         * c-tree.h (global_bindings_p): Adjust prototype.
16984         * c-decl.c (global_bindings_p): Return bool and simplify.
16985
16986 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
16987
16988         PR tree-optimization/48837
16989         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16990         when accumulator transformation is performed.
16991
16992 2011-05-06  Jan Hubicka  <jh@suse.cz>
16993
16994         * i386.h (ix86_tune_indices): Add
16995         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16996         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16997         * i386.c (initial_ix86_tune_features): Add
16998         X86_SOFTARE_PREFETCHING_BENEFICIAL.
16999         (software_prefetching_beneficial_p): Remove predicate.
17000         (ix86_option_override_internal): Use new macro.
17001
17002 2011-05-06  Jan Hubicka  <jh@suse.cz>
17003
17004         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
17005
17006 2011-05-06  Jan Hubicka  <jh@suse.cz>
17007
17008         * cgraph.c (cgraph_add_thunk): Create real function node instead
17009         of alias node; finalize it and mark needed/reachale; arrange visibility
17010         to be right and add it into the corresponding same comdat group list.
17011         (dump_cgraph_node): Dump thunks.
17012         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
17013         cgraph_function_with_gimple_body_p,
17014         cgraph_first_function_with_gimple_body,
17015         cgraph_next_function_with_gimple_body): New functions.
17016         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
17017         New macros.
17018         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
17019         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17020         * cgraphunit.c (cgraph_finalize_function): Only look into possible
17021         devirtualization when optimizing.
17022         (verify_cgraph_node): Verify thunks.
17023         (cgraph_analyze_function): Analyze thunks.
17024         (cgraph_mark_functions_to_output): Output thunks only in combination
17025         with function they are assigned to.
17026         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
17027         alias into normal node.
17028         (assemble_thunks): New functoin.
17029         (cgraph_expand_function): Use it.
17030         * lto-cgraph.c (lto_output_node): Stream thunks.
17031         (input_overwrite_node): Stream in thunks.
17032         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
17033         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
17034         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
17035         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
17036         (inline_analyze_function): Do not care about thunk jump functions.
17037         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
17038         * ipa-prop.c (ipa_prop_write_jump_functions): Use
17039         cgraph_function_with_gimple_body_p.
17040         * passes.c (do_per_function_toporder): Use
17041         cgraph_function_with_gimple_body_p.
17042         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
17043         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
17044         (function_called_by_processed_nodes_p): Likewise.
17045
17046 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17047
17048         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
17049         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
17050         entries.
17051         (mabi=): Replace with separate entries for mabi=altivec,
17052         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
17053         mabi=ieeelongdouble and mabi=ibmlongdouble.
17054         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
17055         check for -mabi=spe without SPE ABI support here.
17056         (rs6000_handle_option): Replace OPT_mabi_ handling with
17057         OPT_mabi_altivec and OPT_mabi_spe handling.
17058
17059 2011-05-06  Cary Coutant  <ccoutant@google.com>
17060
17061         * dwarf2out.c (contains_subprogram_definition): New function.
17062         (should_move_die_to_comdat): Call it.
17063
17064 2011-05-06  Jeff Law  <law@redhat.com>
17065
17066         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
17067         remove_ctrl_stmt_and_useless_edges.
17068         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
17069         (fixup_template_block, thread_single_edge): Likewise.
17070         (mark_threaded_blocks): Use THREAD_TARGET.
17071
17072 2011-05-06  Alan Modra  <amodra@gmail.com>
17073
17074         PR target/48900
17075         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17076         const0_rtx as the arg to the dummy __tls_get_addr libcall.
17077
17078 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17079
17080         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
17081         constraint modifier to "r".
17082
17083 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
17084
17085         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
17086         fall through for OPT_mcmodel_.
17087
17088 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17089
17090         * config/s390/s390.c (s390_asm_trampoline_template): Comment
17091         instruction sizes.
17092         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
17093
17094 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17095
17096         PR target/47930
17097         * config/arm/arm.opt (marm): Document it.
17098         (mthumb): Reject negative variant.
17099
17100 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
17101
17102         PR target/48898
17103         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17104         Fix typo in "ccvt" variable name.
17105
17106 2011-05-06  Tristan Gingold  <gingold@adacore.com>
17107
17108         PR target/48895
17109         * config/vms/vms-ar.c (main): Remove cwd variable.
17110
17111 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17112
17113         PR debug/48902
17114         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17115
17116 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17117
17118         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17119         * gimplify.c (gimplify_switch_expr): Likewise.
17120         * omp-low.c (expand_omp_sections): Likewise.
17121         * tree-eh.c (lower_try_finally_switch): Likewise.
17122         (lower_eh_dispatch): Likewise.
17123         * tree.h (build_case_label): Declare.
17124         * tree.c (build_case_label): Define.
17125
17126 2011-05-05  Jason Merrill  <jason@redhat.com>
17127
17128         PR c++/40975
17129         * tree-inline.c (copy_tree_r): Use copy_statement_list.
17130         (copy_statement_list): Don't recurse.
17131         * stor-layout.c (copy_self_referential_tree_r): Don't allow
17132         STATEMENT_LIST.
17133
17134 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17135
17136         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17137         through from -mfpu= handling.
17138         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17139
17140 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
17141
17142         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17143         POST_MODIFY.
17144
17145 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
17146
17147         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17148         for 11.31.
17149         (hppa[12]*-*-hpux11*): Ditto.
17150         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17151         * config/ia64/hpux-unix2003.h: New.
17152         * config/pa/pa-hpux1131.opt: New.
17153         * config/pa/pa-hpux1131.h: New.
17154         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17155         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17156         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17157
17158 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17159
17160         PR debug/48853
17161         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17162         instead of mode as 3rd argument to recursive call.
17163         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17164         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17165         VOIDmode.
17166         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17167         don't give up if mode is Pmode and mem_mode is not VOIDmode.
17168         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17169         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17170
17171 2011-05-05  Julian Brown  <julian@codesourcery.com>
17172
17173         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17174         parenthesis in D-register case.
17175
17176 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17177
17178         * opt-functions.awk (var_type_struct): Handle Enum options.
17179         * optc-gen.awk: Don't check range of variables of character type.
17180         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17181         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17182         rs6000_sdata_name, rs6000_explicit_options): Remove.
17183         (rs6000_option_override_internal): Check for -malign-power here.
17184         Use global_options_set instead of rs6000_explicit_options.
17185         (rs6000_parse_fpu_option): Remove.
17186         (rs6000_handle_option): Access variables via opts and opts_set
17187         pointers.  Use error_at and warning_at.  Add fall-through
17188         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17189         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17190         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17191         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17192         here.  Don't use rs6000_parse_fpu_option.
17193         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17194         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17195         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17196         (mrecip=): Use Var.
17197         (mspe): Use Var and Save.
17198         (mtraceback=): Use Enum and Var.
17199         (rs6000_traceback_type): New Enum and EnumValue entries.
17200         (mfloat-gprs=): Use Enum, Var and Save.
17201         (rs6000_float_gprs): New Enum and EnumValue entries.
17202         (mlong-double-): use Var and Save.
17203         (msched-costly-dep=, minsert-sched-nops=): Use Var.
17204         (malign-): Use Enum and Var.
17205         (rs6000_alignment_flags): New Enum and EnumValue entries.
17206         (mfpu=): Use Enum.
17207         (fpu_type_t): New Enum and EnumValue entries.
17208         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17209         global_options_set instead of rs6000_explicit_options.
17210         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17211         global_options_set instead of rs6000_explicit_options.
17212         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17213         global_options_set instead of rs6000_explicit_options.
17214         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17215         global_options_set instead of rs6000_explicit_options.
17216         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17217         global_options_set instead of rs6000_explicit_options.
17218         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17219         global_options_set instead of rs6000_explicit_options.
17220         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17221         definition.
17222         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17223         global_options_set instead of rs6000_explicit_options.
17224         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17225         (rs6000_cmodel): New Enum and EnumValue entries.
17226         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17227         global_options_set instead of rs6000_explicit_options.
17228         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17229         (mtls-size=): Use Enum and Var.
17230         (rs6000_tls_size): New Enum and EnumValue entries.
17231
17232 2011-05-05  Michael Matz  <matz@suse.de>
17233
17234         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17235         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17236         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17237         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17238         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17239         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17240         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17241         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17242         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17243         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17244         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17245         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17246         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17247         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17248         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17249         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17250
17251 2011-05-05  Richard Guenther  <rguenther@suse.de>
17252
17253         * expmed.c (expand_variable_shift): Rename to ...
17254         (expand_shift_1): ... this.  Take an expanded shift amount.
17255         For rotates recurse directly not building trees for the shift amount.
17256         (expand_variable_shift): Wrap around expand_shift_1.
17257         (expand_shift): Adjust.
17258
17259 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17260
17261         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17262
17263 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17264
17265         * tree.h (get_pending_sizes): Remove prototype.
17266         (put_pending_size): Likewise.
17267         (put_pending_sizes): Likewise.
17268         * stor-layout.c (pending_sizes): Delete.
17269         (get_pending_sizes): Likewise.
17270         (put_pending_size): Likewise.
17271         (put_pending_sizes): Likewise.
17272         (variable_size): Do not call put_pending_size and tidy up.
17273         * function.h (struct function): Remove dont_save_pending_sizes_p.
17274         * lto-streamer-in.c (input_function): Do not stream it.
17275         * lto-streamer-out.c (output_function): Likewise.
17276         * tree-inline.c (initialize_cfun): Do not copy it.
17277         * c-decl.c (store_parm_decls): Do not set it.
17278         * omp-low.c (create_task_copyfn): Likewise.
17279         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17280
17281 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
17282
17283         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17284         conditions.
17285         (*movdf_internal): Ditto.
17286         (*movdf_internal_nointeger): Ditto.
17287         (*movsf_internal): Ditto.
17288
17289 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17290
17291         * c-decl.c (finish_decl): Don't call get_pending_sizes.
17292         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
17293         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
17294         (c_variable_size): Remove.
17295         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
17296         call put_pending_sizes.
17297         (get_parm_info): Add parameter expr.  Use it to set
17298         arg_info->pending_sizes.
17299         (store_parm_decls): Use arg_info->pending_sizes instead or calling
17300         get_pending_sizes.
17301         * c-parser.c (c_parser_parms_declarator): Update call to
17302         c_parser_parms_list_declarator.
17303         (c_parser_parms_list_declarator): Take parameter expr.  Update
17304         call to push_parm_decl.  Update recursive call.  Don't call
17305         get_pending_sizes.  Update calls to get_parm_info.
17306         (c_parser_objc_method_definition): Update calls to
17307         c_parser_objc_method_decl and objc_start_method_definition.
17308         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17309         (c_parser_objc_method_decl): Add parameter expr.  Update call to
17310         grokparm.
17311         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17312         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17313         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17314
17315 2011-05-05  Michael Hope  <michael.hope@linaro.org>
17316
17317         PR pch/45979
17318         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17319         __ARM_EABI__ hosts.
17320
17321 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17322
17323         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17324         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17325         (spu_output_mi_thunk): New function.
17326
17327 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17328
17329         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17330         targetm.asm_out.print_operand.
17331         * config/sol2.c: Include target.h.
17332
17333 2011-05-04  Jan Hubicka  <jh@suse.cz>
17334
17335         * ipa-inline.c (reset_edge_caches): New function.
17336         (update_caller_keys): Add check_inlinablity_for; do not
17337         reset edge caches; remove now unnecesary loop.
17338         (update_callee_keys): Add comments; reset node_growth_cache of callee.
17339         (update_all_callee_keys): Likewise.
17340         (inline_small_functions): Sanity check cache; update code
17341         recomputing it.
17342
17343 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
17344
17345         PR rtl-optimization/47612
17346         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17347         as the last insn of the sequence to be moved.
17348
17349 2011-05-04  Tobias Burnus  <burnus@net-b.de>
17350
17351         PR fortran/48864
17352         * doc/invoke.texi (Ofast): Document that it
17353         enables Fortran's -fno-protect-parens.
17354
17355 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17356
17357         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17358
17359 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17360
17361         * stor-layout.c (variable_size): Do not issue errors.
17362
17363 2011-05-04  Richard Guenther  <rguenther@suse.de>
17364
17365         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17366         for array-ref indices.
17367         (tree_coverage_counter_addr): Likewise.
17368         (build_fn_info_type): Use size_int for index types.
17369         (build_gcov_info): Likewise.
17370
17371 2011-05-04  Richard Guenther  <rguenther@suse.de>
17372
17373         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17374         to build_int_cst.
17375         * c-typeck.c (really_start_incremental_init): Use bitsize_int
17376         for constructor indices.
17377         (push_init_level): Likewise.
17378
17379 2011-05-04  Richard Guenther  <rguenther@suse.de>
17380
17381         * explow.c (promote_mode): Move variable declarations before code.
17382
17383 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
17384
17385         * tree.h (build_function_type_array): Declare.
17386         (build_varargs_function_type_array): Declare.
17387         (build_function_type_vec, build_varargs_function_type_vec): Define.
17388         * tree.c (build_function_type_array_1): New function.
17389         (build_function_type_array): New function.
17390         (build_varargs_function_type_array): New function.
17391
17392 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
17393
17394         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17395         before setting STMT_VINFO_TYPE.
17396
17397 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17398
17399         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17400         instead of spu_pass_by_reference.
17401
17402 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17403
17404         * calls.c (emit_library_call_value_1): Invoke
17405         promote_function_mode hook on libcall arguments.
17406         * explow.c (promote_function_mode, promote_mode): Handle TYPE
17407         argument being NULL.
17408         * targhooks.c (default_promote_function_mode): Lisewise.
17409         * config/s390/s390.c (s390_promote_function_mode): Likewise.
17410         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17411
17412         * doc/tm.texi: Document that TYPE argument might be NULL.
17413
17414 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17415
17416         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17417
17418 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17419
17420         From Bernd Schmidt
17421         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17422
17423 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17424
17425         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17426         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17427         Move ...
17428         * mips-tfile.c: ... here.
17429         Don't include coretypes.h, tm.h, filenames.h.
17430         (saber_stop): Remove definition and all calls.
17431         [__SABER__]: Remove.
17432         (__LINE__): Remove default.
17433         (Size_t, Ptrdiff_t): Remove definitions.
17434         Replace by size_t, ptrdiff_t.
17435         [!MIPS_DEBUGGING_INFO]: Remove.
17436         (SHASH_SIZE, THASH_SIZE): Remove defaults.
17437         (progname): Add const.
17438         (STATIC): Remove.
17439         Replace all uses by static.
17440         (ALIGN_SYMTABLE_OFFSET): Remove default.
17441         * mips-tdump.c: Don't include coretypes.h, tm.h.
17442         Remove !MIPS_IS_STAB guard.
17443         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17444         $(TM_H), filenames.h dependencies.
17445         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17446
17447 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17448
17449         From Jie Zhang
17450         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17451         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17452
17453 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17454
17455         From Bernd Schmidt
17456         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17457         account and save/restore RETS.
17458         (PROFILE_BEFORE_PROLOGUE): Define.
17459         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
17460         the push insn to use predecrement.
17461
17462 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17463
17464         From Jie Zhang
17465         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17466
17467 2011-05-04  Nick Clifton  <nickc@redhat.com>
17468
17469         * config/mn10300/mn10300.c: Include cfgloop.h.
17470         (DUMP): New macro.
17471         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
17472         Lcc or a FLcc insn into the instruction stream.
17473         (mn10300_block_contains_call): New function.  Returns true if the
17474         given basic block contains a CALL insn.
17475         (mn10300_loop_contains_call_insn): New function.  Returns true if
17476         the given loop contains a CALL insn.
17477         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
17478         to use the SETLB and Lcc or FLcc insns.
17479         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17480         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17481         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
17482         disable the SETLB optimization.
17483         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17484         __SETLB__ or __NO_SETLB__.
17485         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17486         (movsf_internal): Handle MDR register.
17487         (cmpsi): Make visible.
17488         (setlb): New pattern.
17489         (Lcc): New pattern.
17490         (FLcc): New pattern.
17491
17492 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17493
17494         PR target/48860
17495         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17496         for reg<->xmm moves.
17497         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17498         (vec_concatv2di_rex64_sse): Ditto.
17499         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17500         (*vec_extractv2di_1_rex64): Ditto.
17501
17502         Revert:
17503         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17504
17505         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17506         reg<->xmm moves.
17507         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17508
17509 2011-05-04  Richard Guenther  <rguenther@suse.de>
17510
17511         * tree.h (int_const_binop): Remove notrunc argument.
17512         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
17513         create integer constants that are properly truncated.
17514         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17515         (const_binop): Remove zero notrunc argument to int_const_binop.
17516         (size_binop_loc): Likewise.
17517         (fold_div_compare): Likewise.
17518         (maybe_canonicalize_comparison_1): Likewise.
17519         (fold_comparison): Likewise.
17520         (fold_binary_loc): Likewise.
17521         (multiple_of_p): Likewise.
17522         * expr.c (store_constructor): Likewise.
17523         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17524         (maybe_fold_stmt_addition): Likewise.
17525         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17526         * stor-layout.c (layout_type): Likewise.
17527         * tree-data-ref.c (tree_fold_divides_p): Likewise.
17528         * tree-sra.c (build_ref_for_offset): Likewise.
17529         (build_user_friendly_ref_for_offset): Likewise.
17530         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17531         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17532         * tree-ssa-loop-niter.c (inverse): Likewise.
17533         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17534         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17535         * tree-switch-conversion.c (check_range): Likewise.
17536         (build_constructors): Likewise.
17537         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17538         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17539         (extract_range_from_assert): Likewise.
17540         (vrp_int_const_binop): Likewise.
17541         (extract_range_from_binary_expr): Likewise.
17542         (extract_range_from_unary_expr): Likewise.
17543         (check_array_ref): Likewise.
17544         (find_case_label_range): Likewise.
17545         (simplify_div_or_mod_using_ranges): Likewise.
17546         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17547         comparing case labels for merging.
17548
17549 2011-05-03  Mark Wielaard  <mjw@redhat.com>
17550
17551         * dwarf2out.c (debug_str_hash_forced): Removed.
17552         (gen_label_for_indirect_string): Removed.
17553         (get_debug_string_label): Removed.
17554         (AT_string_form): Generate label directly.
17555         (output_indirect_string): Test indirect_string_node for
17556         DW_FORM_strp instead of checking label and refcount.
17557         (prune_indirect_string): Removed.
17558         (prune_unused_types): Don't check debug_str_hash_forced or
17559         call prune_indirect_string.
17560
17561 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17562
17563         PR other/48093
17564         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17565
17566 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17567
17568         PR debug/47994
17569         PR debug/47919
17570         * combine.c (try_combine): Skip debug insns at m_split tests.
17571
17572 2011-04-26  Mark Wielaard  <mjw@redhat.com>
17573
17574         PR42288
17575         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17576         when info_section_emitted.
17577
17578 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
17579
17580         * config/mips/mips-opts.h: New.
17581         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17582         to mips-opts.h.
17583         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17584         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17585         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
17586         via opts pointer.
17587         * config/mips/mips.h (enum mips_code_readable_setting): Move to
17588         mips-opts.h.
17589         (mips_abi, mips_code_readable): Don't declare.
17590         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17591         (mabi=): Use Enum and Var.
17592         (mips_abi): New Enum and EnumValue entries.
17593         (mcode-readable=): Use Enum and Var.
17594         (mips_code_readable_setting): New Enum and EnumValue entries.
17595         (mr10k-cache-barrier=): Use Enum and Var.
17596         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17597
17598 2011-05-03  Jan Hubicka  <jh@suse.cz>
17599
17600         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17601         replace hash by pointer map.
17602         (cgraph_node_set_element_def, cgraph_node_set_element,
17603         const_cgraph_node_set_element, varpool_node_set_element_def,
17604         varpool_node_set_element, const_varpool_node_set_element): Remove.
17605         (free_cgraph_node_set, free_varpool_node_set): New function.
17606         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17607         * tree-emutls.c: Free varpool node set.
17608         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17609         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17610         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17611         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17612         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17613         Move here from ipa.c; implement using pointer_map
17614         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17615         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17616         debug_cgraph_node_set, varpool_node_set_new,
17617         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17618         dump_varpool_node_set, debug_varpool_node_set):
17619         Move to ipa-uitls.c.
17620         * passes.c (ipa_write_summaries): Update.
17621
17622 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17623
17624         From Mike Frysinger:
17625         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17626         bf542/bf544/bf547/bf548/bf549.
17627
17628 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17629
17630         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17631
17632 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17633
17634         From Bernd Schmidt:
17635         * config/bfin/bfin.md (MOVCC): New mode_macro.
17636         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17637         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
17638         comments from generated assembly.
17639
17640 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17641
17642         From Bernd Schmidt
17643         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17644         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17645         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17646         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17647         * config/bfin/lib1funcs.asm (___muldi3): New function.
17648
17649 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17650
17651         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17652         build_function_type_list instead of build_function_type.
17653         Rearrange initialization of `args' to do so.
17654
17655 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17656
17657         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17658         instead of build_function_type.
17659
17660 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17661
17662         * config/rs6000/rs6000.c (spe_init_builtins): Call
17663         build_function_type_list instead of build_function_type.
17664         (paired_init_builtins, altivec_init_builtins): Likewise.
17665         (builtin_function_type): Likewise.
17666
17667 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17668
17669         * config/sh/sh.c (sh_media_init_builtins): Call
17670         build_function_type_list instead of build_function_type.
17671
17672 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17673
17674         * config/sparc/sparc.c (sparc_file_end): Call
17675         build_function_type_list instead of build_function_type.
17676
17677 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17678
17679         * config/alpha/alpha.c (alpha_init_builtins): Call
17680         build_function_type_list instead of build_function_type.
17681
17682 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17683
17684         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17685         build_function_type_list instead of build_function_type.
17686
17687 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17688
17689         * config/iq2000/i2000.c (iq2000_init_builtins): Call
17690         build_function_type_list instead of build_function_type.
17691         Delete `endlink' variable.
17692
17693 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17694
17695         * config/avr/avr.c (avr_init_builtins): Call
17696         build_function_type_list instead of build_function_type.
17697
17698 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17699
17700         * config/picochip/picochip.c (picochip_init_builtins): Call
17701         build_function_type_list instead of build_function_type.
17702         Delete `endlink' variable.
17703
17704 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17705
17706         * config/bfin/bfin.c (bfin_init_builtins): Call
17707         build_function_type_list instead of build_function_type.
17708
17709 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17710
17711         From Bernd Schmidt
17712         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17713         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
17714
17715 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17716
17717         From Jie Zhang:
17718         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17719         libbffastfp overrides libgcc when -mfast-fp.
17720
17721 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17722
17723         Originally from Bernd Schmidt
17724         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17725         * config/bfin/bfin.c (override_options): Test it and error if
17726         TARGET_FDPIC.
17727
17728 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17729
17730         Originally From Bernd Schmidt
17731         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17732         FD-PIC.
17733
17734 2011-05-03  Jeff Law  <law@redhat.com>
17735
17736         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17737         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17738         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17739         than accessing AUX field directly.  Free the AUX field before
17740         clearing it.
17741         (thread_block, thread_through_loop_header): Likewise.
17742         (thread_single_edge, mark_threaded_blocks): Likewise.
17743         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
17744         (register_jump_thread): Do not attempt to thread to a NULL edge.
17745
17746 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17747
17748         * function.c (init_function_start): Call decide_function_section.
17749         * varasm.c (decide_function_section): New function.
17750         (assemble_start_function): When not using
17751         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17752         or first_function_block_is_cold.
17753         * rtl.h (decide_function_section): Declare.
17754
17755 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17756             Jakub Jelinek  <jakub@redhat.com>
17757
17758         PR target/48774
17759         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17760         only succeed if req_mode is the same as set_mode.
17761
17762 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17763
17764         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17765         * genemit.c (gen_exp): Handle RETURN.
17766         * emit-rtl.c (verify_rtx_sharing): Likewise.
17767         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17768         * rtl.c (copy_rtx): RETURN is shared.
17769         * rtl.h (enum global_rtl_index): Add GR_RETURN.
17770         (ret_rtx): New.
17771         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17772         * config/s390/s390.c (s390_emit_epilogue): Likewise.
17773         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17774         * config/cris/cris.c (cris_expand_return): Likewise.
17775         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17776         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17777         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17778         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17779         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17780         Likewise.
17781         * config/v850/v850.c (expand_epilogue): Likewise.
17782         * config/bfin/bfin.c (bfin_expand_call): Likewise.
17783         * config/arm/arm.md (epilogue): Likewise.
17784         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17785         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17786         variable to ret_reg.
17787
17788 2011-05-03  Richard Guenther  <rguenther@suse.de>
17789
17790         PR lto/48846
17791         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17792         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17793         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17794
17795 2011-05-03  Richard Guenther  <rguenther@suse.de>
17796
17797         * c-decl.c (grokdeclarator): Instead of looking at
17798         TREE_OVERFLOW check if the constant fits in the index type.
17799
17800 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17801
17802         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17803         (vec_store_lanes<mode><mode>): Likewise.
17804
17805 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17806
17807         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17808         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17809         convert_optab_index values.
17810         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17811         * genopinit.c (optabs): Initialize the new optabs.
17812         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17813         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17814         (expand_STORE_LANES): New functions.
17815         * tree.h (build_array_type_nelts): Declare.
17816         * tree.c (build_array_type_nelts): New function.
17817         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17818         (vect_model_load_cost): Likewise.
17819         (vect_store_lanes_supported, vect_load_lanes_supported)
17820         (vect_record_strided_load_vectors): Declare.
17821         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17822         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17823         (vect_transform_strided_load): Split out statement recording into...
17824         (vect_record_strided_load_vectors): ...this new function.
17825         * tree-vect-stmts.c (create_vector_array, read_vector_array)
17826         (write_vector_array, create_array_ref): New functions.
17827         (vect_model_store_cost): Add store_lanes_p argument.
17828         (vect_model_load_cost): Add load_lanes_p argument.
17829         (vectorizable_store): Try to use store-lanes functions for
17830         interleaved stores.
17831         (vectorizable_load): Likewise load-lanes and loads.
17832         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17833         to vect_model_store_cost.
17834         (vect_build_slp_tree): Likewise vect_model_load_cost.
17835
17836 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17837
17838         * hooks.h (hook_bool_mode_uhwi_false): Declare.
17839         * hooks.c (hook_bool_mode_uhwi_false): New function.
17840         * target.def (array_mode_supported_p): New hook.
17841         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17842         * doc/tm.texi: Regenerate.
17843         * stor-layout.c (mode_for_array): New function.
17844         (layout_type): Use it.
17845         * config/arm/arm.c (arm_array_mode_supported_p): New function.
17846         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17847
17848 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
17849
17850         PR target/48723
17851         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17852         for -fstack-check if the size to allocate is negative.
17853
17854 2011-05-02  Lawrence Crowl  <crowl@google.com>
17855
17856         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17857         (timevar_cond_start): New for starting a timer only when it is not
17858         already running.
17859         (timevar_cond_stop): New for stopping a timer when it was not already
17860         running.
17861
17862         * timevar.c (timevar_stop): Enable start/stop timers to start again.
17863         (timevar_cond_start): New as above.
17864         (timevar_cond_stop): New as above.
17865
17866         * timevar.def: Add start/stop timers for compiler phases,
17867         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17868         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17869         and TV_PHASE_FINALIZE.
17870         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17871         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17872         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17873         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17874         Make unused TV_OVERLOAD into a start/stop timer.
17875
17876         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17877         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17878         to indicate that they are start/stop timers.
17879
17880         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17881         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17882         Move initialization to do_compile.
17883         (do_compile): Add initialization from above.
17884         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17885
17886         * c-decl.c (c_write_global_declarations): Add start/stop of
17887         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17888
17889         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17890         or TV_PARSE_INLINE, as appropriate.
17891         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17892         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17893
17894 2011-05-02  Jason Merrill  <jason@redhat.com>
17895
17896         PR c++/40975
17897         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17898
17899 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
17900
17901         PR c/35445
17902         * c-decl.c (finish_decl): Only create a composite if the types are
17903         compatible.
17904
17905 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17906
17907         * config/fr30/fr30-protos.h (Mmode): Don't define.
17908         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
17909         definition where used.
17910         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17911         define.  Expand definitions where used.
17912         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17913         Expand definitions where used.
17914         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17915         rx_function_arg, rx_function_arg_advance,
17916         rx_function_arg_boundary): Expand definitions of those macros.
17917         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
17918         definition where used.
17919
17920 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17921
17922         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17923         reg<->xmm moves.
17924         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17925         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
17926         with *movv2sf_internal_rex64_avx.
17927         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17928         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17929         Use %v prefix in insn mnemonic to handle TARGET_AVX.
17930         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
17931         "vex" in "prefix" attribute calculation.
17932         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
17933
17934 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
17935
17936         PR target/47951
17937         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17938         inputs match the output.
17939
17940 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
17941
17942         PR target/47955
17943         * config/m68k/m68k.c (m68k_expand_prologue): Set
17944         current_function_static_stack_size.
17945
17946 2011-05-02   Jan Hubicka  <jh@suse.cz>
17947
17948         * lto-streamer.c (lto_streamer_cache_insert_1,
17949         lto_streamer_cache_lookup, lto_streamer_cache_create,
17950         lto_streamer_cache_delete): Use pointer map instead of hashtable.
17951         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17952
17953 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17954
17955         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17956         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17957         config/m68k/t-opts: New files.
17958         * config/m68k/m68k-tables.opt: New file (generated).
17959         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17960         extra_options and m68k/t-opts to tmake_file.
17961         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17962         (all_isas): Initialize using m68k-isas.def.
17963         (all_microarchs): Initialize using m68k-microarchs.def.
17964         (m68k_find_selection): Remove.
17965         (m68k_handle_option): Don't assert that global structures are in
17966         use.  Use error_at.  Access variables via opts pointer.  Don't
17967         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
17968         directly for -m68020-40 and -m68020-60.
17969         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17970         m68k_tune_entry here.
17971         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17972         to m68k-opts.h.
17973         (m68k_library_id_string): Remove declaration.
17974         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17975         (m68k_library_id_string): New Variable.
17976         (march=, mcpu=, mtune=): Use Enum and Var.
17977
17978 2011-05-02  Richard Guenther  <rguenther@suse.de>
17979
17980         * varasm.c (output_constructor_regular_field): Compute zero-based
17981         index with double-ints.  Make sure to ICE instead of producing
17982         wrong code.
17983         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17984         in asserts.  Properly use a signed type.
17985
17986 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17987
17988         * config/i386/sse.md (V): New mode iterator.
17989         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
17990         TARGET_SSE2.
17991         (V_256): Rename from AVX256MODE.
17992         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
17993         condition to all users.
17994         (VF1): Ditto.
17995         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
17996         condition to all users.
17997         (VF_128): Make V4SF mode unconditional.
17998         (VF_256): Rename from AVX256MODEF2P.
17999         (VI4F_128): Rename from SSEMODE4S.
18000         (VI8F_128): Rename from SSEMODE2D.
18001         (VI4F_256): Rename from AVX256MODE8P.
18002         (VI8F_256): Rename from AVX256MODE4P.
18003         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
18004         (ssescalarmodesuffix): Remove SF and DF modes.
18005         (SSEMODE124): Remove.
18006         (SSEMODE1248): Ditto.
18007         (SSEMODEF2P): Ditto.
18008         (AVXMODEF2P): Ditto.
18009         (AVXMODEFDP): Ditto.
18010         (AVXMODEFSP): Ditto.
18011         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
18012         unconditional.
18013         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
18014         unconditional.
18015         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
18016         xop_pcmov_<mode>256.  Use V mode iterator.
18017
18018         Adjust RTX patterns globally for renamed mode attributes.
18019
18020 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18021
18022         * haifa-sched.c (sched_emit_insn): Emit insn before first
18023         non-scheduled insn.  Inform back-end about new insn.  Add
18024         new insn to scheduled_insns list.
18025
18026 2011-05-02  Richard Guenther  <rguenther@suse.de>
18027
18028         PR tree-optimization/48822
18029         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
18030         (process_scc): Indicate which iteration we start.
18031
18032 2011-05-02  Jan Hubicka  <jh@suse.cz>
18033
18034         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
18035         (lto_section_overrun): New.
18036         * lto-section-out.c (append_block): Rename to ...
18037         (lto_append_block): ... this one; export.
18038         (lto_output_1_stream): Move lto lto-streamer.h
18039         (lto_output_data_stream): Update.
18040         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
18041         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
18042         functions.
18043
18044 2011-05-02  Richard Guenther  <rguenther@suse.de>
18045
18046         * tree.c (tree_code_counts): New global array.
18047         (record_node_allocation_statistics): Count individual tree codes.
18048         (dump_tree_statistics): Dump individual code stats.
18049
18050 2011-05-01  Jan Hubicka  <jh@suse.cz>
18051
18052         * ipa-inline.c (caller_growth_limits): Fix thinko when
18053         looking for largest stack frame.
18054         * ipa-inline.h (dump_inline_summary): Declare.
18055         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
18056         on stack usage.
18057         (dump_inline_summary): Export.
18058         (debug_inline_summary): Declare as DEBUG_FUNCTION.
18059
18060 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
18061
18062         * reginfo.c (memory_move_cost): Change rclass argument type form
18063         'enum reg_class' to reg_class_t.
18064         * reload.h (memory_move_cost): Update prototype.
18065         * postreload.c reload_cse_simplify_set): Change type dclass var to
18066         reg_class_t.
18067         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
18068         Update prototype.
18069         (ira_allocate_and_set_costs): Change aclass argument type form
18070         'enum reg_class' to reg_class_t.
18071         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
18072         Change aclass argument type to reg_class_t.
18073         (update_conflict_hard_reg_costs): Change type aclass and pref vars
18074         to reg_class_t.
18075         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
18076         memory_move_cost call.
18077
18078         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
18079         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
18080         Change type tmp var to reg_class_t.
18081
18082 2011-04-30  Jan Hubicka  <jh@suse.cz>
18083
18084         * ipa-inline.c (can_inline_edge_p): Disregard limits when
18085         inlining into function with flatten attribute.
18086         (want_inline_small_function_p): Be more realistic about inlining
18087         cold calls where callee size grows.
18088
18089 2011-04-30  Jan Hubicka  <jh@suse.cz>
18090
18091         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
18092         flags.
18093
18094 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
18095
18096         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
18097         PRINT_OPERAND_PUNCT_VALID_P): Remove.
18098         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
18099         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
18100         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18101         (print_operand): Rename to...
18102         (sparc_print_operand): ...this. Make static. Adjust
18103         sparc_print_operand function call.
18104         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
18105         functions.
18106
18107 2011-04-30  Jan Hubicka  <jh@suse.cz>
18108
18109         PR middle-end/48752
18110         * ipa-inline.c (early_inliner): Disable when doing late
18111         addition of function.
18112
18113 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
18114
18115         * dwarf2out.c (get_address_mode): New inline.
18116         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18117         if not dwarf_strict emit
18118         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18119         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18120         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
18121         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18122         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18123         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18124         mem_loc_descriptor callers.
18125         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18126         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18127         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18128         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18129         (base_types): New variable.
18130         (get_base_type_offset, calc_base_type_die_sizes,
18131         base_type_for_mode, mark_base_types, base_type_cmp,
18132         move_marked_base_types): New functions.
18133         (calc_die_sizes): Assert that die_offset is 0 or equal to
18134         next_die_offset.
18135         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18136         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
18137         callers.  If not dwarf_strict, call mem_loc_descriptor even for
18138         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18139         (gen_subprogram_die): Don't give up on call site parameters
18140         with non-integral or large integral modes.  Adjust
18141         mem_loc_descriptor callers.
18142         (prune_unused_types): Call prune_unused_types_mark on base_types
18143         vector entries.
18144         (resolve_addr): Call mark_base_types.
18145         (dwarf2out_finish): Call move_marked_base_types.
18146
18147         PR tree-optimization/48809
18148         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18149         type.
18150         (gen_inbound_check): Don't compute index_expr - range_min in utype
18151         again, instead reuse SSA_NAME initialized in build_arrays.
18152         Remove two useless gsi_for_stmt calls.
18153
18154 2011-04-29  Jeff Law  <law@redhat.com>
18155
18156         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18157
18158 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18159
18160         * cgraph.h (cgraph_postorder): Remove declaration.
18161         * ipa-utils.h (ipa_free_postorder_info): Declare.
18162         (ipa_reverse_postorder): Likewise.
18163         * cgraphunit.c: Include ipa-utils.h.
18164         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18165         * ipa-inline.c: Include ipa-utils.h.
18166         (ipa_inline): Update call to ipa_reverse_postorder.
18167         * ipa-pure-const.c (propagate_pure_const): Update call to
18168         ipa_reduced_postorder and ipa_print_order.  Call
18169         ipa_free_postorder_info to clean up.
18170         (propagate_nothrow): Likewise.
18171         * ipa-reference.c (propagate): Removed a useless call to
18172         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18173         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
18174         * ipa.c: Include ipa-utils.h.
18175         (ipa_profile): Update call to ipa_reverse_postorder.
18176         (cgraph_postorder): Moved to...
18177         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18178         (ipa_utils_print_order): Renamed to ipa_print_order.
18179         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18180         comments.
18181         (ipa_free_postorder_info): New function.
18182         * passes.c: Include ipa-utils.h.
18183         (do_per_function_toporder): Update call to ipa_reverse_postorder.
18184         (ipa_write_summaries): Likewise.
18185         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18186         (cgraphunit.o): Likewise.
18187         (ipa.o): Likewise.
18188         (ipa-inline.o): Likewise.
18189
18190 2011-04-29  Jan Hubicka  <jh@suse.cz>
18191
18192         * gcc.dg/tree-ssa/inline-10.c: New testcase.
18193         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18194         * ipa-inline.h (clause_t): Turn into unsigned int.
18195         * ipa-inline-analysis.c (add_clause): Do more simplification.
18196         (and_predicates): Shortcut more cases.
18197         (predicates_equal_p): Move forward; check that clauses are properly
18198         ordered.
18199         (or_predicates): Shortcut more cases.
18200         (edge_execution_predicate): Rewrite as...
18201         (set_cond_stmt_execution_predicate): ... this function; handle
18202         __builtin_constant_p.
18203         (set_switch_stmt_execution_predicate): New .
18204         (compute_bb_predicates): New.
18205         (will_be_nonconstant_predicate): Update TODO.
18206         (estimate_function_body_sizes): Use compute_bb_predicates
18207         and free them later, always try to estimate if stmt is constant.
18208         (estimate_time_after_inlining, estimate_size_after_inlining):
18209         Gracefully handle optimized out edges.
18210         (read_predicate): Fix off by one error.
18211
18212 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
18213
18214         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18215
18216 2011-04-27  Xinliang David Li  <davidxl@google.com>
18217
18218         * tree-profile.c (init_ic_make_global_vars): Set
18219         tls attribute on ic vars.
18220         * coverage.c (coverage_end_function): Initialize
18221         function_list with zero.
18222
18223 2011-04-29  Richard Guenther  <rguenther@suse.de>
18224
18225         * builtins.c (fold_builtin_classify_type): Use integer_type_node
18226         for the type of the result.
18227         (fold_builtin_isascii): Likewise.
18228         (fold_builtin_toascii): Use integer_type_node where appropriate.
18229         (fold_builtin_logb): Likewise.
18230         (fold_builtin_frexp): Likewise.
18231         (fold_builtin_strstr): Likewise.
18232         (fold_builtin_strpbrk): Likewise.
18233         (fold_builtin_fputs): Likewise.
18234         (fold_builtin_sprintf): Likewise.
18235         (fold_builtin_snprintf): Likewise.
18236         (fold_builtin_printf): Likewise.
18237         (do_mpfr_remquo): Use a proper type for the assigned constant.
18238         (do_mpfr_lgamma_r): Likewise.
18239         * dwarf2out.c (resolve_one_addr): Use size_int.
18240         * except.c (init_eh): Likewise.
18241         (assign_filter_values): Use integer_type_node for filter values.
18242         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18243         indices.
18244         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18245         for EH region numbers.
18246         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18247         for the shift amount.
18248
18249 2011-04-29  Richard Guenther  <rguenther@suse.de>
18250
18251         * expr.h (expand_shift): Rename to ...
18252         (expand_variable_shift): ... this.
18253         (expand_shift): Take a constant shift amount.
18254         * expmed.c (expand_shift): Rename to ...
18255         (expand_variable_shift): ... this.
18256         (expand_shift): New wrapper around expand_variable_shift.
18257         * expr.c (convert_move, emit_group_load_1, emit_group_store,
18258         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18259         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18260         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18261         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18262         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18263         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18264         emit_store_flag_1, emit_store_flag): Likewise.
18265         * builtins.c (expand_builtin_signbit): Likewise.
18266         * calls.c (load_register_parameters): Likewise.
18267         * function.c (assign_parm_setup_block): Likewise.
18268         * lower-subreg.c (resolve_shift_zext): Likewise.
18269         * optabs.c (widen_bswap, expand_abs_nojump,
18270         expand_one_cmpl_abs_nojump, expand_float): Likewise.
18271         * spu/spu.c (spu_expand_extv): Likewise.
18272         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18273
18274 2011-04-29  Richard Guenther  <rguenther@suse.de>
18275
18276         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18277         for the remapped region number.
18278         * predict.c (build_predict_expr): Use integer_type_node for the
18279         predict kind.
18280         * fold-const.c (fold_binary_loc): Use integer_type_node for
18281         the shift amount.  Use a proper type for the PLUS_EXPR operand.
18282
18283 2011-04-29  Michael Matz  <matz@suse.de>
18284
18285         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18286         other trees that just builtins.
18287         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18288
18289 2011-04-29  Richard Guenther  <rguenther@suse.de>
18290
18291         * tree-nested.c (get_trampoline_type): Use size_int.
18292         (get_nl_goto_field): Likewise.
18293         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18294         for all indexes.
18295         (lower_eh_constructs_2): Likewise.
18296         (lower_resx): Likewise.
18297         (lower_eh_dispatch): Likewise.
18298         * tree-mudflap.c (mf_build_string): Use size_int.
18299         (mudflap_register_call): Use integer_type_node for the flag.
18300         (mudflap_enqueue_constant): Use size_int.
18301         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18302         instead of rebuilding it.
18303
18304 2011-04-29  Richard Guenther  <rguenther@suse.de>
18305
18306         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18307         Handle OBJ_TYPE_REF.
18308         (find_func_aliases_for_call): Use it more consistently.
18309
18310 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
18311
18312         * haifa-sched.c (last_nondebug_scheduled_insn): New.
18313         (rank_for_schedule): Use it.
18314         (schedule_block): Set it.
18315
18316 2011-04-28  David Li  <davidxl@google.com>
18317
18318         * tree.c (crc32_string): Use crc32_byte.
18319         (crc32_byte): New function.
18320         * tree.h (crc32_byte): New function.
18321         * gcov.c (read_graph_file): Handle new cfg_cksum.
18322         (read_count_file): Ditto.
18323         * profile.c (instrument_values): Ditto.
18324         (get_exec_counts): Ditto.
18325         (read_profile_edge_counts): Ditto.
18326         (compute_branch_probabilities): Ditto.
18327         (compute_value_histograms): Ditto.
18328         (branch_prob): Ditto.
18329         (end_branch_prob): Ditto.
18330         * coverage.c (read_counts_file): Ditto.
18331         (get_coverage_counts): Ditto.
18332         (tree_coverage_counter_addr): Ditto.
18333         (coverage_checksum_string): Ditto.
18334         (coverage_begin_output): Ditto.
18335         (coverage_end_function): Ditto.
18336         (build_fn_info_type): Ditto.
18337         (build_fn_info_value): Ditto.
18338         * libgcov.c (gcov_exit): Ditto.
18339         * gcov-dump.c (tag_function): Ditto.
18340         (compute_checksum): Remove.
18341
18342 2011-04-29  Alan Modra  <amodra@gmail.com>
18343
18344         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18345         unspec plus offset.  Tidy macho code.
18346
18347 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18348
18349         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18350         node instead of a decl.  Update all callers.
18351         * cgraph.h: Update declaration.
18352
18353 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
18354
18355         PR tree-optimization/48765
18356         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18357         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18358         to indicate if loop aware SLP is being used.  Scan the statements
18359         and update the vectorization factor according to the type of
18360         vectorization before statement analysis.
18361         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18362         pass it to vect_analyze_loop_operations.
18363         (vectorizable_reduction): Set number of copies to 1 in case of pure
18364         SLP statement.
18365         * tree-vect-stmts.c (vectorizable_conversion,
18366         vectorizable_assignment, vectorizable_shift,
18367         vectorizable_operation, vectorizable_type_demotion,
18368         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18369         Likewise.
18370         (vectorizable_condition): Move the check that it is not SLP
18371         vectorization before the number of copies check.
18372         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18373         to vectorize the loop using SLP.
18374
18375 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
18376
18377         PR middle-end/48597
18378         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18379         inline asm.
18380
18381 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
18382
18383         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18384         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18385         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18386         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18387         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18388         linux*.h headers.
18389         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18390         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18391         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18392         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18393         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18394         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18395         REG_NAME.
18396         * config/i386/linux.h (REG_NAME): Don't define.
18397         * config/i386/linux64.h (REG_NAME): Don't define.
18398         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18399         Undefine before defining.
18400
18401 2011-04-28  Jan Hubicka  <jh@suse.cz>
18402
18403         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18404         nonconstant_names array.
18405         (estimate_function_body_sizes): Build nonconstant_names array; handle
18406         BUILT_IN_CONSTANT_P.
18407
18408 2011-04-28  Richard Guenther  <rguenther@suse.de>
18409
18410         PR bootstrap/48804
18411         Revert
18412         2011-04-28  Richard Guenther  <rguenther@suse.de>
18413
18414         * tree-ssa-structalias.c (solve_constraints): Build succ graph
18415         as late as possible.
18416
18417 2011-04-28  Richard Guenther  <rguenther@suse.de>
18418
18419         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18420         (debug_constraint): Do it here.
18421         (dump_constraints): And here.
18422         (rewrite_constraints): And here.
18423         (dump_constraint_edge): Remove.
18424         (dump_constraint_graph): Rewrite to produce DOT output.
18425         (solve_constraints): Build succ graph as late as possible.
18426         Dump constraint graphs before and after solving.
18427
18428 2011-04-28  Richard Guenther  <rguenther@suse.de>
18429
18430         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18431         New function split out from ...
18432         (find_func_aliases): ... here.  Call it.
18433         (find_func_aliases_for_call): Likewise.
18434
18435 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18436
18437         * internal-fn.h (internal_fn_name_array): Declare.
18438         (internal_fn_flags_array): Likewise.
18439
18440 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18441
18442         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
18443         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18444         Move from sse.md.
18445         (ssemodefsuffix): Remove.
18446         (ssevecmodesuffix): New mode attribute.
18447         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18448         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18449         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18450         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18451         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18452         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18453         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18454         ssemodesuffix mode attribute.
18455         (float splitters): Use ssevecmodesuffix mode attribute.
18456         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18457         (sseinsmode): Rename from avxvecmode.
18458         (avxsizesuffix): Rename from avxmodesuffix.
18459         (sseintvecmode): Rename from avxpermvecmode.
18460         (ssedoublevecmode): Rename from ssedoublesizemode.
18461         (ssehalfvecmode): Rename from avxhalfvecmode.
18462         (ssescalarmode): Rename from avxscalarmode.
18463         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18464         templates for ssemodesuffix mode attribute.
18465         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18466         mode attribute.
18467
18468         Adjust RTX patterns globally for renamed mode attributes.
18469
18470 2011-04-27  Jan Hubcika  <jh@suse.cz>
18471
18472         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18473         * ipa-inline-analysis.c: Include alloc-pool.h.
18474         (edge_predicate_pool): New.
18475         (trye_predicate_p): New function
18476         (false_predicate_p): New function.
18477         (add_clause): Sanity check that false clauses are "optimized";
18478         never add clauses to predicate that is already known to be false.
18479         (and_predicate): Use flase_predicate_p.
18480         (evaulate_predicate): Rename to ...
18481         (evaluate_predicate): ... this one; update all callers; assert
18482         that false is not listed among possible truths.
18483         (dump_predicate): Use true_predicate_p.
18484         (account_size_time): Use false_predicate_p.
18485         (evaulate_conditions_for_edge): Rename to ...
18486         (evaluate_conditions_for_edge) ... this one.
18487         (edge_set_predicate): New function.
18488         (inline_edge_duplication_hook): Duplicate edge predicates.
18489         (inline_edge_removal_hook): Free edge predicates.
18490         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18491         (dump_inline_summary): Update.
18492         (estimate_function_body_sizes): Set edge predicates.
18493         (estimate_calls_size_and_time): Handle predicates.
18494         (estimate_callee_size_and_time): Update.
18495         (remap_predicate): Add toplev_predicate; update comment.
18496         (remap_edge_predicates): New function.
18497         (inline_merge_summary): Compute toplev predicate; update.
18498         (read_predicate): New function.
18499         (read_inline_edge_summary): Use it.
18500         (inline_read_section): Likewise.
18501         (write_predicate): New function.
18502         (write_inline_edge_summary): Use it.
18503         (inline_write_summary): Likewise.
18504         (inline_free_summary): Free alloc pool and edge summary vec.
18505
18506 2011-04-27  Richard Guenther  <rguenther@suse.de>
18507
18508         * tree-ssa-structalias.c (changed_count): Remove.
18509         (changed): Use a bitmap.
18510         (unify_nodes): Adjust.
18511         (do_sd_constraint): Likewise.
18512         (do_ds_constraint): Likewise.
18513         (do_complex_constraint): Likewise.
18514         (solve_graph): Likewise.
18515
18516 2011-04-27  Jan Hubicka  <jh@suse.cz>
18517
18518         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18519
18520 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18521
18522         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18523         (avx_vperm2f128_*_operand): Ditto.
18524         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18525         Use avx_vpermilp_parallel in insn condition.
18526         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18527         Use avx_vperm2f128_parallel in insn condition.
18528
18529 2011-04-27  Richard Guenther  <rguenther@suse.de>
18530
18531         * Makefile.in (tree-ssa-structalias.o): Remove
18532         gt-tree-ssa-structalias.h dependency.
18533         (GTFILES): Remove tree-ssa-structalias.c.
18534         * tree.c (allocate_decl_uid): New function.
18535         (make_node_stat): Use it.
18536         (copy_node_stat): Likewise.
18537         * tree.h (allocate_decl_uid): Declare.
18538         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18539         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18540         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18541         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18542         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18543         (struct heapvar_map): Likewise.
18544         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18545         heapvar_insert): Likewise.
18546         (make_heapvar_for): Rename to ...
18547         (make_heapvar): ... this.  Simplify.
18548         (fake_var_decl_obstack): New global var.
18549         (build_fake_var_decl): New function.
18550         (make_constraint_from_heapvar): Adjust.
18551         (handle_lhs_call): Likewise.
18552         (create_function_info_for): Likewise.
18553         (intra_create_variable_infos): Likewise.
18554         (init_alias_vars): Allocate fake_var_decl_obstack.
18555         (init_alias_heapvars, delete_alias_heapvars): Remove.
18556         (compute_points_to_sets): Do not call init_alias_heapvars.
18557         (ipa_pta_execute): Likewise.
18558         (delete_points_to_sets): Free fake_var_decl_obstack.
18559
18560 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18561
18562         * config/spu/divmovti4.c (union qword_UTItype): New data type.
18563         (si_from_UTItype, si_to_UTItype): New functions.
18564         (__udivmodti4): Use them to implement type-punning.
18565         * config/spu/multi3.c (union qword_TItype): New data type.
18566         (si_from_TItype, si_to_TItype): New functions.
18567         (__multi3): Use them to implement type-punning.
18568
18569 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18570
18571         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18572
18573 2011-04-27  Jan Hubicka  <jh@suse.cz>
18574
18575         * ipa-prop.c (function_insertion_hook_holder): New holder.
18576         (ipa_add_new_function): New function.
18577         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18578         Register/deregister holder.
18579
18580 2011-04-27  Richard Guenther  <rguenther@suse.de>
18581
18582         PR tree-optimization/48772
18583         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18584
18585 2011-04-27  Richard Guenther  <rguenther@suse.de>
18586
18587         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18588         TARGET_MEM_REF handling.
18589
18590 2011-04-27  Nick Clifton  <nickc@redhat.com>
18591
18592         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18593         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18594         (REG_CLASS_NAMES): Likewise.
18595         (REG_CLASS_CONTENTS): Likewise.
18596         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18597         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18598         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
18599         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
18600         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
18601         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18602         duplicate register classes.
18603         (frv_class_likely_spilled_p): Likewise.
18604         (frv_register_move_cost): Likewise.
18605
18606         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18607         end of the regno_reg_class array.
18608
18609 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
18610
18611         PR c/48742
18612         * c-typeck.c (build_binary_op): Don't wrap arguments if
18613         int_operands is true.
18614
18615 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
18616
18617         PR target/48767
18618         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18619         targetm.calls.must_pass_in_stack for void type.
18620
18621 2011-04-26  Jan Hubicka  <jh@suse.cz>
18622
18623         * cgraphbuild.c (build_cgraph_edges): Update call
18624         of cgraph_create_edge and cgraph_create_indirect_edge.
18625         * cgraph.c (cgraph_create_edge_including_clones,
18626         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18627         cgraph_update_edges_for_call_stmt_node): Do not take nest
18628         argument; do not initialize call_stmt_size/time.
18629         (dump_cgraph_node): Do not dump nest.
18630         (cgraph_clone_edge): Do not take loop_nest argument;
18631         do not propagate it; do not clone call_stmt_size/time.
18632         (cgraph_clone_node): Likewise.
18633         (cgraph_create_virtual_clone): Update.
18634         * cgraph.h (struct cgraph_edge): Remove
18635         call_stmt_size/call_stmt_time/loop_nest.
18636         (cgraph_create_edge, cgraph_create_indirect_edge,
18637         cgraph_create_edge_including_clones, cgraph_clone_node): Update
18638         prototype.
18639         * tree-emutls.c (gen_emutls_addr): Update.
18640         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18641         loop_nest; handle indirect calls, too.
18642         (clone_inlined_nodes): Do not care about updating inline summaries.
18643         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18644         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18645         stream call_stmt_size/call_stmt_time/loop_nest.
18646         * ipa-inline.c (edge_badness): Update.
18647         (ipa_inline): dump summaries after inlining.
18648         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18649         New.
18650         (inline_edge_summary): New function.
18651         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18652         (inline_edge_removal_hook): Handle edge summaries.
18653         (inline_edge_duplication_hook): New hook.
18654         (inline_summary_alloc): Alloc hooks.
18655         (initialize_growth_caches): Do not register removal hooks.
18656         (free_growth_caches); Do not free removal hook.
18657         (dump_inline_edge_summary): New function.
18658         (dump_inline_summary): Use it.
18659         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18660         (inline_update_callee_summaries): New function.
18661         (inline_merge_summary): Use it.
18662         (do_estimate_edge_time, do_estimate_edge_growth): Update.
18663         (read_inline_edge_summary): New function.
18664         (inline_read_section): Use it.
18665         (write_inline_edge_summary): New function.
18666         (inline_write_summary): Use it.
18667         (inline_free_summary): Free edge new holders.
18668         * tree-inline.c (copy_bb): Update.
18669
18670 2011-04-26  Jason Merrill  <jason@redhat.com>
18671
18672         * tree-eh.c (lower_try_finally_switch): Create the label along with
18673         the CASE_LABEL_EXPR.
18674
18675 2011-04-26  David S. Miller  <davem@davemloft.net>
18676             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18677
18678         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18679         * configure: Regenerate.
18680
18681 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18682
18683         PR target/48258
18684         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18685         reduction.
18686         (VEC_reduc): New code iterator and splitters for vector reduction.
18687         (VEC_reduc_name): Ditto.
18688         (VEC_reduc_rtx): Ditto.
18689         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18690         (reduc_<VEC_reduc_name>_v4sf): Ditto.
18691
18692         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18693         support for extracting SF on VSX.
18694
18695         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18696         generating xscvspdp.
18697         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18698         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18699         double add, minimum, maximum vector reduction.
18700         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18701         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18702         optimize double vector reduction.
18703         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18704
18705 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
18706
18707         * config/fr30/fr30.h (inhibit_libc): Don't define.
18708         * config/m32r/m32r-protos.h: Correct comment.
18709         * config/v850/v850.h (GHS_default_section_names,
18710         GHS_current_section_names): Use tree, not union tree_node *.
18711
18712 2011-04-26  Xinliang David Li  <davidxl@google.com>
18713
18714         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18715         * c-family/c-opts.c (c_common_handle_option): Set
18716         warn_maybe_uninitialized.
18717         * opts.c (common_handle_option): Ditto.
18718         * common.opt:  New option.
18719         * tree-ssa.c (warn_uninit): Add one more parameter.
18720         (warn_uninitialized_var): Pass warning code.
18721         * tree-flow.h: Interface change.
18722
18723 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18724
18725         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18726         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18727         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18728
18729 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18730
18731         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18732         * config/mips/mips.opt (mmips-tfile): Remove.
18733
18734         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18735         mips-tdump reference to ...
18736         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
18737         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18738         reference by Tru64 UNIX.
18739
18740 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
18741
18742         PR debug/48768
18743         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18744         is error_mark_node, set value to NULL.
18745
18746         PR tree-optimization/48734
18747         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18748         if return value from maybe_fold_*_comparsions isn't something
18749         the code is prepared to handle.
18750
18751 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
18752
18753         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18754         mode check.
18755         (ext_QIreg_nomode_operands): Remove.
18756         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18757         (*andsi_1): Ditto.
18758         (*andhi_1): Ditto.
18759
18760 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
18761
18762         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18763
18764 2011-04-26  Richard Guenther  <rguenther@suse.de>
18765
18766         * c-typeck.c (build_unary_op): Do not expand array-refs via
18767         pointer arithmetic.  Only adjust qualifiers for function types.
18768
18769 2011-04-26  Richard Guenther  <rguenther@suse.de>
18770
18771         PR middle-end/48694
18772         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18773         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18774         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
18775         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18776
18777 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
18778
18779         * doc/extend.texi: Document __underlying_type.
18780
18781 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
18782
18783         * config/rs6000/titan.md (automata_option "progress"): Remove.
18784
18785 2011-04-25  Jeff Law  <law@redhat.com>
18786
18787         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18788
18789 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
18790
18791         * system.h (ENUM_BITFIELD): Remove.
18792
18793 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
18794             Eric Botcazou  <ebotcazou@adacore.com>
18795
18796         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18797         for STORE_FLAG_VALUE==-1 case.
18798
18799 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
18800
18801         PR target/43804
18802         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18803         LEGITIMATE_PIC_OPERAND_P.
18804
18805 2011-04-24  Jan Hubicka  <jh@suse.cz>
18806
18807         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18808         WPA hack.
18809         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18810         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18811         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18812         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18813         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18814         Sanity check predicate length.
18815         (remap_predicate): Likewise; sanity check jump functions.
18816         (inline_read_section, inline_write_summary): Sanity check
18817         predicate length.
18818
18819 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
18820
18821         PR other/48748
18822         * doc/extend.texi (Type Traits): Document __is_standard_layout,
18823         __is_literal_type, and __is_trivial; update throughout about
18824         possibly cv-qualified void types.
18825
18826 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18827
18828         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18829         testsuite and make it version agnostic.
18830
18831 2011-04-22  Jan Hubicka  <jh@suse.cz>
18832
18833         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18834
18835 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
18836
18837         PR c/48685
18838         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18839         to VOID_TYPE even around MODIFY_EXPR.
18840
18841 2011-04-22  Mike Stump  <mikestump@comcast.net>
18842
18843         * gensupport.c (read_md_rtx): Fix typo in comment.
18844         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18845         comment.
18846
18847 2011-04-22  Jan Hubicka  <jh@suse.cz>
18848
18849         * gengtype.c (open_base_files): Add ipa-inline.h include.
18850         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18851         ipa-prop.c; update all uses.
18852         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18853         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18854         merge summary of inlined function into former caller.
18855         * ipa-inline.c (max_benefit): Remove.
18856         (edge_badness): Compensate for removal of benefits.
18857         (update_caller_keys): Use
18858         reset_node_growth_cache/reset_edge_growth_cache.
18859         (update_callee_keys): Likewise.
18860         (update_all_callee_keys): Likewise.
18861         (inline_small_functions): Do not collect max_benefit; do not reset
18862         estimated_growth; call free_growth_caches and initialize_growth_caches.
18863         * ipa-inline.h (struct condition, type clause_t, struct predicate,
18864         struct size_time_entry): New structures.
18865         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18866         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18867         and estimated_growth.
18868         (edge_growth_cache_entry): New structure.
18869         (node_growth_cache, edge_growth_cache): New global vars.
18870         (estimate_growth): Turn into inline.
18871         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18872         initialize_growth_caches, free_growth_caches): Declare.
18873         (estimate_edge_growth): Rewrite.
18874         (estimate_edge_time): Implement as inline cache lookup.
18875         (reset_node_growth_cache, reset_edge_growth_cache): New inline
18876         functions.
18877         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18878         (NUM_CONDITIONS): New constant.
18879         (predicate_conditions): New enum.
18880         (IS_NOT_CONSTANT): New constant.
18881         (edge_removal_hook_holder): New var.
18882         (node_growth_cache, edge_growth_cache): New global vars.
18883         (true_predicate, single_cond_predicate, false_predicate,
18884         not_inlined_predicate, add_condition, add_clause, and_predicates,
18885         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18886         dump_clause, dump_predicate, account_size_time,
18887         evaulate_conditions_for_edge): New functions.
18888         (inline_summary_alloc): Move to heap.
18889         (inline_node_removal_hook): Clear condition and entry vectors.
18890         (inline_edge_removal_hook): New function.
18891         (initialize_growth_caches, free_growth_caches): New function.
18892         (dump_inline_summary): Update.
18893         (edge_execution_predicate): New function.
18894         (will_be_nonconstant_predicate): New function.
18895         (estimate_function_body_sizes): Compute BB and constantness predicates.
18896         (compute_inline_parameters): Do not clear estimated_growth.
18897         (estimate_edge_size_and_time): New function.
18898         (estimate_calls_size_and_time): New function.
18899         (estimate_callee_size_and_time): New function.
18900         (remap_predicate): New function.
18901         (inline_merge_summary): New function.
18902         (do_estimate_edge_time): New function based on...
18903         (estimate_edge_time): ... this one.
18904         (do_estimate_edge_growth): New function.
18905         (do_estimate_growth): New function based on....
18906         (estimate_growth): ... this one.
18907         (inline_analyze_function): Analyze after deciding on jump functions.
18908         (inline_read_section): New function.
18909         (inline_read_summary): Use it.
18910         (inline_write_summary): Write all the new data.
18911         * ipa-prop.c (ipa_get_param_decl_index): Export.
18912         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18913         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18914         Declare.
18915         (ipa_get_lattice): Move here from ipa-cp.c
18916         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18917         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18918         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18919         cgraph_edge_inlinable_p): Remove.
18920         * cgraphunit.c: Include ipainline.h
18921         (cgraph_process_new_functions): Update call of
18922         compute_inline_parameters.
18923
18924 2011-04-22  Richard Guenther  <rguenther@suse.de>
18925
18926         * tree.c (build_int_cst): Properly create canonicalized integer
18927         constants.
18928         (build_int_cst_type): Remove scary comments.
18929
18930 2011-04-22  Xinliang David Li  <davidxl@google.com>
18931
18932         * toplev.c (process_options): Enable -Werror=coverage-mismatch
18933         by default when -Wno-error is not specified.
18934         * opts-global.c (decode_options): Remove call to
18935         control_warning_options.
18936
18937 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18938
18939         PR tree-optimization/48717
18940         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18941         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18942
18943 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
18944
18945         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
18946         definition where used.
18947
18948 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18949
18950         PR c/48716
18951         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18952         TREE_STATIC variables declared inside of some OpenMP construct.
18953
18954 2011-04-22  Martin Jambor  <mjambor@suse.cz>
18955
18956         PR middle-end/48585
18957         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18958
18959 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
18960
18961         PR c/36750
18962         * c-typeck.c (pop_init_level): Do not warn about initializing
18963         with ` = {0}'.
18964
18965 2011-04-22  Alan Modra  <amodra@gmail.com>
18966
18967         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18968         when returning call_cookie.
18969         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18970         pointers, to functions with no more vector args than the current
18971         function, and some non-local calls for ABI_V4.
18972         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18973         sibcall_nonlocal_aix64): Combine to ..
18974         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
18975         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18976         (sibcall_value_nonlocal_aix<mode>): ..likewise.
18977         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18978         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
18979         operand.
18980         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18981         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18982         sibcall_value_symbolic_64): Delete.
18983
18984 2011-04-21  Xinliang David Li  <davidxl@google.com>
18985
18986         * cgraph.h: Remove pid.
18987         * cgraph.c: Remove pid.
18988         * value-prof.c (init_node_map): New function.
18989         (del_node_map): New function.
18990         (find_func_by_funcdef_no): New function.
18991         (gimple_ic_transform): Call new function.
18992         * cgraphunit.c (cgraph_finalize_function): Remove pid.
18993         * function.c (get_last_funcdef_no): New function.
18994         * function.h (get_last_funcdef_no): New function.
18995         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18996         to libgcov function.
18997         (tree-profiling): Call node map init and delete function.
18998
18999 2011-04-21  Ian Lance Taylor  <iant@google.com>
19000
19001         * godump.c (go_format_type): Use exported Go name for anonymous
19002         field name.
19003
19004 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19005
19006         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
19007         Call builtin_function_type_list instead of builtin_function_type.
19008         (UNARY, BINARY, TRINARY, QUAD): Likewise.
19009
19010 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19011
19012         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
19013         build_function_type_list instead of build_function_type.
19014         Delete variable `endlink'.
19015
19016 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19017
19018         * config/s390/s390.c (s390_init_builtins): Call
19019         build_function_type_list instead of build_function_type.
19020
19021 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
19022
19023         * config/ia64/ia64.c (ia64_init_builtins): Call
19024         build_function_type_list instead of builtin_function_type.
19025
19026 2011-04-21  Easwaran Raman  <eraman@google.com>
19027
19028         * cfgexpand.c (stack_var): Remove OFFSET...
19029         (add_stack_var): ...and its reference here...
19030         (expand_stack_vars): ...and here.
19031         (stack_var_cmp): Sort by descending order of size.
19032         (partition_stack_vars): Change heuristic.
19033         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
19034         (dump_stack_var_partition): Add newline after each partition.
19035
19036 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
19037             Jeff Law  <law@redhat.com>
19038
19039         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
19040         * gengtype.c (matching_file_name_substitute): Likewise.
19041
19042 2011-04-21  Richard Guenther  <rguenther@suse.de>
19043
19044         PR lto/48703
19045         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
19046
19047 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
19048
19049         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
19050
19051 2011-04-21  Richard Guenther  <rguenther@suse.de>
19052
19053         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
19054         file name.
19055
19056 2011-04-21  Richard Guenther  <rguenther@suse.de>
19057
19058         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
19059         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
19060         Use DECL_P, not SSA_VAR_P.
19061         (ptr_derefs_may_alias_p): Likewise.
19062         (ptr_deref_may_alias_ref_p_1): Likewise.
19063         (decl_refs_may_alias_p): Likewise.
19064         (refs_may_alias_p_1): Likewise.
19065         (ref_maybe_used_by_call_p_1): Likewise.
19066         (call_may_clobber_ref_p_1): Likewise.
19067         (indirect_ref_may_alias_decl_p): Assume indirect refrences
19068         are either MEM_REF or TARGET_MEM_REF.
19069         (indirect_refs_may_alias_p): Likewise.
19070         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
19071         for MEM_EXPR of indirect calls.
19072
19073 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19074
19075         * vmsdbgout.c (write_srccorr): Compute file length from the string.
19076         (dst_file_info_struct): Remove flen field.
19077         (lookup_filename): Remove code that set flen field.
19078
19079 2011-04-21  Tristan Gingold  <gingold@adacore.com>
19080
19081         * config/ia64/ia64.c (ia64_start_function): Add a guard.
19082
19083 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
19084
19085         PR target/48708
19086         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
19087         vec_extract and vec_concat for non-SSE4_1 targets.
19088
19089 2011-04-21  Richard Guenther  <rguenther@suse.de>
19090
19091         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
19092         return statements.
19093
19094 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19095
19096         * config/i386/cygming.h (union tree_node, TREE): Don't define or
19097         undefine.
19098         (FILE): Don't undefine.
19099
19100 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
19101
19102         * config/alpha/alpha.c (struct machine_function): Use rtx, not
19103         struct rtx_def *.
19104         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
19105         struct rtx_def *.
19106         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
19107         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
19108         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
19109         rtx_def *.
19110         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
19111         definitions where used.
19112         * config/microblaze/microblaze.h (struct microblaze_args): Use
19113         rtx, not struct rtx_def *.
19114         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19115         rtx_def *.
19116         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19117         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19118         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19119         not struct rtx_def *.
19120         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19121         struct rtx_def *.
19122         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19123         rtx_def *.
19124         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19125
19126 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19127
19128         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19129         operand_equal_p to compare DR_BASE_ADDRESSes.
19130         (vect_check_interleaving): Likewise.
19131
19132 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19133
19134         PR target/46329
19135         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19136         for all Neon struct constants.
19137
19138 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19139
19140         * target.def (legitimate_constant_p): New hook.
19141         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19142         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19143         * doc/tm.texi: Regenerate.
19144         * hooks.h (hook_bool_mode_rtx_true): Declare.
19145         * hooks.c (hook_bool_mode_rtx_true): Define.
19146         * system.h (LEGITIMATE_CONSTANT_P): Poison.
19147         * calls.c (precompute_register_parameters): Replace uses of
19148         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19149         (emit_library_call_value_1): Likewise.
19150         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19151         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19152         * ira-costs.c (scan_one_insn): Likewise.
19153         * recog.c (general_operand, immediate_operand): Likewise.
19154         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19155         * reload1.c (init_eliminable_invariants): Likewise.
19156
19157         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19158         mode argument.
19159         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19160         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19161         argument.
19162         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19163         * config/alpha/predicates.md (input_operand): Update call to
19164         alpha_legitimate_constant_p.
19165
19166         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19167         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19168         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19169         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19170         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19171         (arm_legitimate_constant_p): New functions.
19172         (arm_cannot_force_const_mem): Make static.
19173
19174         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19175
19176         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19177         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19178         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19179         instead of bfin_legitimate_constant_p.
19180         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
19181         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19182
19183         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19184
19185         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19186
19187         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19188         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19189         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19190         (frv_legitimate_constant_p): Make static.  Add a mode argument.
19191
19192         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19193         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19194         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19195
19196         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19197         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19198         * config/i386/i386.c (legitimate_constant_p): Rename to...
19199         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
19200         argument.
19201         (ix86_cannot_force_const_mem): Update accordingly.
19202         (ix86_legitimate_address_p): Likewise.
19203         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19204         * config/i386/i386.md: Update commentary.
19205
19206         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19207         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19208         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19209         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
19210
19211         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19212
19213         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19214         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19215         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19216         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
19217
19218         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19219         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19220         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19221
19222         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19223         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19224         (m32r_legitimate_constant_p): New function.
19225
19226         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19227         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19228         LEGITIMATE_CONSTANT_P.
19229         (LEGITIMATE_CONSTANT_P): Delete.
19230         * config/m68k/m68k.c (m68k_expand_prologue): Call
19231         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19232         (m68k_legitimate_constant_p): New function.
19233         * config/m68k/m68k.md: Update comments.
19234
19235         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19236         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19237         (mcore_legitimate_constant_p): New function.
19238
19239         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19240         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19241         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19242         Add a mode argument.
19243         (mep_legitimate_address): Update accordingly.
19244         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19245
19246         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19247         Delete.
19248         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19249         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19250         static.  Check OP's mode for VOIDmode.
19251         (microblaze_legitimate_constant_p): New function.
19252         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19253
19254         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19255         * config/mips/mips.c (mips_legitimate_constant_p): New function.
19256         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19257         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19258         * config/mips/predicates.md: Update comments.
19259
19260         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19261         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19262         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19263         (mmix_legitimate_constant_p): Make static, return a bool, and take
19264         a mode argument.
19265         (mmix_print_operand_address): Update accordingly.
19266
19267         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19268         Delete.
19269         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19270         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19271         static.  Add a mode argument.
19272         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19273
19274         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19275
19276         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19277         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19278         (pa_legitimate_constant_p): New function.
19279
19280         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19281
19282         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19283         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19284         (pdp11_legitimate_constant_p): New function.
19285
19286         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19287         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19288         (rs6000_legitimate_constant_p): New function.
19289
19290         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19291         (rx_legitimate_constant_p): ...this.
19292         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19293         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19294         (rx_legitimate_constant_p): ...this.
19295         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19296         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19297
19298         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19299         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19300         * config/s390/s390.c (legitimate_constant_p): Rename to...
19301         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
19302         and add a mode argument.
19303         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19304
19305         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19306
19307         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19308         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19309         (sh_legitimate_constant_p): New function.
19310
19311         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19312         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19313         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19314         (legitimate_constant_p): Rename to...
19315         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
19316         argument.
19317         (constant_address_p): Update accordingly.
19318
19319         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19320         argument and return a bool.
19321         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19322         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19323         (spu_legitimate_constant_p): Add a mode argument and return a bool.
19324         (spu_rtx_costs): Update accordingly.
19325         * config/spu/predicates.md (vec_imm_operand): Likewise.
19326
19327         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19328
19329         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19330         * config/v850/v850.c (v850_legitimate_constant_p): New function.
19331         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19332
19333         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19334         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19335         * config/vax/vax.c (legitimate_constant_p): Likewise.
19336
19337         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19338         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19339         (xtensa_legitimate_constant_p): New function.
19340
19341 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19342
19343         * target.def (cannot_force_const_mem): Add a mode argument.
19344         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19345         * doc/tm.texi: Regenerate.
19346         * hooks.h (hook_bool_mode_rtx_false): Declare.
19347         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19348         (hook_bool_mode_const_rtx_true): Likewise.
19349         (hook_bool_mode_rtx_false): New function.
19350         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19351         to be non-VOID.  Update call to cannot_force_const_mem.
19352         (find_reloads): Update accordingly.
19353         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19354         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19355         argument.
19356         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19357         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19358         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19359         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19360         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19361         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19362         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19363         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19364         (m68k_cannot_force_const_mem): ...this new function.
19365         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19366         argument.
19367         (mips_const_insns, mips_legitimize_const_move): Update calls.
19368         (mips_secondary_reload_class): Likewise.
19369         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19370         (pa_cannot_force_const_mem): ...this new function.
19371         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19372         (rs6000_cannot_force_const_mem): ...this new function.
19373         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19374         argument.
19375         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19376         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19377         to...
19378         (xtensa_cannot_force_const_mem): ...this new function.
19379
19380 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19381
19382         * config/mips/mips.c (mips16_build_function_stub): Call
19383         build_function_type_list instead of build_function_type.
19384         (mips16_build_call_stub): Likewise.
19385
19386 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19387
19388         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19389         instead of build_function_type.
19390
19391 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19392
19393         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19394         instead of build_function_type.
19395
19396 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
19397
19398         PR target/48678
19399         * config/i386/i386.md (insv): Change operand 0 constraint to
19400         "register_operand".  Change operand 1 and 2 constraint to
19401         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
19402         * config/i386/sse.md (sse4_1_pinsrb): Export.
19403         (sse2_pinsrw): Ditto.
19404         (sse4_1_pinsrd): Ditto.
19405         (sse4_1_pinsrq): Ditto.
19406         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19407         * config/i386/i386.c (ix86_expand_pinsr): New.
19408
19409 2011-04-20  Easwaran Raman  <eraman@google.com>
19410
19411         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19412         containing union type only with -fstrict-aliasing.
19413
19414 2011-04-20  Jim Meyering  <meyering@redhat.com>
19415
19416         Remove useless if-before-free tests.
19417         * calls.c (expand_call, save_area): Likewise.
19418         * cfgcleanup.c (try_forward_edges): Likewise.
19419         * collect2.c (collect_execute): Likewise.
19420         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19421         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19422         * coverage.c (coverage_checksum_string): Likewise.
19423         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19424         * cselib.c (cselib_init): Likewise.
19425         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19426         (df_set_clean_cfg): Likewise.
19427         * function.c (free_after_compilation): Likewise.
19428         * gcc.c (do_spec_1, main): Likewise.
19429         * gcov.c (create_file_names): Likewise.
19430         * gensupport.c (identify_predicable_attribute): Likewise.
19431         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19432         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19433         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19434         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19435         * ipa-pure-const.c (local_pure_const): Likewise.
19436         * ipa-reference.c (propagate): Likewise.
19437         * ira-costs.c (free_ira_costs): Likewise.
19438         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19439         * matrix-reorg.c (mat_free): Likewise.
19440         * prefix.c (get_key_value): Likewise.
19441         * profile.c (compute_value_histograms): Likewise.
19442         * reload1.c (free_reg_equiv): Likewise.
19443         * sched-deps.c (free_deps): Likewise.
19444         * sel-sched-ir.c (fence_clear): Likewise.
19445         * sese.c (set_rename, if_region_set_false_region): Likewise.
19446         * tree-data-ref.c (free_rdg): Likewise.
19447         * tree-eh.c (lower_try_finally): Likewise.
19448         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19449         * tree-ssa-live.c (delete_var_map): Likewise.
19450         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19451         * tree-ssa-pre.c (phi_trans_add): Likewise.
19452
19453 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
19454
19455         PR tree-optimization/48611
19456         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19457         beyond ERT_MUST_NOT_THROW region.
19458
19459 2011-04-20  Catherine Moore  <clm@codesourcery.com>
19460
19461         * config/mips/mips.opt (mfix-24k): New.
19462         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19463         * config/mips/mips.md (length): Increase by 4 for stores if
19464         fixing 24K errata.
19465         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19466         all noreorder if fixing 24K errata.
19467         * doc/invoke.texi: Document mfix-24k.
19468
19469 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
19470
19471         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19472         quad-word modes, reduce to 9-bit index range when above 1016 limit.
19473
19474 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19475
19476         * config/arm/arm.c (arm_gen_constant): Move movw support ....
19477         (const_ok_for_op): ... to here.
19478
19479 2011-04-20  Kai Tietz  <ktietz@redhat.com>
19480
19481         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19482         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19483
19484 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19485
19486         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19487
19488 2011-04-20  Richard Guenther  <rguenther@suse.de>
19489
19490         PR tree-optimization/47892
19491         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19492         are if-convertible.
19493
19494 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
19495
19496         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19497
19498 2011-04-20  Tristan Gingold  <gingold@adacore.com>
19499
19500         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19501
19502 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
19503
19504         PR target/18145
19505
19506         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19507         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19508         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19509         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19510         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19511
19512         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19513         New prototype.
19514
19515         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19516         (avr_asm_named_section, avr_asm_output_aligned_common,
19517         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19518         New functions to update...
19519         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19520         (avr_asm_init_sections): Overwrite section callbacks for
19521         data_section, bss_section.
19522         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19523         from here to...
19524         (avr_file_end): ...here.
19525
19526 2011-04-20  Richard Guenther  <rguenther@suse.de>
19527
19528         PR middle-end/48695
19529         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19530         objects and types here.  Adjust for their offset before comparing.
19531
19532 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19533
19534         * tree-vect-stmts.c (vectorizable_store): Only chain one related
19535         statement per copy.
19536
19537 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19538
19539         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19540         (GIMPLE_H): Include $(INTERNAL_FN_H).
19541         (OBJS-common): Add internal-fn.o.
19542         (internal-fn.o): New rule.
19543         * internal-fn.def: New file.
19544         * internal-fn.h: Likewise.
19545         * internal-fn.c: Likewise.
19546         * gimple.h: Include internal-fn.h.
19547         (GF_CALL_INTERNAL): New gf_mask.
19548         (gimple_statement_call): Put fntype into a union with a new
19549         internal_fn field.
19550         (gimple_build_call_internal): Declare.
19551         (gimple_build_call_internal_vec): Likewise.
19552         (gimple_call_same_target_p): Likewise.
19553         (gimple_call_internal_p): New function.
19554         (gimple_call_internal_fn): Likewise.
19555         (gimple_call_fntype): Return null for internal calls.
19556         (gimple_call_set_fntype): Assert that the function is not internal.
19557         (gimple_call_set_fn): Likewise.
19558         (gimple_call_set_fndecl): Likewise.
19559         (gimple_call_set_internal_fn): New function.
19560         (gimple_call_addr_fndecl): Handle null functions.
19561         (gimple_call_return_type): Likewise null types.
19562         * gimple.c (gimple_build_call_internal_1): New function.
19563         (gimple_build_call_internal): Likewise.
19564         (gimple_build_call_internal_vec): Likewise.
19565         (gimple_call_same_target_p): Likewise.
19566         (gimple_call_flags): Handle calls to internal functions.
19567         (gimple_call_fnspec): New function.
19568         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19569         (gimple_has_side_effects): Handle null functions.
19570         (gimple_rhs_has_side_effects): Likewise.
19571         (gimple_call_copy_skip_args): Handle calls to internal functions.
19572         * cfgexpand.c (expand_call_stmt): Likewise.
19573         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19574         * gimple-fold.c (gimple_fold_call): Handle null functions.
19575         (gimple_fold_stmt_to_constant_1): Don't fold
19576         calls to internal functions.
19577         * gimple-low.c (gimple_check_call_args): Handle calls to internal
19578         functions.
19579         * gimple-pretty-print.c (dump_gimple_call): Likewise.
19580         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19581         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19582         (do_warn_unused_result): Likewise.
19583         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19584         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19585         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19586         the target of a call.
19587         (initialize_hash_element): Update accordingly.
19588         (hashable_expr_equal_p): Use gimple_call_same_target_p.
19589         (iterative_hash_hashable_expr): Handle calls to internal functions.
19590         (print_expr_hash_elt): Likewise.
19591         * tree-ssa-pre.c (can_value_number_call): Likewise.
19592         (eliminate): Handle null functions.
19593         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19594         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19595         (find_func_aliases): Likewise.
19596         * value-prof.c (gimple_ic_transform): Likewise.
19597         (gimple_indirect_call_to_profile): Likewise.
19598         * lto-streamer-in.c (input_gimple_stmt): Likewise.
19599         * lto-streamer-out.c (output_gimple_stmt): Likewise.
19600
19601 2011-04-19  Jan Hubicka  <jh@suse.cz>
19602
19603         * ipa-inline-transform.c (save_inline_function_body): Add comments.
19604         * ipa-inline.c (inline_small_functions): Compute summaries first,
19605         populate heap later.
19606
19607 2011-04-19  Jan Hubicka  <jh@suse.cz>
19608
19609         * cgraph.h (save_inline_function_body): Remove.
19610         * ipa-inline-transform.c: New file, broke out of...
19611         * ipa-inline.c: ... this one; Update toplevel comment.
19612         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19613         make global.
19614         (update_noncloned_frequencies): Move to ipa-inline-transform.c
19615         (cgraph_mark_inline_edge): Rename to inline_call; move to
19616         ipa-inline-transform.c.
19617         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19618         move to ipa-inline-transform.c
19619         (recursive_inlining, inline_small_functions, flatten_function,
19620         ipa_inline, inline_always_inline_functions,
19621         early_inline_small_functions): Update.
19622         (inline_transform): Move to ipa-inline-transform.c.
19623         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19624         Declare.
19625         * Makefile.in (ipa-inline-transform.o): New file.
19626         * cgraphunit.c (save_inline_function_body): Move to
19627         ipa-inline-transform.c
19628
19629 2011-04-19  DJ Delorie  <dj@redhat.com>
19630
19631         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19632         registers if we already know there aren't any.
19633         (m32c_emit_epilogue): Don't emit a barrier here.
19634         (m32c_emit_eh_epilogue): Likewise.
19635         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19636         operands at expand time.
19637         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19638         int" wchar type.
19639         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19640         duplicates.  Provide aliases instead.
19641         * config/m32c/prologue.md (eh_return): Emit a barrier here.
19642         (eh_epilogue): Add a "(return)" here as a hint to other parts of
19643         the compiler.
19644
19645 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
19646
19647         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19648         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19649         (general_or_i64_p, sparc_register_move_cost): New function.
19650
19651 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19652
19653         * doc/install.texi (Configuration, --enable-threads): Remove mach.
19654         Add lynx, mipssde.  Sort table.
19655
19656 2011-04-19  Xinliang David Li  <davidxl@google.com>
19657
19658         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19659         not negative.
19660
19661 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
19662
19663         PR target/48678
19664         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19665         is a SUBREG with non-MODE_INT mode inside of it.
19666
19667 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19668
19669         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19670         also according to actual contants.
19671         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19672         (gimple_fold_call): Use it.
19673         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19674
19675 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19676
19677         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19678         non-pointer assignments.
19679
19680 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19681
19682         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19683         account anc_offset and otr_type from the indirect edge info.
19684         * ipa-prop.c (get_ancestor_addr_info): New function.
19685         (compute_complex_ancestor_jump_func): Assignment analysis moved to
19686         get_ancestor_addr_info, call it.
19687         (ipa_note_param_call): Do not initialize information about polymorphic
19688         calls, return the indirect call graph edge.  Remove the last
19689         parameter, adjust all callers.
19690         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19691         parameters.  Initialize polymorphic information in the indirect edge.
19692
19693 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19694
19695         PR lto/48148
19696         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19697         the types if they have different enumeration identifiers.
19698
19699 2011-04-19  Jan Hubicka  <jh@suse.cz>
19700
19701         * cgraph.h (cgraph_optimize_for_size_p): Declare.
19702         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19703         * predict.c (cgraph_optimize_for_size_p): Break out from ...
19704         (optimize_function_for_size_p) ... here.
19705
19706 2011-04-19  Richard Guenther  <rguenther@suse.de>
19707
19708         PR lto/48207
19709         * tree.c (free_lang_data): Do not reset the decl-assembler-name
19710         langhook.
19711
19712 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19713
19714         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19715         if DECL_NO_INLINE_WARNING_P is set on the function.
19716
19717 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
19718
19719         PR fortran/47976
19720         * reload1.c (inc_for_reload): Return void. All callers changed.
19721         (emit_input_reload_insns): Don't try to delete previous output
19722         reloads to a register, or record spill_reg_store for autoincs.
19723
19724 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
19725
19726         * gengtype.h: Updated copyright year.
19727         (struct input_file_st): Add inpisplugin field.
19728         (type_fileloc): New function.
19729         * gengtype.c
19730         (write_typed_struct_alloc_def): Add gcc_assert.
19731         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19732         (write_typed_alloc_defns): Don't output for plugin files.
19733         (input_file_by_name): Clear inpisplugin field.
19734         (main): Set inpisplugin field for plugin files.
19735
19736 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
19737
19738         * gengtype-state.c (string_eq): New.
19739         (read_state): Use string_eq instead of strcmp when creating the
19740         state_ident_tab.
19741
19742 2011-04-19  Wei Guozhi  <carrot@google.com>
19743
19744         PR target/47855
19745         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19746         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19747         linkage.
19748         * config/arm/constraints.md (Uu): New constraint.
19749         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19750
19751 2011-04-19  Tristan Gingold  <gingold@adacore.com>
19752
19753         * config.gcc (-*-*-*vms): Added.
19754         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19755         definitions moved.
19756         * config/vms/vms-ld.c: New file.
19757         * config/vms/vms-ar.c: New file.
19758         * config/vms/t-vmsnative: New file.
19759
19760 2011-04-18  Xinliang David Li  <davidxl@google.com>
19761
19762         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19763
19764 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19765
19766         PR middle-end/48661
19767         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19768         if TREE_TYPE (v) is non-NULL.
19769
19770         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19771         gimple_get_virt_mehtod_for_binfo.
19772         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19773         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19774         callers.
19775         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19776
19777 2011-04-18  Michael Matz  <matz@suse.de>
19778             Steve Ellcey  <sje@cup.hp.com>
19779
19780         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19781         use its mode as source mode if it isn't VOIDmode.
19782
19783 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
19784
19785         * doc/passes.texi: Fill crossref nodes.
19786
19787 2011-04-18  Jim Meyering  <meyering@redhat.com>
19788
19789         Fix doubled-word typos in comments and strings
19790         * config/alpha/vms-unwind.h: s/for for/for/
19791         * config/arm/unwind-arm.h: Likewise.
19792         * config/microblaze/microblaze.c: Likewise.
19793         * config/sh/constraints.md: s/in in/in/
19794         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19795
19796 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
19797
19798         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19799         (AVX_FLOAT_MODE_P): Ditto.
19800         (AVX128_VEC_FLOAT_MODE_P): Ditto.
19801         (AVX256_VEC_FLOAT_MODE_P): Ditto.
19802         (AVX_VEC_FLOAT_MODE_P): Ditto.
19803         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19804         (UNSPEC_MASKSTORE): Ditto.
19805         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19806         Merge from <sse>_movmsk<ssemodesuffix> and
19807         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
19808         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
19809         iterator.
19810         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19811         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19812         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19813
19814 2011-04-18  Jan Hubicka  <jh@suse.cz>
19815
19816         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19817
19818         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19819         (want_inline_function_called_once_p): Break out the logic from
19820         ipa_inline.
19821         (edge_badness): Ensure that profile is not misupdated.
19822         (lookup_recursive_calls): Prioritize by call frequencies.
19823         (inline_small_functions): Move program size estimates here;
19824         actually process whole queue even when unit growth has been
19825         met. (to properly compute inline_failed reasons and for the
19826         case unit size decrease.) Revisit comments on recursive inlining.
19827         (ipa_inline): Remove unit summary code; first inline hot calls
19828         of functions called once, cold calls next.
19829         (order, nnodes): Remove unused variables.
19830         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19831         (GTFILES): Remove ipa-inline.c
19832         * sel-sched.c (fill_insns): Silence uninitialized var warning.
19833
19834 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19835
19836         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19837
19838 2011-04-18  Jie Zhang  <jie@codesourcery.com>
19839             Richard Earnshaw  <rearnsha@arm.com>
19840
19841         * arm.c (neon_builtin_type_bits): Remove.
19842         (typedef enum neon_builtin_mode): New.
19843         (T_MAX): Don't define.
19844         (typedef enum neon_builtin_datum): Remove bits, codes[],
19845         num_vars and base_fcode.  Add mode, code and fcode.
19846         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19847         VAR10): Change accordingly.
19848         (neon_builtin_data[]): Change accordingly
19849         (arm_init_neon_builtins): Change accordingly.
19850         (neon_builtin_compare): Remove.
19851         (locate_neon_builtin_icode): Remove.
19852         (arm_expand_neon_builtin): Change accordingly.
19853
19854         * arm.h (enum arm_builtins): Move to ...
19855         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19856
19857         * arm.c (arm_builtin_decl): Declare.
19858         (TARGET_BUILTIN_DECL): Define.
19859         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19860         (arm_builtin_decls[]): New.
19861         (arm_init_neon_builtins): Store builtin declarations in
19862         arm_builtin_decls[].
19863         (arm_init_tls_builtins): Likewise.
19864         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
19865         (arm_builtin_decl): New.
19866
19867 2011-04-18  Richard Guenther  <rguenther@suse.de>
19868
19869         * tree.c (upper_bound_in_type): Build properly canonicalized
19870         INTEGER_CSTs.
19871         (lower_bound_in_type): Likewise.
19872
19873 2011-04-18  Richard Guenther  <rguenther@suse.de>
19874
19875         * gimple.h (gimple_call_addr_fndecl): New function.
19876         (gimple_call_fndecl): Use it.
19877         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19878         for direct calls.
19879         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19880         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19881
19882 2011-04-18  Richard Guenther  <rguenther@suse.de>
19883
19884         PR middle-end/48650
19885         * tree.c (build_string): STRING_CST is now derived from tree_typed.
19886
19887 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19888
19889         PR lto/48492
19890         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19891         DECL_IN_CONSTANT_POOL without RTL.
19892
19893 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
19894             Ira Rosen  <ira.rosen@linaro.org>
19895
19896         PR target/48252
19897         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19898         to match neon_vzip/vuzp/vtrn_internal.
19899         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19900         outputs explicitly dependent on both inputs.
19901         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19902
19903 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19904
19905         PR tree-optimization/48616
19906         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19907         whether the shift is by scalar or vector based on whether all SLP
19908         scalar stmts have the same rhs.
19909
19910 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
19911
19912         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19913         memory operands.
19914
19915 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
19916
19917         PR target/43700
19918         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19919         registers.
19920
19921 2011-04-17  Jan Hubicka  <jh@suse.cz>
19922
19923         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19924         * cgrpahunit.c (cgraph_finalize_function): Do not set
19925         finalized_by_frontend.
19926         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19927         finalized_by_frontend.
19928
19929 2011-04-17  Jan Hubicka  <jh@suse.cz>
19930
19931         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19932         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19933         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19934         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19935         method.
19936         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19937         gimple-fold.c
19938         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19939
19940 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19941
19942         PR lto/48538
19943         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19944         is non-null before accessing it.
19945         (input_cgraph): Remove trailing spaces.
19946
19947 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19948
19949         * params.def (sms-min-sc): New param flag.
19950         * modulo-sched.c (sms_schedule): Use it.
19951         * doc/invoke.texi (sms-min-sc): Document it.
19952
19953 2011-04-17  Jan Hubicka  <jh@suse.cz>
19954
19955         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19956         present, also set gimple_call_set_cannot_inline.
19957         * ipa-inline.c: Update toplevel comment.
19958         (MAX_TIME): Remove.
19959         (cgraph_clone_inlined_nodes): Fix linebreaks.
19960         (cgraph_check_inline_limits): Restructure to ...
19961         (caller_growth_limits): ... this one; be more tolerant
19962         on growth in nested inline chains; add explanatory comment;
19963         fix stack accounting thinko introduced by previous patch.
19964         (cgraph_default_inline_p): Remove.
19965         (report_inline_failed_reason): New function.
19966         (can_inline_edge_p): New function.
19967         (can_early_inline_edge_p): New function.
19968         (leaf_node_p): Move upwards in file.
19969         (want_early_inline_function_p): New function.
19970         (want_inline_small_function_p): New function.
19971         (want_inline_self_recursive_call_p): New function.
19972         (cgraph_edge_badness): Rename to ...
19973         (edge_badness) ... this one; fix linebreaks.
19974         (update_edge_key): Update call of edge_baddness; add
19975         detailed dump about queue updates.
19976         (update_caller_keys): Use can_inline_edge_p and
19977         want_inline_small_function_p.
19978         (cgraph_decide_recursive_inlining): Rename to...
19979         (recursive_inlining): Use can_inline_edge_p and
19980         want_inline_self_recursive_call_p; simplify and remove no longer
19981         valid FIXME.
19982         (cgraph_set_inline_failed): Remove.
19983         (add_new_edges_to_heap): Use can_inline_edge_p and
19984         want_inline_small_function_p.
19985         (cgraph_decide_inlining_of_small_functions): Rename to ...
19986         (inline_small_functions): ... this one; cleanup; use
19987         can/want predicates; cleanup debug ouput; work edges till fibheap
19988         is exhausted and do not stop once unit growth is reached; remove
19989         later loop processing remaining edges.
19990         (cgraph_flatten): Rename to ...
19991         (flatten_function): ... this one; use can_inline_edge_p
19992         and can_early_inline_edge_p predicates.
19993         (cgraph_decide_inlining): Rename to ...
19994         (ipa_inline): ... this one; remove unreachable nodes before
19995         inlining functions called once; simplify the pass.
19996         (cgraph_perform_always_inlining): Rename to ...
19997         (inline_always_inline_functions): ... this one; use
19998         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19999         (cgraph_decide_inlining_incrementally): Rename to ...
20000         (early_inline_small_functions): ... this one; simplify
20001         using new predicates; cleanup; make dumps prettier.
20002         (cgraph_early_inlining): Rename to ...
20003         (early_inliner): newer inline regular functions into always-inlines;
20004         fix updating of call stmt summaries.
20005         (pass_early_inline): Update for new names.
20006         (inline_transform): Fix formating.
20007         (gate_cgraph_decide_inlining): Rename to ...
20008         (pass_ipa_inline): ... this one.
20009         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
20010         * ipa-inline-analysis.c (dump_inline_summary): Update.
20011         (compute_inline_parameters): Do not compute disregard_inline_limits;
20012         look for mismatching arguments.
20013         (estimate_growth): Fix handlig of non-trivial self recursion.
20014         (inline_read_summary): Do not read info->disregard_inline_limits.
20015         (inline_write_summary): Do not write info->disregard_inline_limits.
20016         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
20017         and move all checks into can_inline_edge_p predicate; re-enable code
20018         comparing optimization levels.
20019         (expand_call_inline): Do not test inline_forbidden_into_p.
20020         * Makefile.in (ipa-inline.o): Update arguments.
20021
20022 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20023
20024         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
20025
20026 2011-04-17  Revital Eres  <revital.eres@linaro.org>
20027
20028         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
20029
20030 2011-04-17  Michael Matz  <matz@suse.de>
20031
20032         PR tree-optimization/48622
20033         PR lto/48645
20034         * ipa-inline-analysis.c (inline_read_summary): Read size/time
20035         in same order as they're written.
20036
20037 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20038
20039         * config/pa/predicates.md: Reorganize and simplify predicates.
20040         Eliminate duplicate code checks.
20041         (arith_operand): Rename to arith14_operand
20042         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
20043         * config/pa/pa.md: Use renamed operands.
20044         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
20045         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
20046         arith11_operand, adddi3_operand, indexed_memory_operand,
20047         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
20048         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
20049         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
20050         move_dest_operand, move_src_operand, prefetch_cc_operand,
20051         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
20052         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
20053         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
20054         div_operand, int5_operand, movb_comparison_operator,
20055         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
20056         arith_double_operand, ireg_operand, lhs_lshift_operand,
20057         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
20058         integer_store_memory_operand): Likewise.
20059         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
20060         (integer_store_memory_operand, read_only_operand,
20061         function_label_operand, borx_reg_operand,
20062         non_hard_reg_operand): Likewise.
20063         (eq_neq_comparison_operator): Delete unused operator.
20064         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
20065         function_label_operand.
20066         (emit_move_sequence): Likewise.
20067
20068 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20069
20070         * config/i386/sse.md (sseunpackmode): New mode attribute.
20071         (ssepackmode): Ditto.
20072         (vec_pack_trunc_<mode>): Macroize expander from
20073         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
20074         (vec_unpacks_lo_<mode>): Macroize expander from
20075         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20076         (vec_unpacks_hi_<mode>): Macroize expander from
20077         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20078         (vec_unpacku_lo_<mode>): Macroize expander from
20079         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20080         (vec_unpacku_hi_<mode>): Macroize expander from
20081         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
20082         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
20083         ix86_expand_sse4_unpack.
20084         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
20085
20086 2011-04-16  Jan Hubicka  <jh@suse.cz>
20087
20088         * cgraphbuild.c: Include ipa-inline.h.
20089         (reset_inline_failed): Use initialize_inline_failed.
20090         * cgraph.c: Include ipa-inline.h.
20091         (cgraph_create_node_1): Do not initialize estimated_growth.
20092         (initialize_inline_failed): More to ipa-inline-analysis.c
20093         (dump_cgraph_node): Do not dump inline flags.
20094         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
20095         and disregard_inline_limits flags.
20096         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
20097         time, size, estimated_growth.
20098         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
20099         Update.
20100         * cgraphunit.c (cgraph_decide_is_function_needed): Use
20101         DECL_DISREGARD_INLINE_LIMITS.
20102         (cgraph_analyze_function): Do not initialize
20103         node->local.disregard_inline_limits.
20104         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
20105         inlinable, versionable and disregard_inline_limits.
20106         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
20107         cgraph_check_inline_limits, cgraph_default_inline_p,
20108         cgraph_edge_badness, update_caller_keys, update_callee_keys,
20109         add_new_edges_to_heap): Update.
20110         (cgraph_decide_inlining_of_small_function): Update; set
20111         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
20112         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
20113         cgraph_decide_inlining_incrementally): Update.
20114         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20115         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20116         time, size and estimated_growth parameters.
20117         (estimate_edge_growth): Update.
20118         (initialize_inline_failed): Declare.
20119         * ipa-split.c: Include ipa-inline.h
20120         (execute_split_functions): Update.
20121         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20122         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20123         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20124         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20125         estimated_growth to INT_MIN.
20126         (inline_node_duplication_hook): Likewise.
20127         (dump_inline_summary): Dump new fields.
20128         (compute_inline_parameters): Update.
20129         (estimate_edge_time, estimate_time_after_inlining,
20130         estimate_size_after_inlining, estimate_growth, inline_read_summary,
20131         inline_write_summary):
20132         (initialize_inline_failed): Move here from cgraph.c.
20133         * tree-sra.c: Include ipa-inline.h.
20134         (ipa_sra_preliminary_function_checks): Update.
20135         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20136         ipa-inline.h.
20137
20138 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20139
20140         * config/i386/sse.md (V16): New mode iterator.
20141         (VI1, VI8): Ditto.
20142         (AVXMODEQI, AVXMODEDI): Remove.
20143         (sse2, sse3): New mode attribute.
20144         (mov<mode>): Use V16 mode iterator.
20145         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20146         (push<mode>1): Use V16 mode iterator.
20147         (movmisalign<mode>): Ditto.
20148         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20149         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20150         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20151         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20152         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20153         avx_movdqu<avxmodesuffix>.
20154         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20155         *avx_movdqu<avxmodesuffix>.
20156         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20157         avx_lddqu<avxmodesuffix>.
20158         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20159         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20160         avx_movnt<AVXMODEDI:mode>.
20161         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20162         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20163
20164 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20165
20166         PR target/48629
20167         * haifa-sched.c (prune_ready_list, schedule_block): Use
20168         sched_pressure_p rather than flag_sched_pressure.
20169
20170 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
20171
20172         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20173         cgraph_get_node instead of cgraph_get_create_node.
20174
20175 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
20176
20177         * cfgexpand.c (expand_debug_expr): Use
20178         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20179
20180 2011-04-15  Michael Matz  <matz@suse.de>
20181
20182         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20183         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20184         * function.c (gimplify_parameters): Ditto.
20185         * gimplify.c (gimplify_vla_decl): Ditto.
20186
20187         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20188         (gimple_call_set_alloca_for_var): New inline function.
20189         (gimple_call_alloca_for_var_p): Ditto.
20190         * gimple.c (gimple_build_call_from_tree): Remember
20191         CALL_ALLOCA_FOR_VAR_P state.
20192         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20193
20194         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20195         calls if they were for VLA objects.
20196
20197 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20198
20199         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20200         of ADR_EXPRs.
20201
20202 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20203
20204         PR middle-end/48601
20205         * tree-emutls.c (lower_emutls_function_body): Call
20206         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
20207         result is non-NULL.
20208
20209 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
20210
20211         * c-decl.c (detect_field_duplicates): Call
20212         objc_detect_field_duplicates instead of objc_get_interface_ivars.
20213
20214 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
20215
20216         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20217         * gimple.c (gimple_asm_clobbers_memory_p): Define.
20218         * ipa-pure-const.c (check_stmt): Call it.
20219         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20220
20221 2011-04-15  Richard Guenther  <rguenther@suse.de>
20222
20223         PR tree-optimization/48290
20224         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20225         Properly decide inhibiting propagation based on the valueized
20226         operand.  Do loop-closed SSA form preserving here ...
20227         (init_copy_prop): ... not here.
20228
20229 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20230
20231         PR target/48612
20232         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20233         (*ieee_smax<mode>3): Likewise.
20234
20235 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20236
20237         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20238         Replace match_operand with match_dup for the third operand in
20239         these expanders.
20240
20241 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20242
20243         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20244         to track processing of conditionals.  Update all callers.
20245         (try_combine, simplify_if_then_else): Update.
20246
20247 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20248
20249         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20250         -fsched-pressure.
20251
20252 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
20253
20254         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20255         instead of match_operand for operand 3.
20256
20257 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
20258
20259         * recog.h (insn_operand_data): Add an "allows_mem" field.
20260         * genoutput.c (output_operand_data): Initialize it.
20261         * optabs.c (maybe_legitimize_operand_same_code): New function.
20262         (maybe_legitimize_operand): Use it when matching the original
20263         op->value.
20264
20265 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20266
20267         * gimplify.c: Fix issues in comments throughout.
20268         (voidify_wrapper_expr): Fix long line.
20269         (build_stack_save_restore): Likewise.
20270         (gimplify_loop_expr): Likewise.
20271         (gimplify_compound_lval): Likewise.
20272         (gimplify_init_ctor_eval): Likewise.
20273         (gimplify_modify_expr_rhs): Likewise.
20274         (omp_notice_threadprivate_variable): Likewise.
20275
20276 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20277
20278         * cfgexpand.c (expand_call_stmt): Convert the function type to the
20279         original one if this is not a builtin function.
20280
20281 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
20282
20283         PR target/48605
20284         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20285         offset it as needed based on top 2 bits in operands[3], change
20286         MEM mode to SFmode and mask those 2 bits away from operands[3].
20287
20288 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20289
20290         * c-parser.c (c_parser_objc_protocol_definition): Updated for
20291         change from objc_declare_protocols() to objc_declare_protocol().
20292
20293 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
20294
20295         * config/i386/sse.md (sse4_1): New mode attribute.
20296         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20297         avx_blend<ssemodesuffix><avxmodesuffix> and
20298         sse4_1_blend<ssemodesuffix> using VF mode iterator.
20299         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20300         avx_blendv<ssemodesuffix><avxmodesuffix> and
20301         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20302         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20303         avx_dp<ssemodesuffix><avxmodesuffix> and
20304         sse4_1_dp<ssemodesuffix> using VF mode iterator.
20305         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20306         (sse4_1_packusdw): Merge with *avx_packusdw.
20307         (sse4_1_pblendvb): Merge with *avx_pblendvb.
20308         (sse4_1_pblendw): Merge with *avx_pblendw.
20309         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20310         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20311         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20312         VF mode iterator.
20313         (sse4_1_round<ssescalarmodesuffix>): Merge with
20314         *avx_round<ssescalarmodesuffix>.
20315         (aesenc): Merge with *avx_aesenc.
20316         (aesenclast): Merge with *avx_aesenclast.
20317         (aesdec): Merge with *avx_aesdec.
20318         (aesdeclast): Merge with *avx_aesdeclast.
20319         (pclmulqdq): Merge with *pclmulqdq.
20320         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20321         New predicate.
20322         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20323
20324 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20325
20326         PR middle-end/48608
20327         * cfgexpand.c (get_decl_align_unit): Renamed to ...
20328         (align_local_variable): This.  Update DECL_ALIGN.
20329         (add_stack_var): Updated.
20330         (expand_one_stack_var): Likewise.
20331
20332 2011-04-14  Richard Guenther  <rguenther@suse.de>
20333
20334         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20335         Remove.
20336         (dse_initialize_block_local_data, dse_leave_block,
20337         record_voperand_set, get_stmt_uid): Likewise.
20338         (dse_possible_dead_store_p): Allow any kind of killing stmt.
20339         (dse_optimize_stmt): Remove voperand set handling code.
20340         Simplify and improve to handle any kind of killing stmt.
20341         (dse_record_phi): Remove.
20342         (dse_enter_block): Simplify.
20343         (tree_ssa_dse): Likewise.
20344         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20345
20346 2011-04-14  Jan Hubicka  <jh@suse.cz>
20347
20348         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20349         * cgraph.h (struct inline_summary): Move to ipa-inline.h
20350         (cgraph_local_info): Remove inline_summary.
20351         * ipa-cp.c: Include ipa-inline.h.
20352         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20353         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20354         accesor.
20355         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20356         (input_overwrite_node): Do not set inline summary.
20357         (input_node): Do not stream inline summary.
20358         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20359         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20360         growth; we do not have inline parameters computed for that anyway.
20361         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20362         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20363         (inline_summary_t): New type and VECtor.
20364         (debug_inline_summary, dump_inline_summaries): Declare.
20365         (inline_summary): Use VOCtor.
20366         (estimate_edge_growth): Kill hack computing call stmt size directly.
20367         * lto-section-in.c (lto_section_name): Add inline section.
20368         * ipa-inline-analysis.c: Include lto-streamer.h
20369         (node_removal_hook_holder, node_duplication_hook_holder): New holders
20370         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20371         (inline_summary_vec): Define.
20372         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20373         dump_inline_summaries): New functions.
20374         (estimate_function_body_sizes): Properly compute size/time of outgoing
20375         calls.
20376         (compute_inline_parameters): Alloc inline_summary; do not compute
20377         size/time of incomming calls.
20378         (estimate_edge_time): Avoid missing time summary hack.
20379         (inline_read_summary): Read inline summary info.
20380         (inline_write_summary): Write inline summary info.
20381         (inline_free_summary): Free all hooks and inline summary vector.
20382         * lto-streamer.h: Add LTO_section_inline_summary section.
20383         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20384         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20385
20386 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20387
20388         * tree-vectorizer.h (vect_strided_store_supported): Add a
20389         HOST_WIDE_INT argument.
20390         (vect_strided_load_supported): Likewise.
20391         (vect_permute_store_chain): Return void.
20392         (vect_transform_strided_load): Likewise.
20393         (vect_permute_load_chain): Delete.
20394         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20395         count argument.  Check that the count is a power of two.
20396         (vect_strided_load_supported): Likewise.
20397         (vect_permute_store_chain): Return void.  Update after above changes.
20398         Assert that the access is supported.
20399         (vect_permute_load_chain): Likewise.
20400         (vect_transform_strided_load): Return void.
20401         * tree-vect-stmts.c (vectorizable_store): Update calls after
20402         above interface changes.
20403         (vectorizable_load): Likewise.
20404         (vect_analyze_stmt): Don't check for strided powers of two here.
20405
20406 2011-04-14  Richard Guenther  <rguenther@suse.de>
20407
20408         PR tree-optimization/48590
20409         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20410         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20411         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20412         BUILT_IN_STACK_SAVE.
20413         * tree-ssa-dce.c (propagate_necessity): Handle
20414         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20415
20416 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20417
20418         * c-parser.c (c_parser_objc_class_declaration): Updated call to
20419         objc_declare_class.
20420
20421 2011-04-14  Richard Guenther  <rguenther@suse.de>
20422
20423         * tree.h (get_object_alignment_1): Declare.
20424         * builtins.c (get_object_alignment_1): Split out worker from ...
20425         (get_object_alignment): ... here.
20426         * fold-const.c (get_pointer_modulus_and_residue): Use
20427         get_object_alignment_1.
20428
20429 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20430
20431         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20432         type parameter.
20433         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20434         parameter.  Generalise code to handle arrays as well as vectors.
20435         (vect_setup_realignment): Update accordingly.
20436         * tree-vect-stmts.c (vectorizable_store): Likewise.
20437         (vectorizable_load): Likewise.
20438
20439 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20440
20441         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20442         within the per-copy loop.
20443
20444 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20445
20446         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20447         in the dump file.
20448
20449 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20450
20451         * doc/options.texi (Negative): Explicitly mention that the
20452         Negative chain must be circular.
20453
20454 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
20455
20456         * function.h (block_chainon): Declare.
20457         * function.c (block_chainon): Define.
20458
20459 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
20460             Eric Weddington  <eric.weddington@atmel.com>
20461             Georg-Johann Lay  <avr@gjlay.de>
20462
20463         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20464         New Includes
20465         (avr_init_builtins, avr_expand_builtin,
20466         avr_expand_delay_cycles, avr_expand_unop_builtin,
20467         avr_expand_binop_builtin ): New functions.
20468         (avr_builtin_id): New enum
20469         (struct avr_builtin_description): New struct
20470         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20471         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20472
20473         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20474         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20475         UNSPECV_DELAY_CYCLES): new enumeration values
20476         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20477         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20478         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20479         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20480         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20481         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20482         "fmulsu"): New insns
20483
20484         * config/avr/avr-c.c: fix line endings
20485         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20486         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20487         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20488         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20489         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20490
20491         * doc/extend.texi (AVR Built-in Functions): New node
20492         (Target Builtins): Add documentation of AVR
20493         built-in functions.
20494
20495 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
20496
20497         PR target/44643
20498         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20499         alone. Error if non-const data has attribute progmem.
20500
20501 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20502
20503         * tree.h (struct tree_constructor): Include tree_typed instead of
20504         tree_common.
20505         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20506         TS_TYPED instead of TS_COMMON.
20507
20508 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20509
20510         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20511         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20512         (sse2_psadbw): Merge with *avx_psadbw.
20513         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20514         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20515         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20516         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20517         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20518         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20519         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20520         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20521         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20522         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20523         (ssse3_palignrti): Merge with *avx_palignrti.
20524
20525 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20526
20527         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20528         * tree-ssanames.c (fini_ssanames): VEC_free it.
20529         (make_ssa_name_fn): Update for VECness of free_ssanames.
20530         (release_ssa_name, release_dead_ssa_names): Likewise.
20531         * tree.h (struct tree_ssa_name): Include tree_typed instead of
20532         tree_common.
20533         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20534         TS_TYPED instead of TS_COMMON.
20535
20536 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20537
20538         * postreload-gcse.c (gcse_after_reload_main): Add calls to
20539         statistics_counter_event.
20540         * tree-ssa-copyrename.c (stats): Define.
20541         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
20542         statistics_counter_event.
20543         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20544         (bswap_stats, widen_mul_stats): Define.
20545         (insert_reciprocals): Increment rdivs_inserted.
20546         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
20547         rfuncs_inserted.  Add calls to statistics_counter_event.
20548         (execute_cse_sincos_1): Increment inserted.
20549         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
20550         statistics_counter_event.
20551         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
20552         of bswap_stats.  Add calls to statistics_counter_event.
20553         (convert_mult_to_widen): Increment widen_mults_inserted.
20554         (convert_plusminus_to_widen): Increment maccs_inserted.
20555         (convert_mult_to_fma): Increment fmas_inserted.
20556         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
20557         calls to statistics_counter_event.
20558
20559 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
20560
20561         PR rtl-optimization/48455
20562         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20563         `temp_costs->mem_cost'.
20564
20565 2011-04-13  Jan Hubicka  <jh@suse.cz>
20566
20567         * ipa-inline.h: New file.
20568         * ipa-inline-analysis.c: New file. Broken out of ...
20569         * ipa-inline.c: ... this file; update toplevel comment;
20570         include ipa-inline.h
20571         (inline_summary): Move to ipa-inline.h
20572         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20573         ipa-inline-analysis.c.
20574         (cgraph_estimate_time_after_inlining): Rename to
20575         estiamte_time_after_inlining; move to ipa-inline-analysis.c
20576         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20577         to estimate_edge_growth.
20578         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20579         rename to estimate_size_after_inlining.
20580         (cgraph_mark_inline_edge): Update for new naming convention.
20581         (cgraph_check_inline_limits): Likewise.
20582         (cgraph_edge_badness): Likewise.
20583         (cgraph_decide_recursive_inlining): Likewise.
20584         (cgraph_decide_inlining_of_small_functions): Likewise.
20585         (cgraph_decide_inlining_incrementally): Likewise.
20586         (cgraph_estimate_growth): Rename to estimate_growth; move to
20587         ipa-inline-analysis.c.
20588         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20589         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20590         (compute_inline_parameters): Likewise.
20591         (compute_inline_parameters_for_current): Likewise.
20592         (pass_inline_parameters): Likewise.
20593         (inline_indirect_intraprocedural_analysis): Likewise.
20594         (analyze_function): Rename to inline_analyze_function; likewise.
20595         (add_new_function): Move to ipa-inline-analysis.c.
20596         (inline_generate_summary): Likewise.
20597         (inline_read_summary): Likewise.
20598         (inline_write_summary): Likewise.
20599         * Makefile.in (ipa-inline-analysis.c): New file.
20600
20601 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20602
20603         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20604         * configure: Regenerate.
20605
20606 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20607
20608         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20609         instead of tree_common.
20610         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20611         Likewise.
20612         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20613         TS_TYPED rather than TS_COMMON.
20614         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20615
20616 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
20617
20618         PR target/45263
20619         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20620         r20 around calls of __tablejump_elpm__
20621
20622 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
20623
20624         PR middle-end/48591
20625         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20626         NULL.
20627         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20628
20629 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
20630
20631         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20632         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20633         (cfi_vec): New typedef.
20634         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20635         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20636         (cie_cfi_vec): New static variable.
20637         (cie_cfi_head): Delete.
20638         (add_cfi): Accept a cfi_vec * as first argument. All callers and
20639         declaration changed. Use vector rather than list operations.
20640         (new_cfi): Don't initialize the dw_cfi_next field.
20641         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20642         rather than list operations.
20643         (lookup_cfa): Use vector rather than list operations.
20644         (output_cfis): New argument upto. Accept a cfi_vec rather than
20645         a dw_cfi_ref list head as argument. All callers changed.
20646         Iterate over the vector using upto as a maximum index.
20647         (output_all_cfis): New static function.
20648         (output_fde): Use vector rather than list operations. Use the
20649         new upto argument for output_cfis rather than manipulating a
20650         list.
20651         (dwarf2out_begin_prologue): Change initializations to match
20652         new struct members.
20653         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20654         from the vector length rather than searching for the end of a list.
20655         Use output_all_cfis.
20656         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20657
20658 2011-04-13  Nick Clifton  <nickc@redhat.com>
20659
20660         * config/rx/rx.md (movmemsi): Do not use this pattern when
20661         volatile pointers are involved.
20662
20663 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20664
20665         * config/i386/sse.md (pinsrbits): Remove.
20666         (sse2_packsswb): Merge with *avx_packsswb.
20667         (sse2_packssdw): Merge with *avx_packssdw.
20668         (sse2_packuswb): Merge with *avx_packuswb.
20669         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20670         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20671         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20672         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20673         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20674         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20675         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20676         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20677         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20678         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20679         (sse2_loadld): Merge with *avx_loadld.
20680         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20681         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20682         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20683         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20684         (vec_concatv2di): Merge with *vec_concatv2di_avx.
20685
20686 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
20687
20688         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20689         calling TREE_CHAIN.
20690         * print-tree.c (print_node): Likewise.
20691         * tree-inline.c (copy_tree_r): Likewise.
20692         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20693         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20694         instead of TS_COMMON.
20695         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20696         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20697         (copy_node_stat): Zero TREE_CHAIN only if necessary.
20698         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20699         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20700         ...and these...
20701         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20702         * tree.h: ...here.
20703         (TREE_CHAIN): Check for a TS_COMMON structure.
20704         (TREE_TYPE): Check for a TS_TYPED structure.
20705
20706 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
20707
20708         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20709         cgraph_get_create_node instead of cgraph_node.
20710
20711 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20712
20713         * c-parser.c (c_parser_initelt): Updated call to
20714         objc_build_message_expr.
20715         (c_parser_postfix_expression): Likewise.
20716
20717 2011-04-12  Kai Tietz  <ktietz@redhat.com>
20718
20719         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20720         MASK_MS_BITFIELD_LAYOUT bit.
20721
20722 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20723
20724         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20725         assert it is always true.
20726         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20727         moves.
20728
20729 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20730
20731         * c-parser.c (c_lex_one_token): Rewritten conditional used when
20732         compiling Objective-C to be more efficient.
20733
20734 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
20735
20736         * opts-common.c (decode_cmdline_options_to_array): Remove variable
20737         argv_copied.
20738
20739 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20740
20741         * recog.h, genoutput.c, optabs.c: Revert last patch.
20742
20743 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20744
20745         PR target/48090
20746         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20747
20748 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20749
20750         * recog.h (insn_operand_data): Add an "allows_mem" field.
20751         * genoutput.c (output_operand_data): Initialize it.
20752         * optabs.c (maybe_legitimize_operand_same_code): New function.
20753         (maybe_legitimize_operand): Use it when matching the original
20754         op->value.
20755
20756 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20757
20758         * genpreds.c (process_define_predicate): Move most processing
20759         to gensupport.c.  Continue to validate the expression.
20760         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20761         (process_define_predicate): Move processing to gensupport.c.
20762         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20763         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20764         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
20765         argument.
20766         (valid_predicate_name_p): New function, split out from old
20767         genpreds.c:process_define_predicate.
20768         (process_define_predicate): New function, combining code from
20769         old genpreds.c and genrecog.c functions.
20770         (process_rtx): Call it for DEFINE_PREDICATE and
20771         DEFINE_SPECIAL_PREDICATE.
20772
20773 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20774
20775         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20776         size of a '%A' memory reference.
20777         (T_DREG, T_QREG): New neon_builtin_type_bits.
20778         (arm_init_neon_builtins): Assert that the load and store operands
20779         are neon_struct_operands.
20780         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20781         (NEON_ARG_MEMORY): New builtin_arg.
20782         (neon_dereference_pointer): New function.
20783         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20784         Handle NEON_ARG_MEMORY.
20785         (arm_expand_neon_builtin): Update after above interface changes.
20786         Use NEON_ARG_MEMORY for loads and stores.
20787         * config/arm/predicates.md (neon_struct_operand): New predicate.
20788         * config/arm/iterators.md (V_two_elem): Tweak formatting.
20789         (V_three_elem): Use BLKmode for accesses that have no associated mode.
20790         (V_four_elem): Tweak formatting.
20791         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20792         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20793         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20794         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20795         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20796         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20797         (neon_vst4<mode>): Replace pointer operand with a memory operand.
20798         Use %A in the output template.
20799         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20800         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20801         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20802         the width of the memory access.  Remove post-increment.
20803         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20804
20805 2011-04-12  Nick Clifton  <nickc@redhat.com>
20806
20807         * config/v850/v850.c (expand_prologue): Do not use the CALLT
20808         instruction for interrupt handlers if the target is the basic V850
20809         architecture.
20810         (expand_epilogue): Likewise.
20811
20812 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20813
20814         PR rtl-optimization/48549
20815         * combine.c (propagate_for_debug): Also stop after BB_END of
20816         this_basic_block.  Process LAST and just stop processing after it.
20817         (combine_instructions): If last_combined_insn has been deleted,
20818         set last_combined_insn to its PREV_INSN.
20819
20820 2011-04-12  Richard Guenther  <rguenther@suse.de>
20821
20822         PR tree-optimization/46076
20823         * gimple.h (struct gimple_statement_call): Add fntype field.
20824         (gimple_call_fntype): Adjust.
20825         (gimple_call_set_fntype): New function.
20826         * gimple.c (gimple_build_call_1): Set the call function type.
20827         * gimplify.c (gimplify_call_expr): Preserve the function
20828         type the frontend used for the call.
20829         (gimplify_modify_expr): Likewise.
20830         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20831         function type.
20832         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20833         function type.
20834         * tree-ssa.c (useless_type_conversion_p): Function pointer
20835         conversions are useless.
20836
20837 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20838
20839         * cgraph.h (cgraph_node): Remove function declaration.
20840         (cgraph_create_node): Declare.
20841         (cgraph_get_create_node): Likewise.
20842         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20843         Updated all callers.
20844         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20845         the decl does not already exist.  Call cgraph_get_create_node instead
20846         of cgraph_node.
20847         (cgraph_get_create_node): New function.
20848         (cgraph_same_body_alias): Update comment.
20849         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20850         assert it does not return NULL.
20851         (cgraph_update_edges_for_call_stmt): Likewise.
20852         (cgraph_clone_edge): Likewise.
20853         (cgraph_create_virtual_clone): Likewise.
20854         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20855         instead of cgraph_node.
20856         (cgraph_add_new_function): Call cgraph_create_node or
20857         cgraph_get_create_node instead of cgraph_node.
20858         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20859         instead of cgraph_node.
20860         (record_eh_tables): Likewise.
20861         (mark_address): Likewise.
20862         (mark_load): Likewise.
20863         (build_cgraph_edges): Call cgraph_get_create_node instead
20864         of cgraph_node.
20865         (rebuild_cgraph_edges): Likewise.
20866         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20867         instead of cgraph_node.
20868         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20869         cgraph_node.
20870         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20871         cgraph_create_node instead of cgraph_node.
20872         * c-decl.c (finish_function): Call cgraph_get_create_node instead
20873         of cgraph_node.
20874         * lto-cgraph.c (input_node): Likewise.
20875         * lto-streamer-in.c (input_function): Likewise.
20876         * varasm.c (mark_decl_referenced): Likewise.
20877         (assemble_alias): Likewise.
20878
20879 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20880
20881         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20882         instead of cgraph_node and assert it does not return NULL.
20883         * lto-streamer-in.c (lto_read_body): Likewise.
20884         * omp-low.c (new_omp_context): Likewise.
20885         (create_task_copyfn): Likewise.
20886         * tree-emutls.c (lower_emutls_function_body): Likewise.
20887         * matrix-reorg.c (transform_allocation_sites): Likewise.
20888
20889 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20890
20891         PR c/48552
20892         * c-typeck.c (build_asm_expr): Error out on attempts to use
20893         void type outputs or inputs for constraints that allow reg or
20894         don't allow memory.
20895
20896 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
20897             Richard Earnshaw  <rearnsha@arm.com>
20898
20899         PR target/48250
20900         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20901         to use sign-magnitude offsets. Reject unsupported unaligned
20902         cases. Add detailed description in comments.
20903         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20904         condition from TARGET_32BIT to TARGET_ARM.
20905
20906 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
20907
20908         * tree.h (struct typed_tree): New.
20909         (struct tree_common): Include it instead of tree_base.
20910         (TREE_TYPE): Update for new location of type field.
20911         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20912         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20913         (union tree_node): Add typed field.
20914         * treestruct.def (TS_TYPED): New.
20915         * lto-streamer.c (check_handled_ts_structures): Handle it.
20916         * tree.c (MARK_TS_TYPED): New macro.
20917         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20918
20919 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
20920
20921         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20922         (force_nonfallthru): Do not alter the loop nest if no basic block
20923         was created.
20924
20925 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20926
20927         * config/i386/sse.md (VI): New mode iterator.
20928         (SSEMODEI): Remove.
20929         (AVX256MODEI): Ditto.
20930         (AVXMODEF4P): Ditto.
20931         (avxvecpsmode): Ditto.
20932         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
20933         (sse2_andnot<mode>3): New expander.
20934         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20935         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
20936         (<any_logic:code><mode>3): Use VI mode iterator.
20937         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20938         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
20939         (*andnottf3): Handle AVX three-operand constraints.
20940         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20941
20942 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20943             Robert Millan  <rmh@gnu.org>
20944
20945         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20946         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20947         GNU_USER_DYNAMIC_LINKER64): Define.
20948         (REG_NAME): Don't undefine.
20949         (MD_UNWIND_SUPPORT): Undefine.
20950         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20951         (REG_NAME): Don't undefine.
20952         (MD_UNWIND_SUPPORT): Undefine.
20953         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20954
20955 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20956
20957         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20958         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20959
20960 2011-04-11  Xinliang David Li  <davidxl@google.com>
20961
20962         * value-profile.c (check_ic_target): New function.
20963         (gimple_ic_transform): Sanity check indirect call target.
20964         * gimple-low.c (gimple_check_call_args): Interface change.
20965         (gimple_check_call_matching_types): New function.
20966         * tree-inline.c (tree_can_inline_p): Call new function.
20967
20968 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
20969
20970         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20971         tree-pretty-print.h & realmpfr.h.
20972
20973 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
20974
20975         PR middle-end/48464
20976         * ira.c (setup_pressure_classes): Fix typo in loop condition.
20977         (setup_allocno_and_important_classes): Ditto.
20978
20979 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20980
20981         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20982         GNU_USER_DYNAMIC_LINKER.
20983         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20984         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20985         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20986         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20987         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20988         GNU_USER_TARGET_OS_CPP_BUILTINS.
20989         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20990         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20991         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20992         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20993         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20994         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20995         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20996         GNU_USER_TARGET_OS_CPP_BUILTINS.
20997         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20998         GNU_USER_DYNAMIC_LINKER.
20999         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21000         GNU_USER_TARGET_OS_CPP_BUILTINS.
21001         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
21002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21003         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
21004         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21005         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
21006         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
21007         GNU_USER_DYNAMIC_LINKER64): Remove.
21008         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
21009         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21010         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21011         GNU_USER_DYNAMIC_LINKER.
21012         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21013         GNU_USER_TARGET_OS_CPP_BUILTINS.
21014         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21015         GNU_USER_TARGET_OS_CPP_BUILTINS.
21016         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
21017         to GNU_USER_TARGET_OS_CPP_BUILTINS.
21018         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
21019         GNU_USER_TARGET_OS_CPP_BUILTINS.
21020         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
21021         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
21022         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21023         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
21024         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21025         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21026         GNU_USER_DYNAMIC_LINKER.
21027         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
21028         GNU_USER_TARGET_OS_CPP_BUILTINS.
21029         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
21030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21031         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21032         GNU_USER_DYNAMIC_LINKER.
21033         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21034         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21035         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
21036         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21037         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21038         GNU_USER_DYNAMIC_LINKER.
21039         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
21040         GNU_USER_DYNAMIC_LINKERN32.
21041         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
21042         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
21043         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
21044         GNU_USER_DYNAMIC_LINKER32.
21045         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
21046         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21047         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21048         GNU_USER_DYNAMIC_LINKER.
21049         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
21050         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21051         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
21052         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21053         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21054         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
21055         GNU_USER_DYNAMIC_LINKER32.
21056         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
21057         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
21058         GNU_USER_DYNAMIC_LINKER.
21059         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
21060         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21061         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21062         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
21063         GNU_USER_DYNAMIC_LINKER64.
21064         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
21065         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21066         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21067         GNU_USER_DYNAMIC_LINKER.
21068         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
21069         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21070         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
21071         GNU_USER_DYNAMIC_LINKER.
21072         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
21073         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21074         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
21075         GNU_USER_DYNAMIC_LINKER32.
21076         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21077         GNU_USER_DYNAMIC_LINKER64.
21078         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
21079         GNU_USER_DYNAMIC_LINKER64.
21080         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
21081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21082         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
21083         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
21084         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
21085
21086 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21087
21088         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
21089         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
21090         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
21091         GNU_USER_DYNAMIC_LINKER.
21092         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21093         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
21094         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
21095         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
21096         GNU_USER_DYNAMIC_LINKER64.
21097         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
21098         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
21099         GNU_USER_LINK_EMULATION.
21100         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
21101         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
21102         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
21103         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
21104         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
21105         CPP_SPEC, CC1_SPEC): Remove.
21106         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
21107         (GNU_USER_DYNAMIC_LINKER): Define.
21108         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
21109         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
21110         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
21111         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
21112         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
21113         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
21114         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21115         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21116         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21117         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21118         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21119         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21120         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21121         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21122         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21123         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21124         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21125         GNU_USER_DYNAMIC_LINKER.
21126         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21127         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21128         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21129         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21130         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21131         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21132         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21133         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21134         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21135         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21136
21137 2011-04-11  Kai Tietz  <ktietz@redhat.com>
21138
21139         PR target/9601
21140         PR target/11772
21141         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21142         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21143         comment.
21144         (ix86_is_msabi_thiscall): Removed.
21145         (ix86_is_type_thiscall): Likewise.
21146         (ix86_get_callcvt): New function.
21147         (ix86_comp_type_attributes): Simplify check.
21148         (ix86_function_regparm): Use ix86_get_callcvt for calling
21149         convention attribute checks.
21150         (ix86_return_pops_args): Likewise.
21151         (ix86_static_chain): Likewise.
21152         (x86_this_parameter): Likewise.
21153         (x86_output_mi_thunk): Likewise.
21154         (ix86_function_type_abi): Optimize check for types without attributes.
21155         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21156         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21157         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21158         by flag-values.
21159         (IX86_BASE_CALLCVT): Helper macro.
21160         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21161         Use ix86_get_callcvt for calling convention attribute checks and avoid
21162         symbol-decoration for stdcall in TARGET_RTD case.
21163         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21164         Likewise.
21165         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21166         for declaration.
21167
21168 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21169
21170         * config/i386/sse.md (VI_128): New mode iterator.
21171         (VI12_128): Rename from SSEMODE12.
21172         (VI14_128): Rename from SSEMODE14.
21173         (VI124_128): New mode iterator.
21174         (VI24_128): Rename from SSEMODE248.
21175         (VI248_128): Rename from SSEMODE248.
21176         (SSEMODE124C8): Remove.
21177         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21178         (*sse2_<plusminus_insn><mode>3): Merge with
21179         *avx_<plusminus_insn><mode>3.
21180         (*mulv8hi3): Merge with *avx_mulv8hi3.
21181         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21182         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21183         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21184         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21185         (ashr<mode>3): Merge with *avx_ashr<mode>3.
21186         (lshr<mode>3): Merge with *avx_lshr<mode>3.
21187         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21188         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21189         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21190         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21191         (*<smaxmin:code>v8hi3): Ditto.
21192         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21193         (*<smaxmin:code>v16qi3): Ditto.
21194         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21195         (*sse2_eq<mode>3): Ditto.
21196         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21197         (*sse2_gt<mode>3): Ditto.
21198         (vcondv2di): Split out of vcond<mode>.
21199         (vconduv2di): Split out of vcondu<mode>.
21200
21201 2011-04-11  Richard Guenther  <rguenther@suse.de>
21202
21203         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21204         before calling tree_low_cst.
21205
21206 2011-04-11  Richard Guenther  <rguenther@suse.de>
21207
21208         * stor-layout.c (layout_type): Compute all array index size operations
21209         in the original type.
21210         (initialize_sizetypes): Add comment.
21211         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21212
21213 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21214
21215         * common.opt (Tbss=, Tdata=, Ttext=): New options.
21216
21217 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21218
21219         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21220         of cgraph_node, handle NULL return value.
21221         (cgraph_global_info): Likewise.
21222         (cgraph_rtl_info): Likewise.
21223         * tree-inline.c (estimate_num_insns): Likewise.
21224         * gimplify.c (unshare_body): Likewise.
21225         (unvisit_body): Likewise.
21226         (gimplify_body): Likewise.
21227         * predict.c (optimize_function_for_size_p): Likewise.
21228         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21229         (call_may_clobber_ref_p_1): Likewise.
21230         * varasm.c (function_section_1): Likewise.
21231         (assemble_start_function): Likewise.
21232
21233 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21234
21235         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21236         of cgraph_node.
21237         * final.c (rest_of_clean_state): Likewise.
21238         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21239         * passes.c (pass_init_dump_file): Likewise.
21240         (execute_all_ipa_transforms): Likewise.
21241         (function_called_by_processed_nodes_p): Likewise.
21242         * predict.c (maybe_hot_frequency_p): Likewise.
21243         (probably_never_executed_bb_p): Likewise.
21244         (compute_function_frequency): Likewise.
21245         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21246         (unnest_nesting_tree_1): Likewise.
21247         (lower_nested_functions): Likewise.
21248         * tree-optimize.c (execute_fixup_cfg): Likewise.
21249         (tree_rest_of_compilation): Likewise.
21250         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21251         * tree-sra.c (ipa_early_sra): Likewise.
21252         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21253         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21254         * ipa.c (record_cdtor_fn): Likewise.
21255         * ipa-inline.c (cgraph_early_inlining): Likewise.
21256         (compute_inline_parameters_for_current): Likewise.
21257         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21258         * ipa-pure-const.c (local_pure_const): Likewise.
21259         * ipa-split.c (split_function): Likewise.
21260         (execute_split_functions): Likewise.
21261         * cgraphbuild.c (build_cgraph_edges): Likewise.
21262         (rebuild_cgraph_edges): Likewise.
21263         (cgraph_rebuild_references): Likewise.
21264         (remove_cgraph_callee_edges): Likewise.
21265         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21266         (verify_cgraph_node): Likewise.
21267         (cgraph_analyze_functions): Likewise.
21268         (cgraph_preserve_function_body_p): Likewise.
21269         (save_inline_function_body): Likewise.
21270         (save_inline_function_body): Likewise.
21271         * tree-inline.c (copy_bb): Likewise.
21272         (optimize_inline_calls): Likewise.
21273
21274 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21275
21276         PR tree-optimization/48195
21277         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21278         ipa_check_create_edge_args.
21279         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21280         ipa_check_create_edge_args.
21281         * ipa-inline.c (inline_generate_summary): Do not call
21282         ipa_check_create_node_params and ipa_check_create_edge_args.
21283         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21284         ipa_check_create_edge_args.
21285
21286 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
21287
21288         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21289         instead of loop.
21290         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21291         * function.c (record_hard_reg_sets): Likewise.
21292         * ira.c (compute_regs_asm_clobbered): Likewise.
21293         * sched-deps.c (sched_analyze_1): Likewise.
21294         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21295
21296 2011-04-09  Xinliang David Li  <davidxl@google.com>
21297
21298         PR tree-optimization/PR48484
21299         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21300         has_valid_pred lazily
21301
21302 2011-04-09  Duncan Sands  <baldrick@free.fr>
21303
21304         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21305
21306 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21307
21308         * combine.c (combine_validate_cost): Adjust comments.  Set registered
21309         cost of I0 to zero at the end, if any.
21310
21311 2011-04-08  Xinliang David Li  <davidxl@google.com>
21312
21313         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21314         to insane profile data.
21315
21316 2011-04-08  Xinliang David Li  <davidxl@google.com>
21317
21318         * ipa-cp.c (ipcp_update_profiling): Correct
21319          negative scale factor due to insane profile data.
21320
21321 2011-04-08  Xinliang David Li  <davidxl@google.com>
21322
21323         * final.c (dump_basic_block_info): New function.
21324         (final): Dump basic block.
21325         (final_scan_insn): Remove old dump.
21326
21327 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
21328
21329         PR target/47829
21330         * config.gcc (i386-*-freebsd): Disable unwind table generation for
21331         crtbegin/crtend.
21332
21333 2011-04-08  Michael Matz  <matz@suse.de>
21334
21335         PR middle-end/48389
21336         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21337         functions.
21338         (rebuild_jump_labels): Call rebuild_jump_labels_1.
21339         * rtl.h (rebuild_jump_labels_chain): Declare.
21340         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21341         insns inserted on edges.
21342
21343 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
21344
21345         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21346         * config/arm/arm-arches.def: New.
21347         * config/arm/arm-opts.h: New.
21348         * config/arm/genopt.sh: New.
21349         * config/arm/arm-tables.opt: New (generated).
21350         * config/arm/arm.c (arm_handle_option, arm_target_help,
21351         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21352         (all_architectures): Get most table contents from arm-arches.def.
21353         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21354         arm_selected_tune here.
21355         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21356         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21357         (march=, mcpu=, mtune=): Use Enum and Var.
21358         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21359         (arm.o): Update dependencies.
21360
21361 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
21362
21363         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21364         of header_file.
21365         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21366         (write_typed_alloc_defns): Likewise.
21367         (main): Calls write_typed_alloc_defns with output_header.
21368
21369 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
21370
21371         PR inline-asm/48435
21372         * ira-color.c (setup_profitable_hard_regs): Add comments.
21373         Don't take prohibited hard regs into account.
21374         (setup_conflict_profitable_regs): Rename to
21375         get_conflict_profitable_regs.
21376         (check_hard_reg_p): Check prohibited hard regs.
21377
21378 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
21379
21380         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21381         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21382         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21383
21384 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21385
21386         PR target/48366
21387         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21388         move from floating point to shift amount register.
21389         (emit_move_sequence): Remove secondary reload support for floating
21390         point to shift amount amount register copies.
21391         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21392         amount register copies.
21393         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21394         register, return false if mode isn't a scalar integer mode.
21395         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21396
21397 2011-04-08  Richard Guenther  <rguenther@suse.de>
21398
21399         * gimple.c (gimple_call_flags): Remove kludge.
21400
21401 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21402
21403         * sel-sched.c (sel_region_init): Move call to
21404         sel_setup_region_sched_flags after setup_current_loop_nest.
21405
21406 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
21407
21408         PR rtl-optimization/48272
21409         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21410         init_insn_reg_pressure_info.  Adjust a caller.
21411         * sched-int.h (init_insn_reg_pressure_info): Declare.
21412         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21413         when sched-pressure is enabled.
21414
21415 2011-04-08  Richard Guenther  <rguenther@suse.de>
21416
21417         * gimple.c (gimple_set_modified): Do not queue calls to
21418         MODIFIED_NORETURN_CALLS here ...
21419         * tree-ssa-operands.c (update_stmt_operands): ... but here.
21420
21421 2011-04-08  Richard Guenther  <rguenther@suse.de>
21422
21423         PR lto/48467
21424         * toplev.c (lang_dependent_init): Do not open asm_out_file
21425         in WPA mode, nor perform debug machinery initialization.
21426         (finalize): Do not unlink asm_out_file in WPA mode.
21427
21428 2011-04-08  Richard Guenther  <rguenther@suse.de>
21429
21430         * gimple.h (gimple_call_fntype): New function.
21431         (gimple_call_return_type): Use it.
21432         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21433         * gimple-low.c (gimple_check_call_args): Likewise.
21434         * gimple.c (gimple_call_flags): Likewise.
21435         (gimple_call_arg_flags): Likewise.
21436         (gimple_call_return_flags): Likewise.
21437         * tree-cfg.c (verify_gimple_call): Likewise.
21438         (do_warn_unused_result): Likewise.
21439         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21440         * value-prof.c (gimple_ic_transform): Fix fndecl check.
21441
21442 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
21443
21444         PR rtl-optimization/48235
21445         * sel-sched.c (code_motion_process_successors): Recompute the last
21446         insn in basic block if control flow changed.
21447         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
21448         Update condition for ilist_remove.
21449
21450 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21451
21452         PR rtl-optimization/48302
21453         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21454         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
21455         it to record added preheader blocks.
21456         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
21457         on to sel_add_loop_preheaders.
21458         (sel_region_init): Move call to setup_current_loop_nest after
21459         sel_init_bbs.
21460
21461 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21462
21463         PR target/48273
21464         * cfgloop.h (loop_has_exit_edges): New helper.
21465         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21466         non-clonable.
21467         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21468         that have no exit edges.
21469
21470 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21471
21472         PR rtl-optimization/48442
21473         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
21474         all callers.  Adjust assert.
21475
21476 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
21477
21478         PR tree-optimization/48377
21479         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21480         is_packed to true even for types with smaller TYPE_ALIGN than
21481         TYPE_SIZE.
21482
21483 2011-04-08  Richard Guenther  <rguenther@suse.de>
21484
21485         PR bootstrap/48513
21486         * doc/tm.texi: Re-generate.
21487
21488 2011-04-08  Wei Guozhi  <carrot@google.com>
21489
21490         PR target/47855
21491         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21492         * config/arm/arm.c (arm_attr_length_push_multi): New function.
21493         * config/arm/arm.md (*push_multi): Change the length computation to
21494         call a C function.
21495
21496 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
21497
21498         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21499         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21500         * doc/tm.texi: Regenerate.
21501         * system.h (ASM_OUTPUT_BSS): Poison.
21502         * varasm.c (asm_output_bss): Remove function.
21503         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21504
21505         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21506         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21507         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21508         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21509         Likewise.
21510         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21511         Likewise.
21512         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21513         Likewise.
21514         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21515
21516 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21517
21518         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21519         EnumValue lines.
21520
21521 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21522
21523         * config/m68k/m68k.c (m68k_handle_option): Don't handle
21524         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21525         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21526         OPT_mcpu32.
21527         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21528         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21529         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21530         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21531         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21532         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21533         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21534         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21535         options.  Don't map other m68k options manually.  Don't handle
21536         old-style options as canonical.
21537         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21538         * doc/install.texi (m68k-*-*): Document binutils version requirement.
21539
21540 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
21541
21542         * basic-block.h (force_nonfallthru): Move to...
21543         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21544         (force_nonfallthru): ...here.
21545         * cfghooks.c (force_nonfallthru): New function.
21546         * cfgrtl.c (force_nonfallthru): Rename into...
21547         (rtl_force_nonfallthru): ...this.
21548         (commit_one_edge_insertion): Do not set AUX field.
21549         (commit_edge_insertions): Do not discover new basic blocks.
21550         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21551         (cfg_layout_rtl_cfg_hooks): Likewise.
21552         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21553         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
21554         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21555
21556 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
21557
21558         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21559         Remove macros.
21560
21561 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
21562
21563         * config/i386/sse.md: Update copyright year.
21564         (avxcvtvecmode): Remove.
21565         (sse_movhlps): Merge with *avx_movhlps.
21566         (sse_movlhps): Merge with *avx_movlhps.
21567         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21568         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21569         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21570         (sse_loadhps): Merge with *avx_loadhps.
21571         (sse_storelps): Merge with *avx_storelps.
21572         (sse_loadlps): Merge with *avx_loadlps.
21573         (sse_movss): Merge with *avx_movss.
21574         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21575         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21576         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21577         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21578         (vec_set<mode>_0): Ditto.
21579         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21580         (sse4_1_insertps): Merge with *avx_insertps.
21581         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21582         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21583         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21584         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21585         (sse2_storehpd): Merge with *avx_storehpd.
21586         (sse2_loadhpd): Merge with *avx_loadhpd.
21587         (sse2_loadlpd): Merge with *avx_loadlpd.
21588         (sse2_movsd): Merge with *avx_movsd.
21589         (*vec_concatv2df): Merge with *vec_concatv2df.
21590
21591 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
21592
21593         PR debug/48343
21594         * combine.c (combine_instructions): Add last_combined_insn,
21595         update it if insn is after it, pass it to all try_combine calls.
21596         (try_combine): Add last_combined_insn parameter, pass it instead of
21597         i3 to propagate_for_debug.
21598
21599 2011-04-07  Nick Clifton  <nickc@redhat.com>
21600
21601         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21602         to handle MDR <-> data register transfers.
21603         (movhi_internal): Likewise.
21604
21605 2011-04-07  Alan Modra  <amodra@gmail.com>
21606
21607         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21608         previous stack info.
21609
21610 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21611
21612         PR target/43920
21613         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
21614         flow_find_cross_jump.  Swap variables to implement backward replacement.
21615         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21616
21617 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21618
21619         PR target/43920
21620         * cfgcleanup.c (walk_to_nondebug_insn): New function.
21621         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
21622         and bb2.
21623         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21624         src1 or src2.  Redirect edges to the last basic block.  Update
21625         frequency and count on multiple basic blocks in case of fallthru.
21626
21627 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21628
21629         PR target/43920
21630         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21631         function.
21632         (old_insns_match_p): Change return type.  Replace return false/true
21633         with return dir_none/dir_both.  Use can_replace_by.
21634         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
21635         direction from dir_p.  Register replacement direction in dir, last_dir
21636         and afterlast_dir.  Handle new return type of old_insns_match_p using
21637         merge_dir.  Return replacement direction in dir_p.
21638         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21639         return type of old_insns_match_p.
21640         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21641         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21642         flow_find_cross_jump.
21643         * basic-block.h (enum replace_direction): New type.
21644         (flow_find_cross_jump): Add parameter to declaration.
21645
21646 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21647
21648         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21649         (AVXMODEDCVTPS2DQ): Ditto.
21650         (VEC_FLOAT_MODE): Ditto.
21651         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
21652         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21653         (<any_logic:code><mode>3): Use VF mode iterator.
21654         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21655         Use VF mode iterator.
21656         (copysign<mode>3): Use VF mode iterator.
21657         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
21658         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21659         (*<any_logic:code><MODEF:mode>3): Merge with
21660         *avx_<any_logic:code><MODEF:mode>3.
21661         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21662         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21663         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21664         (avx_cvtdq2ps<avxmodesuffix>): Remove.
21665         (sse2_cvtdq2ps): Use %v modifier.
21666         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21667         (avx_cvtps2dq<avxmodesuffix>): Remove.
21668         (sse2_cvtps2dq): Use %v modifier.
21669         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21670         (avx_cvttps2dq<avxmodesuffix>): Remove.
21671         (sse2_cvttps2dq): Use %v modifier.
21672         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21673         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21674         (sse2_cvtsd2siq): Fix insn template.
21675         (sse2_cvtsd2siq_2): Ditto.
21676         (sse2_cvttsd2siq): Ditto.
21677         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21678         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21679
21680 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21681
21682         * gcov-io.c: Use GCC Runtime Library Exception.
21683
21684 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
21685
21686         PR debug/48466
21687         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21688         as base_reg whatever register reg has been eliminated to, instead
21689         of hardcoding STACK_POINTER_REGNUM.
21690
21691 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21692
21693         * doc/tm.texi.in: Document C target hooks as separate from general
21694         target hooks.
21695         * doc/tm.texi: Regenerate.
21696         * genhooks.c (struct hook_desc): Add docname field.
21697         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
21698         docname field.
21699         (hook_array): Include c-target.def.
21700         (emit_documentation): Use docname field in output.
21701         (emit_init_macros): Take docname argument.  Only emit definitions
21702         for hooks matching docname.
21703         (main): Expect additional arguments in all cases.  Pass argument
21704         to emit_init_macros.
21705         * target.def: Move initial macro definitions and comments to
21706         target-hooks-macros.h.
21707         (gcc_targetcm): Move to c-family/c-target.def.
21708         * target.h (targetcm): Move declaration to c-family/c-target.h.
21709         * targhooks.c (default_handle_c_option): Move to
21710         c-family/c-opts.c.
21711         * targhooks.h (default_handle_c_option): Move declaration to
21712         c-family/c-common.h.
21713         * target-hooks-macros.h: New file.
21714         * config.gcc (target_has_targetcm): Define and use to add to
21715         c_target_objs and cxx_target_objs.
21716         * config/default-c.c: New file.
21717         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21718         of target.h and target-def.h.
21719         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21720         (darwin_objc_construct_string, darwin_cfstring_ref_p,
21721         darwin_check_cfstring_format_arg): Make static.
21722         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21723         TARGET_STRING_OBJECT_REF_TYPE_P,
21724         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21725         * config/darwin-protos.h (darwin_objc_construct_string,
21726         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21727         declare.
21728         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21729         TARGET_STRING_OBJECT_REF_TYPE_P,
21730         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21731         * config/t-darwin (darwin-c.o): Update dependencies.
21732         * system.h (TARGET_HAS_TARGETCM): Poison.
21733         * Makefile.in (TARGET_H): Update.
21734         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21735         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21736         (default-c.o): New target.
21737         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21738         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21739         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
21740         c-target.def.
21741         (build/genhooks.o): Update dependencies.
21742
21743 2011-04-06  Richard Guenther  <rguenther@suse.de>
21744
21745         * ipa-inline.c (enum inlining_mode): Remove.
21746         (cgraph_flatten): Use some other token.
21747         (cgraph_edge_early_inlinable_p): New function, split out from ...
21748         (cgraph_perform_always_inlining): New function, split out from ...
21749         (cgraph_decide_inlining_incrementally): ... here.
21750         (cgraph_mark_inline_edge): Adjust.
21751         (cgraph_early_inlining): Re-structure.
21752         (pass_early_inline): Require SSA form.
21753
21754 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
21755             Julian Brown  <julian@codesourcery.com>
21756             Mark Shinwell  <shinwell@codesourcery.com>
21757
21758         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21759         LO_REGS only for Thumb-1.
21760         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21761         be used in short instructions when optimising for size on Thumb-2.
21762
21763 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21764
21765         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21766         associated with user returns to be preserved.
21767
21768 2011-04-06  Tristan Gingold  <gingold@adacore.com>
21769
21770         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21771         symbol_queue_size, DBXOUT_DECR_NESTING,
21772         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21773         if XCOFF_DEBUGGING_INFO.
21774
21775 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21776
21777         * config/i386/i386.md (attribute isa): New.
21778         (attribute enabled): New.
21779         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21780         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21781         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21782         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21783         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21784         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21785         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21786         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21787
21788         * config/i386/sse.md (VF): New mode iterator.
21789         (VF1): Ditto.
21790         (VF2): Ditto.
21791         (VF_128): Ditto.
21792         (SSEMODEF4): Remove.
21793         (attribute sse): Handle V8SF and V4DF modes.
21794         (<absneg:code><mode>2): Use VF mode iterator.
21795         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
21796         mode iterator.
21797         (<plusminus_insn><mode>3): Use VF mode iterator.
21798         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21799         Use VF mode iterator.
21800         (<sse>_vm<plusminus_insn><mode>3): Merge with
21801         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
21802         (mul<mode>3): Use VF mode iterator.
21803         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
21804         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
21805         mode iterator.
21806         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21807         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21808         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
21809         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
21810         mode iterator.
21811         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21812         Use VF1 mode iterator.
21813         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21814         (sqrt<VF2:mode>2): New expander.
21815         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21816         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21817         and sqrtv2df2.  Use VF mode iterator.
21818         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
21819         mode iterator.
21820         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21821         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21822         Use VF1 mode iterator.
21823         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21824         (<smaxmin:code><mode>3): Use VF mode iterator.
21825         (*<smaxmin:code><mode>3_finite): Merge with
21826         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
21827         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21828         (<sse>_vm<smaxmin:code><mode>2): Merge with
21829         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
21830         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
21831         mode iterator.
21832         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
21833         mode iterator.
21834         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21835         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21836         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21837         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21838         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
21839         VF mode iterator.
21840         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21841         Use VF_128 mode iterator.
21842         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
21843         mode iterator.
21844         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
21845         VF_128 mode iterator.
21846         (vcond<mode>): Use VF mode iterator.
21847         * config/i386/predicates.md (sse_comparison_operator): Merge with
21848         avx_comparison_float_operator.  Do not declare as special_predicate.
21849         * config/i386/i386.c (struct builtin_description): Update for renamed
21850         compare patterns.
21851         (ix86_expand_args_builtin): Ditto.
21852         (ix86_expand_sse_compare_mask): Ditto.
21853
21854 2011-04-06  Richard Guenther  <rguenther@suse.de>
21855
21856         * tree-inline.c (estimate_num_insns): For calls simply account
21857         for all passed arguments and a used return value.
21858
21859 2011-04-06  Richard Guenther  <rguenther@suse.de>
21860
21861         PR tree-optimization/47663
21862         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21863         call_stmt_time fields.
21864         (cgraph_edge_inlinable_p): Declare.
21865         (cgraph_edge_recursive_p): New inline function.
21866         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21867         (cgraph_clone_edge): Copy it.
21868         * ipa-inline.c (cgraph_estimate_edge_time): New function.
21869         Account for call stmt time.
21870         (cgraph_estimate_time_after_inlining): Take edge argument.
21871         (cgraph_estimate_edge_growth): Account call stmt size.
21872         (cgraph_estimate_size_after_inlining): Take edge argument.
21873         (cgraph_mark_inline_edge): Adjust.
21874         (cgraph_check_inline_limits): Likewise.
21875         (cgraph_recursive_inlining_p): Remove.
21876         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21877         (cgraph_decide_recursive_inlining): Take edge argument and
21878         adjust.
21879         (cgraph_decide_inlining_of_small_functions): Do not avoid
21880         diags for recursive inlining here.
21881         (cgraph_flatten): Adjust.
21882         (cgraph_decide_inlining_incrementally): Likewise.
21883         (estimate_function_body_sizes): Remove call cost handling.
21884         (compute_inline_parameters): Initialize caller edge call costs.
21885         (cgraph_estimate_edge_growth): New function.
21886         (cgraph_estimate_growth): Use it.
21887         (cgraph_edge_badness): Likewise.
21888         (cgraph_check_inline_limits): Take an edge argument.
21889         (cgraph_decide_inlining_of_small_functions): Adjust.
21890         (cgraph_decide_inlining): Likewise.
21891         * tree-inline.c (estimate_num_insns): Only account for call
21892         return value if it is used.
21893         (expand_call_inline): Avoid diagnostics on recursive inline
21894         functions here.
21895         * lto-cgraph.c (lto_output_edge): Output edge call costs.
21896         (input_edge): Input edge call costs.
21897
21898 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21899
21900         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21901
21902 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
21903
21904         * doc/invoke.texi (Spec Files): Fix typo.
21905
21906 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21907
21908         * profile.c (branch_prob): Move declaration of local variable.  Remove
21909         obsolete ??? comment.  Expand the location explicitly instead of using
21910         the LOCATION_FILE and LOCATION_LINE macros.
21911
21912 2011-04-06  Wei Guozhi  <carrot@google.com>
21913
21914         PR target/47855
21915         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21916         (arm_cond_branch): Likewise.
21917         (arm_cond_branch_reversed): Likewise.
21918         (arm_jump): Likewise.
21919         (push_multi): Likewise.
21920         * config/arm/constraints.md (Py): New constraint.
21921
21922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21923
21924         PR bootstrap/48471
21925         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21926         Move these...
21927         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21928         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21929         #ifdef DBX_DEBUGGING_INFO.
21930
21931 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
21932
21933         PR bootstrap/48403
21934         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21935         if old and new states differ.
21936
21937 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21938
21939         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21940         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21941         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21942         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21943         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21944         mcfv4e): Use Alias.
21945         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21946         ColdFire options to -mcpu= options.
21947
21948 2011-04-05  Jeff Law  <law@redhat.com>
21949
21950         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21951         check if BB is a successor of LOOP->header and return
21952         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21953
21954 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21955
21956         * cprop.c (struct reg_use): Remove.
21957         (reg_use_table): Make an array of RTX.
21958         (find_used_regs, constprop_register, local_cprop_pass,
21959         bypass_block): Simplify users of reg_use_table.
21960         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
21961         on one of the uses found by find_used_regs.
21962
21963 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21964
21965         PR bootstrap/48469
21966         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21967         declaration.
21968
21969 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21970
21971         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21972         as an rtx.
21973         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21974
21975 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21976
21977         PR middle-end/48441
21978         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21979
21980 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21981
21982         * combine.c: Include obstack.h.
21983         (struct insn_link): Define.
21984         (uid_log_links): Adjust type.
21985         (FOR_EACH_LOG_LINK): New macro.
21986         (insn_link_obstack): Declare.
21987         (alloc_insn_link): Define.
21988         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
21989         type of link variables.
21990         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21991         (try_combine, record_promoted_values, distribute_notes): Likewise.
21992         (distribute_links): Likewise.  Tweak prototype.
21993         (clear_log_links): Delete.
21994         (adjust_for_new_dest): Call alloc_insn_link.
21995         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21996
21997 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21998
21999         * gcse.c (modify_mem_list): Convert to an array of VECs.
22000         (canon_modify_mem_list, compute_transp): Tweak formatting.
22001         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
22002         (load_killed_in_block_p): Likewise.
22003         (record_last_mem_set_info): Likewise.
22004         (clear_modify_mem_tables): Likewise.
22005
22006 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22007
22008         PR middle-end/48461
22009         * function.c (emit_use_return_register_into_block): Only define if
22010         HAVE_return.
22011
22012 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
22013
22014         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
22015
22016 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
22017
22018         * config/rx/rx-opts.h: New.
22019         * config/rx/rx.c (rx_cpu_type): Remove.
22020         (rx_handle_option): Don't assert that global structures are in
22021         use.  Access variables via opts pointer.  Defer most handling of
22022         OPT_mint_register_.  Use error_at.
22023         (rx_option_override): Handle deferred OPT_mint_register_ here.
22024         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
22025         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
22026         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
22027         (rx_cpu_types): New Enum and EnumValue entries.
22028         (mint-register=): Use Defer and use Var accordingly.
22029
22030 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22031
22032         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
22033         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
22034         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
22035         Move these...
22036         (debug_free_queue, debug_nesting, symbol_queue_index):
22037         ...and these...
22038         * dbxout.c: ...to here.  Make static.
22039
22040 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
22041
22042         * gcse.c (modify_pair): Define.  Define a VEC of it.
22043         (canon_modify_mem_list): Convert to an array of VECs.
22044         (free_insn_expr_list_list): Delete.
22045         (clear_modify_mem_tables): Call VEC_free instead.
22046         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
22047         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
22048         (canon_list_insert, compute_transp): Likewise.
22049
22050 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22051
22052         PR target/43920
22053         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
22054         for size.
22055
22056 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22057
22058         PR target/43920
22059         * function.c (emit_use_return_register_into_block): New function.
22060         (thread_prologue_and_epilogue_insns): Use
22061         emit_use_return_register_into_block.
22062
22063 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22064
22065         PR target/43920
22066         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
22067         insn.
22068
22069 2011-04-05  Tom de Vries  <tom@codesourcery.com>
22070
22071         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
22072
22073 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
22074
22075         * config/arm/arm.md (define_constants for unspec): Replace with
22076         define_c_enum.
22077         (define_constants for unspecv): Replace with define_c_enum.
22078         * config/arm/neon.md (define_constants for unspec): Replace with
22079         define_c_enum.
22080
22081 2011-04-04  Richard Henderson  <rth@redhat.com>
22082
22083         PR bootstrap/48400
22084         * dwarf2out.c (output_line_info): Always emit line info from
22085         at least one section.
22086         (dwarf2out_init): Create text_section_line_info here ...
22087         (set_cur_line_info_table): ... not here.
22088
22089 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
22090
22091         PR target/48380
22092         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
22093         not called.
22094
22095         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
22096
22097 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
22098
22099         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
22100         (expr_equiv_p): Remove.
22101         (insert_set_in_table): Look at <dest, src> pair instead of expr.
22102         (hash_scan_set): Update call to insert_set_in_table.
22103         (dump_hash_table): Dump <dest, src> pair.
22104         (lookup_set): Simplify.  Lookup <dest, src> pair.
22105         (compute_transp): Remove, fold heavily simplified code into...
22106         (compute_local_properties): ...here.  Expect COMP and TRANSP
22107         unconditionally.
22108         (find_avail_set): Take set directly from struct expr.
22109         (find_bypass-set): Likewise.
22110         (bypass_block): Likewise.
22111         (cprop_insn): Likewise.  Remove redundant INSN_P test.
22112
22113         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
22114         checks on form of COND from find_implicit_sets to here.
22115         (find_implicit_sets): Cleanup control flow. Split critical edges
22116         if it exposes implicit sets.  Allocate/resize implicit_sets as
22117         necessary.
22118         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22119         changed something.  Run df_analyze after find_implicit_sets if any
22120         edges were split.  Do not allocate implicit_sets here.
22121
22122         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22123         (gcse_obstack): Renamed to cprop_obstack.
22124         (GNEW, GNEWVEC, GNEWVAR): Remove.
22125         (gmalloc): Remove.
22126         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22127         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22128         (gcse_alloc): Likewise, and rename to cprop_alloc.
22129         (alloc_gcse_men, free_gcse_mem): Remove.
22130         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22131         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22132         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22133
22134         * cprop.c (oprs_not_set_p): Remove.
22135         (mark_set, mark_clobber): Remove.
22136         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22137         (reg_not_set_p): New function.
22138         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22139         (cprop_insn): Likewise.
22140         (cprop_jump): Use FOR_EACH_EDGE.
22141
22142 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
22143
22144         PR bootstrap/48403
22145         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22146         (rank_for_schedule): Use scheduled_insns vector instead of
22147         last_scheduled_insn.
22148         (ok_for_early_queue_removal): Likewise.
22149         (queue_to_ready): Search forward in nonscheduled_insns_begin if
22150         we have a dbg_cnt.
22151         (choose_ready): Likewise.
22152         (commit_schedule): Use VEC_iterate.
22153         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
22154         a dbg_cnt, use it and ensure the first insn is in the ready list.
22155         (haifa_sched_init): Allocate scheduled_insns.
22156         (sched_extend_ready_list): Don't allocate it; reserve space.
22157         (haifa_sched_finish): Free it.
22158
22159 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22160
22161         * optc-gen.awk: Always remove type from Variable entry before
22162         recording in var_seen.
22163
22164 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22165
22166         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22167         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22168         call to tidy_fallthru_edges.
22169
22170 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22171
22172         * doc/options.texi (ToLower): Document.
22173         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22174         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22175         * opts.h (cl_option): Add cl_tolower field.
22176         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22177         arguments with lowercase strings.
22178         * config/rx/rx.opt (mcpu=): Add ToLower.
22179         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22180         argument.
22181
22182 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22183
22184         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22185
22186 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22187
22188         * config/vax/vax.c: Include reload.h.
22189
22190 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
22191
22192         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22193         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22194         (sparc_preferred_reload_class): New function.
22195
22196 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
22197
22198         PR debug/48401
22199         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22200         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22201
22202 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
22203
22204         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22205         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22206
22207 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
22208
22209         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22210         (ASM_OUTPUT_ALIGNED_BSS): Define.
22211
22212 2011-04-03  Michael Matz  <matz@suse.de>
22213
22214         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22215         and next_slot members.
22216         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22217         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22218         (lto_streamer_cache_append): Declare.
22219         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22220         unsigned index, remove offset parameter, ensure that we append
22221         or update existing entries.
22222         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22223         parameter, update next_slot for append.
22224         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22225         parameter.
22226         (lto_streamer_cache_insert_at): Likewise.
22227         (lto_streamer_cache_append): New function.
22228         (lto_streamer_cache_lookup): Use unsigned index.
22229         (lto_streamer_cache_get): Likewise.
22230         (lto_record_common_node): Don't test tree_node_can_be_shared.
22231         (preload_common_node): Adjust call to lto_streamer_cache_insert.
22232         (lto_streamer_cache_delete): Don't free offsets member.
22233         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22234         (lto_output_string_with_length): Use lto_output_data_stream.
22235         (lto_output_tree_header): Remove ix parameter, don't write it.
22236         (lto_output_builtin_tree): Likewise.
22237         (lto_write_tree): Adjust callers to above, don't track and write
22238         offset, write unsigned index.
22239         (output_unreferenced_globals): Don't emit all global vars.
22240         (write_global_references): Use unsigned indices.
22241         (lto_output_decl_state_refs): Likewise.
22242         (write_symbol): Likewise.
22243         * lto-streamer-in.c (lto_input_chain): Move earlier.
22244         (input_function): Use unsigned index.
22245         (input_alias_pairs): Don't read and then ignore all global vars.
22246         (lto_materialize_tree): Remove ix_p parameter, don't read index,
22247         don't pass it back, use lto_streamer_cache_append.
22248         (lto_register_var_decl_in_symtab): Use unsigned index.
22249         (lto_register_function_decl_in_symtab): Likewise.
22250         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22251         index.
22252         (lto_get_builtin_tree): Don't read index, use
22253         lto_streamer_cache_append.
22254         (lto_read_tree): Adjust call to lto_materialize_tree.
22255
22256         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22257         don't use function calls in arguments to MIN.
22258
22259         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22260         twice.
22261
22262         * gimple.c (gimple_type_leader_entry): Mark deletable.
22263
22264 2011-04-03  Alan Modra  <amodra@gmail.com>
22265
22266         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22267
22268 2011-04-03  Michael Matz  <matz@suse.de>
22269
22270         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22271         an integer.
22272         * tree.h (tree_decl_non_common.vindex): Adjust comment.
22273
22274 2011-04-03  Michael Matz  <matz@suse.de>
22275
22276         * cgraphbuild.c (record_reference): Canonicalize constructor values.
22277         * gimple-fold.c (canonicalize_constructor_val): Accept being called
22278         without function context.
22279         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22280         current_function_decl and cfun.
22281
22282 2011-04-03  Michael Matz  <matz@suse.de>
22283
22284         * tree.c (decl_init_priority_insert): Don't create entry for
22285         default priority.
22286         (decl_fini_priority_insert): Ditto.
22287         (fields_compatible_p, find_compatible_field): Remove.
22288         * tree.h (fields_compatible_p, find_compatible_field): Remove.
22289         * gimple.c (gimple_compare_field_offset): Adjust block comment.
22290
22291 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
22292
22293         * combine.c (try_combine): Remove useless local variable.
22294
22295 2011-04-03  Richard Guenther  <rguenther@suse.de>
22296             Ira Rosen  <ira.rosen@linaro.org>
22297
22298         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22299         non-variable offsets and compare the remaining bases of the two
22300         accesses instead of looking for exact same data-ref.
22301
22302 2011-04-02  Kai Tietz  <ktietz@redhat.com>
22303
22304         PR target/48416
22305         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22306
22307         * i386.c (ix86_is_msabi_thiscall): New helper function.
22308         (ix86_is_type_thiscall): New helper function.
22309         (ix86_comp_type_attributes): Handle thiscall for method-functions
22310         special.
22311         (init_cumulative_args): Likewise.
22312         (find_drap_reg): Likewise.
22313         (ix86_static_chain): Likewise.
22314         (x86_this_parameter): Likewise.
22315         (x86_output_mi_thunk): Likewise.
22316
22317 2011-04-01  Olivier Hainque  <hainque@adacore.com>
22318             Nicolas Setton  <setton@adacore.com>
22319             Eric Botcazou  <ebotcazou@adacore.com>
22320
22321         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22322         (add_gnat_descriptive_type_attribute): New function.
22323         (gen_array_type_die): Call it.
22324         (gen_enumeration_type_die): Likewise.
22325         (gen_struct_or_union_type_die): Likewise.
22326         (modified_type_die): Likewise.
22327         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22328         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22329         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22330
22331 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22332
22333         PR bootstrap/48148
22334         * dwarf2out.c (resolve_addr): Don't call force_decl_die
22335         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22336
22337         Revert:
22338         2011-03-17  Richard Guenther  <rguenther@suse.de>
22339
22340         PR bootstrap/48148
22341         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22342         origin for decls in other ltrans units.
22343         (input_varpool_node): Likewise.
22344
22345 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22346
22347         PR middle-end/48335
22348         * expr.c (expand_assignment): Handle all possibilities
22349         if TO_RTX is CONCAT.
22350         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22351         (store_split_bit_field): If SUBREG_REG (op0) or
22352         op0 itself has smaller mode than word, return it
22353         for offset 0 and const0_rtx for out-of-bounds stores.
22354         If word is const0_rtx, skip it.
22355
22356 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
22357
22358         * config/h8300/h8300.c (print_operand_address): Rename to...
22359         (h8300_print_operand_address): ...this. Make static. Adjust comments.
22360         Call h8300_print_operand and h8300_print_operand_address instead of
22361         print_operand and print_operand_address. Declare.
22362         (print_operand): Renake to...
22363         (h8300_print_operand): ...this. Make static. Adjust comments.
22364         Call h8300_print_operand instead of print_operand. Declare.
22365         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22366         (h8300_register_move_cost): Likewise.
22367         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22368         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22369         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22370         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22371         * config/h8300/h8300-protos.h (print_operand): Delete.
22372         (print_operand_address): Delete.
22373
22374 2011-04-01  Richard Henderson  <rth@redhat.com>
22375
22376         PR 48400
22377         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22378         in strict mode before dwarf4.  Re-order tests to early out
22379         before switching sections.
22380
22381 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
22382
22383         * config/h8300/constraints.md: New file.
22384         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
22385         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22386         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22387         * config/h8300/predicates.md (bit_operand): Likewise.
22388         (incdec_operand): Use satisfies_constraint_M and
22389         satisfies_constraint_O.  Don't use C code block.
22390         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22391         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22392         (compute_mov_length): Use satisfies_constraint_G.
22393         (fix_bit_operand): Use satisfies_constraint_U.
22394         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22395         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22396         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22397         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22398         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22399         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22400         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22401         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22402         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22403         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22404         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22405         (EXTRA_MEMORY_CONSTRAINT): Delete.
22406
22407 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
22408             Michael Meissner  <meissner@linux.vnet.ibm.com>
22409
22410         PR target/48262
22411         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22412         operands, as per the specifications.
22413
22414         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22415         (vec_extract_evenv4sf): Ditto.
22416         (vec_extract_evenv8hi): Ditto.
22417         (vec_extract_evenv16qi): Ditto.
22418         (vec_extract_oddv4si): Ditto.
22419
22420 2011-03-31  Mark Wielaard  <mjw@redhat.com>
22421
22422         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22423         high_pc attribute if the CU has no associated code. Only output
22424         DW_AT_entry_pc for CU if not generating strict dwarf and
22425         dwarf_version < 4.
22426
22427 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
22428
22429         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22430         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22431         out of ...
22432         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22433         * final.c (final_start_function): Call the new function rather
22434         than using a NULL argument for dwarf2out_frame_debug.
22435
22436         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22437         that contains the prologue.
22438
22439         * haifa-sched.c (queue_insn): New arg REASON.  All callers
22440         changed.  Print it in debugging output.
22441
22442         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22443
22444         * sched-ebb.c (begin_schedule_ready): Remove second argument.
22445         Split most of the code into...
22446         (begin_move_insn): ... here.  New function.
22447         (ebb_sched_info): Add a pointer to it.
22448         * haifa-sched.c (scheduled_insns): New static variable.
22449         (sched_extend_ready_list): Allocate it.
22450         (schedule_block): Use it to record the order of scheduled insns.
22451         Perform RTL changes to move insns only after all scheduling
22452         decisions have been made.
22453         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22454         begin_move_insn field.
22455         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22456         * sched-int.h (struct haifa_sched_info): Remove second argument
22457         from begin_schedule_ready hook.  Add new member begin_move_insn.
22458         * sched-rgn.c (begin_schedule_ready): Remove second argument.
22459         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22460
22461         * haifa-sched.c (prune_ready_list): New function, broken out of
22462         schedule_block.
22463         (schedule_block): Use it.
22464
22465 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22466
22467         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22468
22469 2011-04-01  Kai Tietz  <ktietz@redhat.com>
22470
22471         * config.gcc (*-*-mingw*): Allow as option the
22472         posix threading model.
22473         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
22474         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22475         definition.
22476         (CPP_SPEC): Add pthread/no-pthread handling.
22477         (LIB_SPEC): Likewise.
22478         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22479         (LIB_SPEC): Likewise.
22480         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22481         flag to pass -pthread option for shared libgcc build.
22482         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22483         for shared libgcc build.
22484         * config/i386/t-mingw-pthread: New file.
22485         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22486         New define to enable use of library pthread by default.
22487         * config/i386/mingw.opt (pthread): New driver option.
22488         (no-pthread): New driver option.
22489         * config/i386/cygming.opt: Make sure trailing empty line is retained.
22490         * config/i386/mingw-w64.opt: Likewise.
22491
22492 2011-04-01  Gary Funck  <gary@intrepid.com>
22493
22494         * c-decl.c (grokdeclarator): Fix formatting.
22495
22496 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22497
22498         * expr.c (emit_block_move_via_movmem): Use n_generator_args
22499         instead of n_operands.
22500         (set_storage_via_setmem): Likewise.
22501         * optabs.c (maybe_gen_insn): Likewise.
22502         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22503         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22504         (mips_expand_builtin_direct): Likewise.
22505         * config/spu/spu.c (expand_builtin_args): Likewise.
22506
22507 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22508
22509         * recog.h (insn_data_d): Add n_generator_args.
22510         * genoutput.c (data): Likewise.
22511         (output_insn_data): Print it.
22512         (max_opno, num_dups): Delete.
22513         (scan_operands): Just fill in "d->operand[...]".
22514         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22515
22516 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22517
22518         * gensupport.h (pattern_stats): New structure.
22519         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22520         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22521         (max_operand_1, max_operand_vec): Delete.
22522         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22523
22524 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
22525
22526         * emit-rtl.c (emit_pattern_after_setloc): New function.
22527         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22528         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22529         (emit_pattern_after): New function.
22530         (emit_insn_after, emit_jump_insn_after): Call it.
22531         (emit_call_insn_after, emit_debug_insn_after): Likewise.
22532         (emit_pattern_before_setloc): New function.
22533         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22534         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22535         Likewise.
22536         (emit_pattern_before): New function.
22537         (emit_insn_before, emit_jump_insn_before): Call it.
22538         (emit_call_insn_before, emit_debug_insn_before): Likewise.
22539
22540 2011-03-31  Richard Henderson  <rth@redhat.com>
22541
22542         * dwarf2out.c (dw_separate_line_info_ref): Remove.
22543         (dw_separate_line_info_entry): Remove.
22544         (enum dw_line_info_opcode): New.
22545         (dw_line_info_entry): Use it.
22546         (dw_line_info_table, dw_line_info_table_p): New.
22547         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22548         (line_info_table, line_info_label_num): Remove.
22549         (line_info_table_in_use): Remove.
22550         (separate_line_info_table): Remove.
22551         (separate_line_info_table_allocated): Remove.
22552         (separate_line_info_table_in_use): Remove.
22553         (LINE_INFO_TABLE_INCREMENT): Remove.
22554         (line_info_label_num): New.
22555         (cur_line_info_table): New.
22556         (text_section_line_info, cold_text_section_line_info): New.
22557         (separate_line_info): New.
22558         (SEPARATE_LINE_CODE_LABEL): Remove.
22559         (print_dwarf_line_table): Remove.
22560         (debug_dwarf): Don't dump it.
22561         (output_one_line_info_table): New.
22562         (output_line_info): Use it.
22563         (new_line_info_table): New.
22564         (set_cur_line_info_table): New.
22565         (dwarf2out_switch_text_section): Use it.
22566         (dwarf2out_begin_function): Likewise.
22567         (push_dw_line_info_entry): New.
22568         (dwarf2out_source_line): Rewrite for new line info tables.
22569         (dwarf2out_init): Remove dead initailizations.
22570
22571 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22572
22573         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
22574         various flags.
22575         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22576         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22577         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22578         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22579         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22580         * opt-functions.awk (flag_init, switch_bit_fields): New.
22581         (switch_flags): Don't handle flags moved to bit-fields.  Don't
22582         generate CL_MISSING_OK or CL_SAVE.
22583         * optc-gen.awk: Update to generate bit-field output as well as
22584         flags field.
22585         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22586         bit-field instead of CL_REJECT_DRIVER flag.
22587         * opts-common.c (generate_canonical_option,
22588         decode_cmdline_option): Use bit-fields instead of CL_* flags.
22589         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22590         instead of CL_REJECT_NEGATIVE flag.
22591         * toplev.c (print_switch_values): Use cl_report bit-field instead
22592         of CL_REPORT flag.
22593
22594 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22595
22596         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22597         a zero minimum index only if it is redundant.
22598
22599 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
22600
22601         PR rtl-optimization/48381
22602         * ira-color.c (assign_hard_reg): Use hard reg set intersection
22603         instead of ira_class_hard_reg_index for calculating conflicting
22604         hard registers.
22605
22606 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
22607
22608         * cprop.c: Clean up hash table building.
22609         (reg_avail_info): Remove.
22610         (oprs_available_p): Remove.
22611         (record_last_reg_set_info): Remove.
22612         (record_last_set_info): Remove.
22613         (reg_available_p): New function.
22614         (gcse_constant_p): Do not treat unfolded conditions as constants.
22615         (make_set_regs_unavailable): New function.
22616         (hash_scan_set): Simplify with new reg_available_p.
22617         (compute_hash_table_work): Traverse insns stream only once.
22618         Do not compute reg_avail_info. Traverse insns in reverse order.
22619         Record implicit sets after recording explicit sets from the block.
22620
22621 2011-03-31  Michael Matz  <matz@suse.de>
22622
22623         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22624
22625 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
22626
22627         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22628         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22629         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22630         (h8300_mode_dependent_address_p): New function.
22631         (h8300_get_index): Make static.
22632
22633 2011-03-31  Jeff Law  <law@redhat.com>
22634
22635         * reload1.c (elimination_effects): Fix typo in recent change.
22636
22637         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22638         typo potentially leading to null pointer dereference.
22639
22640         * caller-save.c (new_saved_hard_reg): Eliminate return value.
22641         (setup_save_areas): Corresponding changes to avoid useless
22642         assignments.
22643
22644         * jump.c (reversed_comparison_code_parts): Avoid successive return
22645         statements when REVERSE_CONDITION is defined.
22646
22647         * expr.c (expand_assignment): Avoid useless assignments.
22648         (expand_expr_real_1): Likewise.
22649         (expand_expr_real_2): Avoid useless statements.
22650
22651         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22652
22653         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22654
22655         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22656         statements.
22657
22658         * stmt.c (expand_expr_stmt): Avoid useless assignment.
22659
22660 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22661
22662         PR target/47109
22663         * doc/tm.texi.in (TARGET_VERSION): Remove.
22664         * doc/tm.texi: Regenerate.
22665         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22666         * collect2.c (main): Don't use TARGET_VERSION.
22667         * mips-tdump.c (main): Don't use TARGET_VERSION.
22668         * mips-tfile.c (main): Don't use TARGET_VERSION.
22669         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22670         * config/rs6000/vxworksae.h: Remove.
22671         * config/alpha/alpha.h (TARGET_VERSION): Remove.
22672         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22673         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22674         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22675         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22676         * config/arm/arm.h (TARGET_VERSION): Remove.
22677         * config/arm/coff.h (TARGET_VERSION): Remove.
22678         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22679         * config/arm/elf.h (TARGET_VERSION): Remove.
22680         * config/arm/freebsd.h (TARGET_VERSION): Remove.
22681         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22682         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22683         * config/arm/pe.h (TARGET_VERSION): Remove.
22684         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22685         * config/arm/semi.h (TARGET_VERSION): Remove.
22686         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22687         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22688         * config/arm/vxworks.h (TARGET_VERSION): Remove.
22689         * config/avr/avr.h (TARGET_VERSION): Remove.
22690         * config/bfin/bfin.h (TARGET_VERSION): Remove.
22691         * config/fr30/fr30.h (TARGET_VERSION): Remove.
22692         * config/frv/frv.h (TARGET_VERSION): Remove.
22693         * config/h8300/h8300.h (TARGET_VERSION): Remove.
22694         * config/i386/cygwin.h (TARGET_VERSION): Remove.
22695         * config/i386/darwin.h (TARGET_VERSION): Remove.
22696         * config/i386/darwin64.h (TARGET_VERSION): Remove.
22697         * config/i386/djgpp.h (TARGET_VERSION): Remove.
22698         * config/i386/freebsd.h (TARGET_VERSION): Remove.
22699         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22700         * config/i386/gnu.h (TARGET_VERSION): Remove.
22701         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22702         * config/i386/i386elf.h (TARGET_VERSION): Remove.
22703         * config/i386/linux.h (TARGET_VERSION): Remove.
22704         * config/i386/linux64.h (TARGET_VERSION): Remove.
22705         * config/i386/lynx.h (TARGET_VERSION): Remove.
22706         * config/i386/mingw32.h (TARGET_VERSION): Remove.
22707         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22708         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22709         * config/i386/netware.h (TARGET_VERSION): Remove.
22710         * config/i386/nto.h (TARGET_VERSION): Remove.
22711         * config/i386/openbsd.h (TARGET_VERSION): Remove.
22712         * config/i386/vxworks.h (TARGET_VERSION): Remove.
22713         * config/ia64/elf.h (TARGET_VERSION): Remove.
22714         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22715         * config/ia64/hpux.h (TARGET_VERSION): Remove.
22716         * config/ia64/linux.h (TARGET_VERSION): Remove.
22717         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22718         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22719         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22720         * config/lm32/lm32.h (TARGET_VERSION): Remove.
22721         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22722         * config/m32c/m32c.h (TARGET_VERSION): Remove.
22723         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22724         * config/m32r/m32r.h (TARGET_VERSION): Remove.
22725         * config/m68k/linux.h (TARGET_VERSION): Remove.
22726         * config/m68k/m68k.h (TARGET_VERSION): Remove.
22727         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22728         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22729         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22730         * config/mep/mep.h (TARGET_VERSION): Remove.
22731         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22732         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22733         * config/mips/iris6.h (MACHINE_TYPE): Remove.
22734         * config/mips/linux.h (TARGET_VERSION): Remove.
22735         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22736         * config/mips/vxworks.h (TARGET_VERSION): Remove.
22737         * config/mmix/mmix.h (TARGET_VERSION): Remove.
22738         * config/mn10300/linux.h (TARGET_VERSION): Remove.
22739         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22740         * config/pa/pa.h (TARGET_VERSION): Remove.
22741         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22742         * config/picochip/picochip.h (TARGET_VERSION): Remove.
22743         * config/rs6000/aix.h (TARGET_VERSION): Remove.
22744         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22745         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22746         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22747         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22748         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22749         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22750         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22751         * config/rs6000/linux.h (TARGET_VERSION): Remove.
22752         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22753         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22754         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22755         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22756         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22757         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22758         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22759         * config/s390/linux.h (TARGET_VERSION): Remove.
22760         * config/s390/s390.h (TARGET_VERSION): Remove.
22761         * config/s390/tpf.h (TARGET_VERSION): Remove.
22762         * config/score/score.h (TARGET_VERSION): Remove.
22763         * config/sh/linux.h (TARGET_VERSION): Remove.
22764         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22765         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22766         * config/sh/sh.h (TARGET_VERSION): Remove.
22767         * config/sh/sh64.h (TARGET_VERSION): Remove.
22768         * config/sh/superh.h (TARGET_VERSION): Remove.
22769         * config/sh/vxworks.h (TARGET_VERSION): Remove.
22770         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22771         * config/sparc/linux.h (TARGET_VERSION): Remove.
22772         * config/sparc/linux64.h (TARGET_VERSION): Remove.
22773         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22774         TARGET_NAME32, TARGET_NAME): Remove.
22775         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22776         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22777         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22778         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22779         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22780         * config/spu/spu.h (TARGET_VERSION): Remove.
22781         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22782         * config/v850/v850.h (TARGET_VERSION): Remove.
22783         * config/vax/linux.h (TARGET_VERSION): Remove.
22784         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22785         * config/xtensa/elf.h (TARGET_VERSION): Remove.
22786         * config/xtensa/linux.h (TARGET_VERSION): Remove.
22787
22788 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22789
22790         PR target/48142
22791         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22792         frame-related from frame-unrelated adjustments to the stack pointer.
22793
22794 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
22795
22796         * common.opt (fdebug-types-section): Move earlier.
22797         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22798
22799 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
22800
22801         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22802         var.
22803
22804 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
22805
22806         * tree.h (CASE_CHAIN): Define.
22807         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22808         (gimple_redirect_edge_and_branch): Likewise.
22809
22810 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22811
22812         PR middle-end/48367
22813         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22814         calculation.
22815
22816 2011-03-30  Jeff Law  <law@redhat.com>
22817
22818         * PR bootstrap/48371
22819         * reload1.c (reload): Fix botch in last change.
22820
22821         * reload.h (struct reload): Fix typo introduced in last change.
22822
22823 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22824
22825         * config/arm/arm.opt (mhard-float, msoft-float): Mark
22826         Undocumented.  Remove help text.
22827         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22828         -mhard-float.
22829
22830 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22831
22832         * doc/options.texi (NegativeAlias): Document.
22833         (Alias): Mention NegativeAlias.
22834         * opt-functions.awk: Handle NegativeAlias.
22835         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22836         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22837         * opts.h (CL_NEGATIVE_ALIAS): Define.
22838         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22839         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22840         OPT_mspe_.
22841         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22842         Alias entries.
22843         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22844         mno-spe and mno-isel instead of mspe=no and -misel=no.
22845
22846 2011-03-29  Mark Wielaard  <mjw@redhat.com>
22847
22848         * common.opt (fdebug-types-section): New flag.
22849         * doc/invoke.texi: Document new -fno-debug-types-section flag.
22850         * dwarf2out.c (use_debug_types): New define.
22851         (struct die_struct): Mark die_id with GTY desc use_debug_types.
22852         (print_die): Guard output of type unit signatures using
22853         use_debug_types.
22854         (build_abbrev_table): Replace assert of dwarf_version >= 4
22855         with assert on use_debug_types.
22856         (size_of_die): Likewise.
22857         (unmark_dies): Likewise.
22858         (value_format): Decide AT_ref_external form on use_debug_types.
22859         (output_die): Replace dwarf_version version check guard with
22860         use_debug_types where appropriate.
22861         (modified_type_die): Likewise.
22862         (gen_reference_type_die): Likewise.
22863         (dwarf2out_start_source_file): Likewise.
22864         (dwarf2out_end_source_file): Likewise.
22865         (prune_unused_types_walk_attribs): Likewise.
22866         (dwarf2out_finish): Likewise.
22867
22868 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22869
22870         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22871
22872 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22873
22874         PR rtl-optimization/48332
22875         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22876         mode of input operand N and modeN to its actual mode.
22877
22878 2011-03-30  Jeff Law  <law@redhat.com>
22879
22880         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22881         define accessor macro.
22882         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22883         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22884         (reg_equiv_init): Likewise.
22885         (reg_equivs_size): New variable.
22886         (reg_equiv_init_size): Remove.
22887         (allocate_initial_values): Move prototype to here from....
22888         * integrate.h (allocate_initial_values): Remove prototype.
22889         * integrate.c: Include reload.h.
22890         (allocate_initial_values): Corresponding changes.
22891         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22892         (fix_reg_equiv_init, no_equiv): Corresponding changes.
22893         (update_equiv_regs): Corresponding changes.
22894         (ira): Corresponding changes.
22895         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22896         (push_secondary_reload): Corresponding changes.
22897         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22898         (make_memloc, find_reloads_address): Corresponding changes.
22899         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22900         (find_reloads_address_1): Corresponding changes.
22901         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22902         (refers_to_regno_for_reload_p): Corresponding changes.
22903         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22904         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22905         * reload1.c: Include ggc.h.
22906         (grow_reg_equivs): New function.
22907         (replace_pseudos_in, reload): Corresponding changes.
22908         (calculate_needs_all_insns, alter_regs): Corresponding changes.
22909         (eliminate_regs_1, elimination_effects): Corresponding changes.
22910         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22911         (delete_output_reload): Likewise.
22912         * caller-save.c (mark_referenced_regs): Corresponding changes.
22913         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22914         * frv/predicates.md (frv_load_operand): Corresponding changes.
22915         * microblaze/microblaze.c (double_memory_operand): Corresponding
22916         changes.
22917         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22918         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22919         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22920         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22921         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22922         changes.
22923         * pa/pa.c (emit_move_sequence): Corresponding changes.
22924         * vax/vax.c (nonindexed_address_p): Corresponding changes.
22925
22926 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22927
22928         PR target/47551
22929         * config/arm/arm.c (coproc_secondary_reload_class): Handle
22930         structure modes.  Don't check neon_vector_mem_operand for
22931         vector or structure modes.
22932
22933 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22934             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22935
22936         PR target/43590
22937         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22938         operand 1 and reshuffle the operands to match.
22939         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22940
22941 2011-03-30  Christian Schüler  <cschueler@gmx.de>
22942
22943         PR driver/48208
22944         * config/c.opt (F): Added 'Driver' to -F option.
22945
22946         PR driver/48260
22947         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22948           handler function.
22949         * config/darwin.opt: Added '-arch' option.
22950
22951 2011-03-30  Nick Clifton  <nickc@redhat.com>
22952
22953         * config/rx/rx.md: Add peepholes and patterns to combine
22954         extending loads and simple arithmetic instructions.
22955         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22956         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22957         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22958         modes to use pre-decrement and post-increment addressing.
22959         (rx_is_restricted_memory_address): Add range checking of REG+INT
22960         addresses.
22961         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
22962         (rx_memory_move_cost): Adjust cost of stores.
22963         (rx_adjust_insn_length): New function.
22964
22965 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
22966
22967         PR c/48305
22968         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22969         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22970         matching arg00/arg01 types.
22971
22972 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22973
22974         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22975         last_location to UNKNOWN_LOCATION.
22976
22977 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22978
22979         PR target/48349
22980         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22981         FLOAT_SSE_REGS.
22982
22983 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22984             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22985
22986         PR bootstrap/48337
22987         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22988         Init(PROCESSOR_V7).
22989         (sparc_cpu): Likewise.
22990         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22991         PROCESSOR_V7.
22992
22993 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22994
22995         PR target/48336
22996         PR middle-end/48342
22997         PR rtl-optimization/48345
22998         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22999         hard regs for given mode from profitable regs when doing secondary
23000         allocation.
23001
23002 2011-03-29  Jeff Law  <law@redhat.com>
23003
23004         PR bootstrap/48327
23005         * tree-ssa-threadupdate.c (struct redirection_data): Remove
23006         do_not_duplicate field.
23007         (lookup_redirection_data): Corresponding changes.
23008         (create_duplicates): Always create a template block.
23009         (redirect_edges): Remove code which reused the original block
23010         when it was going to become unreachable code.
23011         (thread_block): Don't set do_not_duplicate field.
23012
23013 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
23014
23015         * lto-opts.c (register_user_option_p, lto_register_user_option):
23016         Make type argument unsigned.
23017         * lto-streamer.h (lto_register_user_option): Make type argument
23018         unsigned.
23019         * opth-gen.awk: Make CL_* macros unsigned.
23020         * opts-common.c (find_opt): Make lang_mask argument unsigned.
23021         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
23022         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
23023         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
23024         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
23025         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
23026         (find_opt): Make lang_mask argument unsigned.
23027
23028 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23029
23030         PR rtl-optimization/48331
23031         PR rtl-optimization/48334
23032         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
23033         for any used algorithm.
23034
23035 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
23036
23037         * ira-conflicts.c (build_object_conflicts): Add unused attribute
23038         to parent_max.
23039
23040 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
23041
23042         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
23043         (alpha_option_override): Don't set alpha_sr_alias_set.
23044         (emit_frame_store_1): Use gen_frame_mem rather than calling
23045         set_mem_alias_set.
23046         (alpha_expand_epilogue): Ditto.
23047
23048 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
23049
23050         PR tree-optimization/48290
23051         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
23052         vectorization, check that relevant phis in the basic block after
23053         the inner loop are really inner loop's exit phis.
23054
23055 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
23056
23057         PR debug/48190
23058         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
23059         (cached_dw_loc_list_def): New structure.
23060         (cached_dw_loc_list): New typedef.
23061         (cached_dw_loc_list_table): New variable.
23062         (cached_dw_loc_list_table_hash): New function.
23063         (cached_dw_loc_list_table_eq): Likewise.
23064         (add_location_or_const_value_attribute): Take a bool cache_p.
23065         Cache the list when the parameter is true.
23066         (gen_formal_parameter_die): Update caller.
23067         (gen_variable_die): Likewise.
23068         (dwarf2out_finish): Likewise.
23069         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
23070         while generating debug info for the decl.
23071         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
23072         (dwarf2out_init): Initialize cached_dw_loc_list_table.
23073         (resolve_addr): Cache the result of resolving a chain of
23074         location lists.
23075
23076 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23077
23078         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
23079         conflict object hard regset nodes have intersecting hard reg sets.
23080
23081         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
23082         after regstat_init_n_sets_and_refs.
23083
23084         * ira.c: Add more comments at the top.
23085         (setup_stack_reg_pressure_class, setup_pressure_classes):
23086         Add comments how we compute the register pressure classes.
23087         (setup_allocno_and_important_classes): Add more comments.
23088         (setup_class_translate_array, reorder_important_classes)
23089         (setup_reg_class_relations): Add comments.
23090
23091         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
23092         start of the file.
23093
23094         * ira-color.c: Add 2011 to the Copyright line.
23095         (assign_hard_reg):  Add more comments.
23096         (improve_allocation): Ditto.
23097
23098         * ira-costs.c: Add 2011 to the Copyright line.
23099         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
23100         comments.
23101         (setup_regno_cost_classes_by_mode): Ditto.
23102
23103         Initial patches from ira-improv branch:
23104
23105         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23106
23107         * ira-build.c (ira_create_object): Remove initialization of
23108         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
23109         (ira_create_allocno): Remove initialization of
23110         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
23111         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
23112         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23113         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
23114         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23115         Initialize ALLOCNO_ADD_DATA.
23116         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23117         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23118         ALLOCNO_REG.
23119         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
23120         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23121
23122         * ira.c (ira_reallocate): Remove.
23123         (setup_pressure_classes): Call
23124         ira_init_register_move_cost_if_necessary.  Use
23125         ira_register_move_cost instead of ira_get_register_move_cost.
23126         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23127         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23128
23129         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23130         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23131         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23132         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23133         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23134         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23135         Fix formatting.
23136         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23137         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23138         (struct allocno_color_data): New.
23139         (allocno_color_data_t): New typedef.
23140         (allocno_color_data): New definition.
23141         (ALLOCNO_COLOR_DATA): New macro.
23142         (struct object_color_data): New.
23143         (object_color_data_t): New typedef.
23144         (object_color_data): New definition.
23145         (OBJECT_COLOR_DATA): New macro.
23146         (update_copy_costs, calculate_allocno_spill_cost): Call
23147         ira_init_register_move_cost_if_necessary.  Use
23148         ira_register_move_cost instead of ira_get_register_move_cost.
23149         (move_spill_restore, update_curr_costs): Ditto.
23150         (allocno_spill_priority): Make it inline.
23151         (color_pass): Allocate and free allocno_color_dat and object_color_data.
23152         (struct coalesce_data, coalesce_data_t): New.
23153         (allocno_coalesce_data): New definition.
23154         (ALLOCNO_COALESCE_DATA): New macro.
23155         (merge_allocnos, coalesced_allocno_conflict_p): Use
23156         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23157         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23158         (coalesce_allocnos): Ditto.
23159         (setup_coalesced_allocno_costs_and_nums): Ditto.
23160         (collect_spilled_coalesced_allocnos): Ditto.
23161         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23162         (setup_slot_coalesced_allocno_live_ranges): Ditto.
23163         (coalesce_spill_slots): Ditto.
23164         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
23165         free allocno_coalesce_data.
23166
23167         * ira-conflicts.c: Fix formatting.
23168         (process_regs_for_copy): Call
23169         ira_init_register_move_cost_if_necessary.  Use
23170         ira_register_move_cost instead of ira_get_register_move_cost.
23171         (build_object_conflicts): Optimize.
23172
23173         * ira-costs.c (record_reg_classes): Optimize.  Call
23174         ira_init_register_move_cost_if_necessary.  Use
23175         ira_register_move_cost, ira_may_move_in_cost, and
23176         ira_may_move_out_cost instead of ira_get_register_move_cost and
23177         ira_get_may_move_cost.
23178         (record_address_regs): Ditto.
23179         (scan_one_insn): Optimize.
23180         (find_costs_and_classes): Optimize.
23181         (process_bb_node_for_hard_reg_moves): Call
23182         ira_init_register_move_cost_if_necessary.  Use
23183         ira_register_move_cost instead of ira_get_register_move_cost.
23184
23185         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23186         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23187         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23188         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23189         definitions.
23190         (ira_initiate_emit_data, ira_finish_emit_data)
23191         (create_new_allocno): New functions.
23192         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23193         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23194         Use ira_register_move_cost instead of ira_get_register_move_cost.
23195
23196         * ira-int.h: Fix some comments.
23197         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23198         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23199         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23200         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
23201         add_data.
23202         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
23203         bitfield after mode.  Make hard_regno a short int.  Make
23204         hard_regno short.  Remove first_coalesced_allocno and
23205         next_coalesced_allocno.  Move mem_optimized_dest_p,
23206         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23207         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
23208         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23209         temp, colorable_p.  Add new member add_data.
23210         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23211         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23212         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23213         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23214         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23215         (ALLOCNO_ADD_DATA): New macro.
23216         (ira_emit_data_t): New typedef.
23217         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
23218         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23219         from struct ira_allocno.
23220         (ALLOCNO_EMIT_DATA): New macro.
23221         (ira_allocno_emit_data, allocno_emit_reg): New.
23222         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23223         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23224         (OBJECT_ADD_DATA): New macro.
23225         (ira_reallocate): Remove.
23226         (ira_initiate_emit_data, ira_finish_emit_data): New.
23227         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23228         (ira_init_register_move_cost_if_necessary): New.
23229         (ira_object_conflict_iter_next): Merge into
23230         ira_object_conflict_iter_cond.
23231         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23232
23233         * ira-live.c (process_single_reg_class_operands): Call
23234         ira_init_register_move_cost_if_necessary.  Use
23235         ira_register_move_cost instead of ira_get_register_move_cost.
23236
23237         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23238
23239         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23240
23241         * ira-costs.c: Fix formatting.
23242         (cost_classes, cost_classes_num): Remove.
23243         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23244         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23245         (cost_classes_del, cost_classes_htab): New.
23246         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23247         (initiate_regno_cost_classes, setup_cost_classes): New.
23248         (setup_regno_cost_classes_by_aclass): New.
23249         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23250         (record_reg_classes): Use regno_cost_classes instead of
23251         cost_classes.  Move checking opposite operand up.
23252         (record_address_regs): Use regno_cost_classes
23253         instead of cost_classes.
23254         (scan_one_insn): Ditto.  Use always general register.
23255         (print_allocno_costs): Use regno_cost_classes instead of
23256         cost_classes.
23257         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
23258         (find_costs_and_classes): Set up cost classes for each registers.
23259         Use also their mode for this.  Use regno_cost_classes instead of
23260         cost_classes.
23261         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23262         cost_classes.
23263         (free_ira_costs, ira_init_costs): Don't use cost_classes.
23264         (ira_costs, ira_set_pseudo_classes): Call
23265         initiate_regno_cost_classes and finish_regno_cost_classes.
23266
23267         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
23268
23269         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23270
23271         * target.def (ira_cover_classes): Remove.
23272
23273         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23274
23275         * doc/tm.texi.in: Ditto.
23276
23277         * ira-conflicts.c: Remove mentioning cover classes from the file.
23278         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
23279         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
23280
23281         * targhooks.c (default_ira_cover_classes): Remove.
23282
23283         * targhooks.h (default_ira_cover_classes): Ditto.
23284
23285         * haifa-sched.c: Remove mentioning cover classes from the file.
23286         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23287         ira_pressure_classes and ira_pressure_classes_num instead of
23288         ira_reg_class_cover_size and ira_reg_class_cover.  Use
23289         sched_regno_pressure_class instead of sched_regno_cover_class.
23290         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23291         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23292
23293         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
23294         classes from the file.
23295         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23296         (struct object_hard_regs, struct object_hard_regs_node): New.
23297         (struct ira_object): New members profitable_hard_regs,
23298         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23299         (struct ira_allocno): Rename cover_class to aclass.  Rename
23300         cover_class_cost and updated_cover_class_cost to class_cost and
23301         updated_class_cost.  Remove splay_removed_p and
23302         left_conflict_size.  Add new members colorable_p.
23303         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23304         (ALLOCNO_COLORABLE_P): New macro.
23305         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23306         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23307         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23308         (OBJECT_...): Rename parameter C to O.
23309         (OBJECT_PROFITABLE_HARD_REGS): New macro.
23310         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23311         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23312         (struct target_ira_int): New members x_ira_max_memory_move_cost,
23313         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23314         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23315         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23316         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
23317         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
23318         x_ira_reg_class_subunion.
23319         (ira_max_memory_move_cost, ira_max_register_move_cost)
23320         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23321         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23322         (ira_important_class_nums, ira_reg_class_superunion): New macros.
23323         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23324         (ira_reg_class_union): Rename to ira_reg_class_subunion.
23325         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23326         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23327         (ira_tune_allocno_costs_and_cover_classes): Rename to
23328         ira_tune_allocno_costs.
23329         (ira_debug_hard_regs_forest): New.
23330         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23331         (ira_object_conflict_iter_next): Fix comments.
23332         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23333         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23334         cover_class to aclass.
23335         (ira_allocate_and_accumulate_costs): Ditto.
23336         (ira_allocate_and_set_or_copy_costs): Ditto.
23337
23338         * opts.c (decode_options): Remove ira_cover_class check.
23339
23340         * ira-color.c: Remove mentioning cover classes from the file.  Use
23341         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23342         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23343         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23344         (splay-tree.h): Remove include.
23345         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23346         before copy_freq_compare_func.
23347         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23348         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23349         New definitions.
23350         (hard_regs_roots, hard_regs_node_vec): Ditto.
23351         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23352         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23353         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23354         (create_new_object_hard_regs_node): Ditto.
23355         (add_new_object_hard_regs_node_to_forest): Ditto.
23356         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23357         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23358         Ditto.
23359         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23360         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23361         (remove_unused_object_hard_regs_nodes): Ditto.
23362         (enumerate_object_hard_regs_nodes): Ditto.
23363         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23364         (object_hard_regs_subnode_t): Ditto.
23365         (struct object_hard_regs_subnode): Ditto.
23366         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23367         (setup_object_hard_regs_subnode_index): Ditto.
23368         (get_object_hard_regs_subnodes_num): Ditto.
23369         (form_object_hard_regs_nodes_forest): Ditto.
23370         (finish_object_hard_regs_nodes_tree): Ditto.
23371         (finish_object_hard_regs_nodes_forest): Ditto.
23372         (allocnos_have_intersected_live_ranges_p): Rename to
23373         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23374         (pseudos_have_intersected_live_ranges_p): Rename to
23375         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23376         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23377         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23378         (update_copy_costs): Remove assert.  Skip cost update if the hard
23379         reg does not belong the class.
23380         (assign_hard_reg): Process only profitable hard regs.
23381         (uncolorable_allocnos_num): Make it scalar.
23382         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23383         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23384         and ira_reg_class_max_nregs.
23385         (bucket_allocno_compare_func): Check frequency first.
23386         (sort_bucket): Add compare function as a parameter.
23387         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23388         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23389         (push_allocno_to_stack): Rewrite for checking new allocno
23390         colorability.
23391         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
23392         (push_only_colorable): Pass new parameter to sort_bucket.
23393         (push_allocno_to_spill): Remove.
23394         (allocno_spill_priority_compare): Make it inline and rewrite.
23395         (splay_tree_allocate, splay_tree_free): Remove.
23396         (allocno_spill_sort_compare): New function.
23397         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
23398         build and use splay tree.  Choose first allocno in uncolorable
23399         allocno bucket to spill.  Remove setting spill cost.
23400         (all_conflicting_hard_regs): Remove.
23401         (setup_allocno_available_regs_num): Check only profitable hard
23402         regs.  Print info about hard regs nodes.
23403         (setup_allocno_left_conflicts_size): Remove.
23404         (put_allocno_into_bucket): Don't call
23405         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
23406         (improve_allocation): New.
23407         (color_allocnos): Call setup_profitable_hard_regs,
23408         form_object_hard_regs_nodes_forest, improve_allocation,
23409         finish_object_hard_regs_nodes_forest.  Setup spill cost.
23410         (print_loop_title): Use pressure classes.
23411         (color_allocnso): Ditto.
23412         (do_coloring): Remove allocation and freeing splay_tree_node_pool
23413         and allocnos_for_spilling.
23414         (ira_sort_regnos_for_alter_reg): Don't setup members
23415         {first,next}_coalesced_allocno.
23416         (color): Remove allocating and freeing removed_splay_allocno_vec.
23417         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23418         prohibited_class_mode_regs.
23419
23420         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
23421         formatting.
23422         (update_allocno_pressure_excess_length): Use pressure classes.
23423         (inc_register_pressure, dec_register_pressure): Check for pressure
23424         class.
23425         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23426         pressure class.  Use ira_reg_class_nregs instead of
23427         ira_reg_class_max_nregs.
23428         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23429         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23430         (single_reg_class): Use ira_reg_class_nregs instead of
23431         ira_reg_class_max_nregs.
23432         (process_bb_node_lives): Use pressure classes.
23433
23434         * ira-emit.c: Remove mentioning cover classes from the file.  Use
23435         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23436         (change_loop): Use pressure classes.
23437         (modify_move_list): Call ira_set_allocno_class instead of
23438         ira_set_allocno_cover_class.
23439
23440         * ira-build.c: Remove mentioning cover classes from the file.  Use
23441         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23442         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
23443         ALLOCNO_UPDATED_CLASS_COST instead of
23444         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23445         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23446         (ira_create_allocno): Remove initialization of
23447         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
23448         ALLOCNO_COLORABLE_P.
23449         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23450         Update conflict regs for the objects.
23451         (create_cap_allocno): Remove assert.  Don't propagate
23452         ALLOCNO_AVAILABLE_REGS_NUM.
23453         (ira_free_allocno_costs): New function.
23454         (finish_allocno): Change a part of code into call of
23455         ira_free_allocno_costs.
23456         (low_pressure_loop_node_p): Use pressure classes.
23457         (object_range_compare_func): Don't compare classes.
23458         (setup_min_max_conflict_allocno_ids): Ditto.
23459
23460         * loop-invariant.c: Remove mentioning cover classes from the file.
23461         Use ira_pressure_classes and ira_pressure_classes_num instead of
23462         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
23463         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23464         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23465         Use reg_allocno_class instead of reg_cover_class.
23466         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23467         STACK_REG_COVER_CLASS.
23468         (get_regno_cover_class): Rename to get_regno_pressure_class.
23469         (move_loop_invariants): Initialize and finalize regstat.
23470
23471         * ira.c: Remove mentioning cover classes from the file.  Add
23472         comments about coloring without cover classes.  Use ALLOCNO_CLASS
23473         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23474         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23475         setup_class_subset_and_memory_move_costs.
23476         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23477         (setup_cover_and_important_classes): Rename to
23478         setup_allocno_and_important_classes.
23479         (setup_class_translate_array): New.
23480         (setup_class_translate): Call it for allocno and pressure classes.
23481         (cover_class_order): Rename to allocno_class_order.
23482         (comp_reg_classes_func): Use ira_allocno_class_translate instead
23483         of ira_class_translate.
23484         (reorder_important_classes): Set up ira_important_class_nums.
23485         (setup_reg_class_relations): Set up ira_reg_class_superunion.
23486         (print_class_cover): Rename to print_classes.  Add parameter.
23487         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23488         Print pressure classes too.
23489         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
23490         setup_reg_subclasses.
23491         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23492         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23493         (setup_prohibited_class_mode_regs): Use
23494         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23495         (clarify_prohibited_class_mode_regs): New function.
23496         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23497         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23498         (ira_init_once): Initialize them.
23499         (free_register_move_costs): Process them.
23500         (ira_init): Move calls of find_reg_classes and
23501         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23502         Call clarify_prohibited_class_mode_regs.
23503         (ira_no_alloc_reg): Remove.
23504         (too_high_register_pressure_p): Use pressure classes.
23505
23506         * sched-deps.c: Remove mentioning cover classes from the file.
23507         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23508         ira_pressure_classes and ira_pressure_classes_num instead of
23509         ira_reg_class_cover_size and ira_reg_class_cover.
23510         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23511         sched_regno_pressure_class instead of sched_regno_cover_class.
23512         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
23513         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23514
23515         * ira.h: Add 2010 to Copyright.
23516         (ira_no_alloc_reg): Remove external.
23517         (struct target_ira): Rename x_ira_hard_regno_cover_class,
23518         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23519         x_ira_class_translate to x_ira_hard_regno_allocno_class,
23520         x_ira_allocno_classes_num, x_ira_allocno_classes, and
23521         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
23522         x_ira_pressure_classes, x_ira_pressure_class_translate, and
23523         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
23524         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
23525         x_ira_no_alloc_regs.
23526         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23527         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23528         ira_allocno_classes_num and ira_allocno_classes.
23529         (ira_class_translate): Rename to ira_allocno_class_translate.
23530         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23531         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23532         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23533         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23534         (ira_no_alloc_regs): New.
23535
23536         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
23537         classes from the file.  Use ALLOCNO_CLASS instead of
23538         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
23539         ALLOCNO_COVER_CLASS_COST.
23540         (regno_cover_class): Rename to regno_aclass.
23541         (record_reg_classes): Use ira_reg_class_subunion instead of
23542         ira_reg_class_union.
23543         (record_address_regs): Check overflow.
23544         (scan_one_insn): Ditto.
23545         (print_allocno_costs): Print total mem cost fore regional allocation.
23546         (print_pseudo_costs): Use REG_N_REFS.
23547         (find_costs_and_classes): Use classes intersected with them on the
23548         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
23549         ira_reg_class_union.  Use ira_allocno_class_translate and
23550         regno_aclass instead of ira_class_translate and regno_cover_class.
23551         Modify code for finding regno_aclass.  Setup preferred classes for
23552         the next pass.
23553         (setup_allocno_cover_class_and_costs): Rename to
23554         setup_allocno_class_and_costs.  Use regno_aclass instead of
23555         regno_cover_class.  Use ira_set_allocno_class instead of
23556         ira_set_allocno_cover_class.
23557         (init_costs, finish_costs): Use regno_aclass instead of
23558         regno_cover_class.
23559         (ira_costs): Use setup_allocno_class_and_costs instead of
23560         setup_allocno_cover_class_and_costs.
23561         (ira_tune_allocno_costs_and_cover_classes): Rename to
23562         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
23563         by processing objects.  Use ira_reg_class_max_nregs instead of
23564         ira_reg_class_nregs.
23565
23566         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23567
23568         * sched-int.h: Remove mentioning cover classes from the file.
23569         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23570
23571         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
23572         classes from the file.
23573         (struct reg_pref): Rename coverclass into allocnoclass.
23574         (reg_cover_class): Rename to reg_allocno_class.
23575
23576         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23577
23578         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23579
23580         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23581
23582         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23583
23584         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23585
23586         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23587
23588         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23589
23590         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23591
23592         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23593
23594         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23595
23596         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23597         (i386_ira_cover_classes): Ditto.
23598
23599         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23600
23601         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23602
23603         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23604
23605         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23606
23607         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23608
23609         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23610
23611         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23612         (mips_ira_cover_classes): Ditto.
23613
23614         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23615
23616         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23617
23618         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23619
23620         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23621
23622         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23623
23624         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23625         (IRA_COVER_CLASSES_VSX): Ditto.
23626
23627         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23628         (rs6000_ira_cover_classes): Ditto.
23629
23630         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23631
23632         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23633
23634         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23635
23636         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23637
23638         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23639
23640         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23641
23642         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23643
23644         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23645
23646         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23647
23648         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23649
23650 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
23651
23652         PR debug/48253
23653         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23654         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23655         dw_fde_unlikely_section_end_label, cold_in_std_section,
23656         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23657         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23658         fields.
23659         (output_fde): Use dw_fde_second_{begin,end} if second is
23660         true, otherwise dw_fde_{begin,end}.
23661         (output_call_frame_info): Test dw_fde_second_begin != NULL
23662         instead of dw_fde_switched_sections.
23663         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23664         fields, initialize new fields.  Initialize in_std_section
23665         unconditionally from the first partition.
23666         (dwarf2out_end_epilogue): Don't override dw_fde_end when
23667         dw_fde_second_begin is non-NULL.
23668         (dwarf2out_switch_text_section): Stop initializing removed
23669         dw_fde_struct fields, initialize new fields, initialize
23670         also dw_fde_end here.  Set dw_fde_switch_cfi even when
23671         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
23672         (struct var_loc_list_def): Add last_before_switch field.
23673         (arange_table, arange_table_allocated, arange_table_in_use,
23674         ARANGE_TABLE_INCREMENT, add_arange): Removed.
23675         (size_of_aranges): Count !in_std_section and !second_in_std_section
23676         hunks in fdes, instead of looking at arange_table_in_use.
23677         (output_aranges): Add aranges_length argument, don't call
23678         size_of_aranges here.  Instead of using aranges_table*
23679         emit ranges for fdes when !in_std_section resp.
23680         !second_in_std_section.
23681         (dw_loc_list): Break ranges crossing section switch.
23682         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
23683         use dw_fde_second_end instead of dw_fde_end as end of last range.
23684         (gen_subprogram_die): Don't call add_arange.  Use
23685         dw_fde_{begin,end} for first partition and if switched
23686         section dw_fde_second_{begin,end} for the second.
23687         (var_location_switch_text_section_1,
23688         var_location_switch_text_section): New functions.
23689         (dwarf2out_begin_function): Initialize cold_text_section even
23690         when function_section () isn't text_section.
23691         (prune_unused_types): Don't walk arange_table.
23692         (dwarf2out_finish): Don't needlessly test
23693         flag_reorder_blocks_and_partition when testing cold_text_section_used.
23694         If info_section_emitted, call size_of_aranges and if it indicates
23695         non-empty .debug_aranges, call output_aranges with the computed
23696         size.  Stop using removed dw_fde_struct fields, use
23697         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23698         for second.
23699
23700         PR debug/48203
23701         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23702         create ENTRY_VALUE if incoming or address of incoming's MEM
23703         is a hard REG.
23704         * dwarf2out.c (mem_loc_descriptor): Don't emit
23705         DW_OP_GNU_entry_value of DW_OP_fbreg.
23706         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23707         on ENTRY_VALUE is able to find the canonical parameter VALUE.
23708         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23709         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23710         ENTRY_VALUE_EXPs.
23711         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23712         is a REG_P or MEM_P with REG_P address, compute hash directly
23713         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23714         (preserve_only_constants): Don't clear VALUES forwaring
23715         ENTRY_VALUE to some other VALUE.
23716
23717 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
23718
23719         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23720         instead of GEN_INT.
23721
23722 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23723
23724         * cfgexpand.c (expand_gimple_cond): Always set the source location and
23725         block before expanding the statement.
23726         (expand_gimple_stmt_1): Likewise.  Set them here...
23727         (expand_gimple_stmt): ...and not here.  Tidy.
23728         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23729         unknown.
23730
23731 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23732
23733         * Makefile.in: New rule for cprop.o.
23734         * gcse.c: Move constant/copy propagation to cprop.c.
23735         (compute_local_properties): Only handle expression tables.
23736         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23737         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23738         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23739         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23740         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23741         compute_cprop_data, find_used_regs, try_replace_reg,
23742         find_avail_set, cprop_jump, constprop_register, cprop_insn,
23743         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23744         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23745         find_bypass_set, reg_killed_on_edge, bypass_block,
23746         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23747         execute_rtl_cprop, pass_rtl_cprop): Move to...
23748         * cprop.c: ...here.  New file, constant/copy propagation for RTL
23749         moved from gcse.c to here with minor cleanups in duplicated code.
23750
23751 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
23752
23753         * config/i386/i386.c (flag_opts): Fix a typo in
23754         -mavx256-split-unaligned-store.
23755
23756 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23757
23758         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23759         LIBCALL_VALUE): Remove macros.
23760         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23761         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23762         (h8300_function_value, h8300_libcall_value,
23763         h8300_function_value_regno_p): New functions.
23764
23765 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23766
23767         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23768
23769 2011-03-28  Jeff Law  <law@redhat.com>
23770
23771         * tree-ssa-threadupdate.c (redirect_edges): Call
23772         create_edge_and_update_destination_phis as needed.
23773         (create_edge_and_update_destination_phis): Accept new BB argument.
23774         All callers updated.
23775         (thread_block): Do not update the profile when threading around
23776         intermediate blocks.
23777         (thread_single_edge): Likewise.
23778         (determine_bb_domination_status): If BB is not a successor of the
23779         loop header, return NONDOMINATING.
23780         (register_jump_thread): Note when we register a jump thread around
23781         an intermediate block.
23782         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23783         (thread_across_edge): Use it.
23784
23785 2011-03-28  Tristan Gingold  <gingold@adacore.com>
23786
23787         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23788         when for_return is 2.
23789
23790 2011-03-28  Jeff Law  <law@redhat.com>
23791
23792         * var-tracking.c (canonicalize_values_mark): Delete unused
23793         lhs assignment.
23794         (canonicalize_values_star, set_variable_part): Likewise.
23795         (clobber_variable_part, delete_variable_part): Likewise.
23796
23797 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23798
23799         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23800
23801 2011-03-28  Martin Jambor  <mjambor@suse.cz>
23802
23803         * tree-inline.c (expand_call_inline): Do not check that destination
23804         node is analyzed.
23805         (optimize_inline_calls): Assert that destination node is analyzed.
23806         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23807         not call tree_lowering_passes.
23808         * cgraph.h (cgraph_analyze_function): Declare.
23809         * cgraphunit.c (cgraph_analyze_function): Make public.
23810
23811 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
23812
23813         * config/sparc/sparc-opts.h: New.
23814         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23815         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23816         (sparc_option_override): Store processor_type enumeration rather
23817         than string in cpu_default.  Remove name and enumeration from
23818         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
23819         without using sparc_select.  Use target_flags_explicit instead of
23820         fpu_option_set.
23821         * config/sparc/sparc.h (enum processor_type): Move to
23822         sparc-opts.h.
23823         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23824         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23825         HeaderInclude entry.
23826         (mcpu=, mtune=): Use Var and Enum.
23827         (sparc_processor_type): New Enum and EnumValue entries.
23828
23829 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23830             Iain Sandoe  <iains@gcc.gnu.org>
23831
23832         PR target/48245
23833         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23834
23835 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23836
23837         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23838         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23839         Insert new statements at it in lieu of STMT.
23840         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23841         * tree-vect-stmts.c (vectorizable_store): Likewise.
23842         (vectorizable_load): Likewise.
23843
23844 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
23845
23846         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23847         (divtf3): Ditto.
23848         (multf3): Ditto.
23849         (subtf3): Ditto.
23850
23851 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23852
23853         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23854         unaligned 256bit load/store.
23855         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23856         (*avx_movdqu<avxmodesuffix>): Likewise.
23857
23858 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23859
23860         PR target/48288
23861         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23862         * config/pa/pa.md (iordi3): Use new predicate in expander.
23863         (iorsi3): Likewise.
23864
23865 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
23866
23867         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23868         FUNCTION_VALUE_REGNO_P): Remove macros.
23869         * config/mips/mips-protos.h (mips_function_value): Remove.
23870         * config/mips/mips.c (mips_function_value): Rename to...
23871         (mips_function_value_1): ... this. Make static.  Handle receiving
23872         the function type in 'fn_decl_or_type' argument.
23873         (mips_function_value, mips_libcall_value,
23874         mips_function_value_regno_p): New function.
23875         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23876         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23877
23878 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23879
23880         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23881         and -mavx256-split-unaligned-store.
23882         (ix86_option_override_internal): Split 32-byte AVX unaligned
23883         load/store by default.
23884         (ix86_avx256_split_vector_move_misalign): New.
23885         (ix86_expand_vector_move_misalign): Use it.
23886
23887         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23888         -mavx256-split-unaligned-store.
23889
23890         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23891         256bit load/store.  Generate unaligned store on misaligned memory
23892         operand.
23893         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23894         256bit load/store.
23895         (*avx_movdqu<avxmodesuffix>): Likewise.
23896
23897         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23898         -mavx256-split-unaligned-store.
23899
23900 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23901
23902         PR target/38598
23903         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23904         Update commentary.
23905
23906 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23907
23908         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23909         opno arguments with an expand_operand.  Use create_input_operand.
23910         (mips_prepare_builtin_target): Delete.
23911         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23912         functions.
23913         (mips_expand_builtin_direct): Use create_output_operand and
23914         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
23915         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
23916         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23917
23918 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
23919
23920         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23921         function.
23922         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23923
23924 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23925
23926         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23927         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
23928         basic blocks and call commit_edge_insertions directly.
23929         (fixup_abnormal_edges): Move from here to...
23930         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
23931         on the edges and return whether some have actually been inserted.
23932         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23933         compensation code.
23934
23935 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
23936
23937         PR rtl-optimization/48144
23938         * sel-sched-ir.c (merge_history_vect): Factor out from ...
23939         (merge_expr_data): ... here.
23940         (av_set_intersect): Rename to av_set_code_motion_filter.
23941         Update all callers.  Call merge_history_vect when an expression
23942         is found in both sets.
23943         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23944
23945 2011-03-26  Alan Modra  <amodra@gmail.com>
23946
23947         * config/rs6000/predicates.md (word_offset_memref_op): Handle
23948         cmodel medium addresses.
23949         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23950         64-bit gpr loads and stores.
23951         (rs6000_secondary_reload_ppc64): New function.
23952         * config/rs6000/rs6000-protos.h: Declare it.
23953         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23954
23955 2011-03-26  Alan Modra  <amodra@gmail.com>
23956
23957         PR target/47487
23958         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23959         GNU Go in traceback table.
23960
23961 2011-03-25  Richard Henderson  <rth@redhat.com>
23962
23963         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23964         if there are exactly 6 operands.
23965         (set_storage_via_setmem): Similarly.
23966
23967 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23968
23969         * collect2.c (write_c_file_stat): Handle backslash
23970         as right-hand directory separator.
23971         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23972         checking just for slash.
23973         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23974         instead of checking for trailing slash.
23975         * gcc.c (record_temp_file): Use filename_cmp instead
23976         of strcmp.
23977         (do_spec_1): Likewise.
23978         (replace_outfile_spec_function): Likewise.
23979         (is_directory): Use filename_ncmp instead of strncmp.
23980         (print_multilib_info): Likewise.
23981         * gcov.c (find_source): Use filename_cmp instead
23982         instead of strcmp.
23983         (make_gcov_file_name): Fix order of slash/backslash
23984         checks.
23985         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23986         (add_standard_paths): Likewise.
23987         * mips-tfile.c (saber_stop): Handle backslash.
23988         * prefix.c (update_path): Use filename_ncmp instead of
23989         strncmp.
23990         * profile.c (output_location): Use filename_cmp instead
23991         of strcmp.
23992         * read-md.c (handle_toplevel_file): Handle backslash.
23993         * tlink.c (frob_extension):  Likewise.
23994         * tree-cfg.c (same_line_p): Use filename_cmp instead of
23995         strcmp.
23996         * tree-dump.c (dequeue_and_dump): Handle backslash.
23997         * tree.c (get_file_function_name): Likewise.
23998         * gengtype.c (read_input_list): Likewise.
23999         (get_file_realbasename): Likewise.
24000         (get_output_file_with_visibility): Use filename_cmp
24001         instead of strcmp.
24002
24003 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
24004
24005         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
24006         case to VFPv1.
24007
24008 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24009
24010         * fold-const.c (expr_location_or): New function.
24011         (fold_truth_not_expr): Call it.
24012
24013 2011-03-25  Jeff Law  <law@redhat.com>
24014
24015         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
24016         va_end.
24017         * c-family/c-common.c (def_fn_type): Likewise.
24018         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
24019         * emit-rtl.c (gen_rtvec): Likewise.
24020         * lto/lto-lang.c (def_fn_type): Likewise.
24021
24022 2011-03-25  Richard Guenther  <rguenther@suse.de>
24023
24024         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
24025         also generate copies.
24026         (fini_copy_prop): Handle constant values properly.
24027
24028 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
24029
24030         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
24031         mode size instead of bitsize with DWARF2_ADDR_SIZE.
24032         (hash_loc_operands, compare_loc_operands): Handle
24033         DW_OP_GNU_entry_value.
24034
24035 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24036
24037         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
24038         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
24039         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
24040         comment and use macro TARGET_64BIT_MS_ABI instead.
24041         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
24042         and change default behavior for 32-bit MS_ABI.
24043         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
24044         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
24045         32-bit, too.
24046         (ix86_cfun_abi): Likewise.
24047         (ix86_maybe_switch_abi): Adjust comment.
24048         (init_cumulative_args): Check for bit-ness in MS_ABI case.
24049         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
24050         instead of checking for SYSV_ABI.
24051         (ix86_nsaved_sseregs): Likewise.
24052         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
24053         to 16 bytes.
24054         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
24055         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
24056         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
24057         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
24058         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
24059
24060 2011-03-25  Richard Guenther  <rguenther@suse.de>
24061
24062         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
24063         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24064         (verify_gimple): Remove.
24065         * tree-cfg.c (verify_gimple_call): Merge verification
24066         from verify_stmts.
24067         (verify_gimple_phi): Merge verification from verify_stmts.
24068         (verify_gimple_label): New function.
24069         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
24070         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
24071         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
24072         (verify_stmts): Rename to verify_gimple_in_cfg.
24073         (verify_gimple_in_cfg): New function.
24074         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
24075         * tree-ssa.c (verify_ssa): Likewise.
24076         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
24077
24078 2011-03-25  Richard Guenther  <rguenther@suse.de>
24079
24080         * passes.c (init_optimization_passes): Add FRE pass after
24081         early SRA.
24082
24083 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
24084             Andrew Stubbs  <ams@codesourcery.com>
24085
24086         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
24087         for Cortex-A8.
24088         (arm_movdi_vfp_cortexa8): New pattern.
24089         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
24090         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
24091         instructions when tuning for Cortex-A8.  Set attribute "arch".
24092         * config/arm/arm.md: Move include arm-tune.md up a bit.
24093         (define_attr "arch"): Add "onlya8" and "nota8" values.
24094         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
24095
24096 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
24097
24098         PR bootstrap/48282
24099         Revert:
24100         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24101
24102         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24103         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24104         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24105         * passes.c (init_optimization_passes): Move
24106         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24107
24108 2011-03-25  Kai Tietz  <ktietz@redhat.com>
24109
24110         * c-typeck.c (comptypes_internal): Replace target
24111         hook call of comp_type_attributes by version in tree.c file.
24112         * gimple.c (gimple_types_compatible_p_1): Likewise.
24113         * tree-ssa.c (useless_type_conversion_p): Likewise.
24114         * tree.c (build_type_attribute_qual_variant): Likewise.
24115         (attribute_value_equal): New static helper function.
24116         (comp_type_attributes): New function.
24117         (merge_attributes): Use attribute_value_equal for comparison.
24118         (attribute_list_contained): Likewise.
24119         * tree.h (comp_type_attributes): New prototype.
24120
24121 2011-03-25  Richard Guenther  <rguenther@suse.de>
24122
24123         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24124         of complex types at -O0.
24125         (verify_gimple_assign_binary): Likewise.
24126         (verify_gimple_assign_ternary): Likewise.
24127
24128 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24129
24130         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24131         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24132
24133 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24134
24135         PR debug/48041
24136         * dwarf2out.c (output_abbrev_section): Only write table when
24137         abbrev_die_table_in_use > 1.
24138
24139 2011-02-24  Richard Henderson  <rth@redhat.com>
24140
24141         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24142         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24143         (alpha_expand_unaligned_load_words): Use extql.
24144         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24145         (emit_insxl): Handle all modes for consistency.
24146
24147 2011-02-24  Richard Henderson  <rth@redhat.com>
24148
24149         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24150         (alpha_expand_unaligned_load): Likewise.
24151         (alpha_expand_unaligned_store): Likewise.
24152         (alpha_expand_unaligned_load_words): Likewise.
24153         (alpha_expand_unaligned_store_words): Likewise.
24154         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24155         (alpha_split_lock_test_and_set_12): Likewise.
24156         (print_operand, alpha_fold_builtin_extxx): Likewise.
24157         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24158         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24159         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24160         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24161         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24162         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24163         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24164         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24165         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24166         (extwl, extll, extql): Similarly.
24167         (inswh, inslh, insqh): Similarly.
24168         (mskbl, mskwl, mskll, mskql): Similarly.
24169         (mskwh, msklh, mskqh): Similarly.
24170
24171 2011-02-24  Richard Henderson  <rth@redhat.com>
24172
24173         * config/alpha/alpha.md (attribute isa): Add er, ner.
24174         (attribute enabled): Handle them.
24175         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24176
24177 2011-02-24  Richard Henderson  <rth@redhat.com>
24178
24179         * config/alpha/alpha.md (attribute isa): Add vms.
24180         (attribute enabled): Handle it.
24181         (*movsf): Merge *movsf_{nofix,fix,nofp}.
24182         (*movdf): Merge *movdf_{nofix,fix,nofp}.
24183         (*movtf): Rename from *movtf_internal for consistency.
24184         (*movsi): Merge with *movsi_nt_vms.
24185         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24186         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24187         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24188         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24189
24190 2011-02-24  Richard Henderson  <rth@redhat.com>
24191
24192         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24193         (extendqisi2, extendhisi2): Likewise.
24194         (extendqidi2): Simplify BWX/non-BWX expansions.
24195         (extendhidi2): Similarly.
24196
24197 2011-02-24  Richard Henderson  <rth@redhat.com>
24198
24199         * config/alpha/alpha.md (attribute isa): New.
24200         (attribute enabled): New.
24201         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24202         (zero_extendqisi2, zero_extendqidi2): Similarly.
24203         (zero_extendhisi2, zero_extendhidi2): Similarly.
24204         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24205
24206 2011-02-24  Richard Henderson  <rth@redhat.com>
24207
24208         * config/alpha/predicates.md (input_operand): Revert last change;
24209         update comment to mention 32-bit VMS rather than Windows.
24210
24211 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24212
24213         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24214         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24215         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24216         * passes.c (init_optimization_passes): Move
24217         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24218
24219 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24220
24221         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24222
24223 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24224
24225         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24226         correctly.
24227
24228 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
24229
24230         PR debug/48204
24231         * simplify-rtx.c (simplify_const_unary_operation): Call
24232         real_convert when changing mode class with FLOAT_EXTEND.
24233
24234 2011-03-24  Nick Clifton  <nickc@redhat.com>
24235
24236         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24237         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24238         * config/rx/rx.c (rx_option_override): Set align_jumps,
24239         align_loops and align_labels if not set by the user.
24240         (rx_align_for_label): New function.
24241         (rx_max_skip_for_label): New function.
24242         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24243         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24244         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24245         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24246         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24247
24248 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24249
24250         PR rtl-optimization/48263
24251         * optabs.c (expand_binop_directly): Reinstate convert_modes code
24252         and original commutative_p handling.  Use maybe_gen_insn.
24253
24254 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24255
24256         * reload.c (find_reloads_subreg_address): Add address_reloaded
24257         parameter and return true there if the full address has been
24258         reloaded.
24259         (find_reloads_toplev): Pass address_reloaded flag.
24260         (find_reloads_address_1): Don't use address_reloaded parameter.
24261
24262 2011-03-24  Jeff Law  <law@redhat.com>
24263
24264         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24265         unused variable "ann".
24266         (remove_unused_locals): Likewise.
24267
24268         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24269         statement.
24270
24271         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24272         after it is freed.
24273
24274 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24275
24276         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24277         for invalid symbolic addresses.
24278         (s390_secondary_reload): Don't use s390_check_symref_alignment for
24279         larl operands.
24280
24281 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24282
24283         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24284         the argument in calls to fold_truth_not_expr.
24285
24286 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24287
24288         * tree.c (record_node_allocation_statistics): New function.
24289         (make_node_stat, copy_node_stat, build_string): Call it.
24290         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24291         (build1_stat, build_omp_clause): Likewise.
24292
24293 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24294
24295         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24296         last commit.
24297
24298 2011-03-24  Richard Guenther  <rguenther@suse.de>
24299
24300         PR tree-optimization/48271
24301         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24302         blocks that still exist.
24303
24304 2011-03-24  Richard Guenther  <rguenther@suse.de>
24305
24306         PR tree-optimization/48270
24307         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24308         not free datarefs before ddrs.
24309
24310 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24311
24312         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24313         from the address built for a reference with variable offset.
24314
24315 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24316
24317         PR target/48237
24318         * config/i386/i386.md (*movdf_internal_rex64): Do not split
24319         alternatives that can be handled with movq or movabsq insn.
24320         (*movdf_internal): Disable for !TARGET_64BIT.
24321         (*movdf_internal_nointeger): Ditto.
24322         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24323
24324 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24325
24326         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24327         (FUNCTION_ARG_ADVANCE): Likewise.
24328         * tm.texi.in: Change references to them to hook references.
24329         * tm.texi: Regenerate.
24330         * targhooks.c (default_function_arg): Eliminate check for target macro.
24331         (default_function_incoming_arg): Likewise.
24332         (default_function_arg_advance): Likewise.
24333         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24334         (function_arg_advance): Likewise.
24335         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24336
24337 2011-03-24  Richard Guenther  <rguenther@suse.de>
24338
24339         PR middle-end/48269
24340         * tree-object-size.c (addr_object_size): Do not double-account
24341         for MEM_REF offsets.
24342
24343 2011-03-24  Diego Novillo  <dnovillo@google.com>
24344
24345         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24346         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24347         (lto_input_data_block): Move from lto-opts.c.  Make extern.
24348         Update all users.
24349         (lto_input_string): Rename from input_string.  Make extern.
24350         Update all users.
24351         * lto-streamer-out.c (lto_output_string_with_length): Rename from
24352         output_string_with_length.
24353         Output 0 to indicate a non-NULL string.  Update all callers to
24354         not emit 0.
24355         (lto_output_string): Rename from output_string.  Make extern.
24356         Update all users.
24357         (lto_output_decl_state_streams): Make extern.
24358         (lto_output_decl_state_refs): Make extern.
24359         * lto-streamer.h (lto_input_string): Declare.
24360         (lto_input_data_block): Declare.
24361         (lto_output_string): Declare.
24362         (lto_output_string_with_length): Declare.
24363         (lto_output_decl_state_streams): Declare.
24364         (lto_output_decl_state_refs): Declare.
24365
24366 2011-03-24  Richard Guenther  <rguenther@suse.de>
24367
24368         PR tree-optimization/46562
24369         * tree.c (build_invariant_address): New function.
24370         * tree.h (build_invariant_address): Declare.
24371         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24372         a renamed function moved ...
24373         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24374         Take valueization callback parameter.
24375         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24376         * gimple-fold.h: New file.
24377         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24378         (ccp_fold, fold_const_aggregate_ref,
24379         fold_ctor_reference, fold_nonarray_ctor_reference,
24380         fold_array_ctor_reference, fold_string_cst_ctor_reference,
24381         get_base_constructor): Move ...
24382         * gimple-fold.c: ... here.
24383         (gimple_fold_stmt_to_constant_1): New function
24384         split out from ccp_fold.  Take a valueization callback parameter.
24385         Valueize all operands.
24386         (gimple_fold_stmt_to_constant): New wrapper function.
24387         (fold_const_aggregate_ref_1): New function split out from
24388         fold_const_aggregate_ref.  Take a valueization callback parameter.
24389         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24390         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24391         invariant POINTER_PLUS_EXPRs to invariant form.
24392         (vn_valueize): New function.
24393         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24394         * tree-vrp.c (vrp_valueize): New function.
24395         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24396         to fold statements to constants.
24397         * tree-ssa-pre.c (eliminate): Properly guard propagation of
24398         function declarations.
24399         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24400         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24401
24402 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24403
24404         * config/h8300/predicates.md (jump_address_operand): Fix register
24405         mode check.
24406
24407 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
24408
24409         * doc/invoke.texi (max-stores-to-sink): Document.
24410         * params.h (MAX_STORES_TO_SINK): Define.
24411         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24412         if either vectorization or if-conversion is disabled.
24413         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24414         tree-vect-data-refs.c vect_equal_offsets.
24415         (dr_equal_offsets_p): New function.
24416         (find_data_references_in_bb): Remove static.
24417         * tree-data-ref.h (find_data_references_in_bb): Declare.
24418         (dr_equal_offsets_p): Likewise.
24419         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24420         (vect_drs_dependent_in_basic_block): Update calls to
24421         vect_equal_offsets.
24422         (vect_check_interleaving): Likewise.
24423         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24424         (cond_if_else_store_replacement): Rename to...
24425         (cond_if_else_store_replacement_1): ... this.  Change arguments and
24426         documentation.
24427         (cond_if_else_store_replacement): New function.
24428         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24429         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24430
24431 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
24432
24433         PR target/46934
24434         * config/arm/arm.md (casesi): Use the gen_int_mode() function
24435         to subtract lower bound instead of GEN_INT().
24436
24437 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
24438
24439         PR other/48179
24440         PR other/48221
24441         PR other/48234
24442         * doc/extend.texi (Alignment): Move section to match order in TOC.
24443         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24444         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24445
24446 2011-03-23  Jeff Law  <law@redhat.com>
24447
24448         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24449         before removing the edge.
24450
24451         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24452         it may have been freed by redirect_branch_edge or
24453         redirect_edge_succ_nodup.
24454
24455 2011-03-23  Richard Guenther  <rguenther@suse.de>
24456
24457         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24458         (check_va_list_escapes): Likewise.
24459         (check_all_va_list_escapes): Likewise.
24460
24461 2011-03-23  Richard Guenther  <rguenther@suse.de>
24462
24463         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24464         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24465         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24466         (alias.o): Likewise.
24467         (ipa-type-escape.o): Remove.
24468         (ipa-struct-reorg.o): Likewise.
24469         (GTFILES): Remove ipa-struct-reorg.c.
24470         * alias.c: Do not include ipa-type-escape.h.
24471         * tree-ssa-alias.c: Likewise.
24472         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24473         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24474         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24475         and ipa-type-escape passes.
24476         * tree-pass.h (pass_ipa_type_escape): Remove.
24477         (pass_ipa_struct_reorg): Likewise.
24478         * ipa-struct-reorg.h: Remove.
24479         * ipa-struct-reorg.c: Likewise.
24480         * ipa-type-escape.h: Likewise.
24481         * ipa-type-escape.c: Likewise.
24482         * doc/invoke.texi (-fipa-struct-reorg): Remove.
24483         (--param struct-reorg-cold-struct-ratio): Likewise.
24484         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24485         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24486         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24487
24488 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24489
24490         * config/s390/2084.md: Enable all insn reservations also for z9_ec
24491         cpu attribute value.
24492         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24493         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24494         * config/s390/s390.c (processor_flags_table): New constant array.
24495         (s390_handle_arch_option): Remove.
24496         (s390_handle_option): Remove s390_handle_arch_option invocations
24497         and OPT_mwarn_framesize_ handling.
24498         (s390_option_override): Remove s390_handle_arch_option invocation.
24499         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24500         warnings.
24501         * config/s390/s390.md (cpu attribute): Add z9_ec value.
24502         * config/s390/s390.opt (s390_tune, s390_arch)
24503         (march=): Replace s390_arch_option enum and values with
24504         processor_type.  Set variable name to s390_arch.  Set
24505         initialization value.
24506         (mtune=): Replace s390_arch_option with processor_type.  Set
24507         variable name to s390_tune.  Set initialization value.
24508
24509 2011-03-23  Julian Brown  <julian@codesourcery.com>
24510
24511         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24512         accesses which are not naturally aligned.
24513
24514 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24515
24516         PR target/47553
24517         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24518
24519 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24520
24521         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24522         parameter from "int" to "enum insn_code".
24523         (expand_operand_type): New enum.
24524         (expand_operand): New structure.
24525         (create_expand_operand): New function.
24526         (create_fixed_operand, create_output_operand): Likewise
24527         (create_input_operand, create_convert_operand_to): Likewise.
24528         (create_convert_operand_from, create_address_operand): Likewise.
24529         (create_integer_operand): Likewise.
24530         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24531         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24532         (expand_insn, expand_jump_insn): Likewise.
24533         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24534         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24535         (expand_movstr, expand_builtin___clear_cache): Likewise.
24536         (expand_builtin_lock_release): Likewise.
24537         * explow.c (allocate_dynamic_stack_space): Likewise.
24538         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
24539         and use the default handling in that case.
24540         * expmed.c (check_predicate_volatile_ok): Delete.
24541         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24542         (emit_cstore): Likewise.
24543         * expr.c (emit_block_move_via_movmem): Likewise.
24544         (set_storage_via_setmem, expand_assignment): Likewise.
24545         (emit_storent_insn, try_casesi): Likewise.
24546         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
24547         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24548         (expand_vec_shift_expr, expand_binop_directly): Likewise.
24549         (expand_twoval_unop, expand_twoval_binop): Likewise.
24550         (expand_unop_direct, emit_indirect_jump): Likewise.
24551         (emit_conditional_move, vector_compare_rtx): Likewise.
24552         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24553         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24554         (expand_sync_lock_test_and_set): Likewise.
24555         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
24556         (emit_unop_insn): Likewise.
24557         (expand_copysign_absneg): Change icode to an insn_code.
24558         (create_convert_operand_from_type): New function.
24559         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24560         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24561         (expand_insn, expand_jump_insn): Likewise.
24562         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24563         than const_int_operand for operand 2.
24564
24565 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24566
24567         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24568         if possible.
24569
24570 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24571
24572         * emit-rtl.c (emit_pattern_before_noloc): New function.
24573         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24574         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24575         (emit_pattern_after_noloc): New function.
24576         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24577         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24578
24579 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24580
24581         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24582         (__ffsDI2): Likewise.
24583
24584 2011-03-22  Richard Henderson  <rth@redhat.com>
24585
24586         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24587         of !TARGET_ABI_OPEN_VMS.
24588         (alpha_trampoline_init, alpha_start_function): Likewise.
24589         (alpha_expand_epilogue, alpha_file_start): Likewise.
24590         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24591         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24592         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24593         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24594         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24595
24596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24597
24598         * config/s390/s390-opts.h: New.
24599         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24600         s390_arch_flags, s390_warn_framesize, s390_stack_size,
24601         s390_stack_guard): Remove.
24602         (s390_handle_arch_option): Return void.  Take enum
24603         s390_arch_option value instead of string and searching array.
24604         (s390_handle_option): Don't assert that global structures are in
24605         use.  Access variables via opts pointer.  Use error_at.  Don't use
24606         sscanf for -mstack-guard= or -mstack-size=.  Update call to
24607         s390_handle_arch_option.
24608         (s390_option_override): Update call to s390_handle_arch_option.
24609         (s390_emit_prologue): Use %d format for s390_stack_size in
24610         diagnostic.  Use %wd for HOST_WIDE_INT.
24611         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24612         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24613         * config/s390/s390.opt (config/s390/s390-opts.h): New
24614         HeaderInclude entry.
24615         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24616         s390_arch_flags, s390_warn_framesize): New Variable entries.
24617         (s390_arch_option): New Enum and EnumValue entries.
24618         (march=): Use Enum instead of Var.
24619         (mstack-guard=, mstack-size=): Use UInteger and Var.
24620         (mtune=): Use Enum.
24621
24622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24623
24624         * config/score/score.c (score_handle_option): Don't assert that
24625         global structures are in use.  Access target_flags via opts
24626         pointer.  Use value of -march= option to determine target_flags
24627         settings.
24628         * config/score/score.opt (march=): Use Enum.
24629         (score_arch): New Enum and EnumValue entries.
24630
24631 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24632
24633         * config/mep/mep.c (option_mtiny_specified): Remove.
24634         (mep_option_override): Move register handling for -mivc2 from
24635         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
24636         instead of option_mtiny_specified.
24637         (mep_handle_option): Access target_flags via opts pointer.  Don't
24638         assert that global structures are in use.  Defer part of -mivc2
24639         handling and move it to mep_option_override.
24640         * config/mep/mep.opt (IVC2): New Mask entry.
24641         (mivc2): Use Var and Defer instead of Mask.
24642
24643 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24644
24645         * config/v850/v850-opts.h: New.
24646         * config/v850/v850.c (small_memory): Replace with
24647         small_memory_physical_max array.  Make that array static const.
24648         (v850_handle_memory_option): Take integer value of argument.  Take
24649         gcc_options pointer, option text and location.  Return void.
24650         Update for changes to small memory structures.
24651         (v850_handle_option): Access target_flags via opts pointer.  Don't
24652         assert that global structures are in use.  Update calls to
24653         v850_handle_memory_option.
24654         (v850_encode_data_area): Update references to small memory settings.
24655         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24656         (enum small_memory_type): Move to v850-opts.h.
24657         * config/v850/v850.opt (config/v850/v850-opts.h): New
24658         HeaderInclude entry.
24659         (small_memory_max): New Variable entry.
24660         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
24661         (mtda, mzda): Likewise.
24662
24663 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24664
24665         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24666         pointer.  Don't assert that global structures are in use.
24667
24668 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24669
24670         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24671         via opts pointer.  Don't assert that global structures are in use.
24672
24673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24674
24675         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24676         (munix=93): Use Var.
24677         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24678         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24679         * config/pa/pa-opts.h: New.
24680         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24681         (pa_handle_option): Don't assert that global structures are in
24682         use.  Access target_flags via opts pointer.  Don't handle
24683         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24684         OPT_munix_98 here.
24685         (pa_option_override): Handle deferred OPT_mfixed_range_.
24686
24687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24688
24689         * config/mn10300/mn10300-opts.h: New.
24690         * config/mn10300/mn10300.c (mn10300_processor,
24691         mn10300_tune_string): Remove.
24692         (mn10300_handle_option): Don't assert that global structures are
24693         in use.  Access mn10300_processor via opts pointer.  Don't handle
24694         OPT_mtune_ here.
24695         * config/mn10300/mn10300.h (enum processor_type): Move to
24696         mn10300-opts.h.
24697         (mn10300_processor): Remove.
24698         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24699         HeaderInclude entry.
24700         (mn10300_processor): New Variable entry.
24701         (mtune=): Use Var.
24702
24703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24704
24705         * config/microblaze/microblaze.c: Don't include opts.h.
24706         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24707         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24708         (mno-clearbss): Use Var and Warn.
24709
24710 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24711
24712         * config/m32r/m32r-opts.h: New.
24713         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24714         (m32r_handle_option): Don't assert that global structures are in
24715         use.  Access target_flags and m32r_cache_flush_func via opts
24716         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
24717         OPT_mno_flush_trap here.
24718         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24719         include of m32r-opts.h.
24720         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24721         HeaderInclude entry.
24722         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24723         (mmodel=): Use Enum and Var.
24724         (m32r_model): New Enum and EnumValue entries.
24725         (mno-flush-trap): Use Var.
24726         (msdata=): Use Enum and Var.
24727         (m32r_sdata): New Enum and EnumValue entries.
24728
24729 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24730
24731         * config/m32c/m32c.c: Don't include opts.h.
24732         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24733         m32c_handle_option): Remove.
24734         (m32c_option_override): Check global_options_set.x_target_memregs
24735         instead of target_memregs_set.
24736         * config/m32c/m32c.h (target_memregs): Remove.
24737         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24738         variable.
24739
24740 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24741
24742         * config/iq2000/iq2000-opts.h: New.
24743         * config/iq2000/iq2000.c: Don't include opts.h.
24744         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24745         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24746         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24747         HeaderInclude entry.
24748         (iq2000_tune): New Variable entry.
24749         (march=): Add comment.  Use Enum.
24750         (iq2000_arch): New Enum and EnumValue entries.
24751         (mcpu=): Use Enum and Var.
24752         (iq2000_tune): New Enum and EnumValue entries.
24753
24754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24755
24756         * config/ia64/ia64-opts.h: New.
24757         * config/ia64/ia64.c (ia64_tune): Remove.
24758         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24759         here.  Use error_at.
24760         (ia64_option_override): Handle deferred OPT_mfixed_range_.
24761         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24762         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24763         HeaderInclude entry.
24764         (ia64_tune): New Variable entry.
24765         (mfixed-range=): Use Defer and Var.
24766         (mtune=): Use Enum and Var.
24767         (ia64_tune): New Enum and EnumValue entries.
24768
24769 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24770
24771         * config/frv/frv-opts.h: New.
24772         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24773         frv-opts.h.
24774         (frv_cpu_type): Remove.
24775         * config/frv/frv.c: Don't include opts.h.
24776         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24777         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24778         (frv_cpu_type): New Variable entry.
24779         (frv_cpu): New Enum and EnumValue entries.
24780
24781 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24782
24783         * config/cris/cris.c (cris_handle_option): Access target_flags via
24784         opts pointer.  Don't assert that global structures are in use.
24785         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24786         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24787
24788 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24789
24790         * config/bfin/bfin-opts.h: New.
24791         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24792         bfin_si_revision, bfin_workarounds): Remove.
24793         (bfin_cpus): Make static const.
24794         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24795         not bfin_lib_id_given.
24796         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
24797         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24798         pointer. Use error_at.  Don't assert that global structures are in use.
24799         * config/bfin/bfin.h: Include bfin-opts.h.
24800         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24801         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24802         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24803         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24804         entries.
24805
24806 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24807
24808         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24809         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24810         or -msoft-float here.
24811         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24812         -msoft-float and -mhard-float.
24813         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24814         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24815         msoft-float.
24816         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24817         -msoft-float.
24818         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24819         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24820         not mhard-float.
24821         (LIBGCC_SPEC): Don't handle -msoft-float.
24822         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24823         -mhard-float.
24824         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24825         msoft-float.
24826         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24827         -mfloat-abi=*, not -msoft-float and -mhard-float.
24828         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24829         -msoft-float.
24830         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24831         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24832         mhard-float and msoft-float.
24833         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24834         mfloat-abi=soft in comments, not mhard-float and msoft-float.
24835         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24836         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24837         mhard-float.
24838         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24839         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24840         msoft-float.
24841         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24842         not mhard-float.
24843         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24844         not msoft-float.
24845
24846 2011-03-22  Richard Henderson  <rth@redhat.com>
24847
24848         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24849         TARGET_ABI_WINDOWS_NT.
24850         (alpha_output_function_end_prologue): Likewise.
24851         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24852         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24853         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24854         (trap, *movsi_nt_vms): Likewise.
24855         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24856         (*tablejump_osf_nt_internal): Remove.
24857         * config/alpha/predicates.md (input_operand): Only test Pmode.
24858
24859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24860
24861         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24862         via opts pointer.  Use error_at.  Don't assert that global
24863         structures are in use.
24864
24865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24866
24867         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24868         (ix86_handle_option): Access ix86_isa_flags and
24869         ix86_isa_flags_explicit via opts pointer.  Don't assert that
24870         global structures are in use.
24871         (ix86_function_specific_save, ix86_function_specific_restore):
24872         Update ix86_isa_flags_explicit field name.
24873         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24874         (ix86_isa_flags_explicit): Rename TargetSave entry to
24875         x_ix86_isa_flags_explicit.
24876
24877 2011-03-22  Richard Henderson  <rth@redhat.com>
24878
24879         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24880         (alpha_option_override, direct_return): Likewise.
24881         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24882         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24883         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24884         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24885         (alpha_expand_epilogue, alpha_end_function): Likewise.
24886         (alpha_init_libfuncs): Likewise.
24887         (struct machine_function): Remove unicosmk members.
24888         (print_operand) ['t']: Remove.
24889         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24890         unicosmk_output_module_name, unicosmk_output_common,
24891         current_section_align, unicosmk_output_text_section_asm_op,
24892         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24893         unicosmk_section_type_flags, unicosmk_unique_section,
24894         unicosmk_asm_named_section, unicosmk_insert_attributes,
24895         unicosmk_output_align, unicosmk_defer_case_vector,
24896         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24897         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24898         unicosmk_output_ssib, unicosmk_add_call_info_word,
24899         unicosmk_extern_head, unicosmk_output_default_externs,
24900         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24901         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24902         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24903         * config/alpha/alpha-protos.h: Update.
24904         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24905         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24906         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24907         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24908         (*mulsi_se, mulvsi3): Likewise.
24909         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24910         (*divmodsi_internal, call, call_value, realign): Likewise.
24911         (moddi3, umoddi3): Likewise; remove duplicate expander.
24912         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24913         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24914         (*movdi_nofix): Remove r/U alternative.
24915         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24916         * config/alpha/constraints.md ("U"): Remove.
24917         * config/alpha/predicates.md (call_operand"): Don't test
24918         TARGET_ABI_UNICOSMK.
24919
24920 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24921
24922         * target.def (handle_option): Take gcc_options and
24923         cl_decoded_option pointers and location_t.
24924         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24925         * doc/tm.texi: Regenerate.
24926         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24927         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24928         * lto-opts.c (lto_reissue_options): Generate option structure for
24929         targetm.handle_option call.
24930         * opts.c (target_handle_option): Update call to
24931         targetm.handle_option.  Remove assertions about values now passed
24932         down to hook.
24933         * targhooks.c (default_target_handle_option): New.
24934         * targhooks.h (default_target_handle_option): Declare.
24935         * config/alpha/alpha.c: Include opts.h.
24936         (alpha_handle_option): Update to new hook interface.
24937         * config/arm/arm.c: Include opts.h.
24938         (arm_handle_option): Update to new hook interface.
24939         * config/arm/t-arm (arm.o): Update dependencies.
24940         * config/bfin/bfin.c: Include opts.h.
24941         (bfin_handle_option): Update to new hook interface.
24942         * config/cris/cris.c: Include opts.h.
24943         (cris_handle_option): Update to new hook interface.
24944         * config/frv/frv.c: Include opts.h.
24945         (frv_handle_option): Update to new hook interface.
24946         * config/i386/i386.c: Include opts.h.
24947         (ix86_handle_option): Update to new hook interface.
24948         (ix86_valid_target_attribute_inner_p): Generate option structure
24949         for call to ix86_handle_option.
24950         * config/i386/t-i386 (i386.o): Update dependencies.
24951         * config/ia64/ia64.c: Include opts.h.
24952         (ia64_handle_option): Update to new hook interface.
24953         * config/ia64/t-ia64 (ia64.o): Update dependencies.
24954         * config/iq2000/iq2000.c: Include opts.h.
24955         (iq2000_handle_option): Update to new hook interface.
24956         * config/m32c/m32c.c: Include opts.h.
24957         (m32c_handle_option): Update to new hook interface.
24958         * config/m32r/m32r.c: Include opts.h.
24959         (m32r_handle_option): Update to new hook interface.
24960         * config/m68k/m68k.c: Include opts.h.
24961         (m68k_handle_option): Update to new hook interface.
24962         * config/mep/mep.c: Include opts.h.
24963         (mep_handle_option): Update to new hook interface.
24964         * config/microblaze/microblaze.c: Include opts.h.
24965         (microblaze_handle_option): Update to new hook interface.
24966         * config/mips/mips.c: Include opts.h.
24967         (mips_handle_option): Update to new hook interface.
24968         * config/mn10300/mn10300.c: Include opts.h.
24969         (mn10300_handle_option): Update to new hook interface.
24970         * config/pa/pa.c: Include opts.h.
24971         (pa_handle_option): Update to new hook interface.
24972         * config/pdp11/pdp11.c: Include opts.h.
24973         (pdp11_handle_option): Update to new hook interface.
24974         * config/rs6000/rs6000.c: Include opts.h.
24975         (rs6000_handle_option): Update to new hook interface.
24976         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24977         * config/rx/rx.c: Include opts.h.
24978         (rx_handle_option): Update to new hook interface.
24979         * config/s390/s390.c: Include opts.h.
24980         (s390_handle_option): Update to new hook interface.
24981         * config/score/score.c: Include opts.h.
24982         (score_handle_option): Update to new hook interface.
24983         * config/sh/sh.c: Include opts.h.
24984         (sh_handle_option): Update to new hook interface.
24985         * config/sparc/sparc.c: Include opts.h.
24986         (sparc_handle_option): Update to new hook interface.
24987         * config/v850/v850.c: Include opts.h.
24988         (v850_handle_option): Update to new hook interface.
24989
24990 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24991
24992         * gcc.c (driver_unknown_option_callback): Only permit and save
24993         unknown -Wno- options.
24994         (driver_wrong_lang_callback): Save options directly instead of via
24995         driver_unknown_option_callback.
24996
24997 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24998
24999         * combine.c (simplify_set): Try harder to find the best CC mode when
25000         simplifying a nested COMPARE on the RHS.
25001
25002 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
25003
25004         * config/alpha/gnu.h: Remove.
25005         * config/arc: Remove directory.
25006         * config/arm/netbsd.h: Remove.
25007         * config/arm/t-pe: Remove.
25008         * config/crx: Remove directory.
25009         * config/i386/netbsd.h: Remove.
25010         * config/m68hc11: Remove directory.
25011         * config/m68k/uclinux-oldabi.h: Remove.
25012         * config/mcore/mcore-pe.h: Remove.
25013         * config/mcore/t-mcore-pe: Remove.
25014         * config/netbsd-aout.h: Remove.
25015         * config/rs6000/gnu.h: Remove.
25016         * config/sh/sh-symbian.h: Remove.
25017         * config/sh/symbian-base.c: Remove.
25018         * config/sh/symbian-c.c: Remove.
25019         * config/sh/symbian-cxx.c: Remove.
25020         * config/sh/symbian-post.h: Remove.
25021         * config/sh/symbian-pre.h: Remove.
25022         * config/sh/t-symbian: Remove.
25023         * config/svr3.h: Remove.
25024         * config/vax/netbsd.h: Remove.
25025         * config.build: Don't handle i[34567]86-*-pe.
25026         * config.gcc: Remove handling of deprecations for most deprecated
25027         targets.
25028         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
25029         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
25030         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
25031         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
25032         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
25033         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
25034         Remove cases.
25035         * config.host: Don't handle i[34567]86-*-pe.
25036         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
25037         (ASM_SPEC32): Don't handle -mcall-gnu.
25038         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
25039         -mcall-gnu.
25040         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
25041         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
25042         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
25043         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
25044         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
25045         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
25046         conditional on SYMBIAN.
25047         * configure.ac: Don't handle powerpc*-*-gnu*.
25048         * configure: Regenerate.
25049         * doc/extend.texi (interrupt attribute): Don't mention CRX.
25050         * doc/install-old.texi (m6811, m6812): Don't mention.
25051         * doc/install.texi (arc-*-elf*): Don't document multilib option.
25052         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
25053         (m68k-uclinuxoldabi): Don't mention.
25054         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
25055         Remove.
25056         (-mcall-gnu): Remove.
25057         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
25058         families): Remove constraint documentation.
25059
25060 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
25061
25062         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
25063         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
25064         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
25065
25066 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25067
25068         PR target/48226
25069         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
25070         vector when peeking at the next token for vector, don't expand the
25071         keywords.
25072
25073 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
25074
25075         * config/avr/avr-protos.h (expand_epilogue): Change prototype
25076         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
25077         * config/avr/avr.c (init_cumulative_args)
25078         (avr_function_arg_advance): Use it.
25079         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
25080         sibcall epilogues.
25081         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
25082         (avr_function_ok_for_sibcall): ...this new function.
25083         (avr_lookup_function_attribute1): New static Function.
25084         (avr_naked_function_p, interrupt_function_p)
25085         (signal_function_p, avr_OS_task_function_p)
25086         (avr_OS_main_function_p): Use it.
25087         * config/avr/avr.md ("sibcall", "sibcall_value")
25088         ("sibcall_epilogue"): New expander.
25089         ("*call_insn", "*call_value_insn"): New insn.
25090         ("call_insn", "call_value_insn"): Remove
25091         ("call", "call_value", "epilogue"): Change expander to handle
25092         sibling calls.
25093
25094 2011-03-21  Nick Clifton  <nickc@redhat.com>
25095
25096         * doc/invoke.texi (Overall Options): Move closing brace to end of
25097         options list.
25098         (Optimization Options): Add missing @gol.
25099         (Directory Options): Likewise.
25100         (i386 and x86-64 Options): Likewise.
25101         (RS6000 and PowerPC Options): Likewise.
25102         (i386 and x86-64 Windows Options): Likewise.
25103         (V850 Options): Add text missing from descriptions.
25104
25105 2011-03-22  Richard Henderson  <rth@redhat.com>
25106
25107         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
25108         (avr_incoming_return_addr_rtx): New.
25109         (emit_push_byte): New.
25110         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
25111         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
25112         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
25113         (emit_pop_byte): New.
25114         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25115         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25116         (INCOMING_RETURN_ADDR_RTX): New.
25117         (INCOMING_FRAME_SP_OFFSET): New.
25118         (ARG_POINTER_CFA_OFFSET): New.
25119         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25120         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25121         (pophi): Remove.
25122
25123         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25124
25125 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25126
25127         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25128         (FUNCTION_ARG_ADVANCE): Likewise.
25129         * tm.texi.in: Change references to them to hook references.
25130         * tm.texi: Regenerate.
25131         * targhooks.c (default_function_arg): Eliminate check for target
25132         macro.
25133         (default_function_incoming_arg): Likewise.
25134         (default_function_arg_advance): Likewise.
25135         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25136         (function_arg_advance): Likewise.
25137         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25138
25139 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25140
25141         * tree.c (build_call_1): New function.
25142         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25143
25144 2011-03-22  Richard Guenther  <rguenther@suse.de>
25145
25146         PR tree-optimization/48228
25147         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25148         for single-arg PHIs.
25149
25150 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
25151
25152         PR rtl-optimization/48143
25153         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25154         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25155         sse2_cvtps2pd): Likewise.
25156
25157 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25158
25159         * recog.c (canonicalize_change_group): Use validate_unshare_change.
25160
25161 2011-03-22  Richard Guenther  <rguenther@suse.de>
25162
25163         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25164         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25165         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25166         and REALIGN_LOAD_EXPR.
25167         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25168         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25169         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25170         DOT_PROD_EXPR case ...
25171         (expand_expr_real_2): ... here.
25172         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25173         and REALIGN_LOAD_EXPR.
25174         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25175         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25176         (vect_create_epilog_for_reduction): Likewise.
25177         (vectorizable_reduction): Likewise.
25178         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25179         * tree-vect-stmts.c (vectorizable_load): Likewise.
25180
25181 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25182
25183         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25184
25185 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25186
25187         * config/s390/s390.c (s390_delegitimize_address): Fix offset
25188         handling for PLTOFF/GOTOFF.
25189
25190 2011-03-22  Nick Clifton  <nickc@redhat.com>
25191
25192         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25193         trailing backslash from the end of the macro definition.
25194
25195 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25196
25197         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25198         and PLT unspecs.
25199
25200 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
25201
25202         * expr.h (prepare_operand): Move to...
25203         * optabs.h (prepare_operand): ...here and change the insn code
25204         parameter from "int" to "enum insn_code".
25205         (insn_operand_matches): Declare.
25206         * expr.c (init_expr_target): Use insn_operand_matches.
25207         (compress_float_constant): Likewise.
25208         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25209         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25210         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25211         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25212         Likewise.
25213         (gen_cond_trap): Likewise.
25214         (prepare_operand): Likewise.  Change icode to an insn_code.
25215         (insn_operand_matches): New function.
25216         * reload.c (find_reloads_address_1): Use insn_operand_matches.
25217         * reload1.c (gen_reload): Likewise.
25218         * targhooks.c (default_secondary_reload): Likewise.
25219
25220 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25221
25222         * config/alpha/alpha.md (unspec): New define_c_enum.
25223         (unspecv): Ditto.
25224
25225 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25226
25227         PR debug/48214
25228         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25229         between a call and its CALL_ARG_LOCATION note.
25230
25231 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
25232
25233         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25234
25235 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25236
25237         PR c/42544
25238         PR c/48197
25239         * c-common.c (shorten_compare): If primopN is first sign-extended
25240         to opN and then zero-extended to result type, set primopN to opN.
25241
25242 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
25243
25244         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25245         for barrier handlers.
25246
25247 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25248
25249         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25250         UNSPEC constants to be in the unspec enumeration, and redefine
25251         all UNSPECV constants to be in the unspecv enumeration, so that
25252         dumps print which unspec/unspec_volatile this is.
25253         * config/rs6000/vector.md (UNSPEC_*): Ditto.
25254         * config/rs6000/paired.md (UNSPEC_*): Ditto.
25255         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25256         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25257         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25258
25259         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25260         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25261         UNSPECV_LWSYNC, since these are used as unspec_volatile.
25262         * config/rs6000/sync.md (isync, lwsync): Ditto.
25263
25264 2011-03-21  Richard Guenther  <rguenther@suse.de>
25265
25266         * params.def (lto-min-partition): Fix typo.
25267
25268 2011-03-21  Richard Guenther  <rguenther@suse.de>
25269
25270         PR c/47939
25271         * c-decl.c (grokdeclarator): Drop to the main variant only
25272         for array types.  Drop flag_gen_aux_info check.
25273
25274 2011-03-21  Richard Guenther  <rguenther@suse.de>
25275
25276         PR translation/47911
25277         * params.def (lto-partitions): Fix typo.
25278         (lto-min-partition): Fix wording.
25279
25280 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
25281
25282         * config/rs6000/t-freebsd: Remove duplication from file.
25283
25284 2011-03-21  Richard Guenther  <rguenther@suse.de>
25285
25286         PR middle-end/47661
25287         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25288
25289 2011-03-21  Richard Guenther  <rguenther@suse.de>
25290
25291         PR lto/48210
25292         * params.def (lto-partitions): Require at least 1 partition.
25293
25294 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25295
25296         * gthr-solaris.h: Remove.
25297         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25298         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25299         (LIB_SPEC): Likewise.
25300         * config/sol2.opt (threads): Remove.
25301         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25302         (sparc*-*-solaris2*): Likewise.
25303         * configure.ac (enable_threads): Enable solaris support.
25304         * configure: Regenerate.
25305         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25306         * doc/install.texi (Configuration, --enable-threads=lib): Remove
25307         solaris.
25308
25309 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25310
25311         * config.gcc: Obsolete *-*-solaris2.8*.
25312         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25313
25314 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25315
25316         PR bootstrap/48135
25317         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25318         reference.  Solaris 8 perl works.
25319
25320 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25321
25322         PR bootstrap/48135
25323         * doc/install.texi (Prerequisites): Move jar etc. up.
25324         Explain support library version requirements.
25325
25326 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25327
25328         PR bootstrap/48135
25329         * doc/install.texi (Prerequisites): Move Perl to build
25330         requirements.  Always necessary on Solaris 2 with Sun ld.
25331
25332 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25333
25334         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25335         binutils 2.21.
25336         (Specific, i?86-*-solaris2.[89]): Likewise.
25337         (Specific, i?86-*-solaris2.10): Likewise.
25338         (Specific, mips-sgi-irix6): Likewise.
25339         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25340         Update for binutils 2.21.
25341
25342 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25343
25344         * configure.ac (gcc_cv_lto_plugin): Fix typo.
25345         Allow -fuse-linker-plugin for non-default plugin linker.
25346         * configure: Regenerate.
25347
25348 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
25349
25350         PR bootstrap/48167
25351         * gengtype.c (files_rules): Added rule for cp/parser.h.
25352
25353 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25354
25355         PR target/48213
25356         * config/s390/s390.c (s390_delegitimize_address): Don't call
25357         lowpart_subreg if orig_x has BLKmode.
25358
25359 2011-03-21  Kai Tietz  <ktietz@redhat.com>
25360
25361         PR target/12171
25362         * doc/plugins.texi: Adjust documentation for plugin register_callback.
25363         * tree.h (attribute_spec): Add new member affects_type_identity.
25364         * attribs.c (empty_attribute_table): Adjust attribute_spec
25365         initializers.
25366         * config/alpha/alpha.c: Likewise.
25367         * config/arc/arc.c: Likewise.
25368         * config/arm/arm.c: Likewise.
25369         * config/avr/avr.c: Likewise.
25370         * config/bfin/bfin.c: Likewise.
25371         * config/crx/crx.c: Likewise.
25372         * config/darwin.h: Likewise.
25373         * config/h8300/h8300.c: Likewise.
25374         * config/i386/cygming.h: Likewise.
25375         * config/i386/i386.c: Likewise.
25376         * config/ia64/ia64.c: Likewise.
25377         * config/m32c/m32c.c: Likewise.
25378         * config/m32r/m32r.c: Likewise.
25379         * config/m68hc11/m68hc11.c: Likewise.
25380         * config/m68k/m68k.c: Likewise.
25381         * config/mcore/mcore.c: Likewise.
25382         * config/mep/mep.c: Likewise.
25383         * config/microblaze/microblaze.c: Likewise.
25384         * config/mips/mips.c: Likewise.
25385         * config/rs6000/rs6000.c: Likewise.
25386         * config/rx/rx.c: Likewise.
25387         * config/sh/sh.c: Likewise.
25388         * config/sol2.h: Likewise.
25389         * config/sparc/sparc.c: Likewise.
25390         * config/spu/spu.c: Likewise.
25391         * config/stormy16/stormy16.c: Likewise.
25392         * config/v850/v850.c: Likewise.
25393
25394 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
25395
25396         * simplify-rtx.c (simplify_binary_operation_1): Handle
25397         (xor (and A B) C) case when B and C are both constants.
25398
25399 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
25400
25401         * tree-dfa.c (add_referenced_var): Fix typo in comment.
25402
25403 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25404
25405         PR bootstrap/48168
25406         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25407
25408 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
25409
25410         PR rtl-optimization/48156
25411         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25412         assume df and df_lr are not NULL.
25413
25414 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25415
25416         PR debug/48023
25417         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25418         between a call and its CALL_ARG_LOCATION note.
25419
25420 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25421
25422         PR debug/48178
25423         * config/sh/sh.c (find_barrier): Don't emit a constant pool
25424         between a call and its corresponding CALL_ARG_LOCATION note.
25425
25426 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
25427
25428         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25429         instead of loop. Use HARD_REGISTER_NUM_P predicate.
25430         * haifa-sched.c (setup_ref_regs): Ditto.
25431         * caller-save.c (add_used_regs_1): Ditto.
25432         * dse.c (look_for_hardregs): Ditto.
25433         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25434         * sched-rgn.c (check_live_1): Ditto.
25435
25436 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25437
25438         * c-decl.c (diagnose_mismatched_decls): Give an error for
25439         redefining a typedef with variably modified type.
25440
25441 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25442
25443         * c-decl.c (grokfield): Don't allow typedefs for structures or
25444         unions with no tag by default.
25445         * doc/extend.texi (Unnamed Fields): Update.
25446
25447 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
25448
25449         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25450         Rewrite using indirect functions.
25451         (lwp_slwpcb): Ditto.
25452         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25453         (avx_vinsertf128<mode>): Ditto.
25454
25455 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25456
25457         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25458         unspecs.
25459
25460 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25461
25462         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25463         splitting between a call and its corresponding CALL_ARG_LOCATION note.
25464
25465 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
25466
25467         PR rtl-optimization/48170
25468         * gcse.c (hoist_code): Remove bogus asserts.
25469
25470 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
25471
25472         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25473         computation for prologue/epilogue.
25474
25475 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25476
25477         * Makefile.in (check-consistency): Remove.
25478
25479 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
25480
25481         PR debug/48176
25482         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25483         arange_table_in_use is 0, but either text_section_used or
25484         cold_text_section_used is true.  Don't call it if
25485         !info_section_emitted.
25486
25487 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
25488
25489         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25490         FUNCTION_VALUE_REGNO_P): Remove.
25491         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25492         Remove.
25493         * config/avr/avr.c (avr_ret_register): Make static inline.
25494         (avr_function_value_regno_p): New function.
25495         (avr_libcall_value): Make static. Add 'func' argument.
25496         (avr_function_value): Make static. Rename 'func' argument to
25497         'fn_decl_or_type', forward it to avr_libcall_value. Call
25498         avr_ret_register function instead of RET_REGISTER macro.
25499         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25500
25501 2011-03-18  Jason Merrill  <jason@redhat.com>
25502
25503         PR c++/23372
25504         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25505
25506 2011-03-18  Richard Guenther  <rguenther@suse.de>
25507
25508         * doc/install.texi (--enable-gold): Remove.
25509         (--with-plugin-ld): Document.
25510         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25511
25512 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
25513
25514         PR middle-end/47790
25515         * expr.c (optimize_bitfield_assignment_op): Revamp to work
25516         again after expansion changes.
25517
25518 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
25519
25520         * combine.c (try_combine): Do simplification only call of
25521         subst() on i2 even when i1 is present. Update comments.
25522
25523 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
25524
25525         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25526         and UNSPEC_PCREL_SYMOFF.
25527
25528 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25529
25530         * config/s390/s390.md: Use define_c_enum for the unspec constant
25531         definitions.
25532
25533 2011-03-18  Richard Henderson  <rth@redhat.com>
25534             Jakub Jelinek  <jakub@redhat.com>
25535
25536         PR bootstrap/48161
25537         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25538         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25539
25540 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
25541
25542         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25543         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25544         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25545         Change return type to bool.
25546         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25547
25548 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25549
25550         PR debug/48163
25551         * var-tracking.c (prepare_call_arguments): If CALL target
25552         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25553         pc instead of looking it up using cselib_lookup and use
25554         Pmode for it if x has VOIDmode.
25555         * dwarf2out.c (gen_subprogram_die): If also both first and
25556         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25557
25558         PR debug/48163
25559         * function.c (assign_parms): For data.passed_pointer parms
25560         use MEM of data.entry_parm instead of data.entry_parm itself
25561         as DECL_INCOMING_RTL.
25562         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25563         also when passed and declared mode is the same, DECL_RTL
25564         is a MEM with pseudo as address and DECL_INCOMING_RTL is
25565         a MEM too.
25566
25567 2011-03-16  Jeff Law  <law@redhat.com>
25568
25569         PR rtl-optimization/37273
25570         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25571         handle them like argument loads from stack slots.  Do not double
25572         count memory for memory constants and argument loads from stack slots.
25573
25574 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25575
25576         PR debug/48160
25577         * var-tracking.c (prepare_call_arguments): Check SUBREG.
25578
25579 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25580
25581         PR target/48171
25582         * config/i386/i386.opt: Add Save to -mavx and -mfma.
25583
25584 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25585
25586         PR bootstrap/48153
25587         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25588         if dwarf_strict.
25589         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25590         Clear call_arg_locations and call_arg_loc_last always.
25591
25592         PR middle-end/48152
25593         * var-tracking.c (prepare_call_arguments): If argument needs to be
25594         passed by reference, adjust argtype and mode.
25595
25596 2011-03-17  Richard Guenther  <rguenther@suse.de>
25597
25598         PR middle-end/48134
25599         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25600         a value make sure to fold the statement.
25601
25602 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
25603
25604         PR target/43872
25605         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25606         return condition with !cfun->calls_alloca.
25607
25608 2011-03-17  Richard Guenther  <rguenther@suse.de>
25609
25610         PR bootstrap/48148
25611         * lto-cgraph.c (input_overwrite_node): Clear the abstract
25612         origin for decls in other ltrans units.
25613         (input_varpool_node): Likewise.
25614
25615 2011-03-17  Richard Guenther  <rguenther@suse.de>
25616
25617         PR middle-end/48165
25618         * tree-object-size.c (compute_object_offset): Properly return
25619         the offset operand of MEM_REFs as sizetype.
25620
25621 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25622
25623         PR rtl-optimization/48141
25624         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25625         * dse.c: Include params.h.
25626         (active_local_stores_len): New variable.
25627         (add_wild_read, dse_step1): Clear it when setting active_local_stores
25628         to NULL.
25629         (record_store, check_mem_read_rtx): Decrease it when removing
25630         from the chain.
25631         (scan_insn): Likewise.  Increase it when adding to chain, if it
25632         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25633         set active_local_stores to NULL before the addition.
25634         * Makefile.in (dse.o): Depend on $(PARAMS_H).
25635
25636         PR rtl-optimization/48141
25637         * dse.c (record_store): If no positions are needed in an insn
25638         that cannot be deleted, at least unchain it from active_local_stores.
25639
25640 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
25641
25642         PR debug/47510
25643         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25644         (lookup_type_die_strip_naming_typedef): ... here.
25645         (get_context_die): Use it.
25646         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25647         the anonymous struct named by the naming typedef.
25648
25649 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25650
25651         PR target/48154
25652         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25653         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25654
25655 2011-03-16  Jeff Law  <law@redhat.com>
25656
25657         * tree-vrp.c (identify_jump_threads): Slightly simplify type
25658         check for operands of conditional.  Allow type to be a pointer.
25659
25660 2011-03-16  Richard Guenther  <rguenther@suse.de>
25661
25662         PR tree-optimization/48149
25663         * fold-const.c (fold_binary_loc): Fold
25664         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25665
25666 2011-03-16  Richard Guenther  <rguenther@suse.de>
25667
25668         PR tree-optimization/26134
25669         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25670         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25671         (non_rewritable_mem_ref_base): Handle complex type component
25672         accesses, constrain offsets for vector and complex extracts
25673         more properly.
25674
25675 2011-03-16  Richard Guenther  <rguenther@suse.de>
25676
25677         PR tree-optimization/48146
25678         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25679         operands avoiding the need for renaming.
25680
25681 2011-03-16  Richard Guenther  <rguenther@suse.de>
25682
25683         * gimple-fold.c (maybe_fold_reference): Open-code relevant
25684         constant folding.  Move MEM_REF canonicalization first.
25685         Rely on fold_const_aggregate_ref for initializer folding.
25686         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25687
25688 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25689
25690         PR middle-end/48136
25691         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25692         arg0/arg1 or their arguments are always fold converted to matching
25693         types.
25694
25695         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25696         to nargs.
25697
25698 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25699
25700         PR lto/46944
25701         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25702         Handle in-tree gold.
25703         (ld_vers): Extract binutils version for gold.
25704         (gcc_cv_ld_hidden): Handle gold here.
25705         (gcc_cv_lto_plugin): Determine level of linker plugin support.
25706         * configure: Regenerate.
25707         * config.in: Regenerate.
25708         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25709         -fuse-linker-plugin otherwise.
25710         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
25711         (LINK_COMMAND_SPEC): Use it.
25712         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25713
25714 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25715
25716         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25717         * calls.c: Remove debug.h include.
25718         (emit_call_1): Don't call virtual_call_token debug hook.
25719         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25720         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25721         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25722         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25723         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25724         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25725         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25726         dwarf2out_virtual_call): Remove.
25727         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25728         copy_call_info and virtual_call hooks.
25729         (dwarf2out_init): Don't initialize vcall_insn_table,
25730         debug_dcall_section and debug_vcall_section.
25731         (prune_unused_types): Don't mark nodes from dcall_table.
25732         (dwarf2out_finish): Don't output dcall or vcall tables.
25733         * final.c (final_scan_insn): Don't call direct_call or
25734         virtual_call debug hooks.
25735         * debug.h (struct gcc_debug_hooks): Remove direct_call,
25736         virtual_call_token, copy_call_info and virtual_call hooks.
25737         (debug_nothing_uid): Remove prototype.
25738         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25739         copy_call_info and virtual_call hooks.
25740         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25741         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25742         * debug.c (do_nothing_debug_hooks): Likewise.
25743         (debug_nothing_uid): Remove.
25744         * doc/invoke.texi (-fenable-icf-debug): Remove.
25745         * common.opt (-fenable-icf-debug): Likewise.
25746
25747         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25748         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25749         call's MEM.  Handle functions returning aggregate through a hidden
25750         first pointer.  For virtual calls add clobbered pc to call arguments
25751         chain.
25752         * dwarf2out.c (gen_subprogram_die): Emit
25753         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25754         can't be emitted.
25755
25756         PR debug/45882
25757         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25758         * rtl.h (ENTRY_VALUE_EXP): Define.
25759         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25760         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25761         * print-rtl.c (print_rtx): Likewise.
25762         * gengtype.c (adjust_field_rtx_def): Likewise.
25763         * var-tracking.c (vt_add_function_parameter): Adjust
25764         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25765         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25766         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25767         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25768         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25769
25770         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25771         Call var_location debug hook even on CALL_INSNs.
25772         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25773         * rtl.def (ENTRY_VALUE): New.
25774         * dwarf2out.c: Include cfglayout.h.
25775         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25776         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25777         (struct call_arg_loc_node): New type.
25778         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25779         tail_call_site_count): New variables.
25780         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25781         DW_TAG_GNU_call_site_parameter.
25782         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25783         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25784         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25785         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25786         and DW_AT_GNU_all_source_call_sites.
25787         (mem_loc_descriptor): Handle ENTRY_VALUE.
25788         (add_src_coords_attributes): Don't add enything if
25789         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25790         (dwarf2out_abstract_function): Save and clear call_arg_location,
25791         call_site_count and tail_call_site_count around dwarf2out_decl call.
25792         (gen_call_site_die): New function.
25793         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25794         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25795         (dwarf2out_function_decl): Clear call_arg_locations,
25796         call_arg_loc_last, set call_site_count and tail_call_site_count
25797         to -1 and free block_map.
25798         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25799         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
25800         followed by any real instructions.
25801         (dwarf2out_begin_function): Set call_site_count and
25802         tail_call_site_count to 0.
25803         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25804         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25805         attempt to force a DIE for it and worst case remove the attribute.
25806         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25807         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25808         the decl itself.
25809         * var-tracking.c: Include tm_p.h.
25810         (vt_stack_adjustments): For calls call note_register_arguments.
25811         (argument_reg_set): New variable.
25812         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25813         ensure the VALUE is resolved.
25814         (call_arguments): New variable.
25815         (prepare_call_arguments): New function.
25816         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25817         (struct expand_loc_callback_data): Add ignore_cur_loc field.
25818         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25819         always use the best expression.
25820         (vt_expand_loc): Add ignore_cur_loc argument.
25821         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25822         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25823         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25824         note for all calls.
25825         (vt_add_function_parameter): Use cselib_lookup_from_insn.
25826         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25827         argument.  Don't call cselib_preserve_only_values and
25828         cselib_reset_table.
25829         (note_register_arguments): New function.
25830         (vt_initialize): Compute argument_reg_set.  Call
25831         vt_add_function_parameters before processing basic blocks instead of
25832         afterwards.  For calls call prepare_call_arguments before calling
25833         cselib_process_insn.
25834         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25835         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25836         (var-tracking.o): Depend on $(TM_P_H).
25837         * cfglayout.h (insn_scope): New prototype.
25838         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25839         * cfglayout.c (insn_scope): No longer static.
25840         * insn-notes.def (CALL_ARG_LOCATION): New.
25841         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25842         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25843         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25844         nothing for DECL_EXTERNAL BLOCK_VARS.
25845
25846 2011-03-16  Alan Modra  <amodra@gmail.com>
25847
25848         PR target/45844
25849         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25850         create invalid offset address for vsx splat insn.
25851         * config/rs6000/predicates.md (splat_input_operand): New.
25852         * config/rs6000/vsx.md (vsx_splat_*): Use it.
25853
25854 2011-03-15  Xinliang David Li  <davidxl@google.com>
25855
25856         PR c/47837
25857         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25858         (normalize_preds): New function.
25859         (is_use_properly_guarded): Normalize def predicates.
25860
25861 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25862
25863         PR target/46788
25864         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25865         in the output template.
25866
25867 2011-03-15  Richard Guenther  <rguenther@suse.de>
25868
25869         PR middle-end/47650
25870         * tree-pretty-print.c (dump_function_declaration): Properly
25871         dump unprototyped and varargs function types.
25872
25873 2011-03-15  Richard Guenther  <rguenther@suse.de>
25874
25875         PR tree-optimization/13954
25876         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25877         and friends.
25878
25879 2011-03-15  Richard Guenther  <rguenther@suse.de>
25880
25881         PR tree-optimization/48037
25882         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25883         selects into BIT_FIELD_REFs.
25884         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25885         vector select.
25886
25887 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
25888
25889         PR tree-optimization/48129
25890         * builtins.c (fold_builtin_snprintf): Convert to type of
25891         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25892         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25893
25894 2011-03-15  Richard Guenther  <rguenther@suse.de>
25895
25896         PR tree-optimization/41490
25897         * tree-ssa-dce.c (propagate_necessity): Handle returns without
25898         value but with VUSE.
25899         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25900         return statements.
25901         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25902         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25903         * tree-tailcall.c (find_tail_calls): Ignore returns.
25904
25905 2011-03-15  Richard Guenther  <rguenther@suse.de>
25906
25907         PR middle-end/48031
25908         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25909         or variable-indexed array accesses when in gimple form.
25910
25911 2011-03-15  Richard Guenther  <rguenther@suse.de>
25912
25913         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25914
25915 2011-03-15  Alan Modra  <amodra@gmail.com>
25916
25917         PR target/48032
25918         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25919         presume symbol_refs without a symbol_ref_decl are suitably
25920         aligned, nor other trees we may see here.  Handle anchor symbols.
25921         (legitimate_constant_pool_address_p): Comment.  Add mode param.
25922         Check cmodel=medium addresses.  Adjust all calls.
25923         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25924         creating cmodel=medium optimized access to locals.
25925         * config/rs6000/constraints.md (R): Pass QImode to
25926         legitimate_constant_pool_address_p.
25927         * config/rs6000/predicates.md (input_operand): Pass mode to
25928         legitimate_constant_pool_address_p.
25929         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25930         Update prototype.
25931
25932 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25933
25934         PR target/48053
25935         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25936         64-bit constants being loaded into registers other than GPRs such
25937         as loading 0 into a VSX register.
25938
25939 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25940
25941         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25942
25943 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25944
25945         PR middle-end/47917
25946         * builtins.c (fold_builtin_snprintf): New function.
25947         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25948         (fold_builtin_4): Likewise.
25949
25950         PR middle-end/38878
25951         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25952         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
25953         and C - X == X also strip nops from +/-/p+ operand.
25954         When optimizing -X == C, fold C to arg0's type.
25955
25956         PR debug/47946
25957         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25958         emit it as add_AT_int instead of add_AT_unsigned.
25959
25960 2011-03-14  Tom Tromey  <tromey@redhat.com>
25961
25962         * unwind-dw2.c: Include sys/sdt.h if it exists.
25963         (_Unwind_DebugHook): Use STAP_PROBE2.
25964         * config.in, configure: Rebuild.
25965         * configure.ac: Check for sys/sdt.h.
25966
25967 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
25968
25969         * config/i386/i386.md (ROUND_FLOOR): New constant.
25970         (ROUND_CEIL): Ditto.
25971         (ROUND_TRUNC): Ditto.
25972         (ROUND_MXCSR): Ditto.
25973         (ROUND_NO_EXC): Ditto.
25974         (rint<mode>2): Use new defines instead of numerical constants.
25975         (floor<mode>2): Ditto.
25976         (ceil<mode>2): Ditto.
25977         (btrunc<mode>2): Ditto.
25978         * config/i386/i386-builtin-types.def: Define ROUND function type
25979         aliases.
25980         * config/i386/i386.c (enum ix86_builtins): Add
25981         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25982         (struct builtin_description): Add
25983         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25984         (ix86_expand_sse_round): New static function.
25985         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25986         function types.
25987         (ix86_builtin_vectorized_function): Handle
25988         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25989
25990 2011-03-14  Tom Tromey  <tromey@redhat.com>
25991
25992         * c-parser.c (c_parser_asm_string_literal): Clear
25993         warn_overlength_strings.
25994
25995 2011-03-14  Tom Tromey  <tromey@redhat.com>
25996
25997         * c-parser.c (disable_extension_diagnostics): Save
25998         warn_overlength_strings.
25999         (restore_extension_diagnostics): Restore warn_overlength_strings.
26000
26001 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26002
26003         * BASE-VER: Change to 4.7.0.
26004
26005 2011-03-14  Richard Guenther  <rguenther@suse.de>
26006
26007         PR middle-end/48098
26008         * tree.c (build_vector_from_val): Adjust assert to requirements
26009         and reality.
26010
26011 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
26012
26013         PR bootstrap/48102
26014         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
26015
26016 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
26017
26018         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
26019         terms of target_flags_explicit. Adjust copyright year.
26020
26021         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
26022         * config/rs6000/t-freebsd: New file. Add override for
26023         LIB2FUNCS_EXTRA.
26024
26025 2011-03-13  Chris Demetriou  <cgd@google.com>
26026
26027         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
26028         (-fno-diagnostics-show-option): this, to reflect current default.
26029         (-Werror=): Update text about -fno-diagnostics-show-option.
26030
26031 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
26032
26033         PR target/48053
26034         * config/rs6000/predicates.md (easy_vector_constant_add_self,
26035         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
26036         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
26037         mode is not V2DImode or V2DFmode.
26038         (vspltis_constant): Do not handle V2DImode and V2DFmode.
26039         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
26040         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
26041         registers to 0.
26042         (movdi_internal64): Likewise.
26043
26044 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
26045
26046         PR tree-optimization/47127
26047         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
26048         parameter.
26049         (set_cloog_options): Same.
26050         (scop_to_clast): Same.
26051         (print_clast_stmt): Do not call cloog_state_malloc and
26052         cloog_state_free.
26053         (print_generated_program): Same.
26054         (gloog): Same.
26055         * graphite-clast-to-gimple.h (cloog_state): Declared.
26056         (scop_to_clast): Adjust declaration.
26057         * graphite.c (cloog_state): Defined here.
26058         (graphite_initialize): Call cloog_state_malloc.
26059         (graphite_finalize): Call cloog_state_free.
26060
26061 2011-03-11  Jason Merrill  <jason@redhat.com>
26062
26063         * attribs.c (lookup_attribute_spec): Take const_tree.
26064         * tree.h: Adjust.
26065
26066 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
26067
26068         * config/sparc/sparc.c (sparc_option_override): Use
26069         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
26070
26071 2011-03-11  Richard Guenther  <rguenther@suse.de>
26072
26073         PR tree-optimization/48067
26074         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
26075         multiplication result will be only used once on the target
26076         stmt.
26077
26078 2011-03-11  Richard Guenther  <rguenther@suse.de>
26079
26080         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
26081
26082 2011-03-11  Richard Guenther  <rguenther@suse.de>
26083
26084         PR lto/48073
26085         * tree.c (find_decls_types_r): Do not walk types only reachable
26086         from IDENTIFIER_NODEs.
26087
26088 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26089
26090         PR middle-end/48044
26091         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
26092         all vnode->force_output nodes as needed.
26093
26094 2011-03-11  Jason Merrill  <jason@redhat.com>
26095
26096         PR c++/48069
26097         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
26098         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
26099
26100 2011-03-11  Martin Jambor  <mjambor@suse.cz>
26101
26102         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
26103         cgraph_node.
26104
26105 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
26106
26107         PR tree-optimization/48063
26108         * ipa-inline.c (cgraph_decide_inlining): Don't try to
26109         inline functions called once if !tree_can_inline_p (node->callers).
26110
26111 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
26112
26113         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
26114         extra_objs.
26115         * config/score/score3.c: Delete.
26116         * config/score/score3.h: Delete.
26117         * config/score/mul-div.S: Delete.
26118         * config/score/sfp-machine.h: Add new file.
26119         * config/score/constraints.md: Add new file.
26120         * config/score/t-score-softfp: Add new file.
26121         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26122         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26123         (score7_extra_constraint): Delete.
26124         (score7_option_override): Remove unused code.
26125         * config/score/score.c: Remove score3 and score5 define and code.
26126         * config/score/score.h: Remove score3 and score5 define and code.
26127         * config/score/score.md: Remove score3 template and unusual insn.
26128         * config/score/score.opt: Remove score3 and score5 options.
26129
26130 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26131
26132         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26133         when _HPUX_SOURCE is defined.
26134         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26135
26136 2011-03-10  Jason Merrill  <jason@redhat.com>
26137
26138         PR c++/48029
26139         * stor-layout.c (layout_type): Don't set structural equality
26140         on arrays of incomplete type.
26141         * tree.c (type_hash_eq): Handle comparing them properly.
26142
26143 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26144
26145         PR debug/48043
26146         * config/s390/s390.c (s390_delegitimize_address): Make sure the
26147         result mode matches original rtl mode.
26148
26149 2011-03-10  Nick Clifton  <nickc@redhat.com>
26150
26151         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26152         (andsi3, andsi3_flags): Fix timings for three operand alternative.
26153
26154 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
26155
26156         PR rtl-optimization/47866
26157         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26158         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26159         if target wasn't scalar.
26160         * function.c (assign_stack_temp_for_type): Assert that neither
26161         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26162         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26163         macro.
26164         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26165
26166 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26167
26168         * config/s390/s390-protos.h (s390_label_align): New prototype.
26169         * config/s390/s390.c (s390_label_align): New function.
26170         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26171
26172 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26173
26174         PR target/47755
26175         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26176         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
26177         (output_vec_const_move): Ditto.
26178
26179 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
26180
26181         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26182         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26183         * config/mips/mips.c (mips_preferred_reload_class): Make static.
26184         Change 'rclass' argument and result type to reg_class_t.
26185         (TARGET_PREFERRED_RELOAD_CLASS): Define.
26186
26187 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
26188
26189         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26190         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26191         (TARGET_MEMORY_MOVE_COST): Define.
26192         (avr_register_move_cost, avr_memory_move_cost): New Functions.
26193
26194 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
26195
26196         PR debug/47881
26197         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26198         removed anything.
26199
26200         PR tree-optimization/48022
26201         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26202         for EQ/NE_EXPR.
26203
26204 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
26205
26206         PR debug/47991
26207         * var-tracking.c (find_use_val): Return NULL for
26208         cui->sets && cui->store_p BLKmode MEMs.
26209
26210 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
26211
26212         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26213         Remove.
26214         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26215         xstormy16_print_operand_address): Remove.
26216         * config/stormy16/stormy16.c (xstormy16_print_operand,
26217         xstormy16_print_operand_address): Make static.
26218         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26219
26220 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
26221
26222         PR target/47862
26223         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26224         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26225         before definition.
26226
26227 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
26228
26229         PR bootstrap/48000
26230         * cfgloopmanip.c (fix_bb_placements): Return immediately
26231         if FROM is BASE_LOOP's header.
26232
26233 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
26234
26235         * gimplify.c (gimplify_function_tree): Fix building calls
26236         to __builtin_return_address.
26237
26238 2011-03-07  Alan Modra  <amodra@gmail.com>
26239
26240         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26241         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26242         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26243         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26244         return_mode args.
26245         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26246         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26247         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26248         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26249         * config/rs6000/rs6000.c
26250         (rs6000_elf_end_indicate_exec_stack): Rename to..
26251         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
26252         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
26253         (rs6000_file_start): ..here.
26254         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26255         file scope variables.
26256         (call_ABI_of_interest): New function.
26257         (init_cumulative_args): Set above vars when function return value
26258         is a float, vector, or small struct.
26259         (rs6000_function_arg_advance_1): Likewise for function args.
26260         (rs6000_va_start): Set rs6000_passes_float if variable arg function
26261         references float args.
26262
26263 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
26264
26265         * doc/cfg.texi: Remove "See" before @ref.
26266         * doc/invoke.texi: Likewise.
26267
26268 2011-03-05  Jason Merrill  <jason@redhat.com>
26269
26270         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26271
26272 2011-03-05  Anthony Green  <green@moxielogic.com>
26273
26274         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26275
26276 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
26277
26278         PR rtl-optimization/47899
26279         * cfgloopmanip.c (fix_bb_placements): Fix first argument
26280         to flow_loop_nested_p when moving the loop upward.
26281
26282 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
26283
26284         PR target/47719
26285         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
26286
26287 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
26288
26289         PR tree-optimization/47967
26290         * ipa-cp.c (build_const_val): Return NULL instead of creating
26291         VIEW_CONVERT_EXPR for mismatching sizes.
26292         (ipcp_create_replace_map): Return NULL if build_const_val failed.
26293         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26294         give up on versioning.
26295
26296 2011-03-05  Alan Modra  <amodra@gmail.com>
26297
26298         PR target/47986
26299         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26300         full cmodel medium/large lo_sum + high addresses.
26301
26302 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26303
26304         * config/s390/s390.c (s390_decompose_address): Reject non-literal
26305         pool references in UNSPEC_LTREL_OFFSET.
26306
26307 2011-03-04  Jan Hubicka  <jh@suse.cz>
26308
26309         PR lto/47497
26310         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26311         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26312         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26313         Add node pointers.
26314         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26315         cgraph_add_thunk): Add node pointers.
26316         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26317         associated to right node.
26318         (input_node): Update use of cgraph_same_body_alias
26319         and cgraph_add_thunk.
26320
26321 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26322
26323         * config/i386/i386.opt (mprefer-avx128): New flag.
26324         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26325         modes when the flag -mprefer-avx128 is on.
26326
26327 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
26328
26329         * dwarf2out.c (compare_loc_operands): Fix address handling.
26330
26331 2011-03-04  Alan Modra  <amodra@gmail.com>
26332
26333         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26334
26335 2011-03-04  Richard Guenther  <rguenther@suse.de>
26336
26337         PR middle-end/47968
26338         * expmed.c (extract_bit_field_1): Prefer vector modes that
26339         vec_extract patterns can handle.
26340
26341 2011-03-04  Richard Guenther  <rguenther@suse.de>
26342
26343         PR middle-end/47975
26344         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26345
26346 2011-03-04  Richard Henderson  <rth@redhat.com>
26347
26348         * explow.c (emit_stack_save): Remove 'after' parameter.
26349         (emit_stack_restore): Likewise.
26350         * expr.h: Update to match.
26351         * builtins.c, calls.c, stmt.c: Likewise.
26352         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26353         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26354         * function.c (expand_function_end): Insert the emit_stack_save
26355         sequence before parm_birth_insn instead of after.
26356
26357 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
26358
26359         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26360         (ssse3_pmaddubsw128): Ditto.
26361         (ssse3_pmaddubsw): Ditto.
26362
26363 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
26364
26365         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26366
26367 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
26368
26369         PR c/47963
26370         * gimplify.c (omp_add_variable): Only call omp_notice_variable
26371         on TYPE_SIZE_UNIT if it is a DECL.
26372
26373         PR debug/47283
26374         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26375         first operand is not is_gimple_mem_ref_addr, try to fold it.
26376         If the operand still isn't is_gimple_mem_ref_addr, clear
26377         MEM_EXPR on op0.
26378
26379 2011-03-03  Richard Guenther  <rguenther@suse.de>
26380
26381         PR middle-end/47283
26382         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26383         match comment.
26384         (refs_may_alias_p_1): For release branches return true if
26385         we are confused by our input.
26386
26387 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26388
26389         * config/s390/s390.c (s390_function_value): Rename to ...
26390         (s390_function_and_libcall_value): ... this.
26391         (s390_function_value): New function.
26392         (s390_libcall_value): New function.
26393         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26394         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26395         target macro definitions.
26396         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26397
26398 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
26399
26400         * config/i386/freebsd64.h (CC1_SPEC): Define.
26401         * config/i386/linux64.h (CC1_SPEC): Define.
26402         * config/i386/x86-64.h (CC1_SPEC): Don't define.
26403
26404 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
26405
26406         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26407         Remove.
26408         * config/stormy16/stormy16.c: Include reload.h.
26409         (xstormy16_memory_move_cost): New function.
26410         (TARGET_MEMORY_MOVE_COST): Define.
26411
26412 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
26413
26414         PR rtl-optimization/47925
26415         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26416         with side effects.  Remove the more-specific check for volatile asms.
26417
26418 2011-03-02  Alan Modra  <amodra@gmail.com>
26419
26420         PR target/47935
26421         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26422         toc relative addresses for valid offsets.
26423
26424 2011-03-01  Richard Guenther  <rguenther@suse.de>
26425
26426         PR tree-optimization/47890
26427         * tree-vect-loop.c (get_initial_def_for_induction): Set
26428         related stmt properly.
26429
26430 2011-03-01  Richard Guenther  <rguenther@suse.de>
26431
26432         PR lto/47924
26433         * lto-streamer.c (lto_record_common_node): Also register
26434         the canonical type.
26435
26436 2011-03-01  Richard Guenther  <rguenther@suse.de>
26437
26438         PR lto/46911
26439         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26440         Do not stream DECL_ABSTRACT_ORIGIN.
26441         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26442         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26443         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26444         Do not stream DECL_ABSTRACT_ORIGIN.
26445         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26446         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26447
26448 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
26449
26450         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26451         FUNCTION_VALUE_REGNO_P): Remove.
26452         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26453         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26454         Add 'outgoing' argument.
26455         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26456         function.
26457         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26458         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26459
26460 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
26461
26462         PR debug/28047
26463         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26464         (lookup_filename): Likewise.
26465         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26466
26467 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
26468             Jakub Jelinek  <jakub@redhat.com>
26469
26470         PR middle-end/47893
26471         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26472         (assign_stack_local_1): Change last argument type to int.
26473         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26474         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
26475         don't record padding space into frame_space_list nor use those areas.
26476         (assign_stack_local): Adjust caller.
26477         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26478         of assign_stack_local, pass 0 as last argument.
26479         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26480         callers.
26481
26482 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
26483
26484         PR debug/47283
26485         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26486         Use target address_mode and pointer_mode hooks instead of hardcoded
26487         Pmode and ptr_mode.  Handle some simple cases of extending if
26488         POINTERS_EXTEND_UNSIGNED < 0.
26489         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26490         Call convert_debug_memory_address.
26491         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26492         convert_debug_memory_address.
26493
26494         PR middle-end/46790
26495         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26496         * configure: Regenerated.
26497         * config.in: Regenerated.
26498         * varasm.c (default_function_section): Return NULL
26499         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26500
26501 2011-02-28  Martin Jambor  <mjambor@suse.cz>
26502
26503         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26504         the description to match the printed values.
26505
26506 2011-02-28  Richard Guenther  <rguenther@suse.de>
26507
26508         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26509         of the copied scope tree.
26510
26511 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26512
26513         * doc/extend.texi (Function Attributes): Avoid deeply (and
26514         wrongly) nested tables.
26515
26516 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
26517
26518         PR middle-end/47903
26519         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26520         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26521         r isn't op0 nor op1.
26522
26523 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26524
26525         * config/avr/avr.md: Remove magic comment for emacs.
26526
26527 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26528
26529         PR target/45261
26530         * config/avr/avr.c (avr_option_override): Use error on bad options.
26531         (avr_help): New function.
26532         (TARGET_HELP): Define.
26533
26534 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
26535
26536         PR target/42240
26537         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26538         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26539
26540 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
26541
26542         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26543         (ARM Options): Ditto.
26544         (i386 and x86-64 Options): Ditto.
26545         (RX Options): Ditto.
26546         (SPARC Options): Ditto.
26547
26548 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
26549
26550         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26551         FreeBSD 6 and later.  Generally use cpu generic.
26552
26553 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26554
26555         * doc/cpp.texi: Update copyright years.
26556
26557 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
26558
26559         PR target/46898
26560         * config/lm32/lm32.md (ashrsi3): Added needed variable.
26561
26562 2011-02-25  Jon Beniston  <jon@beniston.com>
26563
26564         PR target/46898
26565         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26566         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26567         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26568         (lm32_block_move_inline): Add type cast to remove warning.
26569         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26570         (gen_int_relational): Move declarations to start of function.
26571
26572 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
26573
26574         PR tree-optimization/45470
26575         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26576         can throw internally only.
26577         * tree-vect-stmts.c (vectorizable_call): Likewise.
26578
26579 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
26580
26581         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26582         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26583         * config/stormy16/stormy16-protos.h
26584         (xstormy16_preferred_reload_class): Remove.
26585         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26586         static. Change 'rclass' argument and return type to reg_class_t.
26587         (TARGET_PREFERRED_RELOAD_CLASS,
26588         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26589
26590 2011-02-24  Richard Guenther  <rguenther@suse.de>
26591
26592         * lto-streamer-in.c (input_bb): Do not find referenced vars
26593         in debug statements.
26594
26595 2011-02-23  Jason Merrill  <jason@redhat.com>
26596
26597         * common.opt (fabi-version): Document v5 and v6.
26598
26599 2011-02-23  Richard Guenther  <rguenther@suse.de>
26600
26601         PR tree-optimization/47849
26602         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26603
26604 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26605
26606         * opts-common.c (decode_cmdline_option): Print empty string
26607         argument as "" in decoded->orig_option_with_args_text.
26608         * gcc.c (execute): Print empty string argument as ""
26609         in the verbose output.
26610         (do_spec_1): Keep empty string argument.
26611
26612 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
26613
26614         * config.gcc: Declare score-* and crx-* obsolete.
26615
26616 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26617
26618         PR rtl-optimization/47763
26619         * web.c (web_main): Ignore naked clobber when replacing register.
26620
26621 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
26622
26623         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26624         Remove.
26625
26626 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26627
26628         PR doc/47848
26629         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26630
26631 2011-02-22  Mike Stump  <mikestump@comcast.net>
26632
26633         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26634         assembler.
26635         * configure: Regenerate.
26636
26637 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
26638
26639         PR rtl-optimization/46002
26640         * ira-color.c (update_copy_costs): Change class intersection
26641         test to reg_class_contents[] test of 'hard_regno'.
26642
26643 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
26644
26645         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26646         than Driver option.
26647         * config/hpux11.opt (mt): Likewise.
26648         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26649         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26650         * config/vax/elf.opt (mno-asm-pic): Likewise.
26651         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26652
26653 2011-02-21  Mike Stump  <mikestump@comcast.net>
26654
26655         PR target/47822
26656         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26657         tree so we can get save the type.
26658         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26659         for CFString instead of trying to use past the end of the builtins.
26660         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26661         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26662         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26663         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26664         Rename to darwin_builtin_cfstring.
26665         (darwin_init_cfstring_builtins): Return the built type.
26666
26667 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
26668
26669         PR target/47840
26670         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26671         (_mm256_insert_epi64): Use _mm_insert_epi64.
26672
26673 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
26674
26675         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26676         * config/stormy16/stormy16-protos.h
26677         (xstormy16_mode_dependent_address_p): Remove.
26678         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26679         Make static. Change return type to bool. Change argument type to
26680         const_rtx. Remove dead code.
26681         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26682
26683 2011-02-21  Richard Guenther  <rguenther@suse.de>
26684
26685         PR lto/47820
26686         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26687         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26688         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26689         TUs context.
26690         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26691         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26692
26693 2011-02-20  Richard Guenther  <rguenther@suse.de>
26694
26695         PR lto/47822
26696         * tree.c (free_lang_data_in_decl): Clean builtins from
26697         the TU decl BLOCK_VARS.
26698
26699 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
26700
26701         PR debug/47620
26702         PR debug/47630
26703         * haifa-sched.c (fix_tick_ready): Skip tick computation
26704         for debug insns.
26705
26706 2011-02-19  Richard Guenther  <rguenther@suse.de>
26707
26708         PR lto/47647
26709         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26710         Remove lazy BLOCK_VARS streaming.
26711         (lto_input_ts_block_tree_pointers): Likewise.
26712         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26713
26714 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26715
26716         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26717
26718 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26719
26720         * config/i386/biarch32.h, config/i386/mach.h,
26721         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26722
26723 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
26724
26725         PR target/47800
26726         * config/i386/i386.md (peephole2 for shift and plus): Use
26727         operands[1] original mode in the first insn.
26728
26729 2011-02-18  Mike Stump  <mikestump@comcast.net>
26730
26731         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26732
26733 2011-02-18  Jan Hubicka  <jh@suse.cz>
26734
26735         PR middle-end/47788
26736         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26737         to zero when the function is not inlinable at all.
26738
26739 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26740
26741         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26742         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26743         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26744         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26745         * config/pa/t-pa64: Likewise.
26746         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26747
26748 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26749
26750         PR driver/47787
26751         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26752
26753 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26754
26755         PR target/47792
26756         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26757
26758 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
26759
26760         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26761         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26762         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26763         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26764         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26765         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26766         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26767         m32r_load_postinc_p, m32r_store_preinc_predec_p,
26768         m32r_legitimate_address_p): New functions.
26769         * config/m32r/constraints.md (constraint "S"): Don't use
26770         STORE_PREINC_PREDEC_P.
26771         (constraint "U"): Don't use LOAD_POSTINC_P.
26772
26773 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
26774
26775         PR rtl-optimization/46178
26776         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26777         compute ira_hard_regno_cover_class[].
26778
26779 2011-02-18  Richard Guenther  <rguenther@suse.de>
26780
26781         PR lto/47798
26782         * lto-streamer.h (lto_global_var_decls): Declare.
26783         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26784         statics for global var processing.
26785
26786 2011-02-18  Richard Guenther  <rguenther@suse.de>
26787
26788         PR tree-optimization/47737
26789         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26790         edge dominance check.
26791
26792 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26793
26794         PR debug/47780
26795         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26796         avoid invalid rtx sharing.
26797
26798 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
26799
26800         * doc/cpp.texi (Obsolete Features): Add background on the
26801         origin of assertions.
26802
26803 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
26804
26805         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26806         objc_abi == 2.
26807         * config/darwin.c (output_objc_section_asm_op): Added support for
26808         ABI v1 and v2.
26809         (is_objc_metadata): New.
26810         (darwin_objc2_section): New.
26811         (darwin_objc1_section): New.
26812         (machopic_select_section): Added support for ABI v1 and v2.
26813         (darwin_emit_objc_zeroed): New.
26814         (darwin_output_aligned_bss): Detect objc metadata and treat it
26815         appropriately.
26816         (darwin_asm_output_aligned_decl_common): Same.
26817         (darwin_asm_output_aligned_decl_local): Same.
26818         * config/darwin-sections.def: Updated for ABI v1 and v2.
26819         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26820         compiling Objective-C code for the NeXT runtime, default to using
26821         ABI version 0 for 32-bit, and version 2 for 64-bit.
26822
26823 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26824
26825         * common.opt (optimize_fast): New Variable.
26826         * opts.c (default_options_optimization): Use opts->x_optimize_fast
26827         instead of local variable ofast.
26828
26829 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
26830
26831         * doc/invoke.texi (fobjc-abi-version): Documented.
26832         (fobjc-nilcheck): Documented.
26833         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26834         version.
26835
26836 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26837
26838         PR driver/47390
26839         * common.opt (export-dynamic): New Driver option.
26840         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26841
26842 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26843
26844         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26845
26846 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
26847             Jan Hubicka  <jh@suse.cz>
26848
26849         PR debug/47106
26850         PR debug/47402
26851         * cfgexpand.c (account_used_vars_for_block): Remove.
26852         (estimated_stack_frame_size): Use referenced vars.
26853         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26854         that were referenced in the original function.  Test src_fn
26855         rather than cfun.  Drop redundant get_var_ann.
26856         (setup_one_parameter): Drop redundant get_var_ann.
26857         (declare_return_variable): Likewise.
26858         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26859         (copy_arguments_for_versioning): Drop redundant get_var_ann.
26860         * ipa-inline.c (compute_inline_parameters): Do not compute
26861         disregard_inline_limits here.
26862         (compute_inlinable_for_current, pass_inlinable): New.
26863         (pass_inline_parameters): Require PROP_referenced_vars.
26864         * cgraphunit.c (cgraph_process_new_functions): Don't run
26865         compute_inline_parameters explicitly unless function is in SSA form.
26866         (cgraph_analyze_function): Set .disregard_inline_limits.
26867         * tree-sra.c (convert_callers): Compute inliner parameters
26868         only for functions already in SSA form.
26869
26870 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26871
26872         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26873         -mlittle-endian-data.
26874
26875 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26876
26877         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26878         -mno-fpu, not -fpu and -no-fpu.
26879         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26880         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26881
26882 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
26883
26884         PR target/43653
26885         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26886         input reload with PLUS RTX.
26887
26888 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26889
26890         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26891         of InverseVar(MDMX).
26892
26893 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26894
26895         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26896         --m4-340.
26897
26898 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26899
26900         * config/mn10300/mn10300.opt (mno-crt0): New.
26901
26902 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26903
26904         * config/m68k/uclinux.opt (static-libc): New Driver option.
26905
26906 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26907
26908         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26909
26910 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26911
26912         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26913         %{muser-extend-enabled}.
26914
26915 2011-02-16  Richard Guenther  <rguenther@suse.de>
26916
26917         PR tree-optimization/47738
26918         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26919         the TODO from tree_predictive_commoning.
26920
26921 2011-02-15  Jeff Law  <law@redhat.com>
26922
26923         Revert
26924         2011-01-25  Jeff Law  <law@redhat.com>
26925
26926         PR rtl-optimization/37273
26927         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26928         handle them like argument loads from stack slots.  Do not double
26929         count memory for memory constants and argument loads from stack slots.
26930
26931 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26932
26933         PR target/47755
26934         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26935         mode for vector constants.  Remove code that checks for TImode.
26936
26937 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26938
26939         PR debug/47106
26940         PR debug/47402
26941         * cgraph.h (compute_inline_parameters): Return void.
26942         * ipa-inline.c (compute_inline_parameters): Adjust.
26943
26944 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26945
26946         PR debug/47106
26947         PR debug/47402
26948         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26949         rather than decl.
26950         * cfgexpand.c (estimated_stack_frame_size): Likewise.
26951         * ipa-inline.c (compute_inline_parameters): Adjust.
26952
26953 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26954
26955         PR debug/47106
26956         PR debug/47402
26957         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26958         Adjust all users.  Pass FN to...
26959         * tree-flow-inline.h (first_referenced_var): ... this.  Add
26960         fn argument.
26961         * ipa-struct-reorg.c: Adjust.
26962         * tree-dfa.c: Adjust.
26963         * tree-into-ssa.c: Adjust.
26964         * tree-sra.c: Adjust.
26965         * tree-ssa-alias.c: Adjust.
26966         * tree-ssa-live.c: Adjust.
26967         * tree-ssa.c: Adjust.
26968         * tree-ssanames.c: Adjust.
26969         * tree-tailcall.c: Adjust.
26970
26971 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26972
26973         PR debug/47106
26974         PR debug/47402
26975         * tree-flow.h (referenced_var_lookup): Add fn parameter.
26976         Adjust all callers.
26977         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26978         * tree-flow-inline.h: Adjust.
26979         * gimple-pretty-print.c: Adjust.
26980         * tree-into-ssa.c: Adjust.
26981         * tree-ssa.c: Adjust.
26982         * cfgexpand.c: Adjust.
26983
26984 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26985
26986         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26987         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26988         (EXTRA_CONSTRAINT): Delete.
26989         * config/iq2000/constraints.md: New file.
26990         * config/iq2000/iq2000.md: Include it.
26991         (define_insn ""): Delete.
26992         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26993         unsupported constraint letters from patterns.
26994         (call_value, call_value_internal1): Likewise.
26995         (call_value_multiple_internal1): Likewise.
26996
26997 2011-02-15  Nick Clifton  <nickc@redhat.com>
26998
26999         * config/mn10300/mn10300.c: Include tm-constrs.h.
27000         (struct liw_data): New data structure describing an LIW candidate
27001         instruction.
27002         (extract_bundle): Use struct liw_data.  Allow small integer
27003         operands for some instructions.
27004         (check_liw_constraints): Use struct liw_data.  Remove swapped
27005         parameter.  Add comments describing the checks.  Fix bug when
27006         assigning the source of liw1 to the source of liw2.
27007         (liw_candidate): Delete.  Code moved into extract_bundle.
27008         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
27009         before swapping.
27010         * config/mn10300/predicates.md (liw_operand): New predicate.
27011         Allows registers and small integer constants.
27012         * config/mn10300/constraints.md (O): New constraint.  Accetps
27013         integers in the range -8 to +7 inclusive.
27014         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
27015         for moving a small integer into a register.  Give this alternative
27016         LIW attributes.
27017         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
27018         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
27019         using the J,K,L and M constraints,
27020         (liw): Remove SI mode on second operands to allow for HI and QI
27021         mode values.
27022         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
27023         instruction.
27024
27025 2011-02-15  Richard Guenther  <rguenther@suse.de>
27026
27027         PR tree-optimization/47743
27028         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
27029         for a non-type-compatible VN lookup bail out.
27030
27031 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27032
27033         * config/fr30/constraints.md: New file.
27034         * config/fr30/fr30.md: Include it.
27035         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
27036         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27037         (EXTRA_CONSTRAINT): Delete.
27038
27039 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
27040
27041         * config/frv/constraints.md: New file.
27042         * config/frv/predicates.md: Include it.
27043         * config/frv/frv.c (reg_class_from_letter): Delete.
27044         (frv_option_override): Don't initialize it.
27045         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
27046         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
27047         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
27048         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27049         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
27050         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27051         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
27052         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
27053         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
27054         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
27055         (REG_CLASS_FROM_CONSTRAINT): Delete.
27056
27057 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
27058
27059         PR middle-end/47581
27060         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
27061         if frame size is 0 in a leaf function.
27062
27063 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27064
27065         PR pch/14940
27066         * config/alpha/host-osf.c: New file.
27067         * config/alpha/x-osf: New file.
27068         * config.host (alpha*-dec-osf*): Use it.
27069
27070 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27071
27072         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27073         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
27074         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
27075         (rx_mode_dependent_address_p): ...this. Make static. Change argument
27076         type to const_rtx.
27077         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27078
27079 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27080
27081         * config/stormy16/constraints.md: New file.
27082         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
27083         Use satisfies_constraint_Q and satisfies_constraint_R.
27084         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
27085         Delete.
27086         (xstormy16_legitiamte_address_p): Declare.
27087         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
27088         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27089         (EXTRA_CONSTRAINT): Delete.
27090         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
27091         Un-staticize.
27092         (xstormy16_extra_constraint_p): Delete.
27093
27094 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27095
27096         PR tree-optimization/46494
27097         * loop-unroll.c (split_edge_and_insert): Adjust comment.
27098         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
27099         (pass_rtl_loop_done): Add TODO_verify_flow.
27100         * fwprop.c (pass_rtl_fwprop): Likewise.
27101         * modulo-sched.c (pass_sms): Likewise.
27102         * tree-ssa-dom.c (pass_dominator): Likewise.
27103         * tree-ssa-loop-ch.c (pass_ch): Likewise.
27104         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
27105         (pass_tree_loop_done): Likewise.
27106         * tree-ssa-pre.c (execute_pre): Likewise.
27107         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
27108         * tree-ssa-sink.c (pass_sink_code): Likewise.
27109         * tree-vrp.c (pass_vrp): Likewise.
27110
27111 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27112
27113         * config/v850/constraints.md: New file.
27114         * config/v850/v850.md: Include it.
27115         * config/v850/predicates.md (reg_or_0_operand): Use
27116         satisfies_constraint_G.
27117         (special_symbolref_operand): Use satisfies_constraint_K.
27118         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27119         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27120         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27121         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27122         (EXTRA_CONSTRAINT): Delete.
27123         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27124         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27125         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27126
27127 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27128
27129         PR target/47696
27130         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27131         description.
27132
27133 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27134
27135         * config/mcore/constraints.md: New file.
27136         * config/mcore/mcore.md: Include it.
27137         * config/mcore/mcore.c (reg_class_from_letter): Delete.
27138         * config/mcore/mcore.h (reg_class_from_letter): Delete.
27139         (REG_CLASS_FROM_LETTER): Delete.
27140         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27141         insn_const_int_ok_for_constraint.
27142         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27143         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27144         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27145         (EXTRA_CONSTRAINT): Delete.
27146
27147 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27148
27149         PR ada/41929
27150         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27151         (IS_SIGHANDLER): Define.
27152         (sparc64_is_sighandler): New function, split off from
27153         sparc64_fallback_frame_state.
27154         (sparc_is_sighandler): New function, split off from
27155         sparc_fallback_frame_state.
27156         (sparc64_fallback_frame_state): Merge with ...
27157         (sparc_fallback_frame_state): ... this into ...
27158         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27159         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
27160         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
27161         stack instead of hardcoded offsets.
27162
27163 2011-02-14  Andriy Gapon  <avg@freebsd.org>
27164
27165         PR target/45808
27166         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27167
27168 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27169
27170         * configure: Regenerate.
27171
27172 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
27173
27174         PR driver/45731
27175         * gcc.c (asm_options): Correct spec matching --target-help.
27176
27177 2011-02-12  Martin Jambor  <mjambor@suse.cz>
27178
27179         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27180         to gimple call error.
27181
27182 2011-02-12  Mike Stump  <mikestump@comcast.net>
27183
27184         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27185         comments in backslash regions.
27186
27187 2011-02-12  Mike Stump  <mikestump@comcast.net>
27188             Jakub Jelinek  <jakub@redhat.com>
27189             Iain Sandoe  <iains@gcc.gnu.org>
27190
27191         PR target/47324
27192         * dwarf2out.c (output_cfa_loc): When required, apply the
27193         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27194         (output_loc_sequence): Likewise.
27195         (output_loc_operands_raw): Likewise.
27196         (output_loc_sequence_raw): Likewise.
27197         (output_cfa_loc): Likewise.
27198         (output_loc_list): Suppress register number adjustment when
27199         calling output_loc_sequence()
27200         (output_die): Likewise.
27201
27202 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
27203
27204         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27205         Remove macros.
27206         * config/xtensa/xtensa.c (xtensa_register_move_cost,
27207         xtensa_memory_move_cost): New functions.
27208         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27209
27210 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
27211
27212         PR lto/47225
27213         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27214         in the current directory.
27215         * configure: Rebuilt.
27216
27217 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27218
27219         * config/darwin.c (darwin_override_options): Add a hunk missed
27220         from the commit of r168571.  Trim comment line lengths and
27221         correct indents of the preceding block.
27222
27223 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27224
27225         * gcc.c (driver_handle_option): Concatenate the argument to -F with
27226         the switch.
27227
27228 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27229
27230         * common.opt (nostartfiles): New Driver option.
27231
27232 2011-02-11  Xinliang David Li  <davidxl@google.com>
27233
27234         PR tree-optimization/47707
27235         * tree-chrec.c (convert_affine_scev): Keep type precision.
27236
27237 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27238
27239         PR tree-optimization/47420
27240         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27241
27242 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
27243
27244         PR rtl-optimization/47614
27245         * rtl.h (check_for_inc_dec): Declare.
27246         * dse.c (check_for_inc_dec): Externalize...
27247         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27248         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27249
27250 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27251
27252         PR driver/47678
27253         * gcc.c (main): Do not compile inputs if there were errors in
27254         option handling.
27255         * opts-common.c (read_cmdline_option): Check for wrong language
27256         after other error checks.
27257
27258 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
27259
27260         * cgraph.c: Fix comment typos.
27261         * cgraph.h: Likewise.
27262         * cgraphunit.c: Likewise.
27263         * ipa-cp.c: Likewise.
27264         * ipa-inline.c: Likewise.
27265         * ipa-prop.c: Likewise.
27266         * ipa-pure-const.c: Likewise.
27267         * ipa-ref.c: Likewise.
27268         * ipa-reference.c: Likewise.
27269
27270 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27271
27272         PR debug/47684
27273         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27274
27275 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27276
27277         PR testsuite/47400
27278         * doc/sourcebuild.texi (Require Support): Document
27279         dg-require-ascii-locale.
27280
27281 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
27282
27283         * doc/lto.texi (Write summary): Fix missing parentheses.
27284
27285 2011-02-10  DJ Delorie  <dj@redhat.com>
27286
27287         * config/m32c/m32c.c (m32c_option_override): Disable
27288         -fcombine-stack-adjustments until flag value tracking and compare
27289         optimization can be rewritten.
27290
27291 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
27292
27293         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27294         PROCESSOR_POWER7.
27295         (PROCESSOR_DEFAULT64): Likewise.
27296
27297 2011-02-10  Richard Henderson  <rth@redhat.com>
27298
27299         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27300         change from 2011-02-03.
27301         * config/rx/rx.c (flags_from_code): Likewise.
27302         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27303         is valid, n/pz otherwise.
27304         (rx_select_cc_mode): Return CCmode if Y is not zero.
27305
27306 2011-02-10  Richard Guenther  <rguenther@suse.de>
27307
27308         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27309
27310 2011-02-10  Richard Guenther  <rguenther@suse.de>
27311
27312         PR tree-optimization/47677
27313         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27314
27315 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
27316
27317         PR target/47665
27318         * combine.c (make_compound_operation): Only change shifts into
27319         multiplication for SCALAR_INT_MODE_P.
27320
27321 2011-02-10  Jie Zhang  <jie@codesourcery.com>
27322
27323         PR testsuite/47622
27324         Revert
27325         2011-02-05  Jie Zhang  <jie@codesourcery.com>
27326         PR debug/42631
27327         * web.c (entry_register): Don't clobber the number of the
27328         first uninitialized reference in used[].
27329
27330 2011-02-09  Richard Guenther  <rguenther@suse.de>
27331
27332         PR tree-optimization/47664
27333         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27334         all edges again.
27335
27336 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
27337
27338         PR target/46481
27339         PR target/47032
27340         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27341         PROCESSOR_POWER7.
27342         (PROCESSOR_DEFAULT64): Same.
27343         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27344
27345 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27346
27347         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27348
27349 2011-02-09  Martin Jambor  <mjambor@suse.cz>
27350
27351         PR middle-end/45505
27352         * tree-sra.c (struct access): New flags grp_scalar_read and
27353         grp_scalar_write.  Changed description of assignment read and write
27354         flags.
27355         (dump_access): Dump new flags, reorder all of them.
27356         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27357         to detect multiple scalar reads.
27358         (analyze_access_subtree): Use the new scalar read write flags instead
27359         of the old flags.  Adjusted comments.
27360
27361 2011-02-08  DJ Delorie  <dj@redhat.com>
27362
27363         PR target/47548
27364         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27365         patterns.
27366
27367 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27368
27369         * config/m68k/uclinux.opt: New.
27370         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27371
27372 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27373
27374         * config/cris/elf.opt (sim): New Driver option.
27375
27376 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27377
27378         * config/xtensa/elf.opt: New.
27379         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27380
27381 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27382
27383         * config/vax/elf.opt: New.
27384         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27385
27386 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27387
27388         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27389
27390 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27391
27392         * config/gnu-user.opt: New.
27393         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27394         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27395         *-*-uclinux*): Use gnu-user.opt.
27396
27397 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
27398
27399         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27400         * config/i386/gnu.h (CPP_SPEC): Likewise.
27401
27402 2011-02-08  Ian Lance Taylor  <iant@google.com>
27403
27404         * common.opt (fcx-limited-range): Add SetByCombined flag.
27405         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27406         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27407         (fassociative-math, freciprocal-math): Likewise.
27408         (funsafe-math-optimizations): Likewise.
27409         * opth-gen.awk: Handle SetByCombined.
27410         * optc-gen.awk: Likewise.
27411         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27412         (set_unsafe_math_optimizations_flags): Likewise.
27413         * doc/options.texi (Option properties): Document SetByCombined.
27414
27415 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27416
27417         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27418         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27419         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27420         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27421         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27422
27423 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
27424
27425         PR tree-optimization/46834
27426         PR tree-optimization/46994
27427         PR tree-optimization/46995
27428         * graphite-sese-to-poly.c (used_outside_reduction): New.
27429         (detect_commutative_reduction): Call used_outside_reduction.
27430         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27431         translate_scalar_reduction_to_array only when at least one
27432         loop-phi/close-phi tuple has been detected.
27433
27434 2011-02-08  Richard Guenther  <rguenther@suse.de>
27435
27436         PR middle-end/47639
27437         * tree-vect-generic.c (expand_vector_operations_1): Update
27438         stmts here ...
27439         (expand_vector_operations): ... not here.  Cleanup EH info
27440         and the CFG if required.
27441
27442 2011-02-08  Richard Guenther  <rguenther@suse.de>
27443
27444         PR tree-optimization/47641
27445         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27446         require type compatibility.
27447
27448 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27449
27450         * gimple-low.c (lower_function_body): Don't remove the location of
27451         the return statement here.
27452         (lower_gimple_return): Do it here instead but only if the return
27453         statement is actually used twice.
27454
27455 2011-02-08  Richard Guenther  <rguenther@suse.de>
27456
27457         PR tree-optimization/47632
27458         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27459         unused up_to_stmt parameter, return whether cfg-cleanup is
27460         necessary, remove EH info properly.
27461         (forward_propagate_into_gimple_cond): Adjust caller.
27462         (forward_propagate_into_cond): Likewise.
27463         (forward_propagate_comparison): Likewise.
27464         (tree_ssa_forward_propagate_single_use_vars): Make
27465         forward_propagate_comparison case similar to the two others.
27466
27467 2011-02-08  Nick Clifton  <nickc@redhat.com>
27468
27469         * config/mn10300/mn10300.opt (mliw): New command line option.
27470         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27471         (liw_bundling): New automaton.
27472         (liw): New attribute.
27473         (liw_op): New attribute.
27474         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27475         (movsi_internal): Add LIW attributes.
27476         (andsi3): Likewise.
27477         (iorsi3): Likewise.
27478         (xorsi3): Likewise.
27479         (addsi3): Separate register and immediate alternatives.
27480         Add LIW attributes.
27481         (subsi3): Likewise.
27482         (cmpsi): Likewise.
27483         (aslsi3): Likewise.
27484         (lshrsi3): Likewise.
27485         (ashrsi3): Likewise.
27486         (liw): New pattern.
27487         * config/mn10300/mn10300.c (liw_op_names): New
27488         (mn10300_print_operand): Handle 'W' operand descriptor.
27489         (extract_bundle): New function.
27490         (check_liw_constraints): New function.
27491         (liw_candidate): New function.
27492         (mn10300_bundle_liw): New function.
27493         (mn10300_reorg): New function.
27494         (TARGET_MACHINE_DEPENDENT_REORG): Define.
27495         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27496         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27497         __LIW__ or __NO_LIW__.
27498         * doc/invoke.texi: Describe the -mliw command line option.
27499
27500 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27501
27502         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27503         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27504         pthread_mutex_unlock): Remove.
27505         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27506         * config/pa/t-pa64: Likewise.
27507         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27508         shared libc if not linking against libpthread.
27509         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27510
27511 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
27512
27513         PR target/47558
27514         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27515         on 10.6 and later to ensure that we always use the unwinder from
27516         the system.  Only add -no_compact_unwind when tarteting darwin
27517         10.6 or later.
27518
27519 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
27520
27521         PR target/46997
27522         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27523         (vec_interleave_lowv2sf): Ditto.
27524         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27525         (vec_extract_oddv2sf): Ditto.
27526
27527 2011-02-07  Mike Stump  <mikestump@comcast.net>
27528
27529         PR target/42333
27530         Add __ieee_divdc3 entry point.
27531         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27532         entry point.
27533         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27534         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27535         * config/darwin.c (darwin_rename_builtins): Add.
27536         * config/darwin-protos.h (darwin_rename_builtins): Add.
27537
27538 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
27539
27540         PR target/47636
27541         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27542         for the condition.
27543
27544 2011-02-07  Mike Stump  <mikestump@comcast.net>
27545
27546         * config/darwin.opt (mmacosx-version-min): Update default OS version.
27547
27548 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
27549
27550         PR target/47534
27551         * config/avr/libgcc.S (exit): Move .endfunc
27552
27553 2011-02-07  Richard Guenther  <rguenther@suse.de>
27554
27555         PR tree-optimization/47615
27556         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27557         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27558         (run_scc_vn): Initialize it.
27559         (visit_reference_op_load): Use it.
27560         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27561
27562 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27563
27564         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27565         DImode trapping arithmetic libfuncs.
27566
27567 2011-02-07  Richard Guenther  <rguenther@suse.de>
27568
27569         PR tree-optimization/47621
27570         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27571         two duplicates ...
27572         (execute_update_addresses_taken): ... here.  Make it more
27573         conservative in what we accept.
27574
27575 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27576
27577         * config/sparc/freebsd.h (ASM_SPEC): Define.
27578         * config/sparc/vxworks.h (ASM_SPEC): Define.
27579
27580 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27581
27582         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27583
27584 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
27585
27586         * doc/invoke.texi: Remove reference to compiler internals from
27587         user documentation.
27588
27589         * reg-notes.def: Remove REG_VALUE_PROFILE.
27590         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27591
27592 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
27593
27594         PR middle-end/47610
27595         * varasm.c (default_section_type_flags): If decl is NULL,
27596         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27597
27598 2011-02-05  Jie Zhang  <jie@codesourcery.com>
27599
27600         PR debug/42631
27601         * web.c (entry_register): Don't clobber the number of the
27602         first uninitialized reference in used[].
27603
27604 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
27605
27606         PR tree-optimization/46194
27607         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27608         (build_classic_dist_vector_1): Do not represent classic distance
27609         vectors when the access functions are variating in different loops.
27610
27611 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27612
27613         * config/mips/iris6.opt: New.
27614         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27615
27616 2011-02-04  Richard Henderson  <rth@redhat.com>
27617             Steve Ellcey  <sje@cup.hp.com>
27618
27619         PR target/46997
27620         * config/ia64/predicates.md (mux1_brcst_element): New.
27621         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27622         * config/ia64/ia64.c (ia64_unpack_assemble): New.
27623         (ia64_unpack_sign): New.
27624         (ia64_expand_unpack): Rewrite using new routines.
27625         (ia64_expand_widen_sum): Ditto.
27626         (ia64_expand_dot_prod_v8qi): Ditto.
27627         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27628         routines, add endian check.
27629         (pmpy2_even): Rename from pmpy2_r, add endian check.
27630         (pmpy2_odd): Rename from pmpy2_l, add endian check.
27631         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27632         (vec_widen_smult_hi_v4hi): Ditto.
27633         (vec_widen_umult_lo_v4hi): Ditto.
27634         (vec_widen_umult_hi_v4hi): Ditto.
27635         (mulv2si3): Change endian checks.
27636         (sdot_prodv4hi): Rewrite with new calls.
27637         (udot_prodv4hi): New.
27638         (vec_pack_ssat_v4hi): Add endian check.
27639         (vec_pack_usat_v4hi): Ditto.
27640         (vec_pack_ssat_v2si): Ditto.
27641         (max1_even): Rename from max1_r, add endian check.
27642         (max1_odd): Rename from max1_l, add endian check.
27643         (*mux1_rev): Format change.
27644         (*mux1_mix): Ditto.
27645         (*mux1_shuf): Ditto.
27646         (*mux1_alt): Ditto.
27647         (*mux1_brcst_v8qi): Use new predicate.
27648         (vec_extract_evenv8qi): Remove endian check.
27649         (vec_extract_oddv8qi): Ditto.
27650         (vec_interleave_lowv4hi): Format change.
27651         (vec_interleave_highv4hi): Ditto.
27652         (mix2_even): Rename from mix2_r, add endian check.
27653         (mix2_odd): Rename from mux2_l, add endian check.
27654         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27655         (vec_extract_evenodd_helper): Format change.
27656         (vec_extract_evenv4hi): Remove endian check.
27657         (vec_extract_oddv4hi): Remove endian check.
27658         (vec_interleave_lowv2si): Format change.
27659         (vec_interleave_highv2si): Format change.
27660         (vec_initv2si): Remove endian check.
27661         (vecinit_v2si): Add endian check.
27662         (reduc_splus_v2sf): Add endian check.
27663         (reduc_smax_v2sf): Ditto.
27664         (reduc_smin_v2sf): Ditto.
27665         (vec_initv2sf): Remove endian check.
27666         (fpack): Add endian check.
27667         (fswap): Add endian check.
27668         (vec_interleave_highv2sf): Add endian check.
27669         (vec_interleave_lowv2sf): Add endian check.
27670         (fmix_lr): Add endian check.
27671         (vec_setv2sf): Format change.
27672         (*vec_extractv2sf_0_be): Use shift to extract operand.
27673         (*vec_extractv2sf_1_be): New.
27674         (vec_pack_trunc_v4hi): Add endian check.
27675         (vec_pack_trunc_v2si): Format change.
27676
27677 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
27678
27679         PR inline-asm/23200
27680         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
27681         do bb, locus and block comparison and disallow loads if it is not set.
27682         (stmt_is_replaceable_p): New function.
27683         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27684         callers.
27685         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27686         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27687         SSA_NAME_DEF_STMT.
27688         * tree-flow.h (stmt_is_replaceable_p): New prototype.
27689
27690 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27691
27692         * config/rs6000/xilinx.opt: New.
27693         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27694
27695 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27696
27697         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27698
27699 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
27700
27701         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27702         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27703         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27704         secondary_reload_info, xtensa_secondary_reload): Remove.
27705         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27706         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27707         (xtensa_preferred_reload_class): Make static. Change return and
27708         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27709         Use CONST_DOUBLE_P predicate.
27710         (xtensa_preferred_output_reload_class): New function.
27711         (xtensa_secondary_reload): Make static.
27712
27713 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
27714
27715         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27716         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27717         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27718
27719 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27720
27721         PR middle-end/31490
27722         * output.h (SECTION_RELRO): Define.
27723         (SECTION_MACH_DEP): Adjust.
27724         (get_variable_section): New prototype.
27725         * varpool.c (varpool_finalize_named_section_flags): New function.
27726         (varpool_assemble_pending_decls): Call it.
27727         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27728         * cgraphunit.c (cgraph_output_in_order): Call
27729         varpool_finalize_named_section_flags.
27730         * varasm.c (get_section): Allow section flags conflicts between
27731         relro and read-only sections if the section hasn't been declared yet.
27732         Set SECTION_OVERRIDE after diagnosing section type conflict.
27733         (get_variable_section): No longer static.
27734         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27735         readonly sections that need relocations.
27736         (decl_readonly_section_1): New function.
27737         (decl_readonly_section): Use it.
27738
27739         Revert:
27740         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
27741                     Steve Ellcey  <sje@cup.hp.com>
27742
27743         PR middle-end/31490
27744         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27745         if section attribute used.
27746
27747 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27748
27749         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27750         * config/darwin.c (SECTION_NO_ANCHOR): Define.
27751         (darwin_init_sections): Remove assertion.
27752
27753 2011-02-03  Nick Clifton  <nickc@redhat.com>
27754
27755         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27756         lt and ge.
27757         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27758         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27759         instead of "n" and "pz".
27760         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27761         CC_FLAG_S.
27762
27763 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27764
27765         PR target/47312
27766         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27767         fma, expand FMA_EXPR as fma{,f,l} call.
27768
27769         PR lto/47274
27770         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27771         copy them into a unsigned char variable and pass address of it to
27772         lto_output_data_stream.
27773
27774         PR target/47564
27775         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27776         around backend_init_target and lang_dependent_init_target calls.
27777         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27778         (verify_cgraph_node): Don't call set_cfun here.  Use
27779         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27780         Set error_found for incorrectly represented calls to thunks.
27781
27782 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27783
27784         PR debug/43092
27785         PR rtl-optimization/43494
27786         * rtl.h (for_each_inc_dec_fn): New type.
27787         (for_each_inc_dec): Declare.
27788         * rtlanal.c (struct for_each_inc_dec_ops): New type.
27789         (for_each_inc_dec_find_inc_dec): New fn.
27790         (for_each_inc_dec_find_mem): New fn.
27791         (for_each_inc_dec): New fn.
27792         * dse.c (struct insn_size): Remove.
27793         (replace_inc_dec, replace_inc_dec_mem): Remove.
27794         (emit_inc_dec_insn_before): New fn.
27795         (check_for_inc_dec): Use it, along with for_each_inc_dec.
27796         (canon_address): Pass mem modes to cselib_lookup.
27797         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
27798         (cselib_lookup_from_insn): Likewise.
27799         (cselib_subst_to_values): Likewise.
27800         * cselib.c (find_slot_memmode): New var.
27801         (cselib_find_slot): New fn.  Use it instead of
27802         htab_find_slot_with_hash everywhere.
27803         (entry_and_rtx_equal_p): Use find_slot_memmode.
27804         (autoinc_split): New fn.
27805         (rtx_equal_for_cselib_p): Rename and implement in terms of...
27806         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
27807         Deal with autoinc.  Special-case recursion into MEMs.
27808         (cselib_hash_rtx): Likewise.
27809         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
27810         address and MEM modes.
27811         (cselib_subst_to_values): Add memmode, pass it on.
27812         Deal with autoinc.
27813         (cselib_lookup): Add memmode argument, pass it on.
27814         (cselib_lookup_from_insn): Add memmode.
27815         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27816         (struct cselib_record_autoinc_data): New.
27817         (cselib_record_autoinc_cb): New fn.
27818         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
27819         mode to cselib_lookup.  Reset autoinced REGs here instead of...
27820         (cselib_process_insn): ... here.
27821         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27822         to cselib_lookup.
27823         (add_uses): Likewise, also to cselib_subst_to_values.
27824         (add_stores): Likewise.
27825         * sched-deps.c (add_insn_mem_dependence): Pass mode to
27826         cselib_subst_to_values.
27827         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
27828         * gcse.c (do_local_cprop): Adjusted.
27829         * postreload.c (reload_cse_simplify_set): Adjusted.
27830         (reload_cse_simplify_operands): Adjusted.
27831         * sel-sched-dump (debug_mem_addr_value): Pass mode.
27832
27833 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27834
27835         PR tree-optimization/45122
27836         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27837         unsafe assumptions when there's more than one loop exit.
27838
27839 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27840
27841         PR target/47272
27842         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27843         Document using vector double with the load/store builtins, and
27844         that the load/store builtins always use Altivec instructions.
27845
27846         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27847         to use altivec memory instructions, even on VSX.
27848         (vector_altivec_store_<mode>): Ditto.
27849
27850         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27851         function.
27852
27853         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27854         V2DF, V2DI support to load/store overloaded builtins.
27855
27856         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27857         altivec load/store builtins for V2DF/V2DI types.
27858
27859         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27860         set avoid indexed addresses on power6 if -maltivec.
27861         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27862         vector_altivec_load/vector_altivec_store builtins.
27863         (altivec_expand_st_builtin): Ditto.
27864         (altivec_expand_builtin): Add VSX memory builtins.
27865         (rs6000_init_builtins): Add V2DI types to internal types.
27866         (altivec_init_builtins): Add support for V2DF/V2DI altivec
27867         load/store builtins.
27868         (rs6000_address_for_altivec): Insure memory address is appropriate
27869         for Altivec.
27870
27871         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27872         vec_vsx_ld and vec_vsx_st.
27873         (vsx_store_<mode>): Ditto.
27874
27875         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27876         variables to hold long long types for VSX vector memory builtins.
27877         (RS6000_BTI_unsigned_long_long): Ditto.
27878         (long_long_integer_type_internal_node): Ditti.
27879         (long_long_unsigned_type_internal_node): Ditti.
27880
27881         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27882         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27883         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27884
27885         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27886         short cuts.
27887         (vec_vsx_st): Ditto.
27888
27889 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27890
27891         * config/pa/pa-hpux10.opt: New.
27892         * config/hpux11.opt (pthread): New Driver option.
27893         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27894         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27895
27896 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27897
27898         * config/ia64/vms.opt: New.
27899         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27900
27901 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27902
27903         PR target/47580
27904         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27905         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27906         generator functions.
27907         (vsx_floatuns<VSi><mode>2): Ditto.
27908         (vsx_fix_trunc<mode><VSi>2): Ditto.
27909         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27910
27911 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27912
27913         * config/i386/djgpp.opt (posix): New Driver option.
27914
27915 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
27916
27917         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27918         Move to the unsupported targets list.
27919
27920 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
27921
27922         PR rtl-optimization/47525
27923         * df-scan.c: Update copyright years.
27924         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27925         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27926
27927 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27928
27929         * config/i386/sysv4.h (TARGET_VERSION): Remove.
27930         (SUBTARGET_RETURN_IN_MEMORY): Remove.
27931         (ASM_OUTPUT_ASCII): Remove.
27932         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27933
27934 2011-02-02  Jeff Law  <law@redhat.com>
27935
27936         PR middle-end/47543
27937         * reload.c (find_reloads_address): Handle reg+d address where both
27938         components are invalid by reloading the entire address.
27939
27940 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27941             Richard Guenther  <rguenther@suse.de>
27942
27943         PR tree-optimization/40979
27944         PR bootstrap/47044
27945         * passes.c (init_optimization_passes): After LIM call copy_prop
27946         and DCE to clean up.
27947         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27948
27949 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27950
27951         PR tree-optimization/47576
27952         PR tree-optimization/47555
27953         * doc/invoke.texi (scev-max-expr-complexity): Documented.
27954         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27955         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27956         * tree-scalar-evolution.c (follow_ssa_edge): Use
27957         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27958
27959 2011-02-02  Richard Guenther  <rguenther@suse.de>
27960
27961         PR tree-optimization/47566
27962         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27963
27964 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27965
27966         PR debug/47106
27967         PR debug/47402
27968         * tree-inline.c (declare_return_variable): Remove unused caller
27969         variable.
27970
27971         PR debug/47106
27972         PR debug/47402
27973         * tree-flow-inline.h (clear_is_used, is_used_p): New.
27974         * cfgexpand.c (account_used_vars_for_block): Use them.
27975         * tree-nrv.c (tree_nrv): Likewise.
27976         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27977         (dump_scope_block): Likewise.
27978         (remove_unused_locals): Likewise.
27979
27980         PR debug/47106
27981         PR debug/47402
27982         * tree-inline.c (declare_return_variable): Add result decl to
27983         local decls only once.
27984         * gimple-low.c (record_vars_into): Mark newly-created variables
27985         as referenced.
27986
27987 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27988
27989         PR debug/47498
27990         PR debug/47501
27991         PR debug/45136
27992         PR debug/45130
27993         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27994         debug insns.
27995         (no_real_insns_p, schedule_block, set_priorities): Drop special
27996         treatment of boundary debug insns.
27997         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27998         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27999         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28000         (BOUNDARY_DEBUG_INSN_P): Likewise.
28001         (SCHEDULE_DEBUG_INSN_P): Likewise.
28002         * sched-rgn.c (init_ready_list): Drop special treatment of
28003         boundary debug insns.
28004         * final.c (rest_of_clean_state): Clear notes' BB.
28005
28006 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28007
28008         * config/openbsd.opt (assert=): New Driver option.
28009
28010 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28011
28012         * config/i386/nto.opt: New.
28013         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
28014
28015 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28016
28017         * config/i386/netware.opt: New.
28018         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
28019
28020 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28021
28022         * config/interix.opt (posix): New Driver option.
28023
28024 2011-02-01  DJ Delorie  <dj@redhat.com>
28025
28026         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
28027
28028         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
28029         class for A0/A1.
28030
28031 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
28032
28033         PR tree-optimization/47561
28034         * toplev.c (process_options): Print the Graphite flags.  Add
28035         flag_loop_flatten to the list of options requiring Graphite.
28036
28037 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28038
28039         * config/i386/cygming.opt (posix): New Driver option.
28040
28041 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28042
28043         * config/arm/vxworks.opt: New.
28044         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
28045
28046 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
28047
28048         * config/alpha/elf.opt: New.
28049         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
28050         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
28051
28052 2011-02-01  Richard Guenther  <rguenther@suse.de>
28053
28054         PR tree-optimization/47559
28055         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
28056         store-motion on references that can throw.
28057
28058 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
28059
28060         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
28061         * tree-pass.h (TDF_CSELIB): New macro.
28062         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
28063         cselib_lookup): Check for it rather than for TDF_DETAILS.
28064
28065 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
28066
28067         PR driver/47547
28068         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
28069         is HOST_BIT_BUCKET.
28070
28071         * opts.c (finish_options): Don't add x_aux_base_name if it is
28072         HOST_BIT_BUCKET.
28073
28074 2011-02-01  Richard Guenther  <rguenther@suse.de>
28075
28076         PR tree-optimization/47555
28077         Revert
28078         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
28079
28080         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
28081
28082 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28083
28084         PR gcc/46692
28085         * config/lm32/t-lm32: Add multilib for all CPU options.
28086
28087 2011-02-01  Richard Guenther  <rguenther@suse.de>
28088
28089         PR tree-optimization/47541
28090         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
28091         sure to have a field at offset zero.
28092
28093 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28094
28095         * config/arc/arc.opt (EB, EL): New Driver options.
28096
28097 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28098
28099         * config/alpha/osf5.opt: New.
28100         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
28101
28102 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
28103
28104         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
28105
28106 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
28107
28108         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
28109         -floop-interchange.
28110         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
28111         is an alias of -floop-interchange and that it requires the
28112         Graphite infrastructure.
28113         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
28114         flag_loop_interchange based on the value of flag_tree_loop_linear.
28115
28116 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28117             Richard Guenther  <rguenther@suse.de>
28118
28119         PR tree-optimization/47538
28120         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28121         type instead of r1type, except for comparisons.  For right
28122         shifts and comparisons punt if there are mismatches in
28123         sizetype vs. non-sizetype types.
28124
28125 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28126
28127         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28128         avx_runtime.
28129
28130 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28131
28132         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28133         version number.
28134         * configure: Regenerate.
28135
28136 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28137
28138         * configure.ac (gcc_cv_ld_static_option): Define.
28139         (gcc_cv_ld_dynamic_option): Define.
28140         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28141         instead.
28142         (HAVE_LD_STATIC_DYNAMIC): Update message.
28143         (LD_STATIC_OPTION): Define.
28144         (LD_DYNAMIC_OPTION): Define.
28145         * configure: Regenerate.
28146         * config.in: Regenerate.
28147         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28148         HAVE_LD_STATIC_DYNAMIC]: Use them.
28149
28150 2011-01-31  Nick Clifton  <nickc@redhat.com>
28151
28152         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28153         registers inside interrupt handlers if the handler is not a leaf
28154         function.
28155
28156 2011-01-31  Nick Clifton  <nickc@redhat.com>
28157
28158         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28159         reg_renumber returning an INVALID_REGNUM.
28160
28161 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28162
28163         PR libgcj/44341
28164         * doc/install.texi: Document host options discarded when cross
28165         configuring target libraries.
28166
28167 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28168
28169         Reverted:
28170         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28171         PR debug/45136
28172         PR debug/45130
28173         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28174         debug insns.
28175         (no_real_insns_p, schedule_block, set_priorities): Drop special
28176         treatment of boundary debug insns.
28177         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28178         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28179         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28180         (BOUNDARY_DEBUG_INSN_P): Likewise.
28181         (SCHEDULE_DEBUG_INSN_P): Likewise.
28182         * sched-rgn.c (init_ready_list): Drop special treatment of
28183         boundary debug insns.
28184         * final.c (rest_of_clean-state): Clear notes' BB.
28185
28186 2011-01-31  Alan Modra  <amodra@gmail.com>
28187
28188         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28189         toc relative expressions as we do in print_operand_address.
28190
28191 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
28192
28193         * doc/extend.texi: Follow spelling conventions.
28194         * doc/invoke.texi: Fix a typo.
28195
28196 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
28197
28198         * config/hpux11.opt: New.
28199         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28200         ia64*-*-hpux*): Use hpux11.opt.
28201
28202 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
28203
28204         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28205         to tmake_file.
28206
28207 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28208
28209         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28210         support sites.
28211
28212 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28213
28214         * doc/install.texi (Binaries): Remove outdated reference for
28215         Motorola 68HC11/68HC12 downloads.
28216
28217 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28218
28219         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28220         Drepper's paper.
28221
28222 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
28223
28224         PR bootstrap/47147
28225         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28226         used by NetBSD.
28227
28228 2011-01-28  Ahmad Sharif  <asharif@google.com>
28229
28230         * value-prof.c (check_counter): Corrected error message.
28231
28232 2011-01-29  Jie Zhang  <jie@codesourcery.com>
28233
28234         * config/arm/arm.c (arm_legitimize_reload_address): New.
28235         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28236         arm_legitimize_reload_address.
28237         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28238
28239 2011-01-28  Ian Lance Taylor  <iant@google.com>
28240
28241         * godump.c (go_define): Ignore macros whose definitions include
28242         two adjacent operands.
28243
28244 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
28245
28246         PR target/42894
28247         * varasm.c (force_const_mem): Store copy of x in desc->constant
28248         instead of x itself.
28249         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28250         itself into REG_EQUAL note.
28251
28252 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
28253
28254         * config/freebsd.opt (posix, rdynamic): New Driver options.
28255
28256 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28257
28258         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28259         -Bstatic/-Bdynamic.
28260         * configure: Regenerate.
28261
28262 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
28263
28264         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28265         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28266
28267 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
28268
28269         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28270         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28271         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28272         (s390_preferred_reload_class): Make static. Change return and
28273         'rclass' argument type to reg_class_t.
28274
28275 2011-01-27  Jan Hubicka  <jh@suse.cz>
28276
28277         PR middle-end/46949
28278         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28279         (process_function_and_variable_attributes): Check defined weakrefs.
28280
28281 2011-01-27  Martin Jambor  <mjambor@suse.cz>
28282
28283         PR tree-optimization/47228
28284         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28285         build_ref_for_offset.
28286
28287 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28288
28289         * config/spu/spu-elf.h (ASM_SPEC): Remove.
28290
28291 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
28292
28293         PR rtl-optimization/46856
28294         * postreload.c (reload_combine_recognize_const_pattern): Do not
28295         separate cc0 setter and user on cc0 targets.
28296
28297 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
28298
28299         PR c/43082
28300         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28301         passed a VOID_TYPE expression, immediately emit an error and
28302         return error_mark_node.
28303
28304 2011-01-26  Jeff Law  <law@redhat.com>
28305
28306         PR rtl-optimization/47464
28307         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28308         rather than may_trap_p as needed.
28309
28310 2011-01-26  DJ Delorie  <dj@redhat.com>
28311
28312         PR rtl-optimization/46878
28313         * combine.c (insn_a_feeds_b): Check for the implicit cc0
28314         setter/user dependency as well.
28315
28316 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
28317
28318         PR rtl-optimization/44469
28319         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28320         after removing trivially dead basic blocks.
28321
28322 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28323
28324         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28325         * config/frv/frv.h (LINK_SPEC): Likewise.
28326         * config/i386/netware.h (LINK_SPEC): Likewise.
28327         * config/m68k/linux.h (ASM_SPEC): Likewise.
28328         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28329         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28330         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28331         * config/sparc/linux.h (ASM_SPEC): Likewise.
28332         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28333         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28334
28335 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28336
28337         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28338         * config/frv/frv.h (ASM_SPEC): Likewise.
28339         * config/m68k/linux.h (ASM_SPEC): Likewise.
28340         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28341         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28342         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28343         * config/sparc/linux.h (ASM_SPEC): Likewise.
28344         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28345         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28346
28347 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28348
28349         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28350         * config/frv/frv.h (LINK_SPEC): Likewise.
28351         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28352
28353 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28354
28355         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28356         * config/frv/frv.h (ASM_SPEC): Likewise.
28357         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28358         * config/m68k/linux.h (ASM_SPEC): Likewise.
28359         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28360         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28361         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28362         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28363         * config/sparc/linux.h (ASM_SPEC): Likewise.
28364         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28365         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28366         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28367
28368 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
28369
28370         PR target/46997
28371         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28372         (*mux2): Ditto.
28373         (vec_extract_evenodd_help): Ditto.
28374         (vec_extract_evenv4hi): Ditto.
28375         (vec_extract_oddv4hi): Ditto.
28376         (vec_interleave_lowv2si): Ditto.
28377         (vec_interleave_highv2si): Ditto.
28378         (vec_extract_evenv2si): Ditto.
28379         (vec_extract_oddv2si: Ditto.
28380         (vec_pack_trunc_v2si): Ditto.
28381
28382 2011-01-22  Jan Hubicka  <jh@suse.cz>
28383
28384         PR target/47237
28385         * cgraph.h (cgraph_local_info): New field can_change_signature.
28386         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28387         signature can change.
28388         (ipcp_estimate_growth): Call sequence simplify only if calle signature
28389         can change.
28390         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28391         (cgraph_function_versioning): We can not change signature of functions
28392         that don't allow that.
28393         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28394         (lto_input_node): Likewise.
28395         * ipa-inline.c (compute_inline_parameters): Compute
28396         local.can_change_signature.
28397         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28398         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28399         functions that can not change signature.
28400         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28401         init_cumulative_args): Do not use local calling conventions
28402         for functions that can not change signature.
28403
28404 2011-01-22  Jan Hubicka  <jh@suse.cz>
28405
28406         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28407
28408 2011-01-26  Richard Guenther  <rguenther@suse.de>
28409
28410         PR tree-optimization/47190
28411         * cgraphunit.c (process_common_attributes): New function.
28412         (process_function_and_variable_attributes): Use it.
28413
28414 2011-01-26  Richard Guenther  <rguenther@suse.de>
28415
28416         PR lto/47423
28417         * cgraphbuild.c (record_eh_tables): Record reference to personality
28418         function.
28419
28420 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
28421
28422         PR debug/45454
28423         * sel-sched.c (moveup_expr): Don't let debug insns prevent
28424         non-debug insns from moving up.
28425
28426 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28427
28428         PR target/40125
28429         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28430         t-dlldir{,-x} fragment for build and add it to tmake_file.
28431         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28432         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28433         * config/i386/t-dlldir: New file.
28434         (SHLIB_DLLDIR): Define.
28435         * config/i386/t-dlldir-x: New file.
28436         (SHLIB_DLLDIR): Define.
28437         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28438         (SHLIB_INSTALL): Use it.
28439
28440 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
28441
28442         PR target/47246
28443         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28444         lower bound of the allowed Thumb-2 coprocessor load/store
28445         index range to -256. Add explaining comment.
28446
28447 2011-01-25  Ian Lance Taylor  <iant@google.com>
28448
28449         * godump.c (go_define): Improve lexing of macro expansion to only
28450         accept expressions which match Go spec.
28451
28452 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28453
28454         PR c++/43601
28455         * tree.c (handle_dll_attribute): Handle it.
28456         * doc/extend.texi (@item dllexport): Mention it.
28457         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28458
28459 2011-01-25  Ian Lance Taylor  <iant@google.com>
28460
28461         PR tree-optimization/26854
28462         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28463         (decl_jump_unsafe): Move higher in file, with no other change.
28464         (bind): Set has_jump_unsafe_decl if appropriate.
28465         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28466         (check_earlier_gotos): Likewise.
28467         (c_check_switch_jump_warnings): Likewise.
28468
28469 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
28470
28471         * doc/invoke.texi (Warning Options): Add missing hyphen.
28472         (-fprofile-dir): Minor grammatical fixes.
28473         (-fbranch-probabilities): Likewise.
28474
28475 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28476
28477         PR debug/45136
28478         PR debug/45130
28479         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28480         debug insns.
28481         (no_real_insns_p, schedule_block, set_priorities): Drop special
28482         treatment of boundary debug insns.
28483         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28484         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28485         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28486         (BOUNDARY_DEBUG_INSN_P): Likewise.
28487         (SCHEDULE_DEBUG_INSN_P): Likewise.
28488         * sched-rgn.c (init_ready_list): Drop special treatment of
28489         boundary debug insns.
28490         * final.c (rest_of_clean-state): Clear notes' BB.
28491
28492 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28493
28494         * Makefile.in (LAMBDA_H): Removed.
28495         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28496         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28497         lambda-trans.o, and tree-loop-linear.o.
28498         (lto-symtab.o): Remove dependence on LAMBDA_H.
28499         (tree-loop-linear.o): Remove rule.
28500         (lambda-mat.o): Same.
28501         (lambda-trans.o): Same.
28502         (lambda-code.o): Same.
28503         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28504         (tree-vect-slp.o): Same.
28505         * hwint.h (gcd): Moved here.
28506         (least_common_multiple): Same.
28507         * lambda-code.c: Removed.
28508         * lambda-mat.c: Removed.
28509         * lambda-trans.c: Removed.
28510         * lambda.h: Removed.
28511         * tree-loop-linear.c: Removed.
28512         * lto-symtab.c: Do not include lambda.h.
28513         * omega.c (gcd): Removed.
28514         * passes.c (init_optimization_passes): Remove pass_linear_transform.
28515         * tree-data-ref.c (print_lambda_vector): Moved here.
28516         (lambda_vector_copy): Same.
28517         (lambda_matrix_copy): Same.
28518         (lambda_matrix_id): Same.
28519         (lambda_vector_first_nz): Same.
28520         (lambda_matrix_row_add): Same.
28521         (lambda_matrix_row_exchange): Same.
28522         (lambda_vector_mult_const): Same.
28523         (lambda_vector_negate): Same.
28524         (lambda_matrix_row_negate): Same.
28525         (lambda_vector_equal): Same.
28526         (lambda_matrix_right_hermite): Same.
28527         * tree-data-ref.h: Do not include lambda.h.
28528         (lambda_vector): Moved here.
28529         (lambda_matrix): Same.
28530         (dependence_level): Same.
28531         (lambda_transform_legal_p): Removed declaration.
28532         (lambda_collect_parameters): Same.
28533         (lambda_compute_access_matrices): Same.
28534         (lambda_vector_gcd): Same.
28535         (lambda_vector_new): Same.
28536         (lambda_vector_clear): Same.
28537         (lambda_vector_lexico_pos): Same.
28538         (lambda_vector_zerop): Same.
28539         (lambda_matrix_new): Same.
28540         * tree-flow.h (least_common_multiple): Removed declaration.
28541         * tree-parloops.c (lambda_trans_matrix): Moved here.
28542         (LTM_MATRIX): Same.
28543         (LTM_ROWSIZE): Same.
28544         (LTM_COLSIZE): Same.
28545         (LTM_DENOMINATOR): Same.
28546         (lambda_trans_matrix_new): Same.
28547         (lambda_matrix_vector_mult): Same.
28548         (lambda_transform_legal_p): Same.
28549         * tree-pass.h (pass_linear_transform): Removed declaration.
28550         * tree-ssa-loop.c (tree_linear_transform): Removed.
28551         (gate_tree_linear_transform): Removed.
28552         (pass_linear_transform): Removed.
28553         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28554         flag_loop_interchange.
28555
28556 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28557
28558         PR tree-optimization/47265
28559         PR tree-optimization/47443
28560         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28561         if name still has some uses.
28562
28563 2011-01-25  Martin Jambor  <mjambor@suse.cz>
28564
28565         PR tree-optimization/47382
28566         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28567         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28568
28569 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
28570
28571         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28572         sjlj_except_unwind_info.
28573
28574 2011-01-25  Richard Guenther  <rguenther@suse.de>
28575
28576         PR tree-optimization/47426
28577         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28578         visible functions results escape.
28579
28580 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28581
28582         PR target/45701
28583         * config/arm/arm.c (any_sibcall_uses_r3): New function.
28584         (arm_get_frame_offsets): Use it.
28585
28586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28587             Jakub Jelinek  <jakub@redhat.com>
28588
28589         PR tree-optimization/47271
28590         * tree-if-conv.c (bb_postdominates_preds): New.
28591         (if_convertible_bb_p): Call bb_postdominates_preds.
28592         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28593         (predicate_scalar_phi): Call bb_postdominates_preds.
28594
28595 2011-01-25  Nick Clifton  <nickc@redhat.com>
28596
28597         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28598         * config/rx/rx.c (rx_function_value): Likewise.
28599         (rx_promote_function_mode): Likewise.
28600         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28601         in order to make it legitimate.
28602         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28603         make sure that the first operand is the same as the result register.
28604         (addsi3_unspec): Delete.
28605         (subdi3): Do not accept immediate operands.
28606         (subdi3_internal): Likewise.
28607
28608 2011-01-25  Jeff Law  <law@redhat.com>
28609
28610         PR rtl-optimization/37273
28611         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28612         handle them like argument loads from stack slots.  Do not double
28613         count memory for memory constants and argument loads from stack slots.
28614
28615 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28616
28617         PR tree-optimization/47427
28618         PR tree-optimization/47428
28619         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28620         coalesce if the new root var would be TREE_READONLY.
28621
28622 2011-01-25  Richard Guenther  <rguenther@suse.de>
28623
28624         PR middle-end/47414
28625         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28626         correct type for TBAA.
28627
28628 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28629
28630         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28631         (close_phi_written_to_memory): Call for_each_index with
28632         dr_indices_valid_in_loop.
28633
28634 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28635
28636         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28637         when it is initialized.
28638
28639 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28640
28641         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28642         call to graphite_find_data_references_in_stmt.
28643         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28644         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
28645         call to graphite_find_data_references_in_stmt.
28646         (analyze_drs_in_stmts): Same.
28647         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28648         in which the scalar analysis of indices is performed.
28649         (create_data_ref): Same.  Update call to dr_analyze_indices.
28650         (find_data_references_in_stmt): Update call to create_data_ref.
28651         (graphite_find_data_references_in_stmt): Same.
28652         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28653         declaration.
28654         (create_data_ref): Same.
28655         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28656         call to create_data_ref.
28657
28658 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28659
28660         * graphite-sese-to-poly.c (build_poly_scop): Move
28661         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28662
28663 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28664
28665         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28666         VAR_DECL, PARM_DECL, and RESULT_DECL.
28667
28668 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28669
28670         * graphite-dependences.c (reduction_dr_1): Allow several reductions
28671         in a reduction PBB.
28672         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28673         that have already been marked as PBB_IS_REDUCTION.
28674
28675 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28676
28677         * graphite-scop-detection.c (same_close_phi_node): New.
28678         (remove_duplicate_close_phi): New.
28679         (make_close_phi_nodes_unique): New.
28680         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28681
28682 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28683
28684         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28685         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28686         of both data references to be the same.
28687
28688 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28689
28690         * graphite-dependences.c (build_lexicographical_constraint): Remove
28691         the gdim parameter.
28692         (build_lexicographical_constraint): Adjust call to
28693         ppl_powerset_is_empty.
28694         (dependence_polyhedron): Same.
28695         (graphite_legal_transform_dr): Same.
28696         (graphite_carried_dependence_level_k): Same.
28697         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28698         parameter.
28699         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28700
28701 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28702
28703         * graphite-sese-to-poly.c
28704         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28705         (close_phi_written_to_memory): New.
28706         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28707         and unshare_expr.
28708
28709 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28710
28711         * doc/install.texi: Update the expected version number of PPL to 0.11.
28712         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28713         #if PPL_VERSION_MINOR < 11.
28714
28715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28716
28717         * graphite-dependences.c: Include graphite-cloog-util.h.
28718         (new_poly_ddr): Inlined into dependence_polyhedron.
28719         (free_poly_ddr): Moved close by new_poly_ddr.
28720         (dependence_polyhedron_1): Renamed dependence_polyhedron.
28721         Early return NULL when ppl_powerset_is_empty returns true.
28722         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
28723         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
28724         (graphite_legal_transform_dr): Call new_poly_ddr.
28725         (graphite_carried_dependence_level_k): Same.
28726         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
28727         (dot_transformed_deps_stmt_1): Removed.
28728         (dot_deps_stmt_1): Call dot_deps_stmt_2.
28729         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
28730         (dot_deps_1): Call dot_deps_2.
28731         * Makefile.in (graphite-dependences.o): Add missing dependence on
28732         graphite-cloog-util.h.
28733
28734 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28735
28736         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28737         (build_lexicographical_constraint): Same.
28738         (dependence_polyhedron_1): Same.
28739         (graphite_legal_transform_dr): Same.
28740         (graphite_carried_dependence_level_k): Same.
28741         * graphite-ppl.c (ppl_powerset_is_empty): New.
28742         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28743         * tree-data-ref.c (dump_data_reference): Print the basic block index.
28744
28745 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28746
28747         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28748         the "a followed by b" relation and document it.
28749
28750 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28751
28752         * graphite-dependences.c (build_lexicographical_constraint): Stop the
28753         iteration when the bag of constraints is empty.
28754
28755 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28756
28757         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28758
28759 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28760
28761         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28762         nest and two loop depths as parameters.
28763         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28764         lst_perfect_nestify.
28765
28766 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28767
28768         * graphite-dependences.c (print_pddr): Call
28769         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28770
28771 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28772
28773         * graphite-ppl.c (debug_gmp_value): New.
28774         * graphite-ppl.h (debug_gmp_value): Declared.
28775
28776 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
28777
28778         * doc/install.texi: Document availability of cloog-0.16.
28779
28780 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
28781
28782         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28783         invalid postdominance info.
28784
28785 2011-01-24  Jan Hubicka  <jh@suse.cz>
28786
28787         PR c/21659
28788         * doc/extend.texi (weak pragma): Drop claim that it must
28789         appear before definition.
28790         * varasm.c (merge_weak, declare_weak): Only sanity check
28791         that DECL is not output at a time it is declared weak.
28792
28793 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
28794
28795         * machmode.def: Fixed comments.
28796
28797 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
28798
28799         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28800
28801 2011-01-24  Paul Koning  <ni1d@arrl.net>
28802
28803         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28804         WORDS_BIG_ENDIAN.
28805
28806 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28807
28808         PR target/46519
28809         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28810         (block_info): Add scanned and prev.
28811         (move_or_delete_vzeroupper_2): Return if the basic block
28812         has been scanned and the upper 128bit state is unchanged
28813         from the last scan.
28814         (move_or_delete_vzeroupper_1): Return true if the exit
28815         state is changed.
28816         (move_or_delete_vzeroupper): Visit basic blocks using the
28817         work-list based algorithm based on vt_find_locations in
28818         var-tracking.c.
28819
28820         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28821
28822 2011-01-24  Nick Clifton  <nickc@redhat.com>
28823
28824         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28825         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28826         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
28827         then define __v850e1__.
28828         * doc/invoke.texi: Document -mv850es.
28829
28830 2011-01-24  Richard Henderson  <rth@redhat.com>
28831
28832         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28833         compound unordered comparisons.
28834         * config/rx/rx.c (rx_split_fp_compare): Remove.
28835         * config/rx/rx-protos.h: Update.
28836         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28837         (cbranchsf4): Don't call rx_split_fp_compare.
28838         (*cbranchsf4): Use rx_split_cbranch.
28839         (*cmpsf): Don't accept "i" constraint.
28840         (*conditional_branch): Only valid after reload.
28841         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
28842
28843 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28844
28845         PR target/47385
28846         * config/rs6000/altivec.md (vector constant splitters): Add
28847         support for creating vector single precision constants if -mvsx is
28848         used and we would create the constant using Altivec primitives.
28849
28850 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
28851             Richard Sandiford  <rdsandiford@googlemail.com>
28852
28853         PR rtl-optimization/47166
28854         * reload1.c (emit_reload_insns): Disable the spill_reg_store
28855         mechanism for PRE_MODIFY and POST_MODIFY.
28856         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28857         reloadreg.
28858
28859 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
28860
28861         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28862
28863 2011-01-22  Jan Hubicka  <jh@suse.cz>
28864
28865         PR lto/47333
28866         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28867
28868 2011-01-22  Jan Hubicka  <jh@suse.cz>
28869
28870         PR tree-optimization/43884
28871         PR lto/44334
28872         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28873         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28874
28875 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
28876
28877         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28878         * config/s390/s390.c (s390_register_move_cost,
28879         s390_memory_move_cost): New.
28880         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28881
28882 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28883
28884         PR middle-end/47401
28885         * except.c (sjlj_assign_call_site_values): Move setting the
28886         crtl->uses_eh_lsda flag to ...
28887         (sjlj_mark_call_sites): ... here.
28888         (sjlj_emit_function_enter): Support NULL dispatch label.
28889         (sjlj_build_landing_pads): In a function with no landing pads
28890         that still has must-not-throw regions, generate code to register
28891         a personality function with empty LSDA.
28892
28893 2011-01-21  Richard Henderson  <rth@redhat.com>
28894
28895         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28896
28897         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28898
28899         * compare-elim.c: New file.
28900         * Makefile.in (OBJS-common): Add it.
28901         (compare-elim.o): New.
28902         * common.opt (fcompare-elim): New.
28903         * opts.c (default_options_table): Add OPT_fcompare_elim.
28904         * tree-pass.h (pass_compare_elim_after_reload): New.
28905         * passes.c (init_optimization_passes): Add it.
28906         * recog.h: Protect against re-inclusion.
28907         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28908         * doc/invoke.texi (-fcompare-elim): Document it.
28909         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28910         * doc/tm.texi: Rebuild.
28911
28912 2011-01-22  Nick Clifton  <nickc@redhat.com>
28913
28914         * config/rx/rx.md (cstoresf4): Pass comparison operator to
28915         rx_split_fp_compare.
28916
28917 2011-01-22  Nick Clifton  <nickc@redhat.com>
28918
28919         * config/rx/rx.md (UNSPEC_CONST): New.
28920         (deallocate_and_return): Wrap the amount popped off the stack in
28921         an UNSPEC_CONST in order to stop it being rejected by
28922         -mmax-constant-size.
28923         (pop_and_return): Add a "(return)" rtx.
28924         (call): Drop the immediate operand.
28925         (call_internal): Likewise.
28926         (call_value): Likewise.
28927         (call_value_internal): Likewise.
28928         (sibcall_internal): Likewise.
28929         (sibcall_value_internal): Likewise.
28930         (sibcall): Likewise.  Generate an explicit call using
28931         sibcall_internal.
28932         (sibcall_value): Likewise.
28933         (mov<>): FAIL if a constant operand is not legitimate.
28934         (addsi3_unpsec): New pattern.
28935
28936         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28937         (ok_for_max_constant): New function.
28938         (gen_safe_add): New function.
28939         (rx_expand_prologue): Use gen_safe_add.
28940         (rx_expand_epilogue): Likewise.
28941         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
28942         UNSPEC CONSTs.
28943
28944 2011-01-21  Jeff Law  <law@redhat.com>
28945
28946         PR tree-optimization/47053
28947         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28948         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28949         statements are deleted.
28950         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
28951         is nonempty, then purge dead edges and cleanup the CFG.
28952
28953 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28954
28955         PR debug/47402
28956         Temporarily revert:
28957         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28958         PR debug/47106
28959         * tree-dfa.c (create_var_ann): Mark variable as used.
28960
28961 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28962
28963         PR middle-end/45566
28964         * except.c (convert_to_eh_region_ranges): Emit queued no-region
28965         notes from other section in hot/cold partitioning even if
28966         last_action is -3.  Increment call_site_base.
28967
28968         PR rtl-optimization/47366
28969         * fwprop.c (forward_propagate_into): Return bool.  If
28970         any changes are made, -fnon-call-exceptions is used and
28971         REG_EH_REGION note is present, call purge_dead_edges
28972         and return true if it purged anything.
28973         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28974         any EH edges were purged.
28975
28976 2011-01-21  Jeff Law  <law@redhat.com>
28977
28978         PR rtl-optimization/41619
28979         * caller-save.c (setup_save_areas): Break out code to determine
28980         which hard regs are live across calls by examining the reload chains
28981         so that it is always used.
28982         Eliminate code which checked REG_N_CALLS_CROSSED.
28983
28984 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28985
28986         PR tree-optimization/47355
28987         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28988         NOP has non-debug uses beyond PHIs in new_bb.
28989
28990 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28991
28992         PR debug/47106
28993         * cfgexpand.c (account_used_vars_for_block): Only account vars
28994         that are annotated as used.
28995         (estimated_stack_frame_size): Don't set TREE_USED.
28996         * tree-dfa.c (create_var_ann): Mark variable as used.
28997
28998 2011-01-21  Richard Guenther  <rguenther@suse.de>
28999
29000         PR middle-end/47395
29001         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
29002
29003 2011-01-21  Richard Guenther  <rguenther@suse.de>
29004
29005         PR tree-optimization/47365
29006         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
29007         (vn_reference_lookup_pieces): Adjust.
29008         (vn_reference_lookup): Likewise.
29009         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
29010         (vn_reference_lookup_3): Only look through kills if in
29011         VN_WALKREWRITE mode.
29012         (vn_reference_lookup_pieces): Adjust.
29013         (vn_reference_lookup): Likewise.
29014         (visit_reference_op_load): Likewise.
29015         (visit_reference_op_store): Likewise.
29016         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
29017         (compute_avail): Likewise.
29018         (eliminate): Likewise.
29019
29020 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
29021
29022         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
29023         DECL_IGNORED_P non-reg vars if they are used.
29024
29025         PR tree-optimization/47391
29026         * varpool.c (const_value_known_p): Return false if
29027         decl is volatile.
29028
29029 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
29030
29031         PR bootstrap/47215
29032         * config/i386/i386.c (ix86_local_alignment): Handle
29033         case for va_list_type_node is nil.
29034         (ix86_canonical_va_list_type): Likewise.
29035
29036 2011-01-21  Alan Modra  <amodra@gmail.com>
29037
29038         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
29039         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
29040
29041 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29042
29043         * config/arm/arm.md (define_attr type): Rename f_load
29044         and f_store to f_fpa_load and f_fpa_store. Update.
29045         (write_conflict): Deal with rename fallout.
29046         (*push_fp_multi): Likewise.
29047         * config/arm/fpa.md (f_load): Use f_fpa_load.
29048         (f_store): Use f_fpa_store.
29049         (*movsf_fpa): Likewise.
29050         (*movdf_fpa): Likewise.
29051         (*movxf_fpa): Likewise.
29052         (*thumb2_movsf_fpa): Likewise.
29053         (*thumb2_movdf_fpa): Likewise.
29054         (*thumb2_movxf_fpa): Likewise.
29055         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
29056         f_loadd and f_stored.
29057         (*thumb2_movdi_vfp): Likewise.
29058         (*thumb2_movsf_vfp): Fix attribute to f_loads.
29059         (*thumb2_movsi_vfp): Likewise.
29060         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
29061         Use f_loads instead of f_load.
29062         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
29063
29064 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
29065
29066         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29067         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
29068         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29069         (xtensa_mode_dependent_address_p): New function.
29070         (constantpool_address_p): Make static. Change return type to bool.
29071         Change argument type to const_rtx. Use CONST_INT_P predicate.
29072
29073 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
29074
29075         PR debug/46583
29076         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
29077
29078 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29079
29080         PR debug/47283
29081         * cfgexpand.c (expand_debug_expr): Instead of generating
29082         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
29083         etc. handling.
29084
29085 2011-01-20  Richard Guenther  <rguenther@suse.de>
29086
29087         PR middle-end/47370
29088         * tree-inline.c (remap_gimple_op_r): Recurse manually for
29089         the pointer operand of MEM_REFs.
29090
29091 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
29092
29093         PR tree-optimization/46130
29094         * ipa-split.c (consider_split): If return_bb contains non-virtual
29095         PHIs other than for retval or if split_function would not adjust it,
29096         refuse to split.
29097
29098 2011-01-20  Richard Guenther  <rguenther@suse.de>
29099
29100         PR tree-optimization/47167
29101         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
29102         Revert previous change, only avoid enumeral type changes.
29103
29104 2011-01-19  Mike Stump  <mikestump@comcast.net>
29105
29106         * doc/tm.texi.in (BRANCH_COST): Englishify.
29107         * doc/tm.texi (BRANCH_COST): Likewise.
29108
29109 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
29110
29111         PR c++/47291
29112         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
29113         (gen_scheduled_generic_parms_dies): New functions.
29114         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29115         generation for the end of CU compilation.
29116         (dwarf2out_finish): Generate template parameters DIEs here.
29117
29118 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29119
29120         PR debug/46240
29121         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29122         debug bind stmt on merge edges.
29123
29124 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29125
29126         PR debug/47079
29127         PR debug/46724
29128         * function.c (instantiate_expr): Instantiate incoming rtl of
29129         implicit arguments, and recurse on VALUE_EXPRs.
29130         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29131         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29132
29133 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29134
29135         * c-parser.c (c_parser_for_statement): Initialize
29136         collection_expression.
29137
29138 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29139
29140         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29141
29142 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29143
29144         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29145         (LINK_SHLIB_SPEC): Don't use %(link_path).
29146         (SUBTARGET_EXTRA_SPECS): Remove link_path.
29147
29148 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29149
29150         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29151         (NO_SHARED_LIB_SUPPORT): Remove.
29152         (LINK_SHLIB_SPEC): Remove one conditional definition.
29153
29154 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29155
29156         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29157         %{call_shared}.
29158         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29159         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29160         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29161         %{call_shared} and conditionals on these options not being passed.
29162         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29163         %{call_shared}.
29164
29165 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29166
29167         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29168         simplify.
29169
29170         * ipa-split.c: Spelling fixes.
29171
29172 2011-01-19  Richard Henderson  <rth@redhat.com>
29173
29174         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29175         (*mulsi3): Likewise.
29176
29177         * longlong.h [__mn10300__] (count_leading_zeros): New.
29178         [__mn10300__] (umul_ppmm, smul_ppmm): New.
29179         [__mn10300__] (add_ssaaaa, subddmmss): New.
29180         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29181         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29182
29183 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29184
29185         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29186
29187 2011-01-19  Richard Henderson  <rth@redhat.com>
29188
29189         * config/mn10300/mn10300.md (addsi3_flags): New.
29190         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29191         (subsi3_flags, subc_internal, subdi3): New.
29192         (subdi3_internal, *subdi3_degenerate): New.
29193         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29194
29195         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29196         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29197         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
29198         * config/mn10300/mn10300-protos.h: Update.
29199         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29200         (return_ret): Likewise.  Rename from return_internal_regs.
29201         (return_internal): Remove.
29202
29203         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29204         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29205         (mn10300_legitimate_constant_p): Likewise.
29206         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29207         (mn10300_frame_size): New.
29208         (mn10300_expand_prologue): Use it.
29209         (mn10300_expand_epilogue): Likewise.
29210         (mn10300_initial_offset): Likewise.
29211         * config/mn10300/mn10300-protos.h: Update.
29212         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29213         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29214         (prologue, epilogue, return_internal): Tidy output code.
29215         (mn10300_store_multiple_operation, return): Likewise.
29216         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29217         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29218         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29219         (load_pic, am33_load_pic): New.
29220         (mn10300_load_pic0, mn10300_load_pic1): New.
29221
29222         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29223         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29224         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29225         (cc_flags_for_mode, cc_flags_for_code): New.
29226         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29227         overflow flag is not valid.  Validate that the flags we need
29228         for the comparison are valid.
29229         (mn10300_output_cmp): Remove.
29230         (mn10300_output_add): New.
29231         (mn10300_select_cc_mode): Use cc_flags_for_code.
29232         (mn10300_split_cbranch): New.
29233         (mn10300_match_ccmode): New.
29234         (mn10300_split_and_operand_count): New.
29235         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29236         to the function.
29237         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29238         (addsi3): ... here.  Use mn10300_output_add.
29239         (*addsi3_flags): New.
29240         (*am33_subsi3, *mn10300_subsi3): Merge...
29241         (subsi3): ... here.  Use attribute isa.
29242         (*subsi3_flags): New.
29243         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
29244         when possible.
29245         (*am33_andsi3, *mn10300_andsi3): Merge...
29246         (andsi3): ... here.
29247         (*andsi3_flags): New.
29248         (andsi3 splitters): New.
29249         (*am33_iorsi3, *mn10300_iorsi3): Merge...
29250         (iorsi3): ... here.
29251         (*iorsi3_flags): New.
29252         (*am33_xorsi3, *mn10300_xorsi3): Merge...
29253         (xorsi3): ... here.
29254         (*xorsi3_flags): New.
29255         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29256         (one_cmplsi2): ... here.
29257         (*one_cmplsi2_flags): New.
29258         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
29259         instead of "dax" in constraints.  Use mn10300_split_cbranch.
29260         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
29261         use matching constraints to eliminate a self-comparison.
29262         (*integer_conditional_branch): Rename from integer_conditional_branch.
29263         Use int_mode_flags to match CC_REG.
29264         (*cbranchsi4_btst, *btstsi): New.
29265         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
29266         mn10300_split_cbranch.
29267         (*am33_cmpsf): Rename from am33_cmpsf.
29268         (*float_conditional_branch): Rename from float_conditional_branch.
29269         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29270         (zero_extendqisi2): ... here.
29271         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29272         (zero_extendhisi2): ... here.
29273         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29274         (extendqisi2): ... here.
29275         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29276         (extendhisi2): ... here.
29277         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29278         (ashlsi3): ... here.
29279         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29280         (lshrsi3): ... here.
29281         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29282         (ashrsi3): ... here.
29283         (consecutive add peephole): Remove.
29284         * config/mn10300/predicates.md (label_ref_operand): New.
29285         (int_mode_flags): New.
29286         (CCZN_comparison_operator): New.
29287
29288         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29289         (throughput_42_latency_43): New reservation.
29290         (mulsidi3, umulsidi3): New expanders.
29291         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
29292         the MDR register to allocation; separately allocate the low and
29293         high parts of the DImode result.
29294         (umulsidi3_internal): Similarly.
29295         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29296         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
29297         (udivsi3, umodsi3): Remove.
29298         (udivmodsi4, divmodsi4): New expanders.
29299         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
29300         (*divmodsi4): Simiarly.
29301         (ext_internal): New.
29302
29303         * config/mn10300/constraints.md ("z"): New constraint.
29304         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29305         (FIXED_REGISTERS): Don't fix MDR.
29306         (CALL_USED_REGSITERS): Reformat nicely.
29307         (REG_ALLOC_ORDER): Add MDR.
29308         (enum regclass): Add MDR_REGS.
29309         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29310         (IRA_COVER_CLASSES): Add MDR_REGS.
29311         (REGNO_REG_CLASS): Handle MDR_REG.
29312         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29313         (mn10300_register_move_cost): Likewise.
29314         * config/mn10300/mn10300.md (MDR_REG): New.
29315         (*movsi_internal): Handle moves to/from MDR_REGS.
29316
29317         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29318         POST_MODIFY.
29319         (mn10300_secondary_reload): Tidy combination reload classes.
29320         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29321         addresses for AM33.  Allow symbolic offsets for reg+imm.
29322         (mn10300_regno_in_class_p): New.
29323         (mn10300_legitimize_reload_address): New.
29324         * config/mn10300/mn10300.h (enum reg_class): Remove
29325         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29326         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
29327         SP_OR_GENERAL_REGS.
29328         (REG_CLASS_NAMES): Update to match.
29329         (REG_CLASS_CONTENTS): Likewise.
29330         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29331         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29332         (REGNO_IN_RANGE_P): Remove.
29333         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29334         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29335         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29336         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29337         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29338         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29339         (REGNO_GENERAL_P): New.
29340         (HAVE_POST_MODIFY_DISP): New.
29341         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29342         (LEGITIMIZE_RELOAD_ADDRESS): New.
29343         * config/mn10300/mn10300-protos.h: Update.
29344
29345         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29346         DATA_REGS for AM33 stack-pointer destination.
29347         (mn10300_preferred_output_reload_class): Likewise.
29348         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29349         into a form appropriate for ...
29350         (TARGET_SECONDARY_RELOAD): New.
29351         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29352         * config/mn10300/mn10300-protos.h: Update.
29353         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29354         reload_insi; use the "A" constraint for the scratch; handle AM33
29355         moves of sp to non-address registers.
29356
29357         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29358         (*movqi_internal): ... here.
29359         (*am33_movhi, *mn10300_movhi): Merge into...
29360         (*movhi_internal): ... here.
29361         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
29362         as the source/destination of moves from/to SP.
29363         (movsf): Only allow for AM33-2.
29364         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29365         any integer constant constraint.  Only allow for AM33-2.  Tidy
29366         all of the alternative outputs.
29367         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29368         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
29369         for MN103.
29370         (udivsi3, umodsi3): New patterns for MN103 only.
29371
29372 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
29373
29374         * doc/tm.texi.in: Spell out that a lack of register class unions
29375         can lead to ICEs.
29376         * doc/tm.texi: Regenerate.
29377
29378 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29379
29380         PR rtl-optimization/47337
29381         * dce.c (check_argument_store): New function.
29382         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
29383
29384         PR tree-optimization/47290
29385         * tree-eh.c (infinite_empty_loop_p): New function.
29386         (cleanup_empty_eh): Use it.
29387
29388 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
29389
29390         PR target/46997
29391         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29392         (a64_expand_widen_sum): Ditto.
29393         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29394         (vec_extract_evenodd_help): Ditto.
29395         (vec_extract_evenv4hi): Ditto.
29396         (vec_extract_oddv4hi): Ditto.
29397         (vec_extract_evenv2si): Ditto.
29398         (vec_extract_oddv2si): Ditto.
29399         (vec_extract_evenv2sf): Ditto.
29400         (vec_extract_oddv2sf): Ditto.
29401         (vec_pack_trunc_v4hi: Ditto.
29402         (vec_pack_trunc_v2si): Ditto.
29403         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29404         (vec_interleave_highv8qi): Ditto.
29405         (mix1_r): Ditto.
29406         (vec_extract_oddv8qi): Ditto.
29407         (vec_interleave_lowv4hi): Ditto.
29408         (vec_interleave_highv4hi): Ditto.
29409         (vec_interleave_lowv2si): Ditto.
29410         (vec_interleave_highv2si): Ditto.
29411
29412 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29413
29414         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29415         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29416         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
29417         (pa_c_mode_for_suffix): New.
29418         (TARGET_EXPAND_BUILTIN): Define.
29419         (TARGET_C_MODE_FOR_SUFFIX): Define.
29420         (pa_builtins): Define.
29421         (pa_init_builtins): Register __float128 type and init new support
29422         builtins.
29423         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29424         * config/pa/quadlib.c (_U_Qfcopysign): New.
29425
29426 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
29427
29428         PR middle-end/46894
29429         * explow.c (allocate_dynamic_stack_space): Do not assume more than
29430         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29431         are defined.
29432
29433 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29434
29435         PR tree-optimization/47179
29436         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29437         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29438
29439 2011-01-18  Richard Guenther  <rguenther@suse.de>
29440
29441         PR rtl-optimization/47216
29442         * emit-rtl.c: Include tree-flow.h.
29443         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29444         of replicating it with different semantics.
29445         * Makefile.in (emit-rtl.o): Adjust.
29446
29447 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29448
29449         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29450         (cortex_a9_dp): Handle neon types correctly.
29451
29452 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
29453
29454         PR rtl-optimization/47299
29455         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29456         subtarget.  Use normal multiplication if both operands are constants.
29457         * expmed.c (expand_widening_mult): Don't try to optimize constant
29458         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
29459         before using it.
29460
29461 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29462
29463         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
29464         spacing after 'e.g.', typos, comma, hyphenation.
29465
29466 2011-01-17  Richard Henderson  <rth@redhat.com>
29467
29468         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29469         (rx_restricted_mem_operand): New.
29470         (rx_shift_operand): Use register_operand.
29471         (rx_source_operand, rx_compare_operand): Likewise.
29472         * config/rx/rx.md (addsi3_flags): New expander.
29473         (adddi3): Rewrite as expander.
29474         (adc_internal, *adc_flags, adddi3_internal): New patterns.
29475         (subsi3_flags): New expander.
29476         (subdi3): Rewrite as expander.
29477         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29478
29479         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29480         (rx_init_builtins): Remove sat builtin.
29481         (rx_expand_builtin): Likewise.
29482         * config/rx/rx.md (ssaddsi3): New.
29483         (*sat): Rename from sat.  Represent the CC_REG input.
29484
29485         * config/rx/predicates.md (rshift_operator): New.
29486         * config/rx/rx.c (rx_expand_insv): Remove.
29487         * config/rx/rx-protos.h: Update.
29488         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
29489         operand to the canonical position.
29490         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29491         (*bitclr, *bitclr_in_memory): Similarly.
29492         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29493         (insv): Retain the zero_extract in the expansion.
29494
29495         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29496         (bswaphi2, bitinvert, revw): Likewise.
29497
29498         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29499         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29500         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29501         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29502         (bitset, bitset_in_memory): Likewise.
29503         (bitinvert, bitinvert_in_memory): Likewise.
29504         (bitclr, bitclr_in_memory): Likewise.
29505         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29506         (rx_strend, rx_cmpstrn): Likewise.
29507         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
29508         (bitop peep2 patterns): Remove.
29509
29510         * config/rx/rx.c (rx_match_ccmode): New.
29511         * config/rx/rx-protos.h: Update.
29512         * config/rx/rx.md (abssi2): Clobber, don't set flags.
29513         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29514         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29515         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29516         (fix_truncsfsi2, floatsisf2): Likewise.
29517         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29518         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29519         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29520         (*subsi3_flags, *xorsi3_flags): New.
29521
29522         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29523
29524         * config/rx/rx.c (rx_print_operand): Remove workaround for
29525         unsplit comparison operations.
29526
29527         * config/rx/rx.md (movsicc): Split after reload.
29528         (*movsicc): Merge *movsieq and *movsine via match_operator.
29529         (*stcc): New pattern.
29530
29531         * config/rx/rx.c (rx_float_compare_mode): Remove.
29532         * config/rx/rx.h (rx_float_compare_mode): Remove.
29533         * config/rx/rx.md (cstoresi4): Split after reload.
29534         (*sccc): New pattern.
29535
29536         * config/rx/predicates.md (label_ref_operand): New.
29537         (rx_z_comparison_operator): New.
29538         (rx_zs_comparison_operator): New.
29539         (rx_fp_comparison_operator): New.
29540         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29541         Validate that the flags are set properly for the comparison.
29542         (rx_gen_cond_branch_template): Remove.
29543         (rx_cc_modes_compatible): Remove.
29544         (mode_from_flags): New.
29545         (flags_from_code): Rename from flags_needed_for_conditional.
29546         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29547         (rx_select_cc_mode): Likewise.
29548         (rx_split_fp_compare): New.
29549         (rx_split_cbranch): New.
29550         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29551         (*cbranchsi4): Use match_operator and rx_split_cbranch.
29552         (*cbranchsf4): Similarly.
29553         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
29554         match_operator and rx_split_cbranch.
29555         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29556         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
29557         (*cmpsi): Rename from cmpsi.
29558         (*tstsi): Rename from tstsi.
29559         (*cmpsf): Rename from cmpsf; use CC_Fmode.
29560         (*conditional_branch): Rename from conditional_branch.
29561         (*reveresed_conditional_branch): Remove.
29562         (b<code>): Remove expander.
29563         * config/rx/rx-protos.h: Update.
29564
29565         * config/rx/rx.c (rx_compare_redundant): Remove.
29566         * config/rx/rx.md (cmpsi): Don't use it.
29567         * config/rx/rx-protos.h: Update.
29568
29569         * config/rx/rx-modes.def (CC_F): New mode.
29570         * config/rx/rx.c (rx_select_cc_mode): New.
29571         * config/rx/rx.h (SELECT_CC_MODE): Use it.
29572         * config/rx/rx-protos.h: Update.
29573
29574 2011-01-17  Richard Henderson  <rth@redhat.com>
29575
29576         * except.c (dump_eh_tree): Fix stray ; after for statement.
29577
29578 2011-01-17  Richard Guenther  <rguenther@suse.de>
29579
29580         PR tree-optimization/47313
29581         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29582         handling before copying the body.  Properly deal with
29583         by-reference result in SSA form.
29584
29585 2011-01-17  Ian Lance Taylor  <iant@google.com>
29586
29587         PR target/47219
29588         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29589         (struct_value_alias_set): Don't define.
29590         (sparc_option_override): Don't set sparc_sr_alias_set and
29591         struct_value_alias_set.
29592         (save_or_restore_regs): Use gen_frame_mem rather than calling
29593         set_mem_alias_set.
29594         (sparc_struct_value_rtx): Likewise.
29595
29596 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29597
29598         PR target/47318
29599         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29600         (_mm_maskstore_pd): Likewise.
29601         (_mm_maskload_ps): Likewise.
29602         (_mm_maskstore_ps): Likewise.
29603         (_mm256_maskload_pd): Change mask to __m256i.
29604         (_mm256_maskstore_pd): Likewise.
29605         (_mm256_maskload_ps): Likewise.
29606         (_mm256_maskstore_ps): Likewise.
29607
29608         * config/i386/i386-builtin-types.def: Updated.
29609         (ix86_expand_special_args_builtin): Likewise.
29610
29611         * config/i386/i386.c (bdesc_special_args): Update
29612         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29613         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29614         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29615         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29616
29617         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29618         Use <avxpermvecmode> on mask register.
29619         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29620
29621 2011-01-17  Olivier Hainque  <hainque@adacore.com>
29622             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29623             Eric Botcazou  <ebotcazou@adacore.com>
29624
29625         PR target/46655
29626         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29627         if <= USHRT_MAX in 32-bit mode.
29628
29629 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29630
29631         * doc/install.texi (Configuration, Specific): Wrap long
29632         lines in examples.  Allow line wrapping in long options
29633         and URLs where beneficial for PDF output.
29634
29635 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
29636
29637         * config/mips/mips.c (mips_classify_symbol): Don't return
29638         SYMBOL_PC_RELATIVE for nonlocal labels.
29639
29640 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29641
29642         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29643
29644 2011-01-15  Jan Hubicka  <jh@suse.cz>
29645
29646         PR tree-optimization/47276
29647         * ipa.c (function_and_variable_visibility): Do not try to mark alias
29648         declarations as needed.
29649
29650 2011-01-15  Martin Jambor  <mjambor@suse.cz>
29651
29652         * common.opt (fdevirtualize): New flag.
29653         * doc/invoke.texi (Option Summary): Document it.
29654         * opts.c (default_options_table): Add devirtualize flag.
29655         * ipa-prop.c (detect_type_change): Return immediately if
29656         devirtualize flag is not set.
29657         (detect_type_change_ssa): Likewise.
29658         (compute_known_type_jump_func): Likewise.
29659         (ipa_analyze_virtual_call_uses): Likewise.
29660
29661 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29662
29663         PR tree-optimization/45934
29664         PR tree-optimization/46302
29665         * ipa-prop.c (type_change_info): New type.
29666         (stmt_may_be_vtbl_ptr_store): New function.
29667         (check_stmt_for_type_change): Likewise.
29668         (detect_type_change): Likewise.
29669         (detect_type_change_ssa): Likewise.
29670         (compute_complex_assign_jump_func): Check for dynamic type change.
29671         (compute_complex_ancestor_jump_func): Likewise.
29672         (compute_known_type_jump_func): Likewise.
29673         (compute_scalar_jump_functions): Likewise.
29674         (ipa_analyze_virtual_call_uses): Likewise.
29675         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29676
29677 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29678
29679         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29680         * config/i386/i386.opt (msse5): New Alias.
29681
29682 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29683
29684         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29685         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29686         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29687         * config/sparc/sparc.h (CC1_SPEC): Likewise.
29688
29689 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29690
29691         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29692         -mcpu options.
29693         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29694         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29695         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29696         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29697         Likewise.
29698         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29699
29700 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29701
29702         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29703
29704 2011-01-14  Mike Stump  <mikestump@comcast.net>
29705
29706         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29707         * config/fr30/fr30.md: Likweise
29708         (movsi_push): Likewise.
29709         (movsi_pop): Likewise.
29710         (enter_func): Likewise.
29711         * config/moxie/moxie.md (movsi_push): Likewise.
29712         (movsi_pop): Likewise.
29713
29714 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29715
29716         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29717         %{no_archive} %{exact_version}.
29718         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29719         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29720         %{no_archive} %{exact_version}.
29721         * config/mips/openbsd.h (LINK_SPEC): Likewise.
29722         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29723         * config/mips/vxworks.h: Likewise.
29724
29725 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29726
29727         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29728
29729 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29730
29731         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29732         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29733
29734 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29735
29736         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29737         -nodefaultlib.
29738
29739 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29740
29741         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29742         for mcpu not cpu.
29743         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29744         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29745         not cpu.
29746         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29747         Don't handle -shlib.
29748
29749 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29750
29751         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29752         (CC1_SPEC): Don't handle -profile.
29753
29754 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29755
29756         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29757         * config/mips/mips.h (CC1_SPEC): Likewise.
29758
29759 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29760
29761         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29762         * config/mips/mips.h (CC1_SPEC): Likewise.
29763
29764 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29765
29766         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29767         * config/m32r/linux.h (LINK_SPEC): Likewise.
29768         * config/mips/linux.h (LINK_SPEC): Likewise.
29769         * config/mips/linux64.h (LINK_SPEC): Likewise.
29770         * config/sparc/linux.h (LINK_SPEC): Likewise.
29771         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29772         LINK_SPEC): Likewise.
29773         * config/xtensa/linux.h (LINK_SPEC): Likewise.
29774
29775 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29776
29777         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29778         %{version:-v}.
29779         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29780
29781 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29782
29783         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29784         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29785
29786 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29787
29788         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29789
29790 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29791
29792         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29793         supports -Bstatic/-Bdynamic.
29794         * configure: Regenerate.
29795
29796 2011-01-14  Jan Hubicka  <jh@suse.cz>
29797             Jack Howarth  <howarth@bromo.med.uc.edu>
29798
29799         PR target/46037
29800         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29801         when checking debug_info_level. Test write_symbols instead of
29802         debug_hooks->var_location when setting flag_var_tracking_uninit.
29803
29804 2011-01-14  Richard Guenther  <rguenther@suse.de>
29805
29806         PR tree-optimization/47179
29807         * target.def (ref_may_alias_errno): New target hook.
29808         * targhooks.h (default_ref_may_alias_errno): Declare.
29809         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29810         (default_ref_may_alias_errno): New function.
29811         * target.h (struct ao_ref_s): Declare.
29812         * tree-ssa-alias.c: Include target.h.
29813         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29814         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29815         (targhooks.o): Likewise.
29816         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29817         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29818
29819 2011-01-14  Richard Guenther  <rguenther@suse.de>
29820
29821         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
29822
29823 2011-01-14  Richard Guenther  <rguenther@suse.de>
29824
29825         PR tree-optimization/47280
29826         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29827         return CFG changes.
29828         (tree_ssa_forward_propagate_single_use_vars): Deal with
29829         CFG changes from associate_plusminus.
29830
29831 2011-01-14  Richard Guenther  <rguenther@suse.de>
29832
29833         PR middle-end/47281
29834         Revert
29835         2011-01-11  Richard Guenther  <rguenther@suse.de>
29836
29837         PR tree-optimization/46076
29838         * tree-ssa.c (useless_type_conversion_p): Conversions from
29839         unprototyped to empty argument list function types are useless.
29840
29841 2011-01-14  Richard Guenther  <rguenther@suse.de>
29842
29843         PR tree-optimization/47286
29844         * tree-ssa-structalias.c (new_var_info): Register variables are global.
29845
29846 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29847
29848         PR middle-end/46823
29849         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29850
29851 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
29852
29853         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29854         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29855         * config/xtensa/xtensa.c (xtensa_libcall_value,
29856         xtensa_function_value_regno_p): New functions.
29857         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29858
29859 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
29860
29861         PR c++/47213
29862         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29863         PE specific hook.
29864         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29865         New function prototype.
29866         * config/i386/winnt.c (i386_pe_assemble_visibility):
29867         Warn only if attribute was specified by user.
29868
29869 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
29870
29871         PR target/47251
29872         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29873         floating point.
29874         (floatunsdidf2_fcfidu): Ditto.
29875
29876 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29877
29878         * config/s390/s390.c (print_operand_address): Replace 'error' with
29879         'output_operand_lossage'.
29880         (print_operand): Likewise.
29881
29882 2011-01-13  Jeff Law  <law@redhat.com>
29883
29884         PR rtl-optimization/39077
29885         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29886         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29887         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29888         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29889         * gcse.c (prune_insertions_deletions): New function.
29890         (compute_pre_data): Use it.
29891
29892 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
29893
29894         PR debug/PR46973
29895         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29896         static function.
29897         (prune_unused_types_mark): Use it.
29898
29899 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
29900
29901         PR rtl-optimization/45352
29902         * sel-sched.c: Update copyright years.
29903         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29904         in the advancing loop when we have issued issue_rate insns.
29905
29906 2011-01-12  Richard Henderson  <rth@redhat.com>
29907
29908         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29909         (TARGET_MD_ASM_CLOBBERS): New.
29910
29911         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29912         (TARGET_DELEGITIMIZE_ADDRESS): New.
29913
29914         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29915         (clzsi2, *bsch): New patterns.
29916
29917         * config/mn10300/mn10300.md (INT): New mode iterator.
29918         (*mov<INT>_clr): New pattern, and peep2 to generate it.
29919
29920         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29921         flag_split_wide_types.
29922
29923         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29924         (mn10300_trampoline_init): Rewrite without a template, an immediate
29925         load and a direct branch.
29926         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29927
29928 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
29929
29930         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29931         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29932         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29933         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29934
29935 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
29936
29937         PR debug/47209
29938         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29939         of type.
29940
29941 2011-01-12  Jan Hubicka  <jh@suse.cz>
29942
29943         PR driver/47244
29944         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29945         (PLUGIN_COND_CLOSE): New macro.
29946         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29947
29948 2011-01-12  Richard Guenther  <rguenther@suse.de>
29949
29950         PR lto/47259
29951         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29952         register variables in a MEM_REF.
29953
29954 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
29955
29956         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29957         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29958         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29959         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29960         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29961         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29962         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29963         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29964         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29965         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29966         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29967         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29968         * config/gnu-user.h: New.  Copied from linux.h.
29969         (LINUX_TARGET_STARTFILE_SPEC): Rename to
29970         GNU_USER_TARGET_STARTFILE_SPEC.
29971         (LINUX_TARGET_ENDFILE_SPEC): Rename to
29972         GNU_USER_TARGET_ENDFILE_SPEC.
29973         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29974         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29975         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29976         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29977         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29978         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29979         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29980         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29981         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29982         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29983         * config/arm/linux-eabi.h (CC1_SPEC): Use
29984         GNU_USER_TARGET_CC1_SPEC.
29985         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29986         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29987         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29988         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29989         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29990         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29991         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29992         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29993
29994 2011-01-12  Richard Guenther  <rguenther@suse.de>
29995
29996         PR other/46946
29997         * doc/invoke.texi (ffast-math): Document it is turned on
29998         with -Ofast.
29999
30000 2011-01-12  Jan Hubicka  <jh@suse.cz>
30001
30002         PR tree-optimization/47233
30003         * opts.c (common_handle_option): Disable ipa-reference with profile
30004         feedback.
30005
30006 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30007
30008         * c-parser.c (c_parser_objc_at_property_declaration): Improved
30009         error message.
30010
30011 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
30012
30013         * c-parser.c (c_lex_one_token): Updated and reindented some
30014         comments.  No changes in code.
30015
30016 2011-01-11  Ian Lance Taylor  <iant@google.com>
30017
30018         * godump.c (go_output_var): Don't output the variable if there is
30019         already a type with the same name.
30020
30021 2011-01-11  Ian Lance Taylor  <iant@google.com>
30022
30023         * godump.c (go_format_type): Don't generate float80.
30024
30025 2011-01-11  Richard Henderson  <rth@redhat.com>
30026
30027         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
30028         declaration.  Rewrite for both speed and size.
30029         (mn10300_address_cost_1): Remove.
30030         (mn10300_register_move_cost): New.
30031         (mn10300_memory_move_cost): New.
30032         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
30033         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
30034         extensions, shifts, BSWAP, CLZ.
30035         (mn10300_wide_const_load_uses_clr): Remove.
30036         (TARGET_REGISTER_MOVE_COST): New.
30037         (TARGET_MEMORY_MOVE_COST): New.
30038         * config/mn10300/mn10300-protos.h: Update.
30039         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
30040
30041         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
30042         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
30043         * config/mn10300/mn10300-protos.h: Update.
30044         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
30045         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
30046         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
30047         (*test_int_bitfield, *test_byte_bitfield): Remove.
30048         (*bit_test, *subreg_bit_test): Remove.
30049         * config/mn10300/predicates.md (const_8bit_operand): Remove.
30050
30051         * config/mn10300/constraints.md ("c"): Rename from "A".
30052         ("A", "D"): New constraint letters.
30053         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
30054         (fmssf4, fnmasf4, fnmssf4): Likewise.
30055
30056         * config/mn10300/mn10300.md (isa): New attribute.
30057         (enabled): New attribute.
30058
30059         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
30060         (abssf2, negsf2): Define only for hardware fp.
30061         (sqrtsf2): Reformat.
30062         (addsf3, subsf3, mulsf3): Merge expander and insn.
30063
30064         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
30065         (DEBUGGER_AUTO_OFFSET): Remove.
30066         (DEBUGGER_ARG_OFFSET): Remove.
30067
30068         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
30069         Emit register stores with the same offsets as the hardware.
30070         (mn10300_store_multiple_operation): Don't check that the register
30071         save offsets are monotonic.
30072         * config/mn10300/mn10300-protos.h: Update.
30073
30074         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
30075
30076         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
30077         in terms of the value on the stack, not the MDR register.
30078
30079 2011-01-11  Jan Hubicka  <jh@suse.cz>
30080
30081         PR lto/45721
30082         PR lto/45375
30083         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
30084         (symbol_alias_set_destroy, symbol_alias_set_contains,
30085         propagate_aliases_backward): Declare.
30086         * lto-streamer-out.c (struct sets): New sturcture.
30087         (trivally_defined_alias): New function.
30088         (output_alias_pair_p): Rewrite.
30089         (output_unreferenced_globals): Fix output of alias pairs.
30090         (produce_symtab): Likewise.
30091         * ipa.c (function_and_variable_visibility): Set weak alias destination
30092         as needed in lto.
30093         * varasm.c (symbol_alias_set_t): Remove.
30094         (symbol_alias_set_destroy): Export.
30095         (propagate_aliases_forward, propagate_aliases_backward): New functions
30096         based on ...
30097         (compute_visible_aliases): ... this one; remove.
30098         (trivially_visible_alias): New
30099         (trivially_defined_alias): New.
30100         (remove_unreachable_alias_pairs): Rewrite.
30101         (finish_aliases_1): Reorganize code checking if alias is defined.
30102         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
30103         in LTO mode.
30104
30105 2011-01-11  Richard Guenther  <rguenther@suse.de>
30106
30107         PR tree-optimization/46076
30108         * tree-ssa.c (useless_type_conversion_p): Conversions from
30109         unprototyped to empty argument list function types are useless.
30110
30111 2011-01-11  Richard Guenther  <rguenther@suse.de>
30112
30113         PR middle-end/45235
30114         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30115         volatile MEMs as MEM_READONLY_P.
30116
30117 2011-01-11  Richard Guenther  <rguenther@suse.de>
30118
30119         PR tree-optimization/47239
30120         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30121
30122 2011-01-11  Jeff Law  <law@redhat.com>
30123
30124         PR tree-optimization/47086
30125         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30126         IVs from statements that might throw.
30127
30128 2011-01-10  Jan Hubicka  <jh@suse.cz>
30129
30130         PR lto/45375
30131         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30132
30133 2011-01-10  Jan Hubicka  <jh@suse.cz>
30134
30135         PR lto/45375
30136         * profile.c (read_profile_edge_counts): Ignore profile inconistency
30137         when correcting profile.
30138
30139 2011-01-10  Jan Hubicka  <jh@suse.cz>
30140
30141         PR lto/46083
30142         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30143         DECL_FINI_PRIORITY.
30144         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30145         Restore DECL_FINI_PRIORITY.
30146
30147 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30148
30149         * doc/gimple.texi: Fix quoting of multi-word return values in
30150         @deftypefn statements.  Ensure presence of return value.  Wrap
30151         overlong @deftypefn lines.
30152         (is_gimple_operand, is_gimple_min_invariant_address): Remove
30153         descriptions of removed functions.
30154         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30155         of multi-word return value in @deftypefn statement.
30156
30157 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30158
30159         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30160         (Conditional Expressions, Logical Operators)
30161         (Statement and operand traversals): Do not indent smallexample
30162         code.  Fix duplicate function argument in example.
30163
30164 2011-01-10  Jeff Law  <law@redhat.com>
30165
30166         PR tree-optimization/47141
30167         * ipa-split.c (split_function): Handle case where we are
30168         returning a value and the return block has a virtual operand phi.
30169
30170 2011-01-10  Jan Hubicka  <jh@suse.cz>
30171
30172         PR tree-optimization/47234
30173         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30174         (pass_feedback_split_functions): Declare.
30175         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30176         tree-profile.
30177         * ipa-split.c (gate_split_functions): Update comments; disable
30178         split-functions for profile_arc_flag and branch_probabilities.
30179         (gate_feedback_split_functions): New function.
30180         (execute_feedback_split_functions): New function.
30181         (pass_feedback_split_functions): New global var.
30182
30183 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30184
30185         PR lto/46760
30186         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30187         calling gimple_call_set_cannot_inline.
30188
30189 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
30190
30191         * config/darwin-sections.def: Remove unused section.
30192
30193 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
30194
30195         PR c++/47218
30196         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30197
30198 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
30199
30200         PR objc/47232
30201         * c-parser.c (c_parser_declaration_or_fndef): Improved
30202         error message.
30203
30204 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
30205
30206         * config/i386/winnt.c (i386_pe_start_function): Make sure
30207         to switch back to function's section.
30208
30209 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
30210
30211         PR gcc/46902
30212         PR testsuite/46912
30213         * plugin.c: Move include of dlfcn.h from here...
30214         * system.h: ... to here.
30215
30216 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30217
30218         * doc/cpp.texi (C++ Named Operators): Fix markup for header
30219         file name.
30220         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30221         two extra empty pages in PDF output.
30222
30223 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
30224
30225         PR objc/47078
30226         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30227         for error recovery purposes behave as if it was not specified so
30228         that the default type is usd.
30229
30230 2011-01-07  Jan Hubicka  <jh@suse.cz>
30231
30232         PR tree-optmization/46469
30233         * ipa.c (function_and_variable_visibility): Clear needed flags on
30234         nodes with external decls; handle weakrefs merging correctly.
30235
30236 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
30237
30238         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30239         not false.
30240
30241 2011-01-07  Jan Hubicka  <jh@suse.cz>
30242
30243         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30244         and no longer claim that gold is required for linker plugin.
30245         * configure: Regenerate.
30246         * gcc.c (PLUGIN_COND): New macro.
30247         (LINK_COMMAND_SPEC): Use it.
30248         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30249         * config.in (HAVE_LTO_PLUGIN): New.
30250         * configure.ac (--with-lto-plugin): New parameter; autodetect
30251         HAVE_LTO_PLUGIN.
30252
30253 2011-01-07  Jan Hubicka  <jh@suse.cz>
30254
30255         PR tree-optimization/46367
30256         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30257         when we can update original.
30258         (cgraph_mark_inline_edge): Sanity check.
30259         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30260
30261 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30262
30263         * config/spu/spu.h (ASM_COMMENT_START): Define.
30264
30265 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30266
30267         PR driver/42445
30268         * gcc.c (%>S): New.
30269         (SWITCH_KEEP_FOR_GCC): Likewise.
30270         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30271         (do_spec_1): Handle "%>".
30272
30273         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30274
30275 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
30276
30277         PR target/47201
30278         * config/i386/i386.c (ix86_delegitimize_address): If
30279         simplify_gen_subreg fails, return orig_x.
30280
30281         PR bootstrap/47187
30282         * value-prof.c (gimple_stringop_fixed_value): Handle
30283         lhs of the call properly.
30284
30285 2011-01-07  Jan Hubicka  <jh@suse.cz>
30286
30287         PR lto/45375
30288         * lto-opt.c (lto_reissue_options): Set flag_shlib.
30289
30290 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30291
30292         * target.def (function_switched_text_sections): New hook.
30293         * doc/tm.texi: Regenerated.
30294         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30295         * final.c (default_function_switched_text_sections): New.
30296         (final_scan_insn): Call function_switched_text_sections when a
30297         mid-function section change occurs.
30298         * output.h (default_function_switched_text_sections): Declare.
30299         * config/darwin-protos.h (darwin_function_switched_text_sections):
30300         Likewise.
30301         * config/darwin.c (darwin_function_switched_text_sections): New.
30302         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30303
30304 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30305
30306         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
30307         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
30308         the secondary code fragment when outputting for DWARF == 2.
30309
30310 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
30311
30312         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30313         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30314         Remove.
30315         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30316         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30317
30318 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30319
30320         PR debug/46704
30321         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30322         when it is not empty.
30323
30324 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
30325
30326         Bobcat Enablement
30327         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30328         (case ${target}): Add btver1.
30329         * config/i386/driver-i386.c (host_detect_local_cpu): Let
30330         -march=native recognize btver1 processors.
30331         * config/i386/i386-c.c (ix86_target_macros_internal): Add
30332         btver1 def_and_undef
30333         * config/i386/i386.c (struct processor_costs btver1_cost): New
30334         btver1 cost table.
30335         (m_BTVER1): New definition.
30336         (m_AMD_MULTIPLE): Includes m_BTVER1.
30337         (initial_ix86_tune_features): Add btver1 tune.
30338         (processor_target_table): Add btver1 entry.
30339         (static const char *const cpu_names): Add btver1 entry.
30340         (software_prefetching_beneficial_p): Add btver1.
30341         (ix86_option_override_internal): Add btver1 instruction sets.
30342         (ix86_issue_rate): Add btver1.
30343         (ix86_adjust_cost): Add btver1.
30344         * config/i386/i386.h (TARGET_BTVER1): New definition.
30345         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30346         (enum processor_type): Add PROCESSOR_BTVER1.
30347         * config/i386/i386.md (define_attr "cpu"): Add btver1.
30348
30349 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30350
30351         PR target/43309
30352         * config/i386/i386.c (legitimize_tls_address)
30353         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30354         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30355         (tls_initial_exec_64_sun): New pattern.
30356
30357 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30358
30359         * doc/invoke.texi (Overall Options): Improve wording and markup
30360         of the description of -wrapper.
30361
30362 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30363
30364         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30365         rdynamic, threads): New Driver options.
30366
30367 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30368
30369         PR target/38118
30370         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30371         if coming from .tdata.
30372         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30373
30374 2011-01-06  Jan Hubicka  <jh@suse.cz>
30375
30376         PR lto/47188
30377         * collect2.c (main): Do not enable LTOmode when plugin is active.
30378
30379 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30380
30381         PR other/45915
30382         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30383         --version output if supported.
30384         * configure: Regenerate.
30385
30386 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30387
30388         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30389         Driver options.
30390
30391 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
30392
30393         PR c/47150
30394         * c-convert.c (convert): When converting a complex expression
30395         other than COMPLEX_EXPR to a different complex type, ensure
30396         c_save_expr is called instead of save_expr, unless in_late_binary_op.
30397         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30398         when converting COMPLEX_TYPE.
30399
30400 2011-01-06  Ira Rosen  <irar@il.ibm.com>
30401
30402         PR tree-optimization/47139
30403         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30404         only the last reduction value is used outside the loop.  Update
30405         documentation.
30406
30407 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
30408
30409         * config/rtems.opt: New.
30410         * config.gcc (*-*-rtems*): Use rtems.opt.
30411
30412 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
30413
30414         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30415         processors do not support 3DNow instructions.
30416
30417 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30418
30419         * config/spu/spu.c (spu_option_override): Set parameter
30420         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30421
30422 2011-01-05  Jan Hubicka  <jh@suse.cz>
30423
30424         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30425         at the command line.
30426
30427 2011-01-05  Martin Jambor  <mjambor@suse.cz>
30428
30429         PR lto/47162
30430         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30431         deltas on streamed outgoing edges.
30432         (output_node_opt_summary): Output info for outgoing edges only when
30433         the node is in new parameter set.
30434         (output_cgraph_opt_summary): New parameter set, passed to the two
30435         aforementioned functions.  Update its forward declaration and its
30436         callee too.
30437
30438 2011-01-05  Tom Tromey  <tromey@redhat.com>
30439
30440         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30441         operator to c_finish_omp_atomic.
30442         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30443         (build_unary_op): Update.
30444         (build_modify_expr): Update.
30445         (build_asm_expr): Update.
30446
30447 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30448
30449         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30450         newly inserted insns.
30451         (pad_bb): Likewise.
30452         (spu_emit_branch_hint): Likewise.
30453         (insert_hbrp_for_ilb_runout): Likewise.
30454         (spu_machine_dependent_reorg): Call df_finish_pass after
30455         schedule_insns returns.
30456
30457 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30458
30459         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30460
30461 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
30462
30463         PR tree-optimization/47005
30464         * tree-sra.c (struct access): Add 'non_addressable' bit.
30465         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30466         (decide_one_param_reduction): Return 0 if the parameter is passed by
30467         reference and one of the accesses in the group is non_addressable.
30468
30469 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30470
30471         PR tree-optimization/47056
30472         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30473         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
30474         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
30475
30476 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30477
30478         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30479         initializer.  Skip view conversions from aggregate types.
30480
30481 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
30482
30483         PR bootstrap/47055
30484         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30485
30486 2011-01-04  Philipp Thomas  <pth@suse.de>
30487
30488         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30489         obvious typo.
30490
30491 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30492
30493         * function.c (thread_prologue_and_epilogue_insns): Do not crash
30494         on empty epilogue sequences.
30495
30496 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
30497
30498         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30499         non-static): New Driver options.
30500
30501 2011-01-04  Jie Zhang  <jie@codesourcery.com>
30502
30503         PR driver/47137
30504         * gcc.c (default_compilers[]): Set combinable field to 0
30505         for all assembly languages.
30506
30507 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
30508
30509         * config/mips/loongson3a.md: New file.
30510         * config/mips/mips.md: Include loongson3a.md.
30511         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30512         TUNE_LOONGSON_3A.
30513
30514 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
30515
30516         PR middle-end/47017
30517         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30518         instead of convert_memory_address_addr_space on the base expression.
30519
30520 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30521
30522         * config/spu/spu.c (spu_option_override): Update error text
30523         for bad -march= / -mtune= values.
30524
30525 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30526
30527         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30528         if branch-hint optimization will be performed.
30529
30530 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30531
30532         PR tree-optimization/47148
30533         * ipa-split.c (split_function): Convert arguments to
30534         DECL_ARG_TYPE if possible.
30535
30536         PR tree-optimization/47155
30537         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30538         when computing uns.
30539
30540         PR rtl-optimization/47157
30541         * combine.c (try_combine): If undobuf.other_insn becomes
30542         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30543         and set *new_direct_jump_p too.
30544
30545 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
30546
30547         PR tree-optimization/47021
30548         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30549
30550 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30551
30552         * gcc.c (process_command): Update copyright notice dates.
30553         * gcov.c (print_version): Likewise.
30554         * gcov-dump.c (print_version): Likewise.
30555         * mips-tfile.c (main): Likewise.
30556         * mips-tdump.c (main): Likewise.
30557
30558 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30559
30560         PR tree-optimization/46801
30561         * tree-sra.c (type_internals_preclude_sra_p): Check whether
30562         aggregate fields start at byte boundary instead of the bit-field flag.
30563
30564 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30565
30566         PR driver/47137
30567         * gcc.c (main): Revert revision 168407.
30568
30569 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30570
30571         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30572
30573 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30574
30575         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30576         vector optab to expand vector/scalar shift, update gimple to vector.
30577
30578 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30579
30580         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30581         a thunk.
30582
30583 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30584
30585         PR tree-optimization/46984
30586         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30587         HOST_WIDE_INT.
30588         (cgraph_create_indirect_edge): Fixed line length.
30589         (cgraph_indirect_call_info): Declare.
30590         (cgraph_make_edge_direct) Update declaration.
30591         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30592         (cgraph_create_indirect_edge): Use it.
30593         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
30594         callees.
30595         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30596         the new thunk_delta representation.
30597         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30598         HOST_WIDE_INT.
30599         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30600         (ipa_read_indirect_edge_info): Likewise.
30601         * lto-cgraph.c (output_edge_opt_summary): New function.
30602         (output_node_opt_summary): Call it on all outgoing edges.
30603         (input_edge_opt_summary): New function.
30604         (input_node_opt_summary): Call it on all outgoing edges.
30605
30606 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
30607
30608         PR driver/47137
30609         * gcc.c (main): Don't check have_o when settting combine_inputs.
30610
30611 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
30612
30613         * regrename.c: Add general comment describing the pass.
30614         (struct du_head): Remove 'length' field.
30615         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30616         (regrename_optimize): Do not sort chains.  Rework comments, add others.
30617         Force renaming to the preferred class (if any) in the first pass and do
30618         not consider registers that belong to it in the second pass.
30619         (create_new_chain): Do not set 'length' field.
30620         (scan_rtx_reg): Likewise.
30621
30622 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
30623
30624         PR tree-optimization/47140
30625         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30626         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30627         to bit_value_binop.
30628
30629         PR rtl-optimization/47028
30630         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30631         parm_birth_insn instead of at the beginning of first bb.
30632
30633 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
30634
30635         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30636         Remove the word "see" before "@pxref".
30637         * doc/rtl.texi: Remove the word "see" before "@pxref".
30638
30639 2011-01-01  Jan Hubicka  <jh@suse.cz>
30640
30641         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30642         memory.
30643
30644 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
30645
30646         PR target/38662
30647         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30648
30649 \f
30650 Copyright (C) 2011 Free Software Foundation, Inc.
30651
30652 Copying and distribution of this file, with or without modification,
30653 are permitted in any medium without royalty provided the copyright
30654 notice and this notice are preserved.