OSDN Git Service

89905f5b7279bb3bbc317682cd151b4ab833c86e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-10-06  Richard Henderson  <rth@redhat.com>
2
3         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
4         * config/i386/sse.md (sseshuffint): Remove.
5         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
6         (VSHUFFLE_AVX2): New mode iterator.
7         (vshuffle<mode>): Use it.
8         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
9
10 2001-10-06  Richard Henderson  <rth@redhat.com>
11
12         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
13         mask operand.  Tidy the code.
14
15 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
16
17         * tree-vect-patterns.c (vect_pattern_recog_1): Use
18         vect_recog_func_ptr typedef for the first argument.
19         (vect_pattern_recog): Rename vect_recog_func_ptr variable
20         to vect_recog_func, use vect_recog_func_ptr typedef for it.
21
22         PR tree-optimization/49279
23         * tree-ssa-structalias.c (find_func_aliases): Don't handle
24         CAST_RESTRICT.
25         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
26         restrict propagation.
27         * tree-ssa.c (useless_type_conversion_p): Don't return false
28         if TYPE_RESTRICT differs.
29
30 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
31
32         * function.c (thread_prologue_and_epilogue_insns): Build a vector
33         of unconverted simple return blocks rather than trying to
34         recompute them later based on bb_flags bitmap tests.
35
36 2011-10-06  Michael Matz  <matz@suse.de>
37
38         * tree-flow.h (get_var_ann): Don't declare.
39         * tree-flow-inline.h (get_var_ann): Remove.
40         (set_is_used): Use var_ann, not get_var_ann.
41         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
42         * tree-profile.c (gimple_gen_edge_profiler): Call
43         find_referenced_var_in.
44         (gimple_gen_interval_profiler): Ditto.
45         (gimple_gen_pow2_profiler): Ditto.
46         (gimple_gen_one_value_profiler): Ditto.
47         (gimple_gen_average_profiler): Ditto.
48         (gimple_gen_ior_profiler): Ditto.
49         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
50         (gimple_gen_ic_func_profiler): Call add_referenced_var.
51         * tree-mudflap.c (execute_mudflap_function_ops): Call
52         add_referenced_var.
53
54 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
55
56         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
57         don't set SSA_NAME_DEF_STMT that has been already set by
58         gimple_build_assign_with_ops.
59         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
60         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
61         Likewise.
62
63         * tree.h (avoid_folding_inline_builtin): New prototype.
64         * builtins.c (avoid_folding_inline_builtin): No longer static.
65         * gimple-fold.c (gimple_fold_builtin): Give up if
66         avoid_folding_inline_builtin returns true.
67
68 2011-10-06  Richard Guenther  <rguenther@suse.de>
69
70         * tree-vect-generic.c (vector_element): Look at previous
71         generated results.
72
73 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
74
75         PR target/39950
76         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
77         __powerpc__, __PPC__, __unix__.
78
79 2011-10-06  Michael Matz  <matz@suse.de>
80
81         * i386/i386.opt (recip_mask, recip_mask_explicit,
82         x_recip_mask_explicit): New variables and cl_target member.
83         (mrecip=): New option.
84         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
85         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
86         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
87         TARGET_RECIP_VEC_SQRT): New tests.
88         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
89         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
90         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
91         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
92         * i386/i386.c (ix86_option_override_internal): Set recip_mask
93         for -mrecip and -mrecip=options.
94         (ix86_function_specific_save): Save recip_mask_explicit.
95         (ix86_function_specific_restore): Restore recip_mask_explicit.
96
97         * doc/invoke.texi (ix86 Options): Document the new option.
98
99 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
100
101         PR target/49049
102         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
103
104 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
105
106         PR target/50305
107         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
108         output of a previous pass through legitimize_reload_address.
109         Do not attempt to optimize addresses if the base register is
110         equivalent to a constant.
111
112 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
113
114         * function.c (thread_prologue_and_epilogue_insns): Mark
115         last_bb_active as possibly unused.  It is unused for targets which
116         do neither have "return" nor "simple_return" expanders.
117
118 2011-10-06  Richard Guenther  <rguenther@suse.de>
119
120         * fold-const.c (fold_ternary_loc): Also fold non-constant
121         vector CONSTRUCTORs.  Make more efficient.
122         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
123         (cprop_into_stmt): Don't propagate into virtual operands.
124         (optimize_stmt): Really dump original statement.
125
126 2011-10-06  Nick Clifton  <nickc@redhat.com>
127
128         * config/rx/rx.md (smin3): Revert previous delta.
129
130 2011-10-06  Richard Guenther  <rguenther@suse.de>
131
132         PR tree-optimization/38884
133         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
134         reads from aggregate SSA names.
135
136 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
137
138         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
139         argument, truncate it at the beginning instead of allocating there
140         and freeing at the end.
141         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
142         pass its address to vect_pattern_recog_1.
143
144 2011-10-05  David S. Miller  <davem@davemloft.net>
145
146         * config/sparc/sparc.opt (POPC): New option.
147         * doc/invoke.texi: Document it.
148         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
149         default on Niagara-2 and later.
150         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
151         * config/sparc/sparc.md (SIDI): New mode iterator.
152         (ffsdi2): Delete commented out pattern and comments.
153         (popcount<mode>2, clz<mode>2): New expanders.
154         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
155         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
156
157 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
158
159         PR middle-end/50607
160         * c-tree.h (c_expr_t): New typedef for struct c_expr.
161         (C_EXPR_APPEND): New macro.
162         * c-parser.c (c_parser_get_builtin_args): Preserve
163         original_tree_code of c_expr structure.
164         (c_parser_postfix_expression): Adjust to the new function.
165
166 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
167
168         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
169         if profiling after the prologue.
170
171 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
172
173         PR tree-optimization/50613
174         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
175         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
176         and if it is neither that not SSA_NAME, give up.
177
178 2011-10-05  Richard Henderson  <rth@redhat.com>
179
180         * tree-vect-generic.c (vector_element): Never fail.  Use
181         build_zero_cst.  Tidy up type references.
182         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
183         code duplication.  Do update_stmt here ...
184         (expand_vector_operations_1): ... not here.
185
186         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
187         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
188         duplication.  Handle V2DI without SSE4.1.
189         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
190         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
191
192 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
193
194         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
195         of "found".  Simplify return value calculation.
196         (distance_agu_use): Ditto.
197
198 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
199
200         PR bootstrap/50621
201         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
202         if the function was not shrink-wrapped.
203         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
204         to an insn.
205         * function.c (thread_prologue_and_epilogue_insns): Make sure the
206         shrink_wrapped flag is set even if there is no dump file.
207
208 2011-10-05  DJ Delorie  <dj@redhat.com>
209             Nick Clifton  <nickc@redhat.com>
210
211         * config/rx/rx.opt (mpid): Define.
212         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
213         (MULTILIB_DIRNAMES): Add pid.
214         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
215         (rx_num_interrupt_regs): New variable.
216         (rx_gp_base_regnum): New function.  Returns the number of the
217         small data area register.
218         (rx_pid_base_regnum): New function.  Returns the number of the pid
219         base register.
220         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
221         (rx_pid_data_operand): New function.  Returns whether an object is
222         in the position independent data area.
223         (rx_legitimize_address): New function.  Puts undecided PID
224         objects in the PID data area.
225         (rx_is_legitimate_address): Add support for PID operands.
226         (rx_print_operand_address): Likewise.
227         (rx_print_operand): Likewise.
228         (rx_maybe_pidify_operand): New function.  Determine if an operand
229         is suitable for PID addressing.
230         (rx_gen_move_template): Add PID support.
231         (rx_conditional_register_usage): Likewise.
232         (rx_option_override): Initialise rx_num_interrupt_regs.
233         (rx_is_legitimate_constant): Add support for PID constants.
234         (TARGET_LEGITIMIZE_ADDRESS): Define.
235         * config/rx/constraints.md (Rpid): Define.
236         (Rpda): Define.
237         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
238         (tablejump): Add PID support.
239         (mov<>): Likewise.
240         (mov<>_internal): Likewise.
241         (addsi3): Convert to an expander.  Add PID support.
242         (pid_addr): New pattern.
243         * config/rx/rx.h (CPP_SPEC): Define.
244         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
245         (CASE_VECTOR_PC_RELATIVE): Define.
246         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
247         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
248         * doc/invoke.texi (RX Options): Document -mpid command line option.
249
250 2011-10-05  Richard Guenther  <rguenther@suse.de>
251
252         PR tree-optimization/38885
253         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
254         from constants.
255
256 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
257
258         * doc/invoke.texi (-fshrink-wrap): Document.
259         * opts.c (default_options_table): Add it.
260         * common.opt (fshrink-wrap): Add.
261         * function.c (emit_return_into_block): Remove useless declaration.
262         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
263         requires_stack_frame_p, gen_return_pattern): New static functions.
264         (emit_return_into_block): New arg simple_p.  All callers changed.
265         Use gen_return_pattern.
266         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
267         * config/i386/i386.md (return): Expand into a simple_return.
268         (simple_return): New expander):
269         (simple_return_internal, simple_return_internal_long,
270         simple_return_pop_internal_long, simple_return_indirect_internal):
271         Renamed from return_internal, return_internal_long,
272         return_pop_internal_long and return_indirect_internal; changed to use
273         simple_return.
274         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
275         simple returns.
276         (ix86_pad_returns): Likewise.
277         * function.h (struct rtl_data): Add member shrink_wrapped.
278         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
279         are not jumps or sibcalls can't be compared.
280
281 2011-10-05  Richard Guenther  <rguenther@suse.de>
282
283         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
284         vector type.
285         (simplify_unary_expression): Handle BIT_FIELD_REFs.
286         (try_to_simplify): Handle BIT_FIELD_REFs.
287
288 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
289
290         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
291         * config/avr/avr.c (avr_out_addto_sp): New function.
292         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
293         * config/avr/avr.md (adjust_len): Add "addto_sp".
294         (*movhi_sp): Remove insn.
295         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
296
297 2011-10-05  Richard Guenther  <rguenther@suse.de>
298
299         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
300         with an embedded expression valueize and fold that as well.
301         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
302         results from gimple_fold_stmt_to_constant_1.
303
304 2011-10-05  Nick Clifton  <nickc@redhat.com>
305
306         * config/rx/rx.md (tablejump): Add missing label.
307         (adddi3_internal): Mark operand 0 as early-clobbered.
308         (smaxsi3): Revert previous delta.
309         (adc_internal): Fix whitespace in generated asm.
310         (adc_flags): Likewise.
311
312 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
313
314         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
315         with the new widening_optab_handler.
316
317 2011-10-05  Richard Guenther  <rguenther@suse.de>
318
319         PR tree-optimization/50609
320         * gimple-fold.c (fold_array_ctor_reference): Also handle
321         vector typed constructors.
322         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
323         for vector typed constructors.
324
325 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
326
327         * config/i386/i386.c (ix86_emit_binop): New static function.
328         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
329         instructions.
330         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
331
332 2011-10-04  David S. Miller  <davem@davemloft.net>
333
334         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
335         UNSPEC_XMUL): New unspecs.
336         (muldi3_v8plus): Use output_v8plus_mult.
337         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
338         New VIS 3.0 combiner patterns.
339         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
340         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
341         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
342         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
343         builtins patterns.
344         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
345         (output_v8plus_mult): New function.
346         * config/sparc/sparc-protos.h: Declare it.
347         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
348         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
349         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
350         * doc/extend.texi: Document new builtins.
351
352 2011-10-04  Richard Henderson  <rth@redhat.com>
353
354         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
355         Avoid save_expr unless two_arguments.
356
357 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
358
359         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
360         * config/i386/mingw32.h (CPP_SPEC): Likewise.
361
362 2011-10-04  David S. Miller  <davem@davemloft.net>
363
364         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
365         under Linux.
366
367 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
368
369         PR tree-optimization/50604
370         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
371         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
372         last argument to memcpy has size_type_node type instead of ssizetype.
373         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
374         instead of TREE_TYPE (len) as type for newlen.
375
376         PR tree-optimization/50522
377         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
378         TYPE_RESTRICT.
379         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
380         unconditionally.
381
382         * fold-const.c (fold_unary_loc): Don't optimize
383         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
384         casting the inner pointer if it isn't TYPE_RESTRICT.
385         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
386         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
387
388 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
389
390         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
391
392 2011-10-04  Jan Hubicka  <jh@suse.cz>
393
394         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
395         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
396         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
397         * lto-cgraph.c (order_base): New static var.
398         (lto_output_node): Stream in order.
399         (lto_output_varpool_node): Stream out order.
400         (input_node): Stream in order.
401         (input_varpool_node): Stream out order.
402         (input_cgraph_1): Initialize order base; update call of
403         lto_input_toplevel_asms.
404
405 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
406
407         PR target/50566
408         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
409         prototype.
410         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
411         from here...
412         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
413         function.  Log if avr_log.legitimize_reload_address.
414
415 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
416
417         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
418
419 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
420
421         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
422         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
423
424 2011-10-03  David S. Miller  <davem@davemloft.net>
425
426         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
427         GSR_REG an input operand to UNSPEC instead of a parallel USE.
428         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
429         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
430         Reference GSR_REG in DI mode, simplify convoluted expressions by using
431         zero_extract.
432         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
433
434 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
435
436         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
437
438 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
439             Ian Lance Taylor  <iant@google.com>
440
441         * godump.c (go_output_typedef): Support printing enum values that
442         don't fit in a signed HOST_WIDE_INT.
443
444 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
445
446         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
447         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
448         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
449         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
450
451 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
452
453         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
454         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
455         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
456         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
457
458 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
459
460         PR target/49967
461         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
462         (gcc_cv_ld_static_option): Ditto.
463         (gcc_cv_ld_dynamic_option): Ditto.
464         * configure: Regenerate.
465
466 2011-10-03  David S. Miller  <davem@davemloft.net>
467
468         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
469         and 'si' patterns which describe the GSR changes explicitly in the
470         RTL using zero_extract.
471         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
472
473         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
474         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
475
476 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
477
478         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
479         if given expression can be expanded by the target.
480         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
481         using target vector instructions.
482         * optabs.h: New optab vshuffle.
483         (expand_vec_shuffle_expr_p): New prototype.
484         (expand_vec_shuffle_expr): New prototype.
485         (vshuffle_optab): New optab.
486         * genopinit.c: Adjust to support vecshuffle.
487         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
488         * expr.c (expand_expr_real_2): Adjust.
489         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
490         recognizing the cases of two and three arguments.
491         (convert_arguments) (build_binary_op)
492         (scalar_to_vector) (build_array_ref): Spurious whitespace.
493         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
494         * tree.def: New tree code VEC_SHUFFLE_EXPR.
495         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
496         * tree-vect-generic.c (vector_element): New function. Returns an
497         element of the vector at the given position.
498         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
499         by the backend or expand an expression piecewise.
500         (expand_vector_operations_1): Adjusted.
501         (gate_expand_vector_operations_noop): New gate function.
502         * Makefile.in (tree-vect-generic.o): New include.
503         * gimple.c (get_gimple_rhs_num_ops): Adjust.
504         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
505         * passes.c: Move veclower down.
506         * tree-pretty-print.c (dump_generic_node): Recognize
507         VEC_SHUFFLE_EXPR as valid expression.
508         * c-parser.c (c_parser_get_builtin_args): Helper function for the
509         builtins with variable number of arguments.
510         (c_parser_postfix_expression): Use a new helper function for
511         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
512         * tree-ssa-operands: Adjust.
513         * c-family/c-common.c: New __builtin_shuffle keyword.
514         * c-family/c-common.h: New __builtin_shuffle keyword.
515         * gcc/doc/extend.texi: Adjust.
516
517         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
518         between the vector and the type of the mask when shuffling.
519         (vecshuffle<mode>): New expansion.
520         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
521         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
522         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
523
524 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
525
526         PR tree-optimization/50587
527         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
528         arg0 is not a SSA_NAME.
529
530 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
531
532         * ipa-inline-analysis.c (MAX_TIME): Update comment.
533
534 2011-10-02  Richard Henderson  <rth@redhat.com>
535             David S. Miller  <davem@davemloft.net>
536
537         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
538         conditional insn type setting, we always emit a shift.
539         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
540         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
541         * config/sparc/predicates.md (const_one_operand): Delete.
542
543 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
544
545         * invoke.texi (SPARC Options): Refer to GNU/Linux.
546
547 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
548
549         * config/mips/mips.c (mips_frame_barrier): New function.
550         (mips_expand_prologue): Call it after allocating stack space.
551         (mips_deallocate_stack): New function.
552         (mips_expand_epilogue): Call mips_frame_barrier and
553         mips_deallocate_stack.
554
555 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
556
557         PR target/49696
558         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
559         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
560         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
561
562 2011-10-02  Jan Hubicka  <jh@suse.cz>
563
564         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
565
566         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
567         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
568         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
569         functions are reachable when address is taken.
570         * tree-sra.c (modify_function): Free dominance info.
571
572 2011-10-02  Jan Hubicka  <jh@suse.cz>
573
574         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
575
576         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
577         (reset_inline_summary): New function.
578         (compute_inline_parameters, inline_node_removal_hook,
579         inline_edge_removal_hook): Use it.
580         (inline_free_summary): Reset holders correctly.
581         (inline_generate_summary): Free summary before computing it.
582
583 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
584
585         PR preprocessor/36819
586         * incpath.c (merge_include_chains): Call free_path on
587         heads[QUOTE] and tails[QUOTE].
588
589 2011-10-02  Jan Hubicka  <jh@suse.cz>
590
591         PR lto/47247
592         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
593         when resolution is already availbale from plugin.
594         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
595         * cgraph.c (ld_plugin_symbol_resolution): Add
596         prevailing_def_ironly_exp.
597         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
598         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
599         externally visible.
600         * varasm.c (resolution_to_local_definition_p): Add
601         LDPR_PREVAILING_DEF_IRONLY_EXP.
602         (resolution_local_p): Likewise.
603
604 2011-10-01  David S. Miller  <davem@davemloft.net>
605
606         * config/sparc/sparc.opt (VIS3): New option.
607         * doc/invoke.texi: Document it.
608         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
609         not capable of such instructions.
610         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
611         to 0x300 when TARGET_VIS3.
612         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
613         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
614         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
615         (V64N8, VASS): New mode iterators.
616         (vis3_shift, vis3_addsub_ss): New code iterators.
617         (vbits, vconstr): New mode attributes.
618         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
619         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
620         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
621         fmean16_vis, fpadd64_vis, fpsub64_vis,
622         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
623         VIS 3.0 instruction patterns.
624         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
625         default when targetting capable cpus.  TARGET_VIS3 implies
626         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
627         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
628         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
629         is ignored.
630         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
631         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
632         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
633         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
634         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
635         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
636         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
637         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
638         * doc/extend.texi: Document new VIS 3.0 builtins.
639
640 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
641
642         * ira-color.c (assign_hard_reg): Fix typo.
643
644 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
645
646         * doc/extend.texi: Add missing ','.
647
648 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
649
650         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
651         Enable -fmodulo-sched at -O2 and above.
652         * config/c6x/c6x.md (doloop_end): New expander.
653         (mvilc, sploop, spkernel, loop_end): New patterns.
654         (loop_end with memory destination splitter): New.
655         * config/c6x/c6x.c: Include "hw-doloop.h".
656         (enum unitreqs): New.
657         (unit_req_table): New typedef.
658         (unit_reqs): New static variable.
659         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
660         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
661         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
662         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
663         (struct c6x_sched_context): New member last_scheduled_iter0.
664         (init_sched_state): Initialize it.
665         (c6x_variable_issue): Update it.
666         (sploop_max_uid_iter0): New static variable.
667         (c6x_sched_reorder_1): Be careful about issuing sploop.
668         (c6x_reorg): Call c6x_hwlooops before the final schedule.
669
670 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
671
672         PR target/50566
673         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
674         * config/avr/avr.c (avr_address_cost): Use it.
675         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
676         (avr_log_vadump): Unknown %-codes finish printing.
677
678 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
679
680         PR inline-asm/50571
681         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
682         input constraints allow mem and not reg, pass true instead of
683         false as second argument to maybe_fold_reference.
684
685         PR tree-optimization/46309
686         * fold-const.c (make_range, merge_ranges): Remove prototypes.
687         (make_range_step): New function.
688         (make_range): Use it.
689         * tree.h (make_range_step): New prototypes.
690         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
691         * tree-ssa-reassoc.c: Include diagnostic-core.h.
692         (struct range_entry): New type.
693         (init_range_entry, range_entry_cmp, update_range_test,
694         optimize_range_tests): New functions.
695         (reassociate_bb): Call optimize_range_tests.
696
697 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
698             Richard Guenther  <rguenther@suse.de>
699
700         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
701         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
702         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
703         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
704         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
705         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
706
707 2011-09-30  Jan Beulich  <jbeulich@suse.com>
708
709         * lto-cgraph.c (output_cgraph): Remove processing of
710         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
711         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
712         lto_input_toplevel_asms() instead.
713         * lto-section-in.c (lto_section_name): Add "asm" entry.
714         * lto-streamer-in.c (lto_input_toplevel_asms): New.
715         * lto-streamer-out.c (lto_output_toplevel_asms): New.
716         * lto-streamer.h (LTO_minor_version): Bump.
717         (enum lto_section_type): Add LTO_section_asm.
718         (struct lto_asm_header): New.
719         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
720         * tree-streamer.h (streamer_write_string_cst): Declare.
721         * tree-streamer-out.c (write_string_cst): Rename to
722         streamer_write_string_cst and make global. Handle incoming string
723         being NULL.
724         (streamer_write_tree_header): Adjust call to renamed function.
725
726 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
727
728         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
729         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
730         modulo_last_stage): New static variables.
731         (set_modulo_params, discard_delay_pairs_above): New functions.
732         (struct delay_pair): New member stages.
733         (htab_i2_traverse, htab_i1_traverse): New static functions.
734         (record_delay_slot_pair): New arg stages.  All callers changed.
735         Record it.
736         (pair_delay): Take stages into account.
737         (add_delay_dependencies): Don't do so for stage pairs.
738         (struct sched_block_state): New member modulo_epilogue.
739         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
740         (unschedule_insns_until): Decrease modulo_insns_scheduled.
741         Set HARD_DEP without using or.
742         (resolve_dependencies): New static function.
743         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
744         If it is true, allow only insns with INSN_EXACT_TICK set.
745         (schedule_block): Return bool, always true for normal scheduling,
746         true or false depending on modulo scheduling success otherwise.
747         Add bookkeeping for modulo scheduling, and call resolve_dependencies
748         on everything left over after a modulo schedule.
749         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
750         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
751         declarations.
752         (set_modulo_params, discard_delay_pairs_above): Declare.
753         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
754         * doc/invoke.texi (--param): Document it.
755
756         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
757         New arg modulo_scheduling.  All callers changed.  Move note handling
758         code here from schedule_ebbs.
759         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
760         out of schedule_ebbs.
761         (schedule_ebbs): Call them.  Remove note handling code moved to
762         schedule_ebb.
763         * sched-int.h (schedule_ebb, schedule_ebbs_init,
764         schedule_ebbs_finish): Declare.
765
766 2011-09-30  Richard Guenther  <rguenther@suse.de>
767
768         PR middle-end/50574
769         * tree-cfg.c (verify_gimple_comparison): Compare component
770         mode sizes for vector comparisons.
771
772 2011-09-30  Revital Eres  <revital.eres@linaro.org>
773
774         * ddg.c (autoinc_var_is_used_p): New function.
775         (create_ddg_dep_from_intra_loop_link,
776         add_cross_iteration_register_deps): Call it.
777         * ddg.h (autoinc_var_is_used_p): Declare.
778         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
779         (sms_schedule): Handle instructions with REG_INC.
780
781 2011-09-30  Revital Eres  <revital.eres@linaro.org>
782
783         * modulo-sched.c (generate_reg_moves): Skip instructions that
784         do not set a register and verify no regmoves are created for
785         !single_set instructions.
786
787 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
788
789         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
790         insns.
791
792 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
793
794         PR target/50099
795         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
796         (qhs_zextenddi_op): New.
797         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
798         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
799         Distinguish between ARM and Thumb2 states.
800
801 2011-09-30  David S. Miller  <davem@davemloft.net>
802
803         * config/sparc/sparc.opt (VIS2): New option.
804         * doc/invoke.texi: Document it.
805         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
806         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
807         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
808         (define_attr type): New insn type 'edgen'.
809         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
810         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
811         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
812         patterns.
813         * niagara.md: Handle edgen.
814         * niagara2.md: Likewise.
815         * ultra1_2.md: Likewise.
816         * ultra3.md: Likewise.
817         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
818         to 0x200 when TARGET_VIS2.
819         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
820         default when targetting capable cpus.  TARGET_VIS2 implies
821         TARGET_VIS, clear and it when TARGET_FPU is disabled.
822         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
823         (sparc_expand_builtin): Fix predicate indexing when builtin returns
824         void.
825         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
826         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
827         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
828         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
829         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
830         * doc/extend.texi: Document new VIS 2.0 builtins.
831
832 2011-09-29  Nick Clifton  <nickc@redhat.com>
833             Bernd Schmidt  <bernds@codesourcery.com>
834
835         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
836         * config/frv/frvend.c: Likewise.
837         * config/frv/frv.c (frv_function_prologue): Move misplaced
838         CALL_ARG_LOCATION notes back to their proper locations.
839
840 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
841
842         PR target/50566
843         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
844         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
845         from avr_rtx_costs.
846         (avr_legitimate_address_p): Use avr_edump to print log information
847         filtered by avr_log.
848         (extra_constraint_Q): Ditto.
849         (avr_legitimize_address): Ditto.
850         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
851         (final_prescan_insn): Use avr_log.rtx_costs as filter.
852
853 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
854
855         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
856         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
857         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
858         NEON vector and structure modes to be tied.
859
860 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
861
862         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
863         forward declaration.
864         (remove_duplicate_close_phi): Detect and repair creation of
865         duplicate close-phis for a containing loop.
866
867 2011-09-27   Andi Kleen <ak@linux.intel.com>
868
869         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
870         /dev/urandom.  Add getpid call.
871         (compare_debug_dump_opt_spec_function): Drop getpid call.
872
873 2011-09-26   Andi Kleen <ak@linux.intel.com>
874
875         * toplev.c (init_local_tick): Try reading random seed
876         from /dev/urandom.
877
878 2011-09-26   Andi Kleen <ak@linux.intel.com>
879
880         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
881         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
882         Handle numerical random seed.
883         * lto-streamer.h (lto_file_decl_data): Change id to
884         unsigned HOST_WIDE_INT.
885         * toplev.c (random_seed): Add.
886         (init_random_seed): Change for numerical random seed.
887         (get_random_seed): Return as HOST_WIDE_INT.
888         (set_random_seed): Crc32 existing string.
889         * toplev.h (get_random_seed): Change to numercal return.
890         * tree.c (get_file_function_name): Remove CRC. Handle
891         numerical random seed.
892
893 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
894
895         PR target/50566
896         * config.gcc (extra_objs): Add avr-log.o for $target in:
897         avr-*-rtems*, avr-*-*.
898         * config/avr/t-avr (avr-log.o): New rule to compile...
899         * config/avr/avr-log.c: ...this new file.
900         * config/avr/avr.opt (mlog=): New option.
901         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
902         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
903         (avr_log_set_avr_log): New prototype.
904         (avr_log_t): New typedef.
905         (avr_log): New declaration.
906         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
907
908 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
909
910         * expr.c (do_store_flag): Expand vector comparison by
911         building an appropriate VEC_COND_EXPR.
912         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
913         (c_objc_common_truthvalue_conversion): Adjust.
914         * tree-vect-generic.c (do_compare): Helper function.
915         (expand_vector_comparison): Check if hardware supports
916         vector comparison of the given type or expand vector piecewise.
917         (expand_vector_operation): Treat comparison as binary
918         operation of vector type.
919         (expand_vector_operations_1): Adjust.
920
921 2011-09-29  Richard Guenther  <rguenther@suse.de>
922
923         * tree.c (build_opaque_vector_type): Make opaque vectors
924         variant types of the corresponding non-opaque type.  Make
925         sure to share opaque vector types properly.
926
927 2011-09-29  David S. Miller  <davem@davemloft.net>
928
929         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
930         UNSPEC_ARRAY32): New unspec.
931         (define_attr type): New type 'array'.
932         (array{8,16,32}<P:mode>_vis): New patterns.
933         * config/sparc/ultra1_2.md: Add reservations for 'array'.
934         * config/sparc/ultra3.md: Likewise.
935         * config/sparc/niagara.md: Likewise.
936         * config/sparc/niagara2.md: Likewise.
937         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
938         array builtins.
939         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
940         __vis_array32): New.
941         * doc/extend.texi: Document new VIS builtins.
942
943         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
944         (VIS pixel-compare insn): Just use <gcond:name>.
945
946         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
947         code iterator used, so just use <code>.  There are two mode iterators
948         so explicitly use <GCM:gcm_name>.
949
950 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
951
952         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
953         Darwin >= 9.
954
955 2011-09-28  David S. Miller  <davem@davemloft.net>
956
957         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
958         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
959         (UNSPEC_FCMP): New unspec.
960         (gcond): New code iterator.
961         (gcond_name): New code attr.
962         (GCM): New mode iterator.
963         (gcm_name): New mode attr.
964         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
965
966 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
967
968         PR target/49486
969         * config/sh/sh.md (negdi2): Move expansion into split to
970         allow more combination options.  Add T_REG clobber.
971         (abssi2): New expander.
972         (*negdi2, *abssi2, *negabssi2): New insns.
973         (cneg): Change from insn to insn_and_split.  Rename to
974         negsi_cond.  Add alternative for non-SH4.
975
976 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
977
978         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
979         (neon_move_hi_quad_<mode>): Likewise.
980         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
981
982 2011-09-28  Nick Clifton  <nickc@redhat.com>
983
984         * config/rx/predicates.md (rx_minmax_operand): New predicate.
985         Accepts immediates and a restricted subset of MEMs.
986         * config/rx/rx.md (int_modes): New iterator.
987         (smaxsi3, sminsi3): Delete and replace with...
988         (smax<int_mode>3, smin<int_mode>3): New patterns.
989         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
990
991 2011-09-28  Richard Guenther  <rguenther@suse.de>
992
993         PR middle-end/50460
994         * fold-const.c (try_move_mult_to_index): Handle &a.array the
995         same as &a.array[0].
996
997 2011-09-28  Kai Tietz  <ktietz@redhat.com>
998
999         * configure.ac: Add test for new section attribute
1000         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
1001         * config.in: Regenerated.
1002         * configure: Regenerated.
1003         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
1004         new section flag "e" for excluded sections, if supported.
1005         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
1006
1007 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1008
1009         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
1010         throughout file.
1011
1012 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
1013
1014         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
1015         throughout file.
1016
1017 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
1018
1019         * output.h (SECTION_EXCLUDE): New macro.
1020         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
1021
1022 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1023
1024         * fwprop.c (forward_propagate_and_simplify): After checking
1025         reg/subreg combinations, check whether the modes are the same.
1026
1027 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1028             Richard Sandiford  <rdsandiford@googlemail.com>
1029
1030         * config/mips/mips.c (mips_add_cfa_restore): New function.
1031         (mips16e_save_restore_reg): Use it.
1032         (mips_restore_reg): Likewise.  Split double FPRs for
1033         REG_CFA_RESTORE notes.
1034
1035 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
1036
1037         PR middle-end/50386
1038         PR middle-end/50326
1039         * tree-sra.c (build_ref_for_model): Use the type of the field as
1040         the type of the COMPONENT_REF.
1041
1042 2011-09-27  Jeff Law  <law@redhat.com>
1043
1044         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
1045         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
1046         (find_if_case_1): Use the probability of the THEN clause when
1047         determining if speculation is profitable.
1048         (find_if_case_2): Similarly for the ELSE clause.
1049
1050 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1051
1052         * common.opt: Add -foptimize-strlen option.
1053         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
1054         (tree-sssa-strlen.o): Add dependencies.
1055         * opts.c (default_options_table): Enable -foptimize-strlen
1056         by default at -O2 if not -Os.
1057         * passes.c (init_optimization_passes): Add pass_strlen
1058         after pass_object_sizes.
1059         * timevar.def (TV_TREE_STRLEN): New timevar.
1060         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
1061         * tree-pass.h (pass_strlen): Declare.
1062         * tree-ssa-strlen.c: New file.
1063         * c-decl.c (merge_decls): If compatible stpcpy prototype
1064         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
1065
1066 2011-09-27  Tom de Vries  <tom@codesourcery.com>
1067
1068         PR middle-end/43864
1069         * tree-ssa-tail-merge.c: New file.
1070         (struct same_succ_def): Define.
1071         (same_succ, const_same_succ): New typedef.
1072         (struct bb_cluster_def): Define.
1073         (bb_cluster, const_bb_cluster): New typedef.
1074         (struct aux_bb_info): Define.
1075         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
1076         (gvn_uses_equal): New function.
1077         (same_succ_print, same_succ_print_traverse, update_dep_bb)
1078         (stmt_update_dep_bb, local_def, same_succ_hash)
1079         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
1080         (same_succ_reset): New function.
1081         (same_succ_htab, same_succ_edge_flags)
1082         (deleted_bbs, deleted_bb_preds): New var.
1083         (debug_same_succ): New function.
1084         (worklist): New var.
1085         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
1086         (init_worklist, delete_worklist, delete_basic_block_same_succ)
1087         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
1088         (print_cluster, debug_cluster, update_rep_bb)
1089         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
1090         (all_clusters): New var.
1091         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
1092         (merge_clusters, set_cluster): New function.
1093         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
1094         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
1095         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
1096         (find_clusters_1, find_clusters): New function.
1097         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
1098         (update_bbs): New var.
1099         (apply_clusters): New function.
1100         (update_debug_stmt, update_debug_stmts): New function.
1101         (tail_merge_optimize): New function.
1102         tree-pass.h (tail_merge_optimize): Declare.
1103         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
1104         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
1105         (tree-ssa-tail-merge.o): New rule.
1106         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
1107         default at OPT_LEVELS_2_PLUS.
1108         * tree-ssa-sccvn.c (vn_valueize): Move to ...
1109         * tree-ssa-sccvn.h (vn_valueize): Here.
1110         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
1111         * common.opt (ftree-tail-merge): New switch.
1112         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
1113         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
1114         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
1115         (-ftree-tail-merge, max-tail-merge-comparisons)
1116         (max-tail-merge-iterations): New item.
1117
1118 2011-09-27  Jan Hubicka  <jh@suse.cz>
1119
1120         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
1121
1122 2011-09-27  Jan Hubicka  <jh@suse.cz>
1123
1124         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1125         parameters passed by reference; handle loads from non-SSA scalars
1126         and update comments.
1127
1128 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
1129
1130         PR rtl-optimization/50249
1131         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
1132         instead of opnum and type.  All callers changed.  Remove useless
1133         declaration.
1134         Search forward for other reloads of the same type for the same operand
1135         using the same register; if any are found, return false.
1136         (reload_regs_reach_end_p): Same argument changes; all callers changed.
1137
1138 2011-09-27  Andi Kleen  <ak@linux.intel.com>
1139             Jan Hubicka  <jh@suse.cz>
1140
1141         * doc/invoke.texi (ffat-lto-objects): Document.
1142         * toplev.c (compile_file): Do not output assembly when doing slim lto;
1143         Output __gnu_slim_lto when doing slim lto.
1144         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
1145         (cgraph_optimize): Return early when doing slim lto.
1146         * opts.c (finish_options): Complain about lack of linker plugin
1147         when doing slim lto.
1148         * common.opt (ffat-lto-objects): New.
1149
1150 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1151
1152         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
1153         between signed and unsigned.
1154
1155 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
1156
1157         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
1158         vectorization.
1159         (vectorizable_type_promotion): Likewise.
1160         (vect_analyze_stmt): Call vectorizable_type_demotion and
1161         vectorizable_type_promotion for basic blocks.
1162         (supportable_widening_operation): Don't assume loop vectorization.
1163         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
1164         basic blocks.  Update vectorization factor for basic block
1165         vectorization.
1166         (vect_analyze_slp_instance): Allow multiple types for basic block
1167         vectorization.  Recheck unrolling factor after construction of SLP
1168         instance.
1169
1170 2011-09-27  Richard Guenther  <rguenther@suse.de>
1171
1172         * tree-object-size.c (compute_object_sizes): Fix dumping of
1173         folded statement.
1174
1175 2011-09-27  Richard Guenther  <rguenther@suse.de>
1176
1177         PR tree-optimization/50363
1178         * tree-ssa-pre.c (create_expression_by_pieces): Handle
1179         pointer conversions in POINTER_PLUS_EXPRs properly.
1180
1181 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
1182
1183         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
1184         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
1185         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
1186         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
1187         that produce subreg moves.  Define using VQX iterators.
1188
1189 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
1190
1191         * config/avr/avr.md (ashrqi3): Split alternative "n"
1192         into its remaining parts C03, C04, C05, C06, C07 and describe
1193         impact in CC by attribute "cc" appropriately.
1194         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
1195         by digging RTX.
1196
1197 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
1200         from 3 x MAX_MACHINE_MODE.
1201         (CONSTM1_RTX): Define.
1202         * emit-rtl.c (const_tiny_rtx): Change into array of
1203         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
1204         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
1205         CONSTM1_RTX.
1206         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
1207         MODE_VECTOR_INT modes.
1208         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
1209         Optimize if one operand is CONSTM1_RTX.
1210         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
1211         into mask | x.
1212
1213 2011-09-26  David S. Miller  <davem@davemloft.net>
1214
1215         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
1216         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
1217         * config/sparc/visintrin.h: Update edge and pixel-compare
1218         intrinsics to return 'long' instead of 'int'.
1219         * doc/extend.texi: Update documentation to match.
1220         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
1221         flat, allow any instruction.  Otherwise, when V9 allow parallels
1222         which consist only of sets to registers outside of %o0 to %o5.
1223         (sparc_vis_init_builtins): Update VIS builtin types for edge
1224         and pixel-compare.
1225
1226         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
1227         is enabled, mark %gsr as global.
1228         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
1229         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
1230
1231         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
1232         which will now define __VIS and __VIS__ when -mvis is enabled.
1233         * config/sparc/t-sparc: Likewise.
1234         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
1235         and add t-sparc to tmake_file for all sparc targets.
1236         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
1237         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
1238
1239         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
1240         builtins for VIS vector addition and subtraction.
1241         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
1242         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
1243         __vis_fpsub32, __vis_fpsub32s): New.
1244         * doc/extend.texi: Document new VIS intrinsics.
1245
1246 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1247
1248         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
1249         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
1250         EQ/NE comparisons against +/-1 in the case of unused-after,
1251         non-ld-regs target.
1252
1253 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
1254
1255         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
1256         gctx.into_ssa after push_gimplify_context.
1257
1258         * gimple.c (gimple_build_call_valist): New function.
1259         * gimple.h (gimple_build_call_valist): New prototype.
1260         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
1261         (update_gimple_call): Likewise.
1262         (update_call_from_tree): Use finish_update_gimple_call.
1263         * tree-ssa-propagate.h (update_gimple_call): New prototype.
1264
1265 2011-09-26  Richard Guenther  <rguenther@suse.de>
1266
1267         PR tree-optimization/50472
1268         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
1269         volatile references.
1270
1271 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
1272
1273         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
1274         * target.def: (addr_space_subset_p): Likewise.
1275
1276 2011-09-26  Tom de Vries  <tom@codesourcery.com>
1277
1278         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
1279         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
1280         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
1281         of new var.
1282
1283 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1284
1285         PR target/50465
1286         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
1287         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
1288         output_reload_insisf.
1289         (adjust_len): Set default to "no".
1290         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
1291         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
1292         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
1293         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
1294         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
1295         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
1296         *lshrsi3_const): Set attribute "adjust_len".
1297         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
1298         (output_movsisf): Don't pass insn to output_reload_insisf.
1299         (adjust_insn_length): Handle new alternatives to adjust_len.
1300         Remove handling of ADJUST_LEN_YES.  Clean-up code.
1301
1302 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
1303
1304         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
1305         may_trap_p to detect loads that may trap of fault.
1306
1307 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
1308
1309         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
1310         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
1311         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
1312         prototype.
1313         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
1314         * config/avr/avr.c: Rename output_reload_insisf_1 to
1315         output_reload_in_const.
1316         (avr_popcount_each_byte): Handle SFmode, too.
1317         (output_reload_in_const): Change so it can handle HI loads, too.
1318         Use avr_popcount_each_byte to work out if scratch register must be
1319         created on the fly.
1320         (output_reload_inhi): Rewrite using output_reload_in_const and...
1321         (output_movhi): ...use it to print constants' loads.
1322         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
1323
1324 2011-09-25  David S. Miller  <davem@davemloft.net>
1325
1326         * config/sparc/constraints.md (C, P, Z): New constraints for
1327         const_doube, const_int, and const_vector "all ones" values.
1328         Make unused constraint letters comment match reality.
1329         * config/sparc/predicates.md (const_all_ones_operand,
1330         register_or_zero_or_all_ones_operand): New predicates.
1331         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
1332         as well as zero constants when VIS.
1333         (sparc_legitimate_constant_p): Likewise.
1334         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
1335         (movsf_insn): Likewise
1336         (movdi_insn_sp64): Add fone alternative.
1337         (movdf_insn_sp32_v9): Likewise.
1338         (movdf_insn_sp64): Likewise.
1339
1340         * configure.ac: Add feature check to make sure the assembler
1341         supports the FMAF, HPC, and VIS 3.0 instructions found on
1342         Niagara-3 and later cpus.
1343         * configure: Rebuild.
1344         * config.in: Likewise.
1345         * config/sparc/sparc.opt: New option '-mfmaf'.
1346         * config/sparc/sparc.md: Add float fused multiply-add patterns.
1347         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
1348         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
1349         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
1350         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
1351         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
1352         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
1353         disabled.
1354         (sparc_rtx_costs): Handle 'FMA'.
1355         * doc/invoke.texi: Document -mfmaf.
1356
1357 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
1358
1359         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
1360         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
1361         DECL_BY_REFERENCE parameters.
1362
1363 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1364
1365         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
1366         if there is no outgoing edge.
1367
1368         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
1369         integral types.
1370
1371 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1372
1373         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
1374         of vect_analyze_bb here.
1375         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
1376
1377 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
1378
1379         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
1380         Allow not simple iv if analyzing basic block.
1381         (create_data_ref): Update call to dr_analyze_innermost.
1382         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
1383         * tree-loop-distribution.c (generate_memset_zero): Likewise.
1384         * tree-predcom.c (find_looparound_phi): Likewise.
1385         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
1386
1387 2011-09-24  David S. Miller  <davem@davemloft.net>
1388
1389         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
1390         (SPARC_GSR_REG): Define.
1391         (FIXED_REGISTERS): Mark GSR as fixed.
1392         (CALL_USED_REGISTERS): Mark GSR as call used.
1393         (HARD_REGNO_NREGS): GSR is always 1 register.
1394         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
1395         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
1396         (REGISTER_NAMES): Add "%gsr".
1397         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
1398         (UNSPEC_WRGSR): New unspec.
1399         (GSR_REG): New constant.
1400         (type): Add new insn type 'gsr'.
1401         (fpack16_vis, fpackfix_vis, fpack32_vis,
1402         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
1403         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
1404         rdgsr_v8plus): New expanders and insns.
1405         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
1406         using patterns which show that this is a plus in addition to a
1407         modification of GSR_REG, instead of an unspec.
1408         * config/sparc/ultra1_2.md: Handle 'gsr'.
1409         * config/sparc/ultra3.md: Likewise.
1410         * config/sparc/niagara.md: Likewise.
1411         * config/sparc/niagara2.md: Likewise.
1412         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
1413         end of table.
1414         (sparc_option_override): Make -mvis imply -mv8plus.
1415         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
1416         for %gsr.
1417         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
1418         __builtin_vis_read_gsr.
1419         (sparc_expand_buildin): Handle builtins that take one argument and
1420         return void.
1421         (sparc_fold_builtin): Never fold writes to %gsr.
1422         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
1423         * doc/extend.texi: Document new VIS intrinsics.
1424
1425 2011-09-23  Jan Hubicka  <jh@suse.cz>
1426
1427         * ipa-inline-transform.c (inline_call): Add comment.
1428         * ipa-inline.h (inline_param_summary): New structure and vector.
1429         (struct inline_edge_summary): Add param field.
1430         * ipa-inline-analysis.c (CHANGED): New constant.
1431         (add_clause): Handle CHANGED and NOT_CONSTANT.
1432         (predicate_probability): New function.
1433         (dump_condition): Dump CHANGED predicate.
1434         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
1435         of unknown function wide invariant.
1436         (evaluate_conditions_for_edge): Handle change probabilities.
1437         (inline_edge_duplication_hook): Copy param summaries.
1438         (inline_edge_removal_hook): Free param summaries.
1439         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
1440         sizes; dump param summaries.
1441         (will_be_nonconstant_predicate): Use CHANGED predicate.
1442         (record_modified_bb_info): New structure.
1443         (record_modified): New function.
1444         (param_change_prob): New function.
1445         (estimate_function_body_sizes): Compute param summaries.
1446         (estimate_edge_size_and_time): Add probability argument.
1447         (estimate_node_size_and_time): Add inline_param_summary argument;
1448         handle predicate probabilities.
1449         (remap_predicate): Fix formating.
1450         (remap_edge_change_prob): New function.
1451         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
1452         (remap_edge_predicates): ... this one.
1453         (inline_merge_summary): Remap edge summaries; handle predicate
1454         probabilities; remove param summaries after we are done.
1455         (do_estimate_edge_time): Update.
1456         (do_estimate_edge_growth): Update.
1457         (read_inline_edge_summary): Read param info.
1458         (inline_read_summary): Fix formating.
1459         (write_inline_edge_summary): Write param summaries.
1460
1461 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1462
1463         * config/i386/i386.c (ix86_print_operand): Handle %~.
1464         (ix86_print_operand_punct_valid_p): Return true also for '~'.
1465         * config/i386/sse.md (i128): New mode_attr.
1466         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
1467         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
1468         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
1469         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
1470         patterns, use "<sseinsnmode>" for "mode" attribute.
1471         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
1472         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
1473         %~128 in the patterns, use "OI" for "mode" attribute.
1474
1475 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1476
1477         PR target/50447
1478         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
1479         "tstsi", "compare".
1480         (*cmpqi_sign_extend): Use s8_operand.
1481         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
1482         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
1483         prototypes.
1484         (out_tsthi, out_tstsi): Remove prototypes.
1485         (avr_out_tsthi, avr_out_tstsi): New prototypes.
1486         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
1487         (avr_asm_len): Negative length now sets *plen to -length.
1488         (compare_sign_p): Return bool instead of int.
1489         (compare_diff_p, compare_eq_p): Ditto and make static.
1490         (avr_out_tsthi): New function.
1491         (avr_out_tstsi): New function.
1492         (avr_out_compare): New function.
1493         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
1494         ADJUST_LEN_COMPARE.
1495
1496 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1497
1498         PR target/50447
1499         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
1500         (addsi3): Rewrite using QI scratch register.  Adjust text
1501         peepholes using plus:SI.
1502         (*addsi3_zero_extend.hi): New insn.
1503         (*subsi3_zero_extend.hi): New insn.
1504         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
1505         (*subsi3_zero_extend): Ditto.
1506         (subsi3): Change predicate #2 to register_operand.
1507         * config/avr/avr-protos.h (avr_out_plus): New prototype.
1508         (avr_out_plus_1): New static function.
1509         (avr_out_plus): New function.
1510         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
1511
1512 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
1515         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
1516
1517 2011-09-23  Ian Lance Taylor  <iant@google.com>
1518
1519         * godump.c (go_define): Treat a single character in single quotes,
1520         or a string, as an operand.
1521
1522 2011-09-23  Martin Jambor  <mjambor@suse.cz>
1523
1524         * ipa-prop.h (jump_func_type): Updated comments.
1525         (ipa_known_type_data): New type.
1526         (ipa_jump_func): Use it to describe known type jump functions.
1527         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
1528         reflect the new known type jump function contents.
1529         (compute_known_type_jump_func): Likewise.
1530         (combine_known_type_and_ancestor_jfs): Likewise.
1531         (try_make_edge_direct_virtual_call): Likewise.
1532         (ipa_write_jump_function): Likewise.
1533         (ipa_read_jump_function): Likewise.
1534         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
1535         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
1536         (propagate_accross_jump_function): Likewise.
1537
1538 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
1539
1540         PR target/50446
1541         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
1542         (rotlqi3_4): Turn insn into expander.
1543         (*rotlqi3): New insn.
1544         (rotlhi3, rotlsi3): Support rotate left/right by 1.
1545         (*rotlhi2.1, *rotlhi2.15): New insns.
1546         (*rotlsi2.1, *rotlsi2.31): New insns.
1547         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
1548
1549 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
1550
1551         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
1552
1553 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
1554
1555         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
1556
1557 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1558
1559         * reload.c (find_reloads): Set operand_mode to Pmode for address
1560         operands consisting of just a CONST_INT.
1561
1562 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
1563
1564         PR target/50482
1565         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1566         blendv, force op_true to register if it doesn't satisfy
1567         nonimmediate_operand predicate.
1568
1569 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
1570
1571         PR middle-end/50113
1572         PR middle-end/50061
1573         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
1574         get the locate.where_pad value for register-only arguments.
1575         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
1576         (arm_pad_reg_upward): Handle null types.
1577
1578 2011-09-22  Jan Hubicka  <jh@suse.cz>
1579
1580         * ipa-inline-analysis.c: Fix overly long lines.
1581
1582 2011-09-22  Jan Hubicka  <jh@suse.cz>
1583
1584         * ipa-inline-transform.c (inline_call): Always update jump functions
1585         after inlining.
1586         * ipa-inline.c (ipa_inline): Likewise; do not call
1587         ipa_create_all_structures_for_iinln.
1588         (ipa_inline): Always free jump functions.
1589         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
1590         (remap_edge_predicates): Fix pasto.
1591         (inline_merge_summary): Remove nlined edge predicate; remove hack.
1592         (inline_analyze_function): Always initialize jump functions.
1593         (inline_generate_summary): Likewise.
1594         (inline_write_summary): Always write jump functions when ipa-cp
1595         is not doing that.
1596         (inline_read_summary): Always read jump functions when ipa-cp
1597         is not doing that.
1598         * ipa-prop.c (iinlining_processed_edges): Remove.
1599         (update_indirect_edges_after_inlining): Do not use
1600         iinlining_processed_edges; instead set param_index to -1.
1601         (propagate_info_to_inlined_callees): Only try to indirect inlining
1602         when asked to do so; update jump functions of indirect calls, too;
1603         remove jump functions of the inlined edge.
1604         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
1605         (ipa_create_all_structures_for_iinln): Remove.
1606         (ipa_free_all_structures_after_iinln): Do not free
1607         iinlining_processed_edges.
1608         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
1609
1610 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
1611
1612         * config/arm/predicates.md (expandable_comparison_operator): New
1613         predicate, extracted from...
1614         (arm_comparison_operator): ...here.
1615         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
1616         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
1617         (movdfcc): Use expandable_comparison_operator.
1618
1619 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
1620
1621         PR target/50447
1622         PR target/50465
1623         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
1624         (avr_popcount_each_byte): New prototype.
1625         * config/avr/avr.c (avr_popcount): New static function.
1626         (avr_popcount_each_byte): New function.
1627         (avr_out_bitop): New function.
1628         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
1629         avr_out_bitop.  Cleanup code.
1630         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
1631         (Ca4, Co4, Cx4): New constraints.
1632         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
1633         alternative.
1634         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
1635         (andsi3, iorsi3, xorsi3): Ditto.
1636         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
1637
1638 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
1639
1640         PR tree-optimization/50451
1641         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
1642         constant operands in reduction.
1643         (vect_get_slp_defs): Don't create vector operand for NULL scalar
1644         operand.
1645
1646 2011-09-22  David S. Miller  <davem@davemloft.net>
1647
1648         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1649         fpack16, fpack32, fpackfix as const.
1650
1651         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1652         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1653         constants.  Use them everywhere.
1654
1655 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
1656
1657         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1658         Added AND special case.  Adapted comments.
1659         (sh_rtx_costs): Added XOR and IOR case.
1660
1661 2011-09-21  Jan Hubicka  <jh@suse.cz>
1662
1663         * ipa-inline-analsis.c (compute_inline_parameters): Set
1664         cfun and current_function_decl.
1665
1666 2011-09-21  Jan Hubicka  <jh@suse.cz>
1667
1668         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1669         handled components in parameter of builtin_constant_p.
1670         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1671
1672 2011-09-21  Jan Hubicka  <jh@suse.cz>
1673
1674         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1675         * ipa-inline.h (estimate_edge_time): Fix pasto.
1676         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1677
1678 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1679
1680         * config/i386/i386.c (ix86_expand_sse_movcc): Use
1681         blendvps, blendvpd and pblendvb if possible.
1682
1683 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
1684
1685         PR target/50464
1686         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1687         operand 1 predicate to register_operand and operand 2 predicate
1688         to nonimmediate_operand.
1689         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1690         xop_pcmov, force op_true to register.  Also, force op_false to
1691         register if it doesn't satisfy nonimmediate_operand predicate.
1692
1693 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1694
1695         * config/i386/bmi2intrin.h (_mulx_u64): New.
1696         (_mulx_u32): Ditto.
1697
1698 2011-09-21  Jan Hubicka  <jh@suse.cz>
1699
1700         PR tree-optimization/50433
1701         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1702         Use get_base_address.
1703
1704 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1705
1706         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1707         nonimmediate_operand instead of register_operand predicate for operands
1708         1 and 2, force them into registers if expanding them as comparison.
1709         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
1710         V8HImode force into register just operand 1.
1711
1712 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1713
1714         PR target/45099
1715         * config/avr/avr.c (avr_function_arg_advance): Change error to
1716         warning if a fixed register is needed as function argument.
1717
1718 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1719
1720         PR target/50449
1721         PR target/50465
1722         * config/avr/avr.md (adjust_len): New insn attribute.
1723         (*reload_insi, *reload_insf): Use it.
1724         (*movsi, *movsf): Use new interface of output_movsisf.
1725         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1726         * config/avr/avr.c (output_movsisf): Ditto.
1727         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1728         lengths of insns *reload_insi, *reload_insf.
1729         (output_reload_insisf_1): New static function.
1730         (output_reload_insisf): Use it.
1731
1732 2011-09-21  David S. Miller  <davem@davemloft.net>
1733
1734         * config/sparc/sparc.c (def_builtin): Change from macro into function.
1735         (def_builtin_const): New.
1736         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1737         other than alignaddr and falignaddr.
1738
1739         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1740         UNSPEC_FCMPEQ): New unspec codes.
1741         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1742         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1743         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1744         new pixel compare VIS patterns.
1745         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1746         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1747         __vis_fcmpeq16, __vis_fcmpeq32): New.
1748         * doc/extend.texi: Document new pixel compare VIS intrinsics.
1749
1750 2011-09-21  Tom de Vries  <tom@codesourcery.com>
1751
1752         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1753
1754 2011-09-20  David S. Miller  <davem@davemloft.net>
1755
1756         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1757         (aligneddrl<P:mode>_vis): New pattern.
1758         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1759         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1760         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1761         alignaddrl insn, and adjust edge operations for updated types.
1762         * config/sparc/visintrin.h: Likewise.
1763         * doc/extend.texi: Make typing in VIS documentation match reality.
1764
1765 2011-09-20  Terry Guo  <terry.guo@arm.com>
1766
1767         * config/arm/arm-arches.def: Add armv6s-m.
1768         * config/arm/arm-tables.opt: Regenerate.
1769
1770 2011-09-20  Wei Guozhi  <carrot@google.com>
1771
1772         PR rtl-optimization/49452
1773         * postreload.c (reload_combine): Invalidate use information when across
1774         volatile insn.
1775
1776 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1777
1778         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1779         Remove maintenance overhead.
1780         (haifa_sched_init, sched_finish): Update.
1781
1782 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1783
1784         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1785         to calculate unit, prefix_rep and prefix_data16 attributes.
1786         (*mov<mode>_internal): Ditto for unit attribute.
1787         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1788         (*movv2sf_internal): Ditto.
1789         * config/i386/sse.md (VI1248_256): Remove mode iterator.
1790         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1791         (*avx2_eq<mode>3): Ditto.
1792         (avx2_gt<mode>3): Ditto.
1793
1794 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1795
1796         * config/i386/i386.md (maxmin): New code iterator.
1797         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1798         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1799         code iterator.
1800         (*avx2_<maxmin:code><mode>3): Macroize isn from
1801         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1802         maxmin code iterator.
1803         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1804         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1805         <umaxmin:code>v16qi3.
1806
1807 2011-09-19  Alan Modra  <amodra@gmail.com>
1808             Michael Meissner  <meissner@linux.vnet.ibm.com>
1809
1810         PR target/50341
1811         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1812         split the load of the indirect function's TOC from the call to
1813         prevent the compiler from moving the load of the new TOC above
1814         code that references the current function's TOC.
1815         (call_indirect_aix<ptrsize>_internal): Ditto.
1816         (call_indirect_aix<ptrsize>_nor11): Ditto.
1817         (call_indirect_aix<ptrsize>_internal2): Ditto.
1818         (call_value_indirect_aix<ptrsize>): Ditto.
1819         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1820         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1821         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1822
1823 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
1824
1825         * config/i386/sse.md (*sse4_1_extractps): Change into
1826         define_insn_and_split, add =x 0 n and =x x n alternatives
1827         and split them after reload.
1828
1829 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1830
1831         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1832
1833 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1834
1835         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1836
1837 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
1838
1839         PR tree-optimization/50413
1840         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1841         a basic block if one of its data-refs can't be analyzed.
1842
1843 2011-09-19  Paul Brook  <paul@codesourcery.com>
1844
1845         * config/arm/predicates.md (shift_amount_operand): Check constant
1846         shift count is in range.
1847         (const_shift_operand): Remove.
1848
1849 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1850             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1851
1852         PR target/50091
1853         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1854         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1855
1856 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1857
1858         * config/i386/bmiintrin.h: Remove tmp.
1859         * config/i386/tbmintrin.h: Likewise.
1860
1861 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1862
1863         PR tree-optimization/50414
1864         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1865         MIN_EXPR.
1866
1867 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1868
1869         PR tree-optimization/50412
1870         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1871         acceses that require epilogue loop if vectorizing outer loop.
1872
1873 2011-09-17  David S. Miller  <davem@davemloft.net>
1874
1875         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1876         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1877         New unspecs.
1878         (define_attr type): New type 'edge'.
1879         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1880         edge32l_vis): New patterns.
1881         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1882         * config/sparc/ultra3.md: Likewise.
1883         * config/sparc/niagara.md: Likewise.
1884         * config/sparc/niagara2.md: Likewise.
1885         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1886         builtins for VIS edge instructions.
1887         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1888         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1889         intrinsics.
1890         (__v8qi, __v4qi): Make unsigned.
1891         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1892         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1893         __vis_fpack32): Fix types.
1894         * doc/extend.texi: Document new 'edge' VIS intrinsics.
1895
1896         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1897         divide costs.
1898         (niagara3_costs): New.
1899         (sparc_option_override): Use it.
1900         * gcc/config/sparc/niagara2.md: Adjust with more accurate
1901         Niagara-3 reservations.
1902
1903 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
1904
1905         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1906         (sse2_avx, sseinsnmode): Add V2TI.
1907         (REDUC_SMINMAX_MODE): New mode iterator.
1908         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1909         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1910         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1911         (sse2_lshrv1ti3): Rename to...
1912         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
1913         iterator.  Move before umaxmin expanders.
1914         * config/i386/i386.h (VALID_AVX256_REG_MODE,
1915         SSE_REG_MODE_P): Accept V2TImode.
1916         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1917         V16HImode, V8SImode and V4DImode.
1918
1919         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1920         and V4DImode.
1921         (ix86_build_signbit_mask): Likewise.
1922         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
1923         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1924         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1925         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1926         (<code><mode>3) ... this.
1927         (avx2_<code><mode>3 smaxmin expand): Rename to...
1928         (<code><mode>3) ... this.
1929         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1930         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1931         VI8_AVX2 mode iterator.
1932         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1933         VI8_AVX2 mode iterator.
1934         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1935         New expanders.
1936
1937 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
1938
1939         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1940         throughout file.
1941
1942 2011-09-16  David S. Miller  <davem@davemloft.net>
1943
1944         * config/sparc/visintrin.h: New file.
1945         * config.gcc: Add it to extra_headers on sparc.
1946
1947 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1950         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
1951         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1952         reduc_smin_v4sf): Adjust callers.
1953         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1954         New expanders.
1955
1956         * config/i386/sse.md (vec_extract_hi_<mode>,
1957         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1958         vextracti128 instead of vextractf128 for -mavx2 and
1959         integer vectors.  For V4DFmode fix up mode attribute.
1960         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1961         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1962         instead of V8SF mode attribute.
1963         (avx2_extracti128): Change into define_expand.
1964         * config/i386/i386.c (ix86_expand_vector_extract): Handle
1965         32-byte vector modes if TARGET_AVX.
1966
1967 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1968
1969         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1970         (umulqi3_highpart, smulqi3_highpart): Ditto.
1971         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1972         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1973         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1974
1975 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1976
1977         PR target/50358
1978         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1979         (*maddqi4, *maddqi4.const): New insns.
1980         (*msubqi4, *msubqi4.const): New insns.
1981         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1982         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
1983         HImode by 1 in the case of multiplying with a CONST_INT.
1984         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1985
1986 2011-09-15   Jan Hubicka  <jh@suse.cz>
1987
1988         PR lto/50430
1989         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1990         error_mark_node in the DECL_INITIAL of vtable.
1991
1992 2011-09-15   Diego Novillo  <dnovillo@google.com>
1993
1994         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1995         @SYSROOT_CFLAGS_FOR_TARGET@.
1996         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1997         * configure: Regenerate.
1998         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1999         Remove setting of GCC_UNDER_TEST.
2000
2001 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
2002
2003         * config/i386/i386.c (output_fp_compare): Return %v prefixed
2004         instruction mnemonics for TARGET_AVX.
2005
2006         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
2007         "type" attribute calculation.
2008         (*movdf_internal): Ditto.
2009         (*movsf_internal): Ditto.
2010
2011 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
2012
2013         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
2014
2015 2011-09-15  Jason Merrill  <jason@redhat.com>
2016
2017         PR c++/50361
2018         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
2019
2020 2011-09-15  Jan Hubicka  <jh@suse.cz>
2021
2022         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
2023         simplify obviously true clauses.
2024         (and_predicates, or_predicates): Add conditions parameter.
2025         (inline_duplication_hoook): Update.
2026         (mark_modified): New function.
2027         (unmodified_parm): New function.
2028         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
2029         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
2030         Use unmodified_parm.
2031         (estimate_function_body_sizes): Update.
2032         (remap_predicate): Update.
2033
2034 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
2035
2036         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
2037         read-after-read dependencies in basic block SLP.
2038
2039 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2040
2041         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
2042         throughout file.
2043
2044 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2045
2046         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
2047         throughout file.
2048
2049 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2050
2051         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
2052         throughout file.
2053
2054 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2055
2056         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
2057         throughout file.
2058         * config/rs6000/constraints.md: Likewise.
2059
2060 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2061
2062         * config/microblaze/microblaze.md: Use match_test rather than
2063         eq/ne symbol_ref throughout file.
2064
2065 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
2066
2067         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
2068         throughout file.
2069
2070 2011-09-14  Tom de Vries  <tom@codesourcery.com>
2071
2072         PR middle-end/50251
2073         * explow.c (emit_stack_restore): Set crtl->need_drap if
2074         stack_restore is emitted.
2075
2076 2011-09-14  Julian Brown  <julian@codesourcery.com>
2077
2078         * config/arm/arm.c (arm_override_options): Add unaligned_access
2079         support.
2080         (arm_file_start): Emit attribute for unaligned access as appropriate.
2081         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
2082         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
2083         (insv, extzv): Add unaligned-access support.
2084         (extv): Change to expander. Likewise.
2085         (extzv_t1, extv_regsi): Add helpers.
2086         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
2087         (unaligned_storesi, unaligned_storehi): New.
2088         (*extv_reg): New (previous extv implementation).
2089         * config/arm/arm.opt (munaligned_access): Add option.
2090         * config/arm/constraints.md (Uw): New constraint.
2091         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
2092         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
2093         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
2094         volatile accesses when -fstrict-volatile-bitfields is in effect.
2095         (extract_bit_field_1): Likewise.
2096
2097 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
2098
2099         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
2100         a scalar integer before applying integer-only optimisations to
2101         inner arithmetic.
2102
2103 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
2104
2105         * config/mips/mips.c (mips_expand_epilogue): Generate a
2106         simple_return only if the return address is in r31.
2107
2108 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2109
2110         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
2111         NULL for a jump that is a cc0 insn, pick the previous insn for
2112         move_before.
2113
2114 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2115
2116         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
2117         throughout file.
2118
2119 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2120
2121         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
2122         throughout file.
2123
2124 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2125
2126         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
2127         symbol_ref throughout file.
2128
2129 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2130
2131         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
2132         throughout file.
2133
2134 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2135
2136         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
2137         throughout file.
2138
2139 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2140
2141         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
2142         throughout file.
2143         * config/arm/neon.md: Likewise.
2144         * config/arm/vfp.md: Likewise.
2145         * config/arm/thumb2.md: Likewise.
2146         * config/arm/cortex-m4.md: Likewise.
2147
2148 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
2149
2150         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
2151         define_insn patterns for combine.
2152
2153 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
2154
2155         * reorg.c: Always define make_return_insns.
2156
2157 2011-09-13  Jan Hubicka  <jh@suse.cz>
2158
2159         PR other/49533
2160         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
2161
2162 2011-09-13  Jan Hubicka  <jh@suse.cz>
2163
2164         PR other/49533
2165         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
2166
2167 2011-09-13  Paul Brook  <paul@codesourcery.com>
2168
2169         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2170         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
2171         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
2172         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
2173         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
2174         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
2175         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
2176         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
2177         enabling unwind tables.
2178         (c6x_debug_unwind_info): New function.
2179         (TARGET_ARM_EABI_UNWINDER): Define.
2180         (TARGET_DEBUG_UNWIND_INFO): Define.
2181         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
2182         (TARGET_EXTRA_CFI_SECTION): Remove.
2183         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
2184         * ginclude/unwind-arm-common.h: New file.
2185
2186 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
2187
2188         PR target/50358
2189         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
2190         * config/avr/avr.md: (extend_s): New code attribute.
2191         (mul_r_d): New code attribute.
2192         (*maddqihi4, *umaddqihi4): New insns.
2193         (*msubqihi4, *umsubqihi4): New insns.
2194         (*usmaddqihi4, *sumaddqihi4): New insns.
2195         (*usmsubqihi4, *susubdqihi4): New insns.
2196         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
2197         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
2198         (*umsubqihi4.uconst.ashift): New insn-and-split.
2199         (*msubqihi4.sconst.ashift): New insn-and-split.
2200         (*sumaddqihi4.uconst): New insn-and-split.
2201         (*sumsubqihi4.uconst): New insn-and-split.
2202         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
2203         PLUS:HI and MINUS:HI.
2204
2205 2011-09-13  Revital Eres  <revital.eres@linaro.org>
2206
2207         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
2208         (optimize_sc): Adjust call to remove_node_from_ps.
2209         (sms_schedule): Add print info.
2210
2211 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
2212
2213         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
2214         flags specially.
2215
2216 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2217
2218         PR bootstrap/50010
2219         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
2220         NOTE_INSN_CFI notes, with the exception of
2221         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2222
2223 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2224             Richard Sandiford  <rdsandiford@googlemail.com>
2225
2226         * config/mips/mips.c (mips_epilogue): New structure.
2227         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
2228         restoring registers.
2229         (mips_epilogue_emit_cfa_restores): New function.
2230         (mips_epilogue_set_cfa): Likewise.
2231         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
2232         the current CFA register from the stack, redefine the CFA in terms
2233         of the stack pointer.
2234         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
2235         to the epilogue instructions.
2236
2237 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
2238
2239         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
2240         argument.
2241         (mips16e_build_save_restore): Update accordingly.
2242
2243 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2244
2245         PR rtl-optimization/50212
2246         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2247         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
2248
2249         PR debug/50299
2250         * calls.c (load_register_parameters): Use use_reg_mode instead
2251         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
2252         entry.
2253         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
2254         for stack CALL_INSN_FUNCTION_USAGE uses.
2255         * expr.h (use_reg_mode): New prototype.
2256         (use_reg): Changed into inline around use_reg_mode.
2257         * expr.c (use_reg): Renamed to...
2258         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
2259         mode to that mode instead of VOIDmode.
2260         * var-tracking.c (prepare_call_arguments): Don't track parameters
2261         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
2262         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
2263         EXPR_LIST mode.
2264
2265 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
2266
2267         PR target/43746
2268         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
2269         (progmem_section): New Variable.
2270         (avr_asm_init_sections): Initialize it.
2271         (TARGET_ASM_SELECT_SECTION): Define to...
2272         (avr_asm_select_section): ... this new Function.
2273         (avr_replace_prefix): New Function.
2274         (avr_asm_function_rodata_section): Use it.
2275         (avr_insert_attributes): Don't add section attribute for PROGMEM.
2276         (avr_section_type_flags): Use avr_progmem_p instead of section
2277         name to detect if object is in PROGMEM.
2278         (avr_asm_named_section): Set section name prefix for objects in
2279         PROGMEM.
2280
2281 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
2282
2283         PR bootstrap/50352
2284         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
2285         sprintf format string.
2286
2287 2011-09-12  Richard Guenther  <rguenther@suse.de>
2288
2289         PR tree-optimization/50343
2290         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
2291         that the reduction is over an SSA name before checking its definition.
2292
2293 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2294
2295         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
2296         throughout file.
2297
2298 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2299
2300         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
2301         throughout file.
2302         * config/mips/sb1.md: Likewise.
2303         * config/mips/predicates.md: Replace (match_test "!...")
2304         with (not (match_test "..."))
2305         * config/mips/constraints.md: Likewise.
2306
2307 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
2308
2309         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
2310         * config/arm/arm-tables.opt: Regenerate.
2311         * config/arm/arm-tune.md: Regenerate.
2312         * config/arm/arm.c (arm_file_start): Output .arch directive when
2313         user passes -mcpu=generic-*.
2314         (arm_issue_rate): Add genericv7a support.
2315         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
2316         (ASM_CPU_SPEC): New define.
2317         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
2318         * config/arm/semi.h (ASM_SPEC): Likewise.
2319         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
2320         and -mtune=generic-*.
2321
2322 2011-09-09  Richard Guenther  <rguenther@suse.de>
2323
2324         PR tree-optimization/50328
2325         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
2326         constant or default-def operand.
2327
2328 2011-09-09  Richard Guenther  <rguenther@suse.de>
2329
2330         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
2331         last statement.
2332
2333 2011-09-09  Richard Guenther  <rguenther@suse.de>
2334
2335         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
2336         instead of a statement.
2337         * gimple-fold.c (fold_stmt_inplace): Likewise.
2338         * sese.c (graphite_copy_stmts_from_block): Adjust.
2339         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2340         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
2341         fold_stmt.
2342         (forward_propagate_addr_into_variable_array_index): Likewise.
2343         (forward_propagate_addr_expr_1): adjust.
2344         (associate_plusminus): Likewise.
2345         (ssa_forward_propagate_and_combine): Likewise.
2346         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
2347         (execute_cse_reciprocals): Likewise.
2348         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
2349
2350 2011-09-09  Nick Clifton  <nickc@redhat.com>
2351
2352         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
2353         Return a positive value to indicate that the bits at the
2354         bottom of the register should be cleared.
2355
2356 2011-09-09  Richard Guenther  <rguenther@suse.de>
2357
2358         * tree-ssa-operands.c (swap_tree_operands): Always adjust
2359         existing operand positions.
2360
2361 2011-09-09  Richard Guenther  <rguenther@suse.de>
2362
2363         PR middle-end/50333
2364         * tree-data-ref.c (split_constant_offset): Do not try to handle
2365         ternary ops.
2366
2367 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
2368
2369         PR tree-optimization/50318
2370         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
2371         typo in use of mult_rhs1 and mult_rhs2.
2372
2373 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
2374
2375         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
2376         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
2377
2378 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
2379
2380         * config/arm/arm.md (push_multi): Emit predicates.
2381         (push_fp_multi): Likewise.
2382         * config/arm/arm.c (vfp_output_fstmd): Likewise.
2383
2384 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2385
2386         PR c++/33255 - Support -Wunused-local-typedefs warning
2387         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
2388         (pushdecl): Use the new record_locally_defined_typedef.
2389         (store_parm_decls): Allocate cfun->language.
2390         (finish_function): Use the new maybe_warn_unused_local_typedefs,
2391         and free cfun->language.
2392         (c_push_function_context): Allocate cfun->language here only if needed.
2393         (c_pop_function_context): Likewise, mark cfun->language
2394         for collection only when it should be done.
2395         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
2396         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
2397         maybe_record_local_typedef_use.
2398         * doc/invoke.texi: Update documentation for
2399         -Wunused-local-typedefs.
2400
2401 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
2402
2403         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
2404         (ix86_avoid_lea_for_add): Likewise.
2405         (ix86_avoid_lea_for_addr): Likewise.
2406         (ix86_split_lea_for_addr): Likewise.
2407
2408         * config/i386/i386.c (LEA_MAX_STALL): New.
2409         (increase_distance): Likewise.
2410         (insn_defines_reg): Likewise.
2411         (insn_uses_reg_mem): Likewise.
2412         (distance_non_agu_define_in_bb): Likewise.
2413         (distance_agu_use_in_bb): Likewise.
2414         (ix86_lea_outperforms): Likewise.
2415         (ix86_ok_to_clobber_flags): Likewise.
2416         (ix86_avoid_lea_for_add): Likewise.
2417         (ix86_avoid_lea_for_addr): Likewise.
2418         (ix86_split_lea_for_addr): Likewise.
2419         (distance_non_agu_define): Search in pred BBs added.
2420         (distance_agu_use): Search in succ BBs added.
2421         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
2422         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
2423         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
2424
2425         * config/i386/i386.md: Split added to transform non destructive
2426         add into move and add.
2427         (lea_1): transformed into insn_and_split to avoid AGU stalls.
2428         (lea<mode>_2): Likewise.
2429
2430 2011-09-08  Martin Jambor  <mjambor@suse.cz>
2431
2432         PR tree-optimization/50287
2433         * ipa-split.c (split_function): Do not create SSA names for
2434         non-gimple-registers.
2435
2436 2011-09-08  Richard Guenther  <rguenther@suse.de>
2437
2438         PR tree-optimization/19831
2439         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
2440         skip builtins with vdefs that do not really store something.
2441         (propagate_necessity): For calls to free that we can associate
2442         with an allocation function do not mark the freed pointer
2443         definition necessary.
2444         (eliminate_unnecessary_stmts): Remove a call to free if
2445         the associated call to an allocation function is not necessary.
2446
2447 2011-09-08  Richard Guenther  <rguenther@suse.de>
2448
2449         PR tree-optimization/19831
2450         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
2451         allocation functions as necessary.
2452
2453 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
2454
2455         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
2456         cut from ...
2457         (darwin_default_min_version): Amended to provide defaults
2458         for the cross directory case.
2459         (darwin_driver_init): call darwin_default_min_version unconditionally.
2460         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
2461         * config/darwin9.h: Likewise.
2462         * config/darwin10.h: Likewise.
2463         * config/rs6000/darwin7.h: Likewise.
2464
2465 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
2466
2467         PR target/50310
2468         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
2469         code early if TARGET_AVX.
2470         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
2471
2472 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2473
2474         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
2475         duplicates.
2476
2477         PR target/50310
2478         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
2479         "mode" attribute computation.
2480
2481 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
2482
2483         * regrename.c (struct du_head): Make nregs signed.
2484         (closed_chains): Remove.
2485         (create_new_chain): Return the new chain.
2486         (chain_from_id): New static function.
2487         (dump_def_use_chain): Change argument to be an int, indicating
2488         the first ID to print.  All callers changed.
2489         (merge_overlapping_regs): Use chain_from_id.  Assert that
2490         chains don't conflict with themselves.
2491         (rename_chains): Take no argument.  Iterate over id_to_chain
2492         rather to find chains to rename.  Clear tick before the main loop.
2493         (struct incoming_reg_info): New struct.
2494         (struct bb_rename_info): New struct.
2495         (init_rename_info, set_incoming_from_chain, merge_chains): New
2496         static functions.
2497         (regrename_analyze): New static function, broken out of
2498         regrename_optimize.  Record and make use of open chain information
2499         at basic block boundaries, and merge chains where possible.
2500         (scan_rtx_reg): Make this_nregs signed.  Don't update
2501         closed_chains.
2502         (build_def_use): Return a bool to indicate success.  All callers
2503         changed.  Don't initialize global data here.
2504         (regrename_optimize): Move most code out of here into
2505         regrename_analyze.
2506         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
2507         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
2508         static inline functions.
2509         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
2510
2511         * bb-reorder.c (insert_section_boundary_note): Don't check
2512         optimize_function_for_speed_p.
2513         (gate_handle_partition_blocks): Do it here instead.
2514         (gate_handle_reorder_blocks): Move preliminary checks here ...
2515         (rest_of_handle_reorder_blocks): ... from here.
2516
2517 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2518
2519         PR middle-end/50301
2520         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
2521         function index bounds.
2522         (perhaps_add_new_callers): Likewise.
2523
2524 2011-09-07  Martin Jambor  <mjambor@suse.cz>
2525
2526         PR tree-optimization/49911
2527         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
2528         enumerations to the corresponding plain integer type.
2529
2530 2011-09-07  Richard Guenther  <rguenther@suse.de>
2531
2532         PR tree-optimization/50319
2533         * tree-if-conv.c (set_bb_predicate): Assert we only set
2534         canonical predicates.
2535         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
2536         around canonical predicates.
2537         (predicate_bbs): Do not re-gimplify already canonical
2538         predicates.  Properly unshare them though.
2539         (find_phi_replacement_condition): Simplify.
2540
2541 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
2542
2543         PR target/49030
2544         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
2545         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
2546         reusing the old code from get_arm_condition_code.  Return ARM_NV
2547         for invalid comparison codes.
2548         (get_arm_condition_code): Redefine in terms of
2549         maybe_get_arm_condition_code.
2550         * config/arm/predicates.md (arm_comparison_operator): Use
2551         maybe_get_arm_condition_code.
2552
2553 2011-09-07  Richard Guenther  <rguenther@suse.de>
2554
2555         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2556         Canonicalize negated predicates by swapping edges.
2557         (forward_propagate_into_cond): Likewise.
2558
2559 2011-09-07  Richard Guenther  <rguenther@suse.de>
2560
2561         PR tree-optimization/50213
2562         * tree-flow.h (simple_iv_increment_p): Declare.
2563         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
2564         POINTER_PLUS_EXPR.
2565         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
2566         not propagate simple IV counter increments.
2567
2568 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
2569             Iain Sandoe  <iains@gcc.gnu.org>
2570
2571         * config/rs6000/rs6000.c (compute_save_world_info): Test
2572         cfun->has_nonlocal_label to determine if the out-of-line save
2573         world call may be used.
2574
2575 2011-09-07  Nick Clifton  <nickc@redhat.com>
2576
2577         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
2578         label on the parallel part of the insn.
2579
2580 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR debug/50191
2583         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
2584         avoid_constant_pool_reference first instead of last.
2585
2586 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2587
2588         * doc/configfiles.texi (Configuration Files): Update documentation
2589         about tm_p.h and remove FIXME comment.
2590
2591 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
2592
2593         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
2594         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
2595
2596 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
2597
2598         * config/darwin10.h Remove duplicate LIB_SPEC.
2599
2600 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
2601
2602         PR middle-end/44382
2603         * target.def (reassociation_width): New hook.
2604
2605         * doc/tm.texi.in (reassociation_width): Likewise.
2606
2607         * doc/tm.texi (reassociation_width): Likewise.
2608
2609         * doc/invoke.texi (tree-reassoc-width): New param documented.
2610
2611         * hooks.h (hook_int_uint_mode_1): New default hook.
2612
2613         * hooks.c (hook_int_uint_mode_1): Likewise.
2614
2615         * config/i386/i386.h (ix86_tune_indices): Add
2616         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2617
2618         (TARGET_REASSOC_INT_TO_PARALLEL): New.
2619         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
2620
2621         * config/i386/i386.c (initial_ix86_tune_features): Add
2622         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
2623
2624         (ix86_reassociation_width): New function.
2625
2626         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
2627
2628         * tree-ssa-reassoc.c (get_required_cycles): New function.
2629         (get_reassociation_width): Likewise.
2630         (swap_ops_for_binary_stmt): Likewise.
2631         (rewrite_expr_tree_parallel): Likewise.
2632
2633         (rewrite_expr_tree): Refactored.  Part of code moved into
2634         swap_ops_for_binary_stmt.
2635
2636         (reassociate_bb): Now checks reassociation width to be used and
2637         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
2638
2639 2011-09-06  Richard Guenther  <rguenther@suse.de>
2640
2641         PR tree-optimization/47025
2642         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2643         uses nothing.
2644         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2645         BUILT_IN_FREE.
2646         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2647         definitely points to.
2648         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2649         BUILT_IN_VA_START doesn't let its va_list argument escape.
2650         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2651         not make any previous stores necessary.
2652
2653 2011-09-06  Martin Jambor  <mjambor@suse.cz>
2654
2655         * ipa-inline.h (struct inline_summary): Move versionable flag...
2656         * cgraph.h (struct cgraph_local_info): ...here
2657         * ipa-cp.c (determine_versionability): Use the new versionable flag.
2658         (determine_versionability): Likewise.
2659         (ipcp_versionable_function_p): Likewise.
2660         (ipcp_generate_summary): Likewise.
2661         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2662         versionable flag.
2663         (compute_inline_parameters): Do not clear the versionable flag.
2664         (inline_read_section): Do not stream the versionable flag.
2665         (inline_write_summary): Likewise.
2666         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2667         (input_overwrite_node): Likewise.
2668
2669 2011-09-06  Richard Guenther  <rguenther@suse.de>
2670
2671         PR tree-optimization/48149
2672         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
2673         (vn_valueize): Move earlier.
2674         (valueize_expr): Use vn_valueize.
2675         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2676         operands.
2677         (simplify_unary_expression): Simplify.
2678
2679 2011-09-06  Richard Guenther  <rguenther@suse.de>
2680
2681         PR tree-optimization/48317
2682         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2683         trailing array.
2684         (sizeof_vn_nary_op): New inline function.
2685         (vn_nary_op_lookup_pieces): Adjust.
2686         (vn_nary_op_insert_pieces): Likewise.
2687         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2688         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
2689         any number of operands.
2690         (vn_nary_length_from_stmt): New function.
2691         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2692         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2693         sized temporary.
2694         (vn_nary_op_lookup): Likewise.
2695         (vn_nary_op_lookup_stmt): Likewise.
2696         (vn_nary_op_insert_into): Likewise.
2697         (vn_nary_op_insert_stmt): Likewise.
2698         (visit_use): Handle CONSTRUCTOR as nary.
2699         * tree-ssa-pre.c (phi_translate_1): Adjust.
2700         (create_expression_by_pieces): Likewise.
2701         (compute_avail): Likewise.
2702
2703 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
2704
2705          * config/arm/arm.c (arm_preferred_simd_mode): Check
2706         TARGET_NEON_VECTORIZE_DOUBLE instead of
2707         TARGET_NEON_VECTORIZE_QUAD.
2708         (arm_autovectorize_vector_sizes): Likewise.
2709         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2710         mask of mvectorize-with-neon-double.  Add RejectNegative.
2711         (mvectorize-with-neon-double): New.
2712
2713 2011-09-06  Richard Guenther  <rguenther@suse.de>
2714
2715         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2716
2717 2011-09-06  Tom de Vries  <tom@codesourcery.com>
2718
2719         * recog.c (asm_labels_ok): New function.
2720         (check_asm_operands): Use asm_labels_ok.
2721
2722 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2723
2724         PR target/49606
2725         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2726         (PMODE_INSN): New macro.
2727         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2728         (mips_got_load, mips_expand_synci_loop): Likewise.
2729         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2730         cprestore patterns.
2731         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
2732         copygp_mips16 patterns.
2733         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2734         and use_cprestore patterns.
2735         (mips_override_options): Check for incompatible -mabi and -mlong
2736         combinations.
2737         * config/mips/mips.md (unspec_got<mode>): Rename to...
2738         (unspec_got_<mode>): ...this.
2739         (copygp_mips16): Use the Pmode iterator.
2740         (potential_cprestore, cprestore, use_cprestore): Likewise.
2741         (clear_cache, indirect_jump): Use PMODE_INSN.
2742         (indirect_jump<mode>): Rename to...
2743         (indirect_jump_<mode>): ...this.
2744         (tablejump): Use PMODE_INSN.
2745         (tablejump<mode>): Rename to...
2746         (tablejump_<mode>): ...this.
2747         (exception_receiver): Handle restore_gp_si and restore_gp_di.
2748         (restore_gp): Use the Pmode iterator.
2749         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2750         PMODE_INSN.
2751
2752 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2753
2754         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2755         Fix the type of the BIT_AND_EXPR.
2756
2757 2011-09-05  David S. Miller  <davem@davemloft.net>
2758
2759         * config.host: Add driver-sparc.o and sparc/x-sparc on
2760         native sparc*-*-linux* builds.
2761         * config/sparc/driver-sparc.c: Correct Linux strings.
2762         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2763         * config/sparc/linux64.h: Likewise.
2764         * doc/invoke.texi: Document that Linux also supports
2765         -mcpu=native and -mtune=native on sparc.
2766
2767         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2768         PROCESSOR_NIAGARA4): New.
2769         * config/sparc/sparc.opt: Handle new processor types.
2770         * config/sparc/sparc.md: Add to "cpu" attribute.
2771         * config/sparc/sparc.h (TARGET_CPU_niagara3,
2772         TARGET_CPU_niagara4): New, treat as niagara2.
2773         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2774         * config/sparc/sol2.h: Likewise.
2775         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2776         * config/sparc/sparc.c (sparc_option_override): Add
2777         niagara3 and niagara4 handling.
2778         (sparc32_initialize_trampoline): Likewise.
2779         (sparc64_initialize_trampoline): Likewise.
2780         (sparc_use_sched_lookahead): Likewise.
2781         (sparc_issue_rate): Likewise.
2782         (sparc_register_move_cost): Likewise.
2783         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2784         and niagara4 as appropriate.
2785         * doc/invoke.texi: Document new processor types.
2786         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2787         and --with-tune options.
2788
2789         * config/sparc/sol2-64.h: Move ...
2790         * config/sparc/default-64.h: ... to here.  Update comment.
2791         * config.gcc: Update Solaris sparc to use default-64.h, also
2792         prefix this header into the list on sparc64-*-linux.
2793         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2794         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
2795         to MASK_HARD_QUAD.
2796
2797 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2798
2799         PR target/50289
2800         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2801         that contain global register variable.
2802
2803 2011-09-05  Richard Guenther  <rguenther@suse.de>
2804
2805         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2806
2807 2011-09-05  Richard Guenther  <rguenther@suse.de>
2808
2809         * stor-layout.c (layout_type): Use size_binop for array size
2810         calculations.
2811
2812 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2813
2814         * config/avr/avr.h (progmem_section): Remove Declaration.
2815         * config/avr/avr.c (progmem_section): Make static and rename to
2816         progmem_swtable_section.
2817         (avr_output_addr_vec_elt): No need to switch sections.
2818         (avr_asm_init_sections): Use output_section_asm_op as section
2819         callback for progmem_swtable_section.
2820         (avr_output_progmem_section_asm_op): Remove Function.
2821         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2822         (avr_asm_function_rodata_section): New static Function.
2823         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2824         alignment 2**1 for jump tables.
2825
2826 2011-09-04  Jan Hubicka  <jh@suse.cz>
2827
2828         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2829         parameter is SSA name.
2830
2831 2011-09-04  Richard Guenther  <rguenther@suse.de>
2832
2833         Revert
2834         2011-08-31  Richard Guenther  <rguenther@suse.de>
2835
2836         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2837         special-casing.
2838
2839 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
2840
2841         PR debug/49901
2842         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2843
2844 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
2845             Ira Rosen  <ira.rosen@linaro.org>
2846
2847         PR tree-optimization/50208
2848         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2849         argument.  Check that def_stmt is inside the loop.
2850         (vect_recog_widen_mult_pattern): Update calls to
2851         vect_handle_widen_mult_by_cons.
2852         (vect_operation_fits_smaller_type): Check that def_stmt is
2853         inside the loop.
2854
2855 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2856
2857         * tree-vectorizer.c (vect_print_dump_info): Print line
2858         number when dumping to a file.
2859         (vectorize_loops): Add new messages to dump file.
2860
2861 2011-09-03  Martin Jambor  <mjambor@suse.cz>
2862
2863         * ipa-prop.h (ipa_jump_func_t): New typedef.
2864         (struct ipa_edge_args): Removed field argument_count, field
2865         jump_functions turned into a vector.
2866         (ipa_set_cs_argument_count): Removed.
2867         (ipa_get_cs_argument_count): Updated to work on vectors.
2868         (ipa_get_ith_jump_func): Likewise.
2869         * ipa-prop.c (ipa_count_arguments): Removed.
2870         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2871         jump functions.  Update caller.
2872         (compute_pass_through_member_ptrs): Likewise.
2873         (compute_cst_member_ptr_arguments): Likewise.
2874         (ipa_compute_jump_functions_for_edge): Get number of arguments from
2875         the statement, allocate vector.
2876         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2877         (duplicate_ipa_jump_func_array): Removed.
2878         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2879         (ipa_read_node_info): Allocate vector.
2880
2881 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2882
2883         PR middle-end/50232
2884         * config/pa/pa.md (return): Define "return" insn pattern.
2885         (epilogue): Use it when no epilogue is needed.
2886         * config/pa/pa.c (pa_can_use_return_insn): New function.
2887         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2888
2889 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2890
2891         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2892         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2893         Force at least BITS_PER_UNIT alignment on the new variable.
2894
2895 2011-09-02  Gary Funck <gary@intrepid.com>
2896
2897         * opts.c (print_specific_help): Fix off-by-one compare in
2898         assertion check.
2899         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2900         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2901         Increase by +5 to allow for more languages.
2902         * optc-gen.awk: Generate #if that ensures that the number of
2903         languages is within the implementation-defined limit.
2904
2905 2011-09-02  Michael Matz  <matz@suse.de>
2906
2907         PR middle-end/50260
2908         * ipa-split.c (split_function): Call add_referenced_var.
2909
2910         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2911         (cond_if_else_store_replacement_1): Ditto.
2912         * tree-ssa-pre.c (get_representative_for): Ditto.
2913         (create_expression_by_pieces): Ditto.
2914         (insert_into_preds_of_block): Ditto.
2915         * tree-sra.c (create_access_replacement): Ditto.
2916         (get_replaced_param_substitute): Ditto.
2917
2918 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
2919
2920         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2921         automata_options.
2922         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2923         (l1w, s1w, l2w, s2w): Define in the main automaton.
2924         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2925         units.
2926         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2927         (c6x_unit_names): Add the new units.
2928         (c6x_unit_codes): New static array.
2929         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2930         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2931         UNIT_QID_SIDE_OFFSET): New macros.
2932         (RESERVATION_S2): Adjust value.
2933         (c6x_option_override): Compute c6x_unit_codes.
2934         (assign_reservations): Take the unit_mask of the last instruction
2935         into account.  Detect floating point reservations by looking for
2936         the new units.  Don't assign reservations if the field is already
2937         nonzero.
2938         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2939         (init_sched_state): Initialize it.
2940         (c6x_clear_sched_context): Free it.
2941         (insn_set_clock): Clear reservation.
2942         (prev_cycle_state): New static variable.
2943         (c6x_init_sched_context): Save it.
2944         (c6x_sched_init): Allocate space for it and clear it.
2945         (c6x_sched_dfa_pre_cycle_insn): New static function.
2946         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2947         (c6x_variable_issue): Only record units in the unit_mask that
2948         were not set at the start of the cycle.
2949         (c6x_variable_issue): Compute and store the unit_mask from the
2950         current state.
2951         (reorg_split_calls): Ensure the new information remains correct.
2952         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2953         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2954         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2955         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2956         Add special reservations.
2957         * config/c6x/c6x-sched.md: Regenerate.
2958
2959 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2960
2961         * ipa-prop.h (ipa_node_params): Removed fields
2962         called_with_var_arguments and node_versionable.
2963         (ipa_set_called_with_variable_arg): Removed.
2964         (ipa_is_called_with_var_arguments): Likewise.
2965         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2966         (determine_versionability): Do not check for type attributes and va
2967         builtins.  Record versionability into inline summary.
2968         (initialize_node_lattices): Do not check
2969         ipa_is_called_with_var_arguments.
2970         (propagate_constants_accross_call): Likewise, ignore arguments we do
2971         not have PARM_DECLs for, set variable flag for parameters that were
2972         not passed a value.
2973         (create_specialized_node): Dump info that we cannot change signature.
2974         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2975         number of arguments.
2976         (ipa_make_edge_direct_to_target): Likewise.
2977         (ipa_update_after_lto_read): Likewise.
2978         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2979         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2980         they were remapped.
2981
2982 2011-09-02  Richard Guenther  <rguenther@suse.de>
2983
2984         PR tree-optimization/27460
2985         PR middle-end/29269
2986         * doc/md.texi (vcond): Document.
2987         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2988         optab with two modes.
2989         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2990         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2991         (vcond_optab): Adjust.
2992         (vcondu_optab): Likewise.
2993         (expand_vec_cond_expr_p): Adjust prototype.
2994         * optabs.c (get_vcond_icode): Adjust.
2995         (expand_vec_cond_expr_p): Likewise.
2996         (expand_vec_cond_expr): Likewise.
2997         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2998         vector type.
2999         (vectorizable_condition): Allow differing types for comparison
3000         and result.
3001         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
3002         for the comparison.
3003         * config/i386/sse.md (vcond<mode>): Split to
3004         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
3005         vcond<V_128:mode><VI124_128:mode> and
3006         vcondu<V_128:mode><VI124_128:mode>.
3007         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
3008         (vconduv2di): Likewise.
3009         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
3010         (vcondu<mode>): Likewise.
3011         * config/ia64/vect.md (vcond<mode>): Likewise.
3012         (vcondu<mode>): Likewise.
3013         (vcondv2sf): Likewise.
3014         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
3015         * config/rs6000/paired.md (vcondv2sf): Likewise.
3016         * config/rs6000/vector.md (vcond<mode>): Likewise.
3017         (vcondu<mode>): Likewise.
3018         * config/spu/spu.md (vcond<mode>): Likewise.
3019         (vcondu<mode>): Likewise.
3020
3021 2011-09-02  Richard Guenther  <rguenther@suse.de>
3022
3023         * pretty-print.h (pp_unsigned_wide_integer): New.
3024         * tree-pretty-print.c (dump_generic_node): Print unsigned
3025         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
3026
3027 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
3028
3029         PR target/49987
3030         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
3031         valid CONST_VECTOR operands.
3032         (rs6000_expand_vector_init): Likewise.
3033
3034 2011-09-02  Martin Jambor  <mjambor@suse.cz>
3035
3036         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
3037         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
3038         BINFO_VTABLE.  Parameter delta removed, all callers updated.
3039         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
3040         BINFO_VTABLE.
3041         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
3042         all calls.
3043         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
3044         handling of thunk_delta.
3045         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
3046         (devirtualization_time_bonus): Do not handle thunk deltas.
3047         (ipcp_discover_new_direct_edges): Likewise.
3048         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
3049         (try_make_edge_direct_simple_call): Likewise.
3050         (try_make_edge_direct_virtual_call): Likewise.
3051         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3052         parameter set as unused.
3053         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3054         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
3055         parameter set as unused.
3056         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
3057         (input_edge_opt_summary): Likewise.
3058         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
3059         BINFO_VIRTUALS at all.
3060         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
3061
3062 2011-09-02  Richard Guenther  <rguenther@suse.de>
3063
3064         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
3065         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
3066
3067 2011-08-31  Richard Guenther  <rguenther@suse.de>
3068
3069         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
3070         handling here, from ...
3071         (expand_expr_real_1): ... here.
3072         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
3073         and VEC_COND_EXPR.
3074         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
3075         a GIMPLE_TERNARY_RHS.
3076         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
3077         and VEC_COND_EXPR here ...
3078         (verify_gimple_assign_single): ... not here.
3079         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
3080         * tree-object-size.c (cond_expr_object_size): Adjust.
3081         (collect_object_sizes_for): Likewise.
3082         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
3083         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
3084         (ssa_forward_propagate_and_combine): Adjust.
3085         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
3086         as ternary.
3087         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
3088         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
3089         * tree-vect-stmt.c (vectorizable_condition): Likewise.
3090         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
3091         (extract_range_from_assignment): Likewise.
3092
3093 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3094
3095         * config/i386/i386.md: Use (match_test ...) for attribute tests.
3096         * config/i386/mmx.md: Likewise.
3097         * config/i386/sse.md: Likewise.
3098         * config/i386/predicates.md (call_insn_operand): Use
3099         (not (match_test "...")) instead of (match_test "!...")
3100         * config/i386/constraints.md (w): Likewise.
3101
3102 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3103
3104         * doc/md.texi: Describe the use of match_tests in attribute tests.
3105         * rtl.def (MATCH_TEST): Update commentary.
3106         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
3107         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
3108
3109 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
3110
3111         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
3112         (attr_string): Use copy_md_ptr_loc.
3113
3114 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3115
3116         PR middle-end/49886
3117         * ipa-inline-analysis.c (compute_inline_parameters): Set
3118         can_change_signature of noes with typde attributes.
3119         * ipa-split.c (split_function): Do not skip any arguments if
3120         can_change_signature is set.
3121
3122 2011-08-31  Martin Jambor  <mjambor@suse.cz>
3123
3124         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
3125         check removed.
3126
3127 2011-08-31  Richard Guenther  <rguenther@suse.de>
3128
3129         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
3130         special-casing.
3131
3132 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
3133
3134         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
3135
3136 2011-08-31  Tom de Vries  <tom@codesourcery.com>
3137
3138         PR middle-end/43513
3139         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
3140         * tree-ssa-ccp.c (params.h): Include.
3141         (fold_builtin_alloca_for_var): New function.
3142         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
3143
3144 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
3145
3146         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3147         Handle FMA option.
3148
3149 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3150
3151         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
3152         b3 and b4 unsigned.
3153
3154 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
3155
3156         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
3157         when code is SET.
3158
3159 2011-08-30  Richard Guenther  <rguenther@suse.de>
3160
3161         PR middle-end/48571
3162         * gimple.h (maybe_fold_offset_to_address): Remove.
3163         (maybe_fold_offset_to_reference): Likewise.
3164         (maybe_fold_stmt_addition): Likewise.
3165         (may_propagate_address_into_dereference): Likewise.
3166         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
3167         array references.
3168         * gimple-fold.c (canonicalize_constructor_val): Likewise.
3169         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
3170         addresses instead.
3171         (may_propagate_address_into_dereference): Remove.
3172         (maybe_fold_offset_to_array_ref): Likewise.
3173         (maybe_fold_offset_to_reference): Likewise.
3174         (maybe_fold_offset_to_address): Likewise.
3175         (maybe_fold_stmt_addition): Likewise.
3176         (fold_gimple_assign): Do not reconstruct array references but
3177         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
3178         MEM_REF addresses.
3179         (gimple_fold_stmt_to_constant_1): Likewise.
3180         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3181         * gimplify.c (gimplify_conversion): Likewise.
3182         (gimplify_expr): Likewise.
3183
3184 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
3185
3186         * config/i386/fmaintrin.h: New.
3187         * config.gcc: Add fmaintrin.h.
3188         * config/i386/i386.c
3189         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
3190         <IX86_BUILTIN_VFMADDSD3>: Likewise.
3191         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
3192         (*fmai_fmadd_<mode>): Likewise.
3193         (*fmai_fmsub_<mode>): Likewise.
3194         (*fmai_fnmadd_<mode>): Likewise.
3195         (*fmai_fnmsub_<mode>): Likewise.
3196         * config/i386/immintrin.h: Add fmaintrin.h.
3197
3198 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
3199
3200         * genautomata.c (NO_COMB_OPTION): New macro.
3201         (no_comb_flag): New static variable.
3202         (gen_automata_option): Handle NO_COMB_OPTION.
3203         (comb_vect_p): False if no_comb_flag.
3204         (add_vect): Move computation of min/max values.  Return early if
3205         no_comb_flag.
3206         * doc/md.texi (automata_option): Document no-comb-vect.
3207
3208         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
3209         "__x86.get_pc_thunk".
3210
3211         * bb-reorder.c (insert_section_boundary_note): Only do it if
3212         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
3213
3214 2011-08-30  Christian Bruel  <christian.bruel@st.com>
3215
3216         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
3217         flag_profile_use.
3218
3219 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
3220
3221         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
3222         to off.  Document switch.
3223         * doc/invoke.texi (-msave-toc-indirect): Ditto.
3224
3225 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3226
3227         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
3228         conditionals and comments inside macro arguments.
3229
3230 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
3231             Richard Guenther  <rguenther@suse.de>
3232
3233         * tree.h (constant_boolean_node): Adjust prototype.
3234         * fold-const.c (fold_convert_loc): Move aggregate conversion
3235         leeway down.
3236         (constant_boolean_node): Make value parameter boolean, add
3237         vector type handling.
3238         (fold_unary_loc): Use constant_boolean_node.
3239         (fold_binary_loc): Preserve types properly when folding
3240         COMPLEX_EXPR <__real x, __imag x>.
3241         * gimplify.c (gimplify_expr): Handle vector comparison.
3242         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
3243         comparison.
3244         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
3245         comparisons.
3246
3247 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3248
3249         PR middle-end/48722
3250         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
3251         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
3252         (verify_rtl_sharing): Likewise and verify_rtx_sharing
3253         in there too.
3254         (unshare_all_rtl_in_chain): For CALL_INSNs
3255         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
3256
3257 2011-08-29  Richard Guenther  <rguenther@suse.de>
3258
3259         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
3260         on the built ADDR_EXPR.
3261
3262 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
3263
3264         PR debug/50215
3265         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
3266         before adding ENTRY_VALUE to val->locs.
3267
3268 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
3269
3270         PR bootstrap/50218
3271         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
3272         comp.
3273
3274 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
3275
3276         * doc/rtl.texi (simple_return): Document.
3277         (parallel, PATTERN): Here too.
3278         * doc/md.texi (return): Mention it's allowed to expand to simple_return
3279         in some cases.
3280         (simple_return): Document standard pattern.
3281         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
3282         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
3283         * reorg.c (function_return_label, function_simple_return_label):
3284         New static variables, replacing...
3285         (end_of_function_label): ... this.
3286         (simplejump_or_return_p): New static function.
3287         (optimize_skip, steal_delay_list_from_fallthrough,
3288         fill_slots_from_thread): Use it.
3289         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
3290         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
3291         (find_end_label): Take a new arg which is one of the two return
3292         rtxs.  Depending on which, set either function_return_label or
3293         function_simple_return_label.  All callers changed.
3294         (make_return_insns): Make both kinds.
3295         (dbr_schedule): Adjust for two kinds of end labels.
3296         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
3297         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
3298         (gen_expand, gen_split): Use ANY_RETURN_P.
3299         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
3300         * rtl.def (SIMPLE_RETURN): New code.
3301         * ifcvt.c (find_if_case_1): Be more careful about
3302         redirecting jumps to the EXIT_BLOCK.
3303         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
3304         returnjump_p_1): Handle SIMPLE_RETURNs.
3305         * print-rtl.c (print_rtx): Likewise.
3306         * rtl.c (copy_rtx): Likewise.
3307         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
3308         * combine.c (simplify_set): Likewise.
3309         * resource.c (find_dead_or_set_registers, mark_set_resources):
3310         Likewise.
3311         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
3312         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
3313         (init_emit_regs): Initialize simple_return_rtx.
3314         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
3315         force_nonfallthru_and_redirect.
3316         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
3317         (GR_SIMPLE_RETURN): New enum value.
3318         (simple_return_rtx): New macro.
3319         * basic-block.h (force_nonfallthru_and_redirect): Adjust
3320         declaration.
3321         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
3322         argument.  All callers changed.  Be careful about what kinds of
3323         returnjumps to generate.
3324         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
3325         ix86_pad_short_function): Likewise.
3326         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
3327         of return.
3328         * config/mips/mips.md (any_return): New code_iterator.
3329         (optab): Add cases for return and simple_return.
3330         (return): Expand to a simple_return.
3331         (simple_return): New pattern.
3332         (*<optab>, *<optab>_internal for any_return): New patterns.
3333         (return_internal): Remove.
3334         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
3335         a simple_return_internal.
3336
3337 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3338
3339         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
3340         (vec_extract_lo_<mode>): Prevent both operands in memory.
3341         (vec_extract_lo_v16hi): Ditto.
3342         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
3343
3344 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3345
3346         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
3347         (*sse2_mulv4si3): Ditto.
3348         (mulv2di3): Ditto.
3349         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
3350         notes to REG_EQUAL.
3351
3352 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
3353
3354         PR target/50202
3355         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
3356         when all outputs are unused.
3357         (sse4_2_pcmpistr): Ditto.
3358
3359 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3360
3361         * config/i386/i386.md (round<mode>2): New expander.
3362         * config/i386/i386.c (enum ix86_builtins): Add
3363         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
3364         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
3365         descriptions.
3366         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
3367         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
3368
3369 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
3370
3371         PR middle-end/50083
3372         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
3373         only when TARGET_C99_FUNCTIONS.
3374         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
3375         <BUILT_IN_RINT{,F,L}>: Ditto.
3376
3377 2011-08-26  Michael Matz  <matz@suse.de>
3378             Jakub Jelinek  <jakub@redhat.com>
3379
3380         PR lto/50165
3381         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
3382         don't call strlen twice, use memcpy.
3383
3384 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
3385
3386         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
3387         * config/i386/bmiintrin.h: Likewise.
3388         * config/i386/lzcntintrin.h: Likewise.
3389
3390         * config/i386/immintrin.h: Include <lzcntintrin.h>,
3391         <bmiintrin.h> and <bmi2intrin.h>.
3392
3393 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3394
3395         PR target/50166
3396         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
3397         * configure: Regenerate.
3398
3399 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3400
3401         PR c/50179
3402         * c-typeck.c (c_process_expr_stmt): Skip over nops and
3403         call mark_exp_read even if exprv is ADDR_EXPR.
3404
3405 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
3406
3407         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
3408         to df_set_dead_notes_for_mw.
3409
3410 2011-08-26  Richard Guenther  <rguenther@suse.de>
3411
3412         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
3413
3414 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
3415             Tom de Vries  <tom@codesourcery.com>
3416
3417         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
3418         (struct ivopts_data): Add loop_single_exit_p field.
3419         (niter_for_exit): Change parameter desc_p into return value.  Return
3420         desc if desc->may_be_zero.  Free desc if unused.
3421         (niter_for_single_dom_exit): Change return type.
3422         (find_induction_variables): Handle changed return type of
3423         niter_for_single_dom_exit.  Dump may_be_zero.
3424         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
3425         (set_use_iv_cost): Add and handle comp parameter.
3426         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
3427         comp argument to set_use_iv_cost.
3428         (strip_wrap_conserving_type_conversions, expr_equal_p)
3429         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
3430         (may_eliminate_iv): Add comp parameter.  Handle new return type of
3431         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
3432         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
3433         and may_eliminate_iv.
3434         (rewrite_use_compare): Move call to iv_elimination_compare to ...
3435         (may_eliminate_iv): Here.
3436         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
3437
3438 2011-08-26  Tom de Vries  <tom@codesourcery.com>
3439
3440         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
3441         accessing TREE_TYPE.
3442
3443 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
3444
3445         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
3446         (*ior_scc_scc_cmp): Likewise
3447         (*and_scc_scc): Likewise.
3448         (*and_scc_scc_cmp): Likewise.
3449         (*and_scc_scc_nodom): Likewise.
3450         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
3451
3452 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
3453
3454         * rtlanal.c (nonzero_bits1): Handle CLRSB.
3455
3456 2011-08-26  Richard Guenther  <rguenther@suse.de>
3457
3458         * expr.c (string_constant): Handle &MEM_REF.
3459
3460 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3461
3462         * config/arm/arm.c (struct four_ints): New type.
3463         (count_insns_for_constant): Delete function.
3464         (find_best_start): Delete function.
3465         (optimal_immediate_sequence): New function.
3466         (optimal_immediate_sequence_1): New function.
3467         (arm_gen_constant): Move constant splitting code to
3468         optimal_immediate_sequence.
3469         Rewrite constant negation/invertion code.
3470
3471 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
3472
3473         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
3474         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
3475         Remove prototype. Remove static function type.
3476         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
3477         Add arch attribute.
3478         * config/arm/constraints.md (Pj, PJ): New constraints.
3479
3480 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3481
3482         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
3483         ("cortex_a9_multiply_long"): New and use above.  Handle all
3484         long multiply cases.
3485         ("cortex_a9_multiply"): Handle smmul and smmulr.
3486         ("cortex_a9_mac"): Handle smmla.
3487
3488 2011-08-25  Richard Henderson  <rth@redhat.com>
3489
3490         PR 50132
3491         PR 49864
3492         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
3493         non-constant stack adjutment.
3494         * expr.c (find_args_size_adjust): Break out from ...
3495         (fixup_args_size_notes): ... here.
3496         * rtl.h (find_args_size_adjust): Declare.
3497
3498 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
3499
3500         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
3501         sse4 and sse4_noavx.
3502         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
3503         (*pushdf_rex64): Change Y2 register constraint to x.
3504         (*movdf_internal_rex64): Ditto.
3505         (*zero_extendsidi2_rex64): Ditto.
3506         (*movdi_internal): Change Y2 register constraint to x
3507         and update "isa" attribute.
3508         (*pushdf): Ditto.
3509         (*movdf internal): Ditto.
3510         (zero_extendsidi2_1): Ditto.
3511         (*truncdfdf_mixed): Ditto.
3512         (*truncxfdf2_mixed): Ditto.
3513         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
3514         register constraint to x.
3515         (*movv2sf_internal_rex64): Ditto.
3516         (*mov<mode>_internal): Change Y2 register constraint to x
3517         and add "isa" attribute.
3518         (*movv2sf_internal): Ditto.
3519         (*vec_extractv2si_1): Ditto.
3520         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
3521         constraints to x and update "isa" attribute.
3522         (*vec_interleave_highv2df): Change Y3 registerconstraint
3523         to x and update "isa" attribute.
3524         (*vec_interleave_lowv2df): Ditto.
3525         (*vec_concatv2df): Change Y2 register constraint to x and
3526         update "isa" attribute.
3527         (sse2_loadld): Ditto.
3528         (*vec_extractv2di_1): Ditto.
3529         (*vec_dupv4si): Ditto.
3530         (*vec_dupv2di): Ditto.
3531         (*vec_concatv4si): Ditto.
3532         (vec_concatv2di): Ditto.
3533         * config/i386/constraints.md (Y2): Remove.
3534         (Y3): Ditto.
3535         (Y4): Ditto.
3536
3537 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3538
3539         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
3540         dump_def_use_chain): Don't declare.
3541         (mark_conflict, create_new_chain): Move before users.
3542         (regrename_optimize): Move to near end of file.
3543
3544 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3545
3546         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
3547         (secondary_input_reload_class): Remove Prototype.
3548         * config/avr/avr.c (byte_immediate_operand): Remove Function.
3549         * config/avr/avr.md (setmemhi): Use u8_operand.
3550         (strlenhi): Use const0_rtx for comparison.
3551         * config/avr/avr.h (avr_reg_order): Remove Declaration.
3552
3553 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3554
3555         * config/avr/avr.c (reg_class_tab): Make local to
3556         avr_regno_reg_class.  Return smallest register class available.
3557
3558 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3559
3560         * config/avr/avr.c (STR_PREFIX_P): New Define.
3561         (avr_asm_declare_function_name): Use it.
3562         (avr_asm_named_section): Use it.
3563         (avr_section_type_flags): Use it.
3564
3565 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3566
3567         * doc/md.texi (automata_option): Document collapse-ndfa.
3568         * genautomata.c (COLLAPSE_OPTION): New macro.
3569         (collapse_flag): New static variable.
3570         (struct description): New member normal_decls_num.
3571         (struct automaton): New members advance_ainsn and collapse_ainsn.
3572         (gen_automata_option): Check for COLLAPSE_OPTION.
3573         (collapse_ndfa_insn_decl): New static variable.
3574         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
3575         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
3576         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
3577         necessary.  Use normal_decls_num rather than decls_num, remove
3578         test for special decls.
3579         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
3580         (make_automaton); Likewise.  Use the new advance_cycle_insn member
3581         of struct automaton.
3582         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
3583         is set.
3584         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
3585         transition.  Create the necessary transitions for it.
3586         (create_ainsns): Return void.  Take an automaton_t argument, and
3587         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
3588         callers changed.
3589         (COLLAPSE_NDFA_VALUE_NAME): New macro.
3590         (output_tables): Output code to define it.
3591         (output_internal_insn_code_evaluation): Output code to accept
3592         const0_rtx as collapse-ndfa transition.
3593         (output_default_latencies, output_print_reservation_func,
3594         output_print_description): Reorganize loops to use normal_decls_num
3595         as loop bound; remove special case for advance_cycle_insn_decl.
3596         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
3597         (check_automata_insn_issues): Check for collapse_ainsn.
3598         (expand_automate): Allocate sufficient space.  Initialize
3599         normal_decls_num.
3600
3601 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
3602
3603         * config/avr/avr.md: Fix indentation from r177991.
3604
3605 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
3606
3607         * regrename.c (struct du_head): Remove member terminated.
3608         (create_new_chain): Don't initialize it.
3609         (scan_rtx_reg): Don't set or test it, test the open_chains_set
3610         bitmap instead.
3611         (tick, this_tick): New global variables, moved out of
3612         regrename_optimize.
3613         (current_id, open_chains, closed_chains, open_chains_set,
3614         live_in_chains, live_hard_regs): Reorder declarations.
3615         (dump_def_use_chain): Move function earlier in the file.
3616         (rename_chains): New static function, broken out of
3617         regrename_optimize.
3618         (regrename_optimize): Use it.  Remove #if 0'ed code.
3619
3620 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3621
3622         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
3623
3624 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
3625
3626         PR target/50172
3627         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
3628
3629 2011-08-24  Richard Guenther  <rguenther@suse.de>
3630
3631         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
3632         ref in the basic-block case.  Move stripping array-refs
3633         to the place we create an access-function for it.  Remove
3634         bogus stripping down a MEM_REF to its base.
3635
3636 2011-08-24  Richard Guenther  <rguenther@suse.de>
3637
3638         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
3639         with -fno-strict-overflow.
3640
3641 2011-08-24  Richard Guenther  <rguenther@suse.de>
3642
3643         * tree-vectorizer.c (vect_print_dump_info): Avoid the
3644         file and location clutter when dumping to dump files.
3645
3646 2011-08-24  Simon Baldwin  <simonb@google.com>
3647
3648         * gengtype-state.c (write_state): Remove timestamped header line.
3649
3650 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3651
3652         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3653         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3654         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3655         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3656         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3657         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3658         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3659         rules.
3660         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3661
3662 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3663
3664         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3665
3666 2011-08-24  Richard Guenther  <rguenther@suse.de>
3667
3668         PR tree-optimization/50067
3669         * tree-data-ref.c (dr_analyze_indices): Do not add an access
3670         function for a MEM_REF base that has no evolution in the loop
3671         nest or that is not analyzable.
3672
3673 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
3674
3675         * ira.c (ira_init_register_move_cost): Check small subclasses
3676         through ira_reg_class_max_nregs and ira_available_class_regs.
3677
3678 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3679
3680         * config/i386/constraints.md (Yp): New register constraint.
3681         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3682         Yp register constraint.
3683         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3684         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3685         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3686
3687 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3688
3689         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3690
3691 2011-08-23  Mark Heffernan  <meheff@google.com>
3692
3693         PR middle-end/38509
3694         * common.opt (Wfree-nonheap-object): New option.
3695         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3696         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3697         to warning.
3698         (expand_builtin): Make warning conditional.
3699
3700 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3701
3702         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3703         (length_immediate): Handle imulx, ishiftx and rotatex.
3704         (imm_disp): Ditto.
3705         (isa): Add bmi2.
3706         (enabled): Handle bmi2.
3707         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3708         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
3709         (*bmi2_umulditi3_1): New insn pattern.
3710         (*bmi2_umulsidi3_1): Ditto.
3711         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3712         (*bmi2_ashl<mode>3_1): New insn pattern.
3713         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3714         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3715         (*bmi2_ashlsi3_1_zext): New insn pattern.
3716         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3717         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3718         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3719         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3720         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3721         flags dependency.
3722         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3723         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3724         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3725         flags dependency.
3726         (*bmi2_rorx<mode>3_1): New insn pattern.
3727         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3728         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3729         (*rotatert<mode>3_1 splitter): Ditto.
3730         (*bmi2_rorxsi3_1_zext): New insn pattern.
3731         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3732         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3733         (*rotatertsi3_1_zext splitter): Ditto.
3734
3735 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3736
3737         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3738         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3739         (ix86_handle_option): Handle OPT_mbmi2 case.
3740         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3741         (x86_64-*-*): Likewise.
3742         * config/i386/bmi2intrin.h: New file.
3743         * config/i386/cpuid.h (bit_BMI2): New.
3744         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3745         BMI2 feature.
3746         * config/i386/i386-c.c (ix86_target_macros_internal):
3747         Conditionally define __BMI2__.
3748         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3749         Handle BMI2 option.
3750         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3751         (print_reg): New code.
3752         (ix86_print_operand): Likewise.
3753         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3754         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3755         IX86_BUILTIN_PEXT64.
3756         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3757         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3758         IX86_BUILTIN_PEXT64.
3759         * config/i386/i386.h (TARGET_BMI2): New.
3760         * config/i386/i386.md (UNSPEC_PDEP): New.
3761         (UNSPEC_PEXT): Likewise.
3762         (*bmi2_bzhi_<mode>3): Likewise.
3763         (*bmi2_pdep_<mode>3): Likewise.
3764         (*bmi2_pext_<mode>3): Likewise.
3765         * config/i386/i386.opt (mbmi2): New.
3766         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3767         is defined.
3768         * doc/extend.texi: Document BMI2 built-in functions.
3769         * doc/invoke.texi: Document -mbmi2.
3770
3771 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
3772
3773         PR middle-end/50161
3774         * simplify-rtx.c (simplify_const_unary_operation): If
3775         op is CONST_INT, don't look at op_mode, but use instead mode.
3776         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3777         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3778         operation and TRUNCATE/ZERO_EXTEND if needed.
3779         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3780         Document that operand mode must be same as operation mode,
3781         or VOIDmode.
3782         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3783         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3784         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3785         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3786         use the mode of operand for the operation and add truncate
3787         or zero_extend around if needed.
3788         * config/c6x/c6x.md (ctzdi2): Likewise.
3789         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3790
3791 2011-08-12  Michael Matz  <matz@suse.de>
3792
3793         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3794         (gimple_expand_cfg): Merge alignment info for coalesced pointer
3795         SSA names.
3796
3797 2011-08-23  Richard Guenther  <rguenther@suse.de>
3798
3799         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3800         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3801         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3802         from ...
3803         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3804         (mem_refs_may_alias_p): Adjust.
3805         * tree-data-ref.h (dr_may_alias_p): Adjust.
3806         * tree-data-ref.c: Include tree-affine.h.
3807         (dr_analyze_indices): Do nothing for the non-loop case.
3808         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
3809         more cases in the non-loop case.
3810         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3811         calls to dr_may_alias_p.
3812         (write_alias_graph_to_ascii_ecc): Likewise.
3813         (write_alias_graph_to_ascii_dot): Likewise.
3814         (build_alias_set_optimal_p): Likewise.
3815
3816 2011-08-23  Richard Guenther  <rguenther@suse.de>
3817
3818         PR tree-optimization/50162
3819         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3820
3821 2011-08-23  Richard Guenther  <rguenther@suse.de>
3822
3823         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3824         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3825         (create_data_ref): Also dump access functions for the created data-ref.
3826
3827 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
3828             Kirill Yukhin  <kirill.yukhin@intel.com>
3829
3830         PR target/50155
3831         * config/i386/sse.md (VI_AVX2): New.
3832         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3833         (*<plusminus_insn><mode>3): Ditto.
3834         (<sse2_avx2>_andnot<mode>3): Ditto.
3835         (*andnot<mode>3): Fix order of cond operands.
3836         Add asserts for correct TARGET_xxx.
3837         (*<any_logic:code><mode>3): Ditto.
3838
3839 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
3840
3841         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3842         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3843         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3844         regclass argument type to reg_class_t. Change 'max' and 'v' vars
3845         and return types to unsigned char. Use reg_class_contents instead
3846         of class_contents.
3847         (TARGET_CLASS_MAX_NREGS): Define.
3848
3849 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
3850
3851         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3852         to make computed_jump_p return true.
3853
3854 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3855
3856         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3857         (PICFLAG_FOR_TARGET): Substitute.
3858         * aclocal.m4: Regenerate.
3859         * configure: Regenerate.
3860
3861 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
3862
3863         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3864         after reading in the pch.
3865
3866 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
3867
3868         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3869         * configure: Regenerated.
3870
3871 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
3872
3873         PR tree-optimization/50133
3874         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3875         from stmt instead of some statement around gsi.
3876
3877         PR middle-end/50141
3878         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3879         innerdecl is a VAR_DECL.
3880
3881 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3882
3883         * config/i386/avx2intrin.h: New file.
3884         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3885         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3886         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3887         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3888         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3889         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3890         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3891         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3892         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3893         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3894         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3895         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3896         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3897         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3898         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3899         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3900         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3901         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3902         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3903         VOID_FTYPE_PV8SI_V8SI_V8SI,
3904         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3905         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3906         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3907         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3908         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3909         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3910         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3911         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3912         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3913         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3914         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3915         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3916         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3917         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3918         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3919         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3920         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3921         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3922         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3923         V4DI_FTYPE_V4DI_INT_CONVERT,
3924         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3925         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3926         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3927         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3928         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3929         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3930         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3931         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3932         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3933         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3934         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3935         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3936         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3937         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3938         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3939         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3940         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3941         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3942         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3943         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3944         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3945         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3946         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3947         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3948         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3949         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3950         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3951         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3952         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3953         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3954         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3955         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3956         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3957         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3958         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3959         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3960         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3961         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3962         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3963         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3964         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3965         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3966         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3967         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3968         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3969         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3970         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3971         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3972         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3973         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3974         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3975         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3976         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3977         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3978         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3979         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3980         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3981         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3982         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3983         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3984         IX86_BUILTIN_VBROADCASTSS_PS256,
3985         IX86_BUILTIN_VBROADCASTSD_PD256,
3986         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3987         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3988         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3989         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3990         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3991         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3992         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3993         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3994         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3995         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3996         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3997         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3998         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3999         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4000         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4001         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4002         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4003         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
4004         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
4005         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
4006         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
4007         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
4008         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
4009         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
4010         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
4011         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
4012         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
4013         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
4014         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
4015         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
4016         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
4017         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
4018         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
4019         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
4020         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
4021         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
4022         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
4023         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
4024         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
4025         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
4026         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
4027         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
4028         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
4029         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
4030         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
4031         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
4032         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
4033         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
4034         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
4035         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
4036         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
4037         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
4038         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
4039         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
4040         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
4041         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
4042         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
4043         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
4044         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
4045         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
4046         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
4047         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
4048         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
4049         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
4050         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
4051         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
4052         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
4053         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
4054         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
4055         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
4056         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
4057         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
4058         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
4059         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
4060         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
4061         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
4062         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
4063         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
4064         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
4065         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
4066         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
4067         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
4068         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
4069         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
4070         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
4071         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
4072         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
4073         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
4074         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
4075         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
4076         IX86_BUILTIN_VBROADCASTSD_PD256,
4077         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
4078         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
4079         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
4080         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
4081         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
4082         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
4083         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
4084         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
4085         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
4086         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
4087         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
4088         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
4089         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
4090         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
4091         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
4092         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
4093         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
4094         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
4095         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
4096         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
4097         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
4098         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
4099         IX86_BUILTIN_GATHERDIV8SI.
4100         (ix86_preferred_simd_mode): Support AVX2 modes.
4101         (ix86_expand_args_builtin): Support AVX2 builtins.
4102         (ix86_expand_special_args_builtin): Likewise.
4103         (ix86_expand_builtin): Likewise.
4104         * config/i386/i386.md (UNSPEC_VPERMSI): New.
4105         (UNSPEC_VPERMDF): Likewise.
4106         (UNSPEC_VPERMSF): Likewise.
4107         (UNSPEC_VPERMDI): Likewise.
4108         (UNSPEC_VPERMTI): Likewise.
4109         (UNSPEC_GATHER): Likewise.
4110         (ssemodesuffix): Extend.
4111         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
4112         is defined.
4113         * config/i386/predicates.md (const1248_operand): New.
4114         * config/i386/sse.md (VI1_AVX2): New mode iterator.
4115         (VI2_AVX2): Likewise.
4116         (VI4_AVX2): Likewise.
4117         (VI8_AVX2): Likewise.
4118         (VIMAX_AVX2): Likewise.
4119         (SSESCALARMODE): Likewise.
4120         (VI12_AVX2): Likewise.
4121         (VI24_AVX2): Likewise.
4122         (VI124_AVX2): Likewise.
4123         (VI248_AVX2): Likewise.
4124         (VI48_AVX2): Likewise.
4125         (VI4SD_AVX2): Likewise.
4126         (V48_AVX2): Likewise.
4127         (AVX256MODE2P): Likewise.
4128         (AVXMODE48P_DI): Likewise.
4129         (sse2_avx2): New mode attribute.
4130         (ssse3_avx2): Likewise.
4131         (sse4_1_avx2): Likewise.
4132         (avx_avx2): Likewise.
4133         (ssebytemode): Likewise.
4134         (AVXTOSSEMODE): Likewise.
4135         (AVXMODE48P_DI): Likewise.
4136         (gthrfirstp): Likewise.
4137         (gthrlastp): Likewise.
4138         (lshift): New code_iterator
4139         (lshift): New code attribute.
4140         (lshift): Likewise.
4141         (ssescalarmodesuffix): Update.
4142         (sseunpackmode): Likewise.
4143         (ssepackmode): Likewise.
4144         (avx2_vec_dupv4sf): New insn pattern.
4145         (avx2_vec_dupv8sf): Likewise.
4146         (avx2_interleave_highv4di): Likewise.
4147         (avx2_interleave_lowv4di): Likewise.
4148         (avx2_umulv4siv4di3): Likewise
4149         (*avx2_umulv4siv4di3): Likewise
4150         (avx2_pmaddwd): Likewise.
4151         (*avx2_pmaddwd): Likewise.
4152         (avx2_lshrqv4di3): Likewise.
4153         (avx2_lshlqv4di3): Likewise.
4154         (avx2_lshl<mode>3): Likewise.
4155         (avx2_<umaxmin:code><mode>3): Likewise.
4156         (*avx2_<umaxmin:code><mode>3): Likewise.
4157         (avx2_<smaxmin:code><mode>3): Likewise.
4158         (*avx2_<smaxmin:code><mode>3): Likewise.
4159         (avx2_eq<mode>3): Likewise.
4160         (*avx2_eq<mode>3): Likewise.
4161         (avx2_gt<mode>3): Likewise.
4162         (avx2_interleave_highv32qi): New.
4163         (avx2_interleave_lowv32qi): Likewise.
4164         (avx2_interleave_highv16hi): Likewise.
4165         (avx2_interleave_lowv16hi): Likewise.
4166         (avx2_interleave_highv8si): Likewise.
4167         (avx2_interleave_lowv8si): Likewise.
4168         (avx2_pshufd): Likewise.
4169         (avx2_pshufd_1): Likewise.
4170         (avx2_pshuflwv3): Likewise.
4171         (avx2_pshuflw_1): Likewise.
4172         (avx2_pshufhwv3): Likewise.
4173         (avx2_pshufhw_1): Likewise.
4174         (avx2_uavgv32qi3): Likewise.
4175         (*avx2_uavgv32qi3): Likewise.
4176         (avx2_uavgv16hi3): Likewise.
4177         (*avx2_uavgv16hi3): Likewise.
4178         (avx2_pmovmskb): Likewise.
4179         (avx2_phaddwv16hi3): Likewise.
4180         (avx2_phadddv8si3): Likewise.
4181         (avx2_phaddswv16hi3): Likewise.
4182         (avx2_phsubwv16hi3): Likewise.
4183         (avx2_phsubdv8si3): Likewise.
4184         (avx2_phsubswv16hi3): Likewise.
4185         (avx2_pmaddubsw256): Likewise.
4186         (avx2_umulhrswv16hi3): Likewise.
4187         (*avx2_umulhrswv16hi3): Likewise.
4188         (avx2_packusdw): Likewise.
4189         (avx2_pblendd<mode>): Likewise.
4190         (avx2_<code>v16qiv16hi2): Likewise.
4191         (avx2_<code>v8qiv8si2): Likewise.
4192         (avx2_<code>v8hiv8si2): Likewise.
4193         (avx2_<code>v4qiv4di2): Likewise.
4194         (avx2_<code>v4hiv4di2): Likewise.
4195         (avx2_<code>v4siv4di2): Likewise.
4196         (avx2_pbroadcast<mode>): Likewise.
4197         (avx2_permvarv8si): Likewise.
4198         (avx2_permv4df): Likewise.
4199         (avx2_permvarv8sf): Likewise.
4200         (avx2_permv4di): Likewise.
4201         (avx2_permv2ti): Likewise.
4202         (avx2_vec_dupv4df): Likewise.
4203         (avx2_vbroadcasti128_<mode>): Likewise.
4204         (avx2_vec_set_lo_v4di): Likewise.
4205         (avx2_vec_set_hi_v4di): Likewise.
4206         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
4207         (avx2_extracti128): Likewise.
4208         (avx2_inserti128): Likewise.
4209         (avx2_ashrvv8si): Likewise.
4210         (avx2_ashrvv4si): Likewise.
4211         (avx2_<lshift>vv8si): Likewise.
4212         (avx2_<lshift>v<mode>): Likewise.
4213         (avx2_<lshift>vv2di): Likewise.
4214         (avx2_gathersi<mode>): Likewise.
4215         (*avx2_gathersi<mode>): Likewise.
4216         (avx2_gatherdi<mode>): Likewise.
4217         (*avx2_gatherdi<mode>): Likewise.
4218         (avx2_gatherdi<mode>256): Likewise.
4219         (*avx2_gatherdi<mode>256): Likewise.
4220         (<plusminus_insn><mode>3): Use VI mode iterator.
4221         (*<plusminus_insn><mode>3): Use VI mode iterator.
4222         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4223         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4224         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
4225         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
4226         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
4227         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
4228         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
4229         Use VI2_AVX2 mode iterator.
4230         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
4231         Use VI2_AVX2 mode iterator.
4232         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
4233         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
4234         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
4235         Use VI4_AVX2 mode iterator.
4236         (ashr<mode>3): Use VI24_AVX2 mode iterator.
4237         (lshr<mode>3): Use VI248_AVX2 mode iterator.
4238         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
4239         Use VIMAX_AVX2 mode iterator.
4240         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
4241         Use VI mode iterator.
4242         (*andnot<mode>3): Update for AVX2.
4243         (*<any_logic:code><mode>3): Likewise.
4244         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
4245         Use VI1_AVX mode iterator.
4246         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
4247         Use VI2_AVX mode iterator.
4248         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
4249         Use VI1_AVX mode iterator.
4250         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
4251         Use VI8_AVX2 mode iterator.
4252         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
4253         Use VI1_AVX2 mode iterator.
4254         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
4255         Use VI124_AVX2 mode iterator.
4256         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
4257         Use SSESCALARMODE mode iterator.
4258         (abs<mode>2): Use VI124_AVX2 mode iterator.
4259         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
4260         Use VI8_AVX2 mode iterator.
4261         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
4262         Use VI1_AVX2 mode iterator.
4263         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
4264         Use VI1_AVX2 mode iterator.
4265         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
4266         Use VI2_AVX2 mode iterator.
4267         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
4268         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
4269         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
4270         avx_maskstore<ssemodesuffix><avxsizesuffix>.
4271         Use V48_AVX2 mode iterator.
4272         * doc/extend.texi: Document AVX2 built-in functions.
4273         * doc/invoke.texi: Document -mavx2.
4274
4275 2011-08-22  Matthias Klose <doko@debian.org>
4276
4277         Revert:
4278         2011-07-11  Arthur Loiret  <aloiret@debian.org>
4279                     Matthias Klose <doko@debian.org>
4280         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4281         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4282         convention.
4283         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4284
4285 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
4286
4287         PR bootstrap/50146
4288         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
4289         to #ifndef HONOR_REG_ALLOC_ORDER block.
4290
4291 2011-08-21  Richard Henderson  <rth@redhat.com>
4292
4293         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
4294         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
4295         * resource.c (next_insn_no_annul): Likewise.
4296         (mark_set_resources): Likewise.
4297         * reorg.c (delete_from_delay_slot): Likewise.
4298         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
4299         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
4300
4301 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
4302
4303         * config/i386/i386.md (any_div): Remove.
4304         (sgnprefix): Update for removal.
4305         (u): Ditto.
4306
4307 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
4308
4309         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
4310         for ira_reg_class_max_nregs.  Increase pressure by 1.
4311         (mark_pseudo_regno_subword_dead): Use allocno class
4312         for ira_reg_class_max_nregs.
4313
4314 2011-08-20  Richard Henderson  <rth@redhat.com>
4315
4316         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4317         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
4318         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
4319         config/c6x/ltf.c: Adjust include path for soft-fp.
4320
4321 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4322
4323         PR other/46770
4324         * config.gcc (tm_file): Add initfini-array.h if
4325         .init_arrary/.fini_array are supported.
4326
4327         * crtstuff.c: Don't generate .ctors nor .dtors sections if
4328         USE_INITFINI_ARRAY is defined.
4329
4330         * output.h (default_elf_init_array_asm_out_constructor): New.
4331         (default_elf_fini_array_asm_out_destructor): Likewise.
4332         * varasm.c (elf_init_array_section): Likewise.
4333         (elf_fini_array_section): Likewise.
4334         (get_elf_initfini_array_priority_section): Likewise.
4335         (default_elf_init_array_asm_out_constructor): Likewise.
4336         (default_elf_fini_array_asm_out_destructor): Likewise.
4337
4338         * config/initfini-array.h: New.
4339
4340 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4341
4342         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
4343         OK for ST_REGS and FP_REGS before taking those classes into account.
4344
4345 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4346
4347         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
4348         before checking for annulled branches.
4349
4350 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4351
4352         * config/i386/i386.c (ix86_binary_operator_ok): Use
4353         satisfies_constraint_L.
4354
4355 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
4356             Michael Matz  <matz@suse.de>
4357
4358         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
4359         trunc (a + copysign (nextafter (0.5, 0.0), a)).
4360
4361 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
4362
4363         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4364         * doc/tm.texi: Regenerate.
4365         * targhooks.c (default_preferred_output_reload_class): Don't use
4366         PREFERRED_OUTPUT_RELOAD_CLASS macro.
4367         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
4368
4369 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
4370
4371         PR tree-optimization/48739
4372         * tree-ssa.c: Include cfgloop.h.
4373         (execute_update_addresses_taken): When updating ssa, if in loop closed
4374         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
4375         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
4376
4377 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
4378
4379         PR rtl-optimization/49936
4380         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
4381         for calculation of max register move costs.
4382
4383 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4384
4385         * c-parser.c (c_parser_postfix_expression): Convert operands of
4386         __builtin_complex to their semantic types.
4387
4388 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4389
4390         PR middle-end/49721
4391         * explow.c (convert_memory_address_addr_space): Also permute the
4392         conversion and addition of constant for zero-extend.
4393
4394 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4395
4396         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
4397         * doc/extend.texi (__builtin_complex): Document.
4398
4399 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4400
4401         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
4402         beyond conversions.
4403         (convert_mult_to_widen): Convert constant inputs to the right type.
4404         (convert_plusminus_to_widen): Don't automatically reject inputs that
4405         are not an SSA_NAME.
4406         Convert constant inputs to the right type.
4407
4408 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4409
4410         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
4411         to the correct type.
4412
4413 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4414
4415         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
4416         unsigned inputs of different modes.
4417         (convert_plusminus_to_widen): Likewise.
4418
4419 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4420
4421         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
4422         'type'.
4423         Use 'type' from caller, not inferred from 'rhs'.
4424         Don't reject non-conversion statements. Do return lhs in this case.
4425         (is_widening_mult_p): Add new argument 'type'.
4426         Use 'type' from caller, not inferred from 'stmt'.
4427         Pass type to is_widening_mult_rhs_p.
4428         (convert_mult_to_widen): Pass type to is_widening_mult_p.
4429         (convert_plusminus_to_widen): Likewise.
4430
4431 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4432
4433         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
4434         Ensure the the larger type is the first operand.
4435
4436 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4437
4438         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
4439         unsupported unsigned multiplies to signed.
4440         (convert_plusminus_to_widen): Likewise.
4441
4442 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4443
4444         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
4445         conversion statement separating multiply-and-accumulate.
4446
4447 2011-08-19  Richard Guenther  <rguenther@suse.de>
4448
4449         PR tree-optimization/50067
4450         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
4451         offset only if we accounted for it.
4452
4453 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4454
4455         * config/arm/arm.md (maddhidi4): Remove '*' from name.
4456         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
4457         * optabs.c (find_widening_optab_handler_and_mode): New function.
4458         (expand_widen_pattern_expr): Use find_widening_optab_handler.
4459         (expand_binop_directly): Likewise.
4460         (expand_binop): Likewise.
4461         * optabs.h (find_widening_optab_handler): New macro define.
4462         (find_widening_optab_handler_and_mode): New prototype.
4463         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
4464         type precision rules.
4465         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
4466         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
4467         (is_widening_mult_rhs_p): Allow widening by more than one mode.
4468         Explicitly disallow mis-matched input types.
4469         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
4470         input types to fit the new handler.
4471         (convert_plusminus_to_widen): Likewise.
4472
4473 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
4474
4475         * expr.c (expand_expr_real_2): Use widening_optab_handler.
4476         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
4477         (gen_insn): $N now means $a must be wider than $b, not consecutive.
4478         * optabs.c (widened_mode): New function.
4479         (expand_widen_pattern_expr): Use widening_optab_handler.
4480         (expand_binop_directly): Likewise.
4481         (expand_binop): Likewise.
4482         * optabs.h (widening_optab_handlers): New struct.
4483         (optab_d): New member, 'widening'.
4484         (widening_optab_handler): New function.
4485         (set_widening_optab_handler): New function.
4486         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
4487         widening_optab_handler.
4488         (convert_plusminus_to_widen): Likewise.
4489
4490 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4491
4492         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
4493         pedantic.
4494         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
4495         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
4496
4497 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
4498
4499         * opth-gen.awk: Do not declare target save/restore structures and
4500         functions if IN_RTS defined.
4501
4502 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4503
4504         PR target/49437
4505         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
4506         when stack was realigned in interrupt handler prologue.
4507
4508 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
4509
4510         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
4511         (quals_from_declspecs): Assert _Noreturn not present.
4512         (grokdeclarator): Handle _Noreturn.
4513         (build_null_declspecs): Initialize noreturn_p.
4514         (declspecs_add_scspec): Handle RID_NORETURN.
4515         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
4516         (c_parser_attributes): Handle RID_NORETURN.
4517         * c-tree.h (struct c_declspecs): Add noreturn_p.
4518         * ginclude/stdnoreturn.h: New.
4519         * Makefile.in (USER_H): Add stdnoreturn.h.
4520
4521 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4522
4523         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
4524         (OPTION_MASK_ISA_AVX_UNSET): Update.
4525         (OPTION_MASK_ISA_AVX2_UNSET): New.
4526         (ix86_handle_option): Handle OPT_mavx2 case.
4527         * config/i386/cpuid.h (bit_AVX2): New.
4528         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4529         AVX2 feature.
4530         * config/i386/i386-c.c (ix86_target_macros_internal):
4531         Conditionally define __AVX2__.
4532         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
4533         Define "core-avx2" processor alias.  Handle avx2 option.
4534         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
4535         * config/i386/i386.h (TARGET_AVX2): New.
4536         * config/i386/i386.opt (mavx2): New.
4537         * doc/invoke.texi: Document -mavx2.
4538
4539 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
4540
4541         PR rtl-optimization/49890
4542         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
4543         subclasses of class which is superset of a pressure class.
4544
4545 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4546             Igor Zamyatin <igor.zamyatin@intel.com>
4547
4548         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
4549         with HOST_WIDE_INT for isa_flag.
4550         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
4551         isa variables.
4552
4553         * config/i386/i386.c (ix86_target_string): Replace int with
4554         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
4555         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
4556         (pta_flags): Removed.
4557         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
4558         (pta): Use HOST_WIDE_INT on flags.
4559         (builtin_isa): Use HOST_WIDE_INT on isa.
4560         (ix86_add_new_builtins): Likewise.
4561         (def_builtin): Use HOST_WIDE_INT on mask.
4562         (def_builtin_const): Likewise.
4563         (builtin_description): Likewise.
4564
4565         * config/i386/i386.opt (ix86_isa_flags): Replace int with
4566         HOST_WIDE_INT.
4567         (ix86_isa_flags_explicit): Likewise.
4568         (x_ix86_isa_flags_explicit): Likewise.
4569
4570 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
4571
4572         PR rtl-optimization/50107
4573         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
4574         (ira_hard_reg_in_set_p): New.
4575
4576         * ira-color.c (calculate_saved_nregs): New.
4577         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
4578         hard regs.
4579         (allocno_reload_assign, fast_allocation): Use
4580         ira_hard_reg_set_intersection_p instead of
4581         ira_hard_reg_not_in_set_p.
4582
4583         * ira.c (setup_reg_renumber): Use
4584         ira_hard_reg_set_intersection_p instead of
4585         ira_hard_reg_not_in_set_p.
4586         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
4587         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
4588
4589         * ira-costs.c (ira_tune_allocno_costs): Use
4590         ira_hard_reg_set_intersection_p instead of
4591         ira_hard_reg_not_in_set_p.
4592
4593 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4594             Igor Zamyatin <igor.zamyatin@intel.com>
4595
4596         * hwint.h (HOST_WIDE_INT_1): New.
4597
4598         * opt-functions.awk (switch_bit_fields): Initialize the
4599         host_wide_int field.
4600         (host_wide_int_var_name): New.
4601         (var_type_struct): Check and return HOST_WIDE_INT.
4602
4603         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
4604
4605         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
4606
4607         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
4608         check masks for HOST_WIDE_INT.
4609
4610         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
4611         (option_enabled): Likewise.
4612         (get_option_state): Likewise.
4613
4614         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
4615         to HOST_WIDE_INT.
4616
4617 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4618             Marc Glisse  <marc.glisse@normalesup.org>
4619
4620         PR libstdc++-v3/1773
4621         * target.def (decl_mangling_context): New C++ hook.
4622         * doc/tm.texi: Regenerate.
4623         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
4624         * config/sol2-protos.h: Group by source file.
4625         (solaris_cxx_decl_mangling_context): Declare.
4626         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
4627         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
4628         Use $<.
4629         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
4630         Add sol2-stubs.o to extra_objs.
4631
4632 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
4633
4634         PR target/50009
4635         * stor-layout.c (update_alignment_for_field): Don't ICE on
4636         packed flexible array members if ms_bitfield_layout_p.
4637
4638         PR target/50092
4639         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
4640         on the result before returning it.
4641
4642         PR debug/50017
4643         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4644         is a debug stmt, use location of the first non-debug stmt after it.
4645
4646 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4647
4648         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4649         (arm_size_rtx_costs): Likewise.
4650
4651 2011-08-18  Richard Guenther  <rguenther@suse.de>
4652
4653         * tree.h (tree_int_cst_msb): Remove.
4654         * tree.c (tree_int_cst_msb): Likewise.
4655         (tree_int_cst_sign_bit): Move from ...
4656         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4657
4658 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4659
4660         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4661         * doc/tm.texi: Regenerate.
4662         * target.def (rtx_costs): Add an opno parameter.
4663         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4664         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4665         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4666         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4667         * cse.c (COST_IN): Add an opno parameter.
4668         (notreg_cost): Likewise.  Update call to rtx_cost.
4669         (COST, fold_rtx): Update accordingly.
4670         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4671         * expmed.c (emit_store_flag): Likewise.
4672         * optabs.c (avoid_expensive_constant): Add an opno parameter.
4673         Update call to rtx_cost.
4674         (expand_binop_directly, expand_binop): Likewise.
4675         (expand_twoval_binop, prepare_cmp_insn): Likewise.
4676         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4677         (set_src_cost, get_full_set_src_cost): Update accordingly.
4678         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
4679         to target hook.
4680         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
4681         (default_adress_cost): Update calls to rtx_cost.
4682
4683         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4684         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4685         (arm_rtx_costs): Add an opno parameter.
4686         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4687         adjust any recursive rtx-cost calls.
4688         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4689         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4690         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4691         * config/cris/cris.c (cris_rtx_costs): Likewise.
4692         * config/frv/frv.c (frv_rtx_costs): Likewise.
4693         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4694         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4695         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4696         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4697         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4698         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4699         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4700         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4701         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4702         * config/mep/mep.c (mep_rtx_cost): Likewise.
4703         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4704         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4705         (mips_zero_extend_cost): Add an opno parameter.
4706         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4707         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4708         to rtx_cost.
4709         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4710         rtx-cost calls.
4711         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4712         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4713         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4714         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4715         (rs6000_debug_rtx_costs): Likewise.
4716         * config/s390/s390.c (s390_rtx_costs): Likewise.
4717         * config/score/score-protos.h (score_rtx_costs): Likewise.
4718         * config/score/score.c (score_rtx_costs): Likewise.
4719         * config/sh/sh.c (andcosts): Update call to rtx_cost.
4720         (sh_rtx_costs): Add an opno parameter.
4721         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4722         * config/spu/spu.c (spu_rtx_costs): Likewise.
4723         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4724         * config/v850/v850.c (v850_rtx_costs): Likewise.
4725         * config/vax/vax.c (vax_rtx_costs): Likewise.
4726         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4727
4728 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4729
4730         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4731         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4732         rtx_cost.
4733         * calls.c (precompute_register_parameters): Likewise.
4734         * combine.c (expand_compound_operation, make_extraction): Likewise.
4735         (force_to_mode, distribute_and_simplify_rtx): Likewise.
4736         * dse.c (find_shift_sequence): Likewise.
4737         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4738         * expr.c (compress_float_constant): Likewise.
4739         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4740         * gcse.c (want_to_gcse_p): Likewise.
4741         * ifcvt.c (noce_try_sign_mask): Likewise.
4742         * loop-doloop.c (doloop_optimize): Likewise.
4743         * loop-invariant.c (create_new_invariant): Likewise.
4744         * optabs.c (avoid_expensive_constant): Likewise.
4745         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4746         (try_replace_in_use, reload_cse_move2add): Likewise.
4747         * reload1.c (calculate_elim_costs_all_insns): Likewise.
4748         (note_reg_elim_costly): Likewise.
4749         * rtlanal.c (insn_rtx_cost): Likewise.
4750         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4751         * stmt.c (lshift_cheap_p): Likewise.
4752         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4753         * config/avr/avr.c (final_prescan_insn): Likewise.
4754         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4755         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4756
4757 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4758
4759         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4760         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4761         * cfgloopanal.c (seq_cost): Likewise.
4762         * loop-invariant.c (create_new_invariant): Likewise.
4763         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4764         (reload_cse_move2add): Use get_full_set_rtx_cost.
4765
4766 2011-08-18  Richard Guenther  <rguenther@suse.de>
4767
4768         * expr.c (get_inner_reference): Fix typo in last change.
4769
4770 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4771             Joseph Myers  <joseph@codesourcery.com>
4772
4773         PR tree-optimization/49963
4774         * hwint.c (absu_hwi): Define.
4775         * hwint.h (absu_hwi): Declare.
4776         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4777         of abs_hwi.
4778         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4779         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4780
4781 2011-08-18  Richard Guenther  <rguenther@suse.de>
4782
4783         * expr.c (get_inner_reference): Sign-extend the constant
4784         twos-complement offset before doing arbitrary precision
4785         arithmetic on it.
4786         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4787         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4788         to get_constraint_for_ptr_offset.
4789
4790 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4791
4792         PR target/50068
4793         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4794
4795 2011-08-17  Richard Guenther  <rguenther@suse.de>
4796
4797         * tree.h (convert_to_ptrofftype_loc): New function.
4798         (convert_to_ptrofftype): Define.
4799         * builtins.c (expand_builtin_bzero): Use size_type_node.
4800         (fold_builtin_bzero): Likewise.
4801         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4802         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4803         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4804         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4805         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4806         * fold-const.c (build_range_check): Negate using the original type.
4807         (fold_unary_loc): Use fold_build_pointer_plus_loc.
4808         * gimple-fold.c (gimple_adjust_this_by_delta): Use
4809         convert_to_ptrofftype.
4810         * gimplify.c (gimplify_self_mod_expr): Likewise.
4811         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4812         (graphite_create_new_loop_guard): Likewise.
4813         * graphite-sese-to-poly.c (my_long_long): Remove.
4814         (scop_ivs_can_be_represented): Adjust.
4815         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4816         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4817         * tree-loop-distribution.c (build_size_arg_loc): Use
4818         size_type_node.
4819         (generate_memset_zero): Simplify.
4820         * tree-mudflap.c: Use fold_convert, not convert.
4821         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4822         its own type.
4823         (determine_offset): Likewise for DR_STEP.
4824         (valid_initializer_p): Likewise.
4825         * tree-profile.c (prepare_instrumented_value): Convert the pointer
4826         to an integer type of same size.
4827         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4828         to sizetype without need.
4829         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4830         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4831         * tree-ssa-loop-manip.c (create_iv): Likewise.
4832         (determine_exit_conditions): Adjust comment.
4833         * tree-ssa-pre.c (create_expression_by_pieces): Use
4834         convert_to_ptrofftype.
4835         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4836         * varasm.c (array_size_for_constructor): Compute using double_ints.
4837
4838 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4839
4840         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4841         when generating an integer result where possible.  Short-cut
4842         comparison against 0 also for QImode.
4843
4844 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4845
4846         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4847         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4848         prototype.
4849         * config/spu/spu.c (spu_legitimize_reload_address): New function.
4850         (spu_legitimate_address_p): Do not check displacement if the base
4851         is an eliminable stack register.
4852
4853 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
4854
4855         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4856         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4857         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4858         m32c_preferred_output_reload_class): Remove.
4859         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4860         Change rclass argument and return types to reg_class_t. Use
4861         reg_class_subset_p instead of class_sizes.
4862         (m32c_preferred_output_reload_class): Make static. Change rclass
4863         argument and return types to reg_class_t.
4864         (TARGET_PREFERRED_RELOAD_CLASS,
4865         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4866
4867 2011-08-16  Kai Tietz  <ktietz@redhat.com>
4868
4869         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4870
4871 2011-08-16  Richard GUenther  <rguenther@suse.de>
4872
4873         PR tree-optimization/50082
4874         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4875         warnings here, instead of ...
4876         (ssa_forward_propagate_and_combine): ... here.
4877         (forward_propagate_into_comparison_1): Adjust.
4878         (forward_propagate_into_comparison): Likewise.
4879         (forward_propagate_into_gimple_cond): Likewise.
4880         (forward_propagate_into_cond): Likewise.
4881
4882 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4883
4884         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4885         instead of ggc_alloc_zone_vec_rtvec_def.
4886
4887 2011-08-16  Richard Guenther  <rguenther@suse.de>
4888
4889         * tree.h (ptrofftype_p): New helper function.
4890         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4891         offset verification.
4892         (verify_gimple_assign_binary): Likewise.
4893         * tree.c (build2_stat): Likewise.
4894         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4895         (reset_evolution_in_loop): Likewise.
4896         * tree-chrec.h (build_polynomial_chrec): Likewise.
4897
4898 2011-08-16  Liang Wang  <lwang1@marvell.com>
4899
4900         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4901         ggc_alloc_zone_vec_rtvec_def.
4902
4903 2011-08-16  Richard Guenther  <rguenther@suse.de>
4904
4905         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4906         helper factored out from ...
4907         (extract_range_from_binary_expr_1): ... here.  Re-structure
4908         to not glob handling too different tree codes.
4909
4910 2011-08-15  Richard Henderson  <rth@redhat.com>
4911
4912         PR middle-end/50006
4913         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4914         setting out to include allocate_stack named pattern as well.
4915         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4916         * stmt.c (expand_stack_restore): Likewise.
4917
4918 2011-08-15  Richard Guenther  <rguenther@suse.de>
4919
4920         PR middle-end/50082
4921         * fold-const.c (maybe_canonicalize_comparison_1): Properly
4922         convert the modified operand to the other operand type.
4923         (fold_comparison): Call maybe_canonicalize_comparison_1 with
4924         useless conversions stripped from comparison operands.
4925
4926 2011-08-15  Richard Guenther  <rguenther@suse.de>
4927
4928         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4929         (extract_range_from_unary_expr_1): Restructure.
4930
4931 2011-08-15  Richard Guenther  <rguenther@suse.de>
4932
4933         PR tree-optimization/50058
4934         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4935         copy matching.
4936
4937 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4938
4939         PR target/50022
4940         * config/arm/arm.c (output_move_double): Add 2 parameters
4941         to count the number of insns emitted and whether to emit or not.
4942         Use the flag to decide when to emit and count number of instructions
4943         that will be emitted.
4944         Handle case where output_move_double might be called for calculating
4945         lengths with an invalid constant.
4946         (arm_count_output_move_double_insns): Define.
4947         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4948         (output_move_double): Adjust prototype.
4949         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4950         output_move_double.
4951         ("*movdi_vfp_cortexa8"): Likewise and add attribute
4952         for ce_count.
4953         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4954         ("*movdf_soft_insn"): Likewise.
4955         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4956         ("*cirrus_thumb2_movdi"): Likewise.
4957         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4958         ("*cirrus_movdf_hard_insn"): Likewise.
4959         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4960         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4961         ("mov<mode>_internal VMMX"): Likewise.
4962         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4963
4964 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
4965
4966         * config/i386/i386.c (ix86_expand_round_sse4): New function.
4967         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4968         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4969         for TARGET_ROUND.
4970
4971         (rint<mode>2): Simplify TARGET_ROUND check.
4972         (floor<mode>2): Ditto.
4973         (ceil<mode>2): Ditto.
4974         (btrunc<mode>2): Ditto.
4975
4976 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
4977
4978         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4979         as mmix_preferred_output_reload_class.
4980
4981 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
4982
4983         * PR target/49903
4984         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4985         (branch_unspec): New insn.
4986         (branch): Beauty farm.
4987         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
4988         to be IF_THEN_ELSE.
4989         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4990         New static functions.
4991         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
4992         Use CONST_INT_P.  Beauty.
4993
4994 2011-08-12  Richard Henderson  <rth@redhat.com>
4995
4996         PR rtl-opt/49994
4997         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4998         * sched-deps.c (init_deps): Clear it.
4999         (deps_analyze_insn): Consume it.
5000         (sched_analyze_insn): Fill it.
5001
5002 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5003
5004         PR target/48328
5005         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
5006         for tbh instructions.
5007
5008 2011-08-12  Diego Novillo  <dnovillo@google.com>
5009
5010         * data-streamer.h (streamer_write_zero): Rename from output_zero.
5011         (streamer_write_uhwi): Rename from lto_output_uleb128.
5012         (streamer_write_hwi): Rename from output_sleb128.
5013         (streamer_write_string): Rename from lto_output_string.
5014         (streamer_string_index): Rename from lto_string_index.
5015         (streamer_write_string_with_length): Rename from
5016         lto_output_string_with_length.
5017         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
5018         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
5019         (streamer_read_string): Rename from lto_input_string.
5020         (streamer_read_indexed_string): Rename from input_string_internal.
5021         (streamer_read_uhwi): Rename from lto_input_uleb128.
5022         (streamer_read_hwi): Rename from lto_input_sleb128.
5023         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
5024         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
5025         (streamer_write_enum): Rename from lto_output_enum.
5026         (streamer_read_enum): Rename from lto_input_enum.
5027         (streamer_write_record_start): Rename from output_record_start.
5028         (streamer_read_record_start): Rename from input_record_start.
5029         (streamer_write_bitpack): Rename from lto_output_bitpack.
5030         (streamer_read_bitpack): Rename from lto_input_bitpack.
5031         (streamer_write_char_stream): Rename from lto_output_1_stream.
5032         (streamer_read_uchar): Rename from lto_input_1_unsigned.
5033         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
5034         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
5035         (streamer_read_string_cst): Rename from input_string_cst.
5036         (streamer_read_chain): Rename from lto_input_chain.
5037         (streamer_alloc_tree): Rename from lto_materialize_tree.
5038         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
5039         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
5040         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
5041         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
5042         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
5043         (streamer_write_chain): Rename from lto_output_chain.
5044         (streamer_write_tree_header): Rename from lto_output_tree_header.
5045         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
5046         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
5047         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
5048         (streamer_write_builtin): Rename from lto_output_builtin_tree.
5049         (streamer_check_handled_ts_structures): Rename from
5050         check_handled_ts_structures.
5051         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
5052         (streamer_tree_cache_insert_at): Rename from
5053         lto_streamer_cache_insert_at.
5054         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
5055         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
5056         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
5057         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
5058         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
5059         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
5060         (write_identifier): Rename from output_identifier.
5061         (write_ts_common_tree_pointers): Rename from
5062         lto_output_ts_common_tree_pointers.
5063         (write_ts_vector_tree_pointers): Rename from
5064         lto_output_ts_vector_tree_pointers.
5065         (write_ts_complex_tree_pointers): Rename from
5066         lto_output_ts_complex_tree_pointers.
5067         (write_ts_decl_minimal_tree_pointers): Rename from
5068         lto_output_ts_decl_minimal_tree_pointers.
5069         (write_ts_decl_common_tree_pointers): Rename from
5070         lto_output_ts_decl_common_tree_pointers.
5071         (write_ts_decl_non_common_tree_pointers): Rename from
5072         lto_output_ts_decl_non_common_tree_pointers.
5073         (write_ts_decl_with_vis_tree_pointers): Rename from
5074         lto_output_ts_decl_with_vis_tree_pointers.
5075         (write_ts_field_decl_tree_pointers): Rename from
5076         lto_output_ts_field_decl_tree_pointers.
5077         (write_ts_function_decl_tree_pointers): Rename from
5078         lto_output_ts_function_decl_tree_pointers.
5079         (write_ts_type_common_tree_pointers): Rename from
5080         lto_output_ts_type_common_tree_pointers.
5081         (write_ts_type_non_common_tree_pointers): Rename from
5082         lto_output_ts_type_non_common_tree_pointers.
5083         (write_ts_list_tree_pointers): Rename from
5084         lto_output_ts_list_tree_pointers.
5085         (write_ts_vec_tree_pointers): Rename from
5086         lto_output_ts_vec_tree_pointers.
5087         (write_ts_exp_tree_pointers): Rename from
5088         lto_output_ts_exp_tree_pointers.
5089         (write_ts_block_tree_pointers): Rename from
5090         lto_output_ts_block_tree_pointers.
5091         (write_ts_binfo_tree_pointers): Rename from
5092         lto_output_ts_binfo_tree_pointers.
5093         (write_ts_constructor_tree_pointers): Rename from
5094         lto_output_ts_constructor_tree_pointers.
5095         (write_ts_target_option): Rename from lto_output_ts_target_option.
5096         (write_ts_translation_unit_decl_tree_pointers): Rename from
5097         lto_output_ts_translation_unit_decl_tree_pointers.
5098         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
5099         Rename from lto_streamer_cache_add_to_node_array.
5100         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
5101         (record_common_node): Rename from lto_record_common_node.
5102
5103         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
5104         declarations.
5105         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
5106         function.
5107         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
5108         unused function.
5109         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
5110         (ipa-reference.o): Likewise.
5111         * lto-section-out.c: Include data-streamer.h.
5112         * ipa-reference.c: Include data-streamer.h.
5113
5114 2011-08-12  Nick Clifton  <nickc@redhat.com>
5115
5116         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
5117         * doc/md.texi (cmpstrn): Note that the comparison stops if both
5118         fetched bytes are zero.
5119         (cmpstr): Likewise.
5120         (cmpmem): Note that the comparison does not stop if both of the
5121         fetched bytes are zero.
5122
5123 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
5124
5125         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
5126         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
5127         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
5128         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
5129         to integer_type_node.
5130         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
5131         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
5132         * builtins.c (expand_builtin_in): Ditto.
5133         (mathfn_built_in_1): Ditto.
5134         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
5135         BUILT_IN_IFLOOR.
5136         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
5137         BUILT_IN_IROUND.
5138         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
5139         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
5140         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
5141
5142 2011-08-12  Richard Guenther  <rguenther@suse.de>
5143
5144         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
5145
5146 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
5147
5148         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
5149
5150 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
5151
5152         * config/arm/arm.c (get_label_padding): New function.
5153         (create_fix_barrier, arm_reorg): Use it.
5154
5155 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
5156
5157         PR target/49781
5158         * config/i386/i386.md (*lea_5_zext): New.
5159         (*lea_6_zext): Ditto.
5160         * config/i386/predicates.md (const_32bit_mask): New predicate.
5161         (lea_address_operand): Reject AND.
5162         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
5163         const_32bit_mask immediate.
5164         (ix86_print_operand_address): Handle AND.
5165         (memory_address_length): Ditto.
5166
5167 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
5168             Brian Hackett  <bhackett1024@gmail.com>
5169
5170         * plugin.def: Add event for finish_decl.
5171         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
5172         * c-decl.c (finish_decl): Invoke callbacks on above event.
5173         * doc/plugins.texi: Document above event.
5174
5175 2011-08-11  Richard Guenther  <rguenther@suse.de>
5176
5177         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
5178         lookups, make looking through aggregate copies stronger.
5179
5180 2011-08-11  Richard Henderson  <rth@redhat.com>
5181
5182         PR bootstrap/50018
5183         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
5184
5185 2011-08-11  Richard Guenther  <rguenther@suse.de>
5186
5187         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
5188         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
5189         (vrp_visit_stmt): Likewise.
5190
5191 2011-08-11  Richard Guenther  <rguenther@suse.de>
5192
5193         PR middle-end/50040
5194         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
5195         load of the other piece with TREE_NO_WARNING.
5196         * tree-flow.h (warn_uninit): Adjust prototype.
5197         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
5198         the base variable and the expression that is used separately.
5199         Properly query all TREE_NO_WARNING flags.
5200         (struct walk_data): Remove.
5201         (warn_uninitialized_var): Likewise.
5202         (warn_uninitialized_vars): Do not walk gimple pieces but simply
5203         look at all SSA uses of the statement.  Handle unused memory
5204         separately.
5205         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
5206
5207 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5208
5209         * config/rx/rx.md (movsicc): Allow register to register transfers.
5210         (*movsicc): Likewise.
5211         (*stcc): Restrict this pattern to EQ and NE compares.
5212         (*stcc_reg): New pattern.  Works for any comparison but only for
5213         register transfers.
5214
5215 2011-08-11   Diego Novillo  <dnovillo@google.com>
5216
5217         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
5218         Call stream_write_tree instead of output_record_start.
5219         (lto_output_ts_binfo_tree_pointers): Likewise.
5220
5221         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
5222         Convert it to a macro.
5223         (stream_read_tree): Likewise.
5224
5225         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
5226         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
5227
5228         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
5229         and tree_read_bitfields.
5230         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
5231         (lto_write_tree): Call it.
5232         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
5233         * streamer-hooks.h (struct streamer_hooks): Remove fields
5234         name, is_streamable and alloc_tree. Update all users.
5235         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
5236         (lto_materialize_tree): ... here.
5237         Handle CALL_EXPR codes.
5238         Remove call to lto_streamer_cache_append.
5239         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
5240         * tree-streamer.h (tree_read_bitfields): Declare.
5241
5242         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
5243         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
5244         * tree-streamer.h (stream_read_tree): New.  Replace all calls
5245         to lto_input_tree with it.
5246         (stream_write_tree): New.  Replace all calls to lto_output_tree,
5247         lto_output_tree_ref and lto_output_tree_or_ref with it.
5248         * lto-streamer-in.c (lto_read_tree): Inline code from
5249         lto_streamer_read_tree.
5250         (lto_input_tree): Move from tree-streamer-in.c.
5251         * lto-streamer-out.c (lto_output_tree_ref): Make static.
5252         Remove handling of NULL values for EXPR.
5253         Do not handle EXPRs that are not indexable.
5254         (lto_write_tree): Move from tree-streamer-out.c.
5255         Inline lto_streamer_write_tree.
5256         (lto_output_tree): Move from tree-streamer-out.c.
5257         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
5258         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
5259         (lto_preload_common_nodes): Likewise.
5260         Remove assertions and adjustments for nodes
5261         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
5262         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
5263         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
5264         * lto-streamer.h (lto_input_tree): Declare.
5265         (lto_output_tree_ref): Remove.
5266         * streamer-hooks.h (struct streamer_hooks): Remove fields
5267         preload_common_nodes, indexable_with_decls_p,
5268         pack_value_fields, unpack_value_fields and output_tree_header.
5269         Update all users.
5270         * tree-streamer-in.c (lto_materialize_tree): Make extern.
5271         (lto_input_tree_pointers): Likewise.
5272         (lto_read_tree): Move to lto-streamer-in.c.
5273         (lto_input_integer_cst): Make extern.
5274         (lto_get_pickled_tree): Likewise.
5275         (lto_get_builtin_tree): Likewise.
5276         (lto_input_tree): Move to lto-streamer-in.c.
5277         * tree-streamer-out.c (pack_value_fields): Make extern.
5278         (lto_output_tree_or_ref): Remove.  Replace all callers with
5279         calls to stream_write_tree.
5280         (lto_output_builtin_tree): Make extern.
5281         (lto_streamer_write_tree): Inline into lto_write_tree.
5282         (lto_output_tree_pointers): Make extern.
5283         (lto_output_tree_header): Likewise.
5284         (lto_output_integer_cst): Likewise.
5285         (lto_write_tree): Move to lto-streamer-out.c.
5286         (lto_output_tree): Likewise.
5287         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
5288         (preload_common_nodes): Likewise.
5289         (lto_streamer_cache_create): Call it.
5290         * tree-streamer.h: Include streamer-hooks.h.
5291         (stream_write_tree): New.
5292         (stream_read_tree): New.
5293         (lto_input_tree): Remove.
5294         (lto_materialize_tree): Declare.
5295         (lto_input_tree_pointers): Declare.
5296         (lto_get_pickled_tree): Declare.
5297         (lto_get_builtin_tree): Declare.
5298         (lto_input_integer_cst): Declare.
5299         (lto_output_tree_header): Declare.
5300         (pack_value_fields): Declare.
5301         (lto_output_tree_pointers): Declare.
5302         (lto_output_integer_cst): Declare.
5303         (lto_output_builtin_tree): Declare.
5304
5305 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5306
5307         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5308         only if producer writes to the register given by regno.
5309
5310 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5311             Alexander Monakov  <amonakov@ispras.ru>
5312
5313         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
5314         (sched_get_condition_with_rev_uncached): ... this.  Factor out
5315         condition caching logic into ...
5316         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
5317         attempt to use cache for instructions with zero luid.
5318         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
5319         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
5320
5321 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5322
5323         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
5324         get_seqno_for_a_jump.  Update the caller.
5325         (get_seqno_by_succs): New.  Use it ...
5326         (get_seqno_for_a_jump): ... here to find a seqno if looking at
5327         predecessors was not sufficient.
5328         (get_seqno_by_preds): Include head in iteration range, exclude insn.
5329
5330 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5331
5332         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
5333
5334 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5335
5336         * sel-sched-ir.h (register_unavailable_p): Declare.
5337         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
5338         (set_unavailable_target_for_expr): ... here to properly test
5339         availability of a register.
5340         (speculate_expr): Ditto.
5341         * sel-sched.c (substitute_reg_in_expr): Ditto.
5342         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
5343
5344 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
5345
5346         * sel-sched.c (verify_target_availability): Fix usage of
5347         hard_regno_nregs.
5348
5349 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5350
5351         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
5352         recognized by cannot_copy_insn_p hook and volatile instructions.
5353
5354 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
5355
5356         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
5357
5358 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
5359
5360         * doc/md.texi (define_bypass): Say that the instruction names can
5361         be filename-style globs.
5362         * Makefile.in (FNMATCH_H): Define.
5363         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
5364         * genattrtab.c: Include fnmatch.h.
5365         (bypass_list): Change field name from "insn" to "pattern".
5366         (gen_bypass_1): Update accordingly.
5367         (process_bypasses): Use fnmatch to check for matches between
5368         insn reservations and define_bypasses.
5369         * genautomata.c: Include fnmatch.h.
5370         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
5371         and out_pattern respectively.
5372         (gen_bypass, insert_bypass): Update accordingly.
5373         (for_each_matching_insn, process_bypass_2, process_bypass_1)
5374         (process_bypass): New functions.
5375         (process_decls): Use process_bypass.  Update after field name changes.
5376
5377 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
5378
5379         PR target/49687
5380         * config/avr/avr.md (smulqi3_highpart): New insn.
5381         (umulqi3_highpart): New insn.
5382         (*subqi3.ashiftrt7): New insn.
5383         (smulhi3_highpart): New expander.
5384         (umulhi3_highpart): Nex expander.
5385         (*smulhi3_highpart_call): New insn.
5386         (*umulhi3_highpart_call): New insn.
5387         (extend_u): New code attribute.
5388         (extend_prefix): Rename code attribute to extend_su.
5389         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
5390         widening QI/HI multiply.
5391
5392 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
5393
5394         PR tree-optimization/50039
5395         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
5396         that DEF_STMT has a stmt_vec_info.
5397
5398 2011-08-10  Richard Guenther  <rguenther@suse.de>
5399
5400         * tree.h (can_trust_pointer_alignment): Remove.
5401         * builtins.c (can_trust_pointer_alignment): Remove.
5402
5403 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5404
5405         * c-typeck.c (scalar_to_vector): New function. Try scalar to
5406         vector conversion.
5407         (stv_conv): New enum for scalar_to_vector return type.
5408         (build_binary_op): Adjust.
5409         * doc/extend.texi: Description of scalar to vector expansion.
5410
5411 2011-08-10  Richard Guenther  <rguenther@suse.de>
5412
5413         * tree.h (get_pointer_alignment): Remove max-align argument.
5414         (get_object_alignment): Likewise.
5415         * builtins.c (get_object_alignment_1): Adjust.
5416         (get_object_alignment): Remove max-align argument.
5417         (get_pointer_alignment): Likewise.
5418         (expand_builtin_strlen): Adjust.
5419         (expand_builtin_memcpy): Likewise.
5420         (expand_builtin_mempcpy_args): Likewise.
5421         (expand_builtin_strncpy): Likewise.
5422         (expand_builtin_memset_args): Likewise.
5423         (expand_builtin_memcmp): Likewise.
5424         (expand_builtin_strcmp): Likewise.
5425         (expand_builtin_strncmp): Likewise.
5426         (get_builtin_sync_mem): Likewise.
5427         (fold_builtin_memset): Likewise.
5428         (fold_builtin_memory_op): Likewise.
5429         (expand_builtin_memory_chk): Likewise.
5430         * emit-rtl.c (get_mem_align_offset): Likewise.
5431         (set_mem_attributes_minus_bitpos): Likewise.
5432         * expr.c (expand_assignment): Likewise.
5433         (expand_expr_real_1): Likewise.
5434         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
5435         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
5436         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
5437         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5438         * value-prof.c (gimple_stringops_transform): Likewise.
5439
5440 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
5441
5442         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
5443         * doc/tm.texi: Regenerate.
5444
5445 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
5446
5447         PR target/29560
5448         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
5449         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
5450         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
5451         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
5452         shift target is unused.
5453
5454 2011-08-10  Richard Guenther  <rguenther@suse.de>
5455
5456         PR tree-optimization/49937
5457         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
5458         using get_object_alignment_1.
5459
5460 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5461
5462         * config/i386/i386.c (ix86_emit_i387_round): New function.
5463         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
5464         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
5465         Use ix86_emit_i387_round to expand round function for i387 math.
5466         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
5467         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
5468
5469 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5470
5471         * config/sync.c: Move to ../libgcc.
5472         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
5473         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
5474         Remove.
5475
5476 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5477
5478         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
5479         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
5480         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
5481         Change 'from' and 'to' arguments type to reg_class_t.
5482         (TARGET_REGISTER_MOVE_COST): Define.
5483
5484 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
5485
5486         PR target/50026
5487         Revert:
5488         PR rtl-optimization/49990
5489         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5490         ignore classes which can not change mode.
5491         (find_costs_and_classes): Ditto.
5492
5493 2011-08-09  Richard Guenther  <rguenther@suse.de>
5494
5495         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
5496         information for ranges with only negative values.
5497         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
5498         BIT_AND_EXPR handling to handle ranges with negative values.
5499
5500 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5501
5502         * config/i386/i386.c: Remove traling spaces.
5503         * config/i386/sse.md: Likewise.
5504         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
5505         (*fma_fmsub_<mode>): Likewise.
5506         (*fma_fnmadd_<mode>): Likewise.
5507         (*fma_fnmsub_<mode>): Likewise.
5508
5509 2011-08-09  Nick Clifton  <nickc@redhat.com>
5510
5511         * config/rx/rx.md: Disable extender peepholes at -O3.
5512
5513 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
5514
5515         PR target/49781
5516         * config/i386/i386.md (reload_noff_load): New.
5517         (reload_noff_store): Ditto.
5518         * config/i386/i386.c (ix86_secondary_reload): Use
5519         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
5520         double-word moves from/to non-offsetable addresses instead of
5521         generating XMM temporary.
5522
5523 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
5524
5525         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
5526
5527 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
5528
5529         PR tree-optimization/50014
5530         * tree-vect-loop.c (vectorizable_reduction): Get def type before
5531         calling vect_get_vec_def_for_stmt_copy ().
5532
5533 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
5534
5535         PR rtl-optimization/49990
5536         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
5537         ignore classes which can not change mode.
5538         (find_costs_and_classes): Ditto.
5539
5540 2011-08-08  Richard Henderson  <rth@redhat.com>
5541
5542         PR middle-end/49990
5543         * config/i386/i386.c (ix86_expand_prologue): Call
5544         for SEH target gen_prologue_use instead of gen_blockage
5545         at prologue's end.
5546
5547 2011-08-08  Martin Jambor  <mjambor@suse.cz>
5548
5549         PR middle-end/49923
5550         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
5551         memory alignment.
5552
5553 2011-08-08   Diego Novillo  <dnovillo@google.com>
5554
5555         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
5556         (DATA_STREAMER_H): New.
5557         (GIMPLE_STREAMER_H): New.
5558         (TREE_STREAMER_H): New.
5559         (STREAMER_HOOKS_H): New.
5560         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
5561         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
5562         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
5563         (data-streamer.o): New.
5564         (data-streamer-in.o): New.
5565         (data-streamer-out.o): New.
5566         (gimple-streamer-in.o): New.
5567         (gimple-streamer-out.o): New.
5568         (streamer-hooks.o): New.
5569         (tree-streamer.o): New.
5570         (tree-streamer-in.o): New.
5571         (tree-streamer-out.o): New.
5572         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5573         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
5574         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5575         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
5576         GIMPLE_STREAMER_H and TREE_STREAMER_H.
5577         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
5578         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
5579         (ipa-inline-analysis.o): Likewise.
5580         (ipa-pure-const.o): Likewise.
5581         * data-streamer-in.c: New.
5582         * data-streamer-out.c: New.
5583         * data-streamer.c: New.
5584         * data-streamer.h: New.
5585         * gimple-streamer-in.c: New.
5586         * gimple-streamer-out.c: New.
5587         * gimple-streamer.h: New.
5588         * ipa-inline-analysis.c: Include data-streamer.h.
5589         * ipa-prop.c: Include data-streamer.h.
5590         * ipa-pure-const.c: Include data-streamer.h.
5591         * lto-cgraph.c: Include data-streamer.h.
5592         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
5593         (lto_input_widest_uint_uleb128): Likewise.
5594         (lto_input_sleb128): Likewise.
5595         (bp_unpack_var_len_unsigned): Likewise.
5596         (bp_unpack_var_len_int): Likewise.
5597         * lto-section-out.c (lto_output_uleb128_stream): Move to
5598         data-streamer-out.c.
5599         (lto_output_widest_uint_uleb128_stream): Likewise.
5600         (lto_output_sleb128_stream): Likewise.
5601         (bp_pack_var_len_unsigned): Likewise.
5602         (bp_pack_var_len_int): Likewise.
5603         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
5604         (struct string_slot): Remove.  Update all users.
5605         (lto_tag_check_set): Make extern.
5606         (lto_tag_check_range): Move to lto-streamer.h.
5607         (lto_tag_check): Likewise.
5608         (hash_string_slot_node): Remove.  Update all users.
5609         (eq_string_slot_node): Remove.  Update all users.
5610         (string_for_index): Move to data-streamer-in.c
5611         (input_string_internal): Likewise.
5612         (input_string_cst): Move to tree-streamer-in.c.
5613         (input_identifier): Likewise.
5614         (lto_input_string): Move to data-streamer-in.c
5615         (input_record_start): Move to data-streamer.h
5616         (canon_file_name): Use new definition of struct string_slot
5617         from data-streamer.h.  Set S_SLOT.LEN.
5618         (lto_input_location): Make extern.
5619         (lto_input_chain): Move to tree-streamer-in.c.
5620         (lto_init_eh): Make extern.
5621         (input_phi): Move to gimple-streamer-in.c.
5622         (input_gimple_stmt): Likewise.
5623         (input_bb): Likewise.
5624         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
5625         (unpack_ts_real_cst_value_fields): Likewise.
5626         (unpack_ts_fixed_cst_value_fields): Likewise.
5627         (unpack_ts_decl_common_value_fields): Likewise.
5628         (unpack_ts_decl_wrtl_value_fields): Likewise.
5629         (unpack_ts_decl_with_vis_value_fields): Likewise.
5630         (unpack_ts_function_decl_value_fields): Likewise.
5631         (unpack_ts_type_common_value_fields): Likewise.
5632         (unpack_ts_block_value_fields): Likewise.
5633         (unpack_ts_translation_unit_decl_value_fields): Likewise.
5634         (unpack_value_fields): Likewise.
5635         (lto_materialize_tree): Likewise.
5636         (lto_input_ts_common_tree_pointers): Likewise.
5637         (lto_input_ts_vector_tree_pointers): Likewise.
5638         (lto_input_ts_complex_tree_pointers): Likewise.
5639         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5640         (lto_input_ts_decl_common_tree_pointers): Likewise.
5641         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
5642         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5643         (lto_input_ts_field_decl_tree_pointers): Likewise.
5644         (lto_input_ts_function_decl_tree_pointers): Likewise.
5645         (lto_input_ts_type_common_tree_pointers): Likewise.
5646         (lto_input_ts_type_non_common_tree_pointers): Likewise.
5647         (lto_input_ts_list_tree_pointers): Likewise.
5648         (lto_input_ts_vec_tree_pointers): Likewise.
5649         (lto_input_ts_exp_tree_pointers): Likewise.
5650         (lto_input_ts_block_tree_pointers): Likewise.
5651         (lto_input_ts_binfo_tree_pointers): Likewise.
5652         (lto_input_ts_constructor_tree_pointers): Likewise.
5653         (lto_input_ts_target_option): Likewise.
5654         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5655         (lto_input_tree_pointers): Likewise.
5656         (lto_get_pickled_tree): Likewise.
5657         (lto_get_builtin_tree): Likewise.
5658         (lto_read_tree): Likewise.
5659         (lto_input_integer_cst): Likewise.
5660         (lto_input_tree): Likewise.
5661         * lto-streamer-out.c: Include data-streamer.h,
5662         gimple-streamer.h and streamer-hooks.h.
5663         (struct string_slot): Move to data-streamer.h.
5664         (hash_string_slot_node): Likewise.
5665         (eq_string_slot_node): Likewise.
5666         (lto_string_index): Move to data-streamer-out.c.
5667         (lto_output_string_with_length): Likewise.
5668         (lto_output_string): Likewise.
5669         (output_string_cst): Move to tree-streamer-out.c.
5670         (output_identifier): Likewise.
5671         (output_zero): Move to data-streamer-out.c
5672         (output_uleb128): Likewise.
5673         (output_sleb128): Likewise.
5674         (output_record_start): Move to data-streamer.h
5675         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5676         (pack_ts_real_cst_value_fields): Likewise.
5677         (pack_ts_fixed_cst_value_fields): Likewise.
5678         (pack_ts_decl_common_value_fields): Likewise.
5679         (pack_ts_decl_wrtl_value_fields): Likewise.
5680         (pack_ts_decl_with_vis_value_fields): Likewise.
5681         (pack_ts_function_decl_value_fields): Likewise.
5682         (pack_ts_type_common_value_fields): Likewise.
5683         (pack_ts_block_value_fields): Likewise.
5684         (pack_ts_translation_unit_decl_value_fields): Likewise.
5685         (pack_value_fields): Likewise.
5686         (lto_output_chain): Likewise.
5687         (lto_output_ts_common_tree_pointers): Likewise.
5688         (lto_output_ts_vector_tree_pointers): Likewise.
5689         (lto_output_ts_complex_tree_pointers): Likewise.
5690         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5691         (lto_output_ts_decl_common_tree_pointers): Likewise.
5692         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5693         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5694         (lto_output_ts_field_decl_tree_pointers): Likewise.
5695         (lto_output_ts_function_decl_tree_pointers): Likewise.
5696         (lto_output_ts_type_common_tree_pointers): Likewise.
5697         (lto_output_ts_type_non_common_tree_pointers): Likewise.
5698         (lto_output_ts_list_tree_pointers): Likewise.
5699         (lto_output_ts_vec_tree_pointers): Likewise.
5700         (lto_output_ts_exp_tree_pointers): Likewise.
5701         (lto_output_ts_block_tree_pointers): Likewise.
5702         (lto_output_ts_binfo_tree_pointers): Likewise.
5703         (lto_output_ts_constructor_tree_pointers): Likewise.
5704         (lto_output_ts_target_option): Likewise.
5705         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5706         (lto_output_tree_pointers): Likewise.
5707         (lto_output_tree_header): Likewise.
5708         (lto_output_builtin_tree): Likewise.
5709         (lto_write_tree): Likewise.
5710         (lto_output_integer_cst): Likewise.
5711         (lto_output_tree): Likewise.
5712         (output_phi): Move to gimple-streamer-out.c.
5713         (output_gimple_stmt): Likewise.
5714         (output_bb): Likewise.
5715         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5716         (streamer_hooks): Move to streamer-hooks.c.
5717         (check_handled_ts_structures): Move to tree-streamer.c
5718         (lto_streamer_cache_add_to_node_array): Likewise.
5719         (lto_streamer_cache_insert_1): Likewise.
5720         (lto_streamer_cache_insert): Likewise.
5721         (lto_streamer_cache_insert_at): Likewise.
5722         (lto_streamer_cache_append): Likewise.
5723         (lto_streamer_cache_lookup): Likewise.
5724         (lto_streamer_cache_get): Likewise.
5725         (lto_record_common_node): Likewise.
5726         (lto_preload_common_nodes): Likewise.
5727         (lto_streamer_cache_create): Likewise.
5728         (lto_streamer_cache_delete): Likewise.
5729         (streamer_hooks_init): Move to streamer-hooks.c.
5730         * lto-streamer.h: Include diagnostic.h
5731         (struct output_block, struct lto_input_block,
5732         struct data_in, struct bitpack_d): Remove forward declarations.
5733         (struct bitpack_d): Move to data-streamer.h.
5734         (struct lto_streamer_cache_d): Move to tree-streamer.h.
5735         (struct streamer_hooks): Move to streamer-hooks.h.
5736         (bp_pack_var_len_unsigned): Move to data-streamer.h.
5737         (bp_pack_var_len_int): Likewise.
5738         (bp_unpack_var_len_unsigned): Likewise.
5739         (bp_unpack_var_len_int): Likewise.
5740         (lto_input_location): Declare.
5741         (lto_tag_check_set): Declare.
5742         (lto_init_eh): Declare.
5743         (lto_output_tree_ref): Declare.
5744         (lto_output_location): Declare.
5745         (bitpack_create): Move to data-streamer.h.
5746         (bp_pack_value): Likewise.
5747         (lto_output_bitpack): Likewise.
5748         (lto_input_bitpack): Likewise.
5749         (bp_unpack_value): Likewise.
5750         (lto_output_1_stream): Likewise.
5751         (lto_input_1_unsigned): Likewise.
5752         (lto_output_int_in_range): Likewise.
5753         (lto_input_int_in_range): Likewise.
5754         (bp_pack_int_in_range): Likewise.
5755         (bp_unpack_int_in_range): Likewise.
5756         (lto_output_enum): Likewise.
5757         (lto_input_enum): Likewise.
5758         (bp_pack_enum): Likewise.
5759         (bp_unpack_enum): Likewise.
5760         * streamer-hooks.c: New.
5761         * streamer-hooks.h: New.
5762         * tree-streamer-in.c: New.
5763         * tree-streamer-out.c: New.
5764         * tree-streamer.c: New.
5765         * tree-streamer.h: New.
5766
5767 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5768
5769         * gthr-posix95.h: Remove.
5770         * gthr.h [_PTHREADS95]: Remove.
5771         * configure.ac (enable_threads): Remove posix95.
5772         * configure: Regenerate.
5773         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5774
5775 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
5776
5777         PR target/49781
5778         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5779         SImode addresses.
5780         (ix86_print_operand_address): Handle zero-extended addresses.
5781         (memory_address_length): Add length of addr32 prefix for
5782         zero-extended addresses.
5783         (ix86_secondary_reload): Handle moves to/from double-word general
5784         registers from/to zero-extended addresses.
5785         * config/i386/predicates.md (lea_address_operand): Reject
5786         zero-extended operands.
5787
5788 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5789
5790         PR other/48007
5791         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5792
5793         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5794         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5795
5796         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5797         (_Unwind_Context_Reg_Val): Likewise.
5798         (_Unwind_Get_Unwind_Word): Likewise.
5799         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5800         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5801         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5802         for EXTENDED_CONTEXT_BIT.
5803         (__frame_state_for): Likewise.
5804         (uw_init_context_1): Likewise.
5805         (_Unwind_GetGR): Updated.
5806         (_Unwind_SetGR): Likewise.
5807         (_Unwind_GetGRPtr): Likewise.
5808         (_Unwind_SetGRPtr): Likewise.
5809         (_Unwind_SetGRValue): Likewise.
5810         (_Unwind_GRByValue): Likewise.
5811         (uw_install_context_1): Likewise.
5812
5813         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5814         ASSUME_EXTENDED_UNWIND_CONTEXT.
5815         * doc/tm.texi: Regenerated.
5816
5817 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5818
5819         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5820
5821 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5822
5823         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5824         Linux/GNU-specific.
5825         (DEC Alpha Options, -mtune): Likewise.
5826         (MIPS Options, -march): native is supported on IRIX.
5827
5828 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5829
5830         * config/sparc/driver-sparc.c: New file.
5831         * config/sparc/x-sparc: New file.
5832         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5833         * config/sparc/sparc.opt (native): New value for enum processor_type.
5834         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5835         * config/sparc/sparc.c (sparc_option_override): Abort if
5836         PROCESSOR_NATIVE gets here.
5837         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5838         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5839         DRIVER_SELF_SPECS): Define.
5840         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5841         (SPARC Options, -mtune): Likewise.
5842         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5843         Substitute result.
5844         * configure: Regenerate.
5845         * Makefile.in (EXTRA_GCC_LIBS): Set.
5846         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5847         (cpp$(exeext)): Likewise.
5848
5849 2011-08-08  Richard Guenther  <rguenther@suse.de>
5850
5851         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5852         split out from ...
5853         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
5854         by composition.
5855
5856 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
5857
5858         PR tree-optimization/50005
5859         * ipa-inline-analysis (remap_predicate): Add cast to
5860         silence signed/unsigned comparison warning.
5861
5862 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5863
5864         * modulo-sched.c (get_sched_window): Use a table for the debug output.
5865         Print the current ii.
5866         (sms_schedule_by_order): Reduce whitespace in dump line.
5867
5868 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5869
5870         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5871         and one loop for successors.  Fix upper bound of memory range.
5872
5873 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5874
5875         PR target/50001
5876         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5877         (TARGET_INSTANTIATE_DECLS): New define.
5878
5879 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
5880             Mikael Morin   <mikael.morin@sfr.fr>
5881
5882         * Makefile.in (INCLUDES_FOR_TARGET): New.
5883         (LIBGCC2_CFLAGS): Use it.
5884         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5885
5886 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5887
5888         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5889         frame->save_regs_using_mov calculation.
5890
5891 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5892
5893         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5894         * config/i386/sse.md (castmode): New mode attribute.
5895         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5896         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5897
5898 2011-08-05  Jan Hubicka  <jh@suse.cz>
5899
5900         PR middle-end/49494
5901         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5902
5903 2011-08-05  Jan Hubicka  <jh@suse.cz>
5904
5905         PR middle-end/49500
5906         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5907         handle aliases.
5908         (create_emultls_var):New function.
5909         (ipa_lower_emutls): Handle aliases correctly.
5910
5911 2011-08-05  Jan Hubicka  <jh@suse.cz>
5912
5913         PR middle-end/49735
5914         * ipa-inline.c (recursive_inlining): Look through aliases.
5915
5916 2011-08-05  Jason Merrill  <jason@redhat.com>
5917
5918         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5919         declarations to beginning of function.
5920
5921 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
5922
5923         PR rtl-optimization/49900
5924         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5925         ensure basic blocks stay in the same order.
5926
5927 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
5928
5929         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5930         store_bit_field.
5931         (s390_expand_atomic): Same.
5932
5933 2011-08-05  Richard Henderson  <rth@redhat.com>
5934
5935         PR rtl-opt/49977
5936         * dwarf2cfi.c (scan_insn_after): Split out of ...
5937         (scan_trace): ... here.  Correctly place notes wrt sequences.
5938
5939 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5940             Richard Henderson  <rth@redhat.com>
5941
5942         PR rtl-opt/49982
5943         * expr.c (fixup_args_size_notes): Look through no-op moves.
5944
5945 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5946
5947         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5948         of "m" for operand 0.  Add type and mode attribute.
5949         (*pushxf_nointeger"): Use "<" constraint for operand 0.
5950         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
5951         constraint instead of "o" for opreand 1.
5952         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
5953         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5954         operand 0, alternative 4.
5955         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5956
5957 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5958
5959         * config/i386/predicates.md (lea_address_operand): Rename from
5960         no_seg_address_operand.
5961         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5962         (*lea_1_zext): Ditto.
5963         (*lea_2): Ditto.
5964         (*lea_2_zext): Ditto.
5965
5966 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5967
5968         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5969         parts.base and parts.index.
5970         * config/i386/predicates.md (aligned_operand): Ditto.
5971         (cmpxchg8b_pic_memory_operand): Ditto.
5972
5973 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5974
5975         * config/soft-fp: Move to ../libgcc.
5976         * Makefile.in (SFP_MACHINE): Remove.
5977         (libgcc-support): Remove $(SFP_MACHINE) dependency.
5978         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5979         * config/arm/t-arm-softfp: Move to
5980         ../libgcc/config/arm/t-softfp.
5981         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5982         * config/c6x/t-c6x-softfp: Remove.
5983         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5984         * config/i386/t-fprules-softfp: Move to
5985         ../libgcc/config/t-softfp-tf.
5986         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5987         * config/ia64/t-fprules-softfp: Remove.
5988         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5989         * config/lm32/t-fprules-softfp: Remove.
5990         * config/moxie/sfp-machine.h: Remove.
5991         * config/moxie/t-moxie-softfp: Remove.
5992         * config/rs6000/darwin-ldouble-format: Move to
5993         ../libgcc/config/rs6000/ibm-ldouble-format.
5994         * config/rs6000/darwin-ldouble.c: Move to
5995         ../libgcc/config/rs6000/ibm-ldouble.c
5996         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5997         * config/rs6000/libgcc-ppc64.ver: Likewise.
5998         * config/rs6000/sfp-machine.h: Likewise.
5999         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
6000         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
6001         (LIB2FUNCS_EXTRA): Remove.
6002         (TARGET_LIBGCC2_CFLAGS): Remove.
6003         * config/rs6000/t-aix52: Likewise
6004         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6005         $(srcdir)/config/rs6000/darwin-ldouble.c.
6006         (SHLIB_MAPFILES): Remove.
6007         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
6008         $(srcdir)/config/rs6000/darwin-ldouble.c.
6009         * config/rs6000/t-fprules-softfp: Move to
6010         ../libgcc/config/t-softfp-sfdf.
6011         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
6012         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
6013         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
6014         $(srcdir)/config/rs6000/darwin-ldouble.c.
6015         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
6016         * config/score/t-score-softfp: Remove.
6017         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
6018         soft-fp/t-softfp from tmake_file.
6019         (arm*-*-uclinux*): Likewise.
6020         (arm*-*-ecos-elf): Likewise.
6021         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
6022         (arm*-*-rtems*): Likewise.
6023         (arm*-*-elf): Likewise.
6024         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
6025         tmake_file.
6026         (moxie-*-uclinux*): Likewise.
6027         (moxie-*-rtems*): Likewise.
6028         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
6029         tmake_file.
6030         (lm32-*-rtems*): Likewise.
6031         (lm32-*-uclinux*): Likewise.
6032         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
6033         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6034         (powerpc-*-linux*, powerpc64-*-linux*): Remove
6035         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
6036         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
6037         tmake_file.
6038         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
6039         tmake_file.
6040         (tic6x-*-uclinux): Likewise.
6041         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
6042         soft-fp/t-softfp from tmake_file.
6043         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
6044         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
6045         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
6046         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6047         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
6048
6049 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6050
6051         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
6052         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
6053         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
6054         TPBIT, TPBIT_FUNCS.
6055         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
6056         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
6057         Remove.
6058         * config/arm/t-vxworks: Likewise.
6059         * config/arm/t-wince-pe: Likewise.
6060         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
6061         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6062         * config/bfin/t-bfin-elf: Likewise.
6063         * config/bfin/t-bfin-linux: Likewise.
6064         * config/bfin/t-bfin-uclinux: Likewise.
6065         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
6066         Remove.
6067         * config/fr30/t-fr30: Likewise.
6068         * config/frv/t-frv: Likewise.
6069         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
6070         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6071         * config/m32c/t-m32c: Likewise.
6072         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
6073         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6074         * config/mcore/t-mcore: Likewise.
6075         * config/mep/t-mep: Likewise.
6076         * config/microblaze/t-microblaze: Likewise.
6077         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
6078         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6079         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
6080         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6081         * config/mn10300/t-linux: Remove.
6082         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6083         * config/pdp11/t-pdp11: Likewise.
6084         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
6085         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
6086         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6087         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
6088         * config/rs6000/t-aix52: Likewise.
6089         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
6090         $(srcdir)/config/rs6000/ppc64-fp.c.
6091         * config/rs6000/t-fprules-fpbit: Remove.
6092         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
6093         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6094         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
6095         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6096         * config/sparc/t-elf: Likewise.
6097         * config/sparc/t-leon: Likewise.
6098         * config/sparc/t-leon3: Likewise.
6099         * config/spu/t-spu-elf: Likewise.
6100         (DPBIT_FUNCS): Remove.
6101         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
6102         * config/v850/t-v850: Likewise.
6103         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
6104         (avr-*-*): Likewise.
6105         (h8300-*-rtems*): Set libgcc_tm_file.
6106         (h8300-*-elf*): Likewise.
6107         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
6108         tmake_file.
6109         (powerpc-*-eabisim*): Likewise.
6110         (powerpc-*-elf*): Likewise.
6111         (powerpc-*-eabialtivec*): Likewise.
6112         (powerpc-xilinx-eabi*): Likewise.
6113         (powerpc-*-eabi*): Likewise.
6114         (powerpc-*-rtems*): Likewise.
6115         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
6116         (powerpcle-*-elf*): Likewise.
6117         (powerpcle-*-eabisim*): Likewise.
6118         (powerpcle-*-eabi*): Likewise.
6119         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
6120         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
6121         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
6122         Remove.
6123
6124 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6125
6126         * Makefile.in (UNWIND_H): Remove.
6127         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
6128         ../libgcc/Makefile.in.
6129         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
6130         (LIBUNWINDDEP): Remove.
6131         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
6132         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
6133         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
6134         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
6135         Don't copy $(UNWIND_H).
6136         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
6137         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
6138         * aclocal.m4: Regenerate.
6139         * configure: Regenerate.
6140         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
6141         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
6142         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
6143         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
6144         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
6145         * config/arm/libunwind.S, config/arm/pr-support.c,
6146         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
6147         ../libgcc/config/arm.
6148         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
6149         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
6150         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
6151         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
6152         ($(T)frvend$(objext)): Likewise.
6153         * config/ia64/t-glibc (LIB2ADDEH): Remove.
6154         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
6155         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
6156         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
6157         ../libgcc/config/ia64.
6158         * config/ia64/t-hpux (LIB2ADDEH): Remove.
6159         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
6160         * config/ia64/t-vms (LIB2ADDEH): Remove.
6161         * config/ia64/vms.h (UNW_IVMS_MODE,
6162         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
6163         * config/picochip/t-picochip (LIB2ADDEH): Remove.
6164         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
6165         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
6166         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
6167         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
6168         $(srcdir)/../libgcc to refer to unwinder sources.
6169         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
6170         * config/t-darwin (LIB2ADDEH): Remove.
6171         * config/t-freebsd (LIB2ADDEH): Remove.
6172         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
6173         * config/t-libunwind-elf: Move to ../libgcc/config.
6174         * config/t-linux (LIB2ADDEH): Remove.
6175         * config/t-sol2 (LIB2ADDEH): Remove.
6176         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
6177         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
6178
6179 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
6180
6181         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
6182
6183         * doc/invoke.texi: Document core-avx-i.
6184
6185 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6186
6187         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
6188
6189 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
6190
6191         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
6192         result of multiple results reduction when extracting the final
6193         value using scalar code.
6194
6195 2011-08-05  Richard Guenther  <rguenther@suse.de>
6196
6197         PR tree-optimization/49984
6198         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
6199
6200 2011-08-05  Richard Guenther  <rguenther@suse.de>
6201
6202         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
6203         return true for constant integer ranges.
6204         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
6205         BIT_IOR_EXPR handling.
6206
6207 2011-08-04  Kai Tietz  <ktietz@redhat.com>
6208
6209         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
6210         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
6211
6212 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
6213
6214         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
6215         pattern def statement, and its access macro.
6216         (NUM_PATTERNS): Set to 5.
6217         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6218         pattern def statement.
6219         (vect_transform_loop): Likewise.
6220         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
6221         function vect_recog_over_widening_pattern ().
6222         (vect_operation_fits_smaller_type): New function.
6223         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
6224         Likewise.
6225         (vect_pattern_recog_1): Move the code that marks pattern
6226         statements to vect_mark_pattern_stmts (), and call it.  Update
6227         documentation.
6228         * tree-vect-stmts.c (vect_supportable_shift): New function.
6229         (vect_analyze_stmt): Handle pattern def statement.
6230         (new_stmt_vec_info): Initialize pattern def statement.
6231
6232 2011-08-04  Richard Henderson  <rth@redhat.com>
6233
6234         PR target/49964
6235         * config/i386/i386.c (ix86_expand_call): Don't create nested
6236         PARALLELs for TARGET_VZEROUPPER.
6237         (ix86_split_call_vzeroupper): Fix extraction of the original call.
6238         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
6239         recognize nested PARALLELs.
6240         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
6241         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
6242         *sibcall_value_pop_vzeroupper): Likewise.
6243
6244 2011-08-04  Richard Henderson  <rth@redhat.com>
6245
6246         PR middle-end/49968
6247         * calls.c (expand_call): Use fixup_args_size_notes for
6248         emit_stack_restore.
6249         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
6250         in non-standard modes.
6251
6252 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6253
6254         * gcc.c (self_spec): New variable.
6255         (static_specs): Add self_spec.
6256         (main): Call do_self_spec on "self_spec" specs after reading
6257         user specs files.  Move compare_debug handling right after that.
6258
6259 2011-08-04  Richard Guenther  <rguenther@suse.de>
6260
6261         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
6262         (value_range_nonnegative_p): New function.
6263         (ssa_name_nonnegative_p): Use it.
6264         (value_range_constant_singleton): New function.
6265         (op_with_constant_singleton_value_range): Use it.
6266         (extract_range_from_binary_expr_1): New function, split out from ...
6267         (extract_range_from_binary_expr): ... this.  Remove fallback
6268         constant folding done here.
6269
6270 2011-08-04  Richard Guenther  <rguenther@suse.de>
6271
6272         PR tree-optimization/49806
6273         * tree-vrp.c (op_with_boolean_value_range_p): New function.
6274         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
6275         a new statement for a final conversion to bool.
6276
6277 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
6278
6279         * gengtype-state.c: Include "bconfig.h" if
6280         GENERATOR_FILE is defined, "config.h" otherwise.
6281         * gengtype.c: Likewise.
6282         * gengtype-lex.l: Likewise.
6283         * gengtype-parse.c: Likewise.
6284         * Makefile.in (gengtype-lex.o-warn): New variable.
6285         (plugin_resourcesdir): Likewise.
6286         (plugin_bindir): Likewise.
6287         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
6288         (MOSTLYCLEANFILES): Add gengtype$(exeext).
6289         (native): Depend on gengtype$(exeext) is $enable_plugin
6290         is set to "yes".
6291         (gtype.state): Depend on s-gtype. Use temporary file.
6292         (gengtype-lex.o): New rule.
6293         (gengtype-parse.o): Likewise.
6294         (gengtype-state.o): Likewise.
6295         (gengtype$(exeext)): Likewise.
6296         (install-gengtype): Likewise.
6297         (gengtype.o): Likewise.
6298         (build/gengtype.o): Depend on version.h.
6299         (build/gengtype-state): Depend on double-int.h, version.h,
6300         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
6301         (install-plugin): Depend on install-gengtype.
6302
6303 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
6304
6305         PR middle-end/49905
6306         * tree.h (init_attributes): New prototype.
6307         * attribs.c (init_attributes): No longer static.
6308
6309 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6310
6311         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
6312         maybe_suffix.
6313
6314 2011-08-03   David Li  <davidxl@google.com>
6315
6316         * tree-optimize.c (execute_fixup_cfg): Fix up entry
6317         outgoing edge counts after inlining.
6318
6319 2011-08-03   David Li  <davidxl@google.com>
6320
6321         * profile.c (compute_branch_probabilities): Compute
6322         function frequency after profile annotation.
6323
6324 2011-08-04  Alan Modra  <amodra@gmail.com>
6325
6326         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
6327         use_backchain_to_restore_sp initialisation.
6328         (rs6000_legitimate_offset_address_p): Simplify offset test.
6329
6330 2011-08-03  Richard Henderson  <rth@redhat.com>
6331
6332         * config/spu/spu.md: Use define_c_enum instead of define_constants.
6333         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
6334         (UNSPECV_NOP): New.
6335
6336 2011-08-03  Richard Henderson  <rth@redhat.com>
6337
6338         PR target/34888
6339         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
6340
6341 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
6342
6343         PR tree-optimization/49948
6344         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
6345
6346 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
6347
6348         * config/m32c/m32c.c (class_sizes): Remove.
6349         (reduce_class): Change arguments and return type to reg_class_t.
6350         Change type cc var to HARD_REG_SET. Change type best var to
6351         reg_class_t. Change type best_size var to unsigned int. Remove
6352         initialization class_sizes var. Use reg_class_size array instead
6353         of class_sizes. Use reg_class_contents array instead
6354         of class_contents.
6355
6356 2011-08-03  Richard Guenther  <rguenther@suse.de>
6357
6358         PR middle-end/49958
6359         * fold-const.c (fold_binary_loc): Only associate
6360         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
6361         overflow wraps.
6362
6363 2011-08-03  Alan Modra  <amodra@gmail.com>
6364
6365         PR rtl-optimization/49941
6366         * jump.c (mark_jump_label): Comment.
6367         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
6368         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
6369         (mark_used_flags): Don't mark RETURN.
6370
6371 2011-08-03  Richard Guenther  <rguenther@suse.de>
6372
6373         PR tree-optimization/49938
6374         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
6375         deal with a POLYNOMIAL_CHREC.
6376
6377 2011-08-03  Revital Eres  <revital.eres@linaro.org>
6378
6379         * modulo-sched.c (calculate_stage_count,
6380         calculate_must_precede_follow, get_sched_window,
6381         try_scheduling_node_in_cycle, remove_node_from_ps): Add
6382         declaration.
6383         (update_node_sched_params, set_must_precede_follow, optimize_sc):
6384         New functions.
6385         (reset_sched_times): Call update_node_sched_params.
6386         (sms_schedule): Call optimize_sc.
6387         (get_sched_window): Change function arguments.
6388         (sms_schedule_by_order): Update call to get_sched_window.
6389         Call set_must_precede_follow.
6390         (calculate_stage_count): Add function argument.
6391
6392 2011-08-02  Richard Henderson  <rth@redhat.com>
6393
6394         PR target/49864
6395         PR target/49879
6396         * reg-notes.def (REG_ARGS_SIZE): New.
6397         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
6398         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
6399         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
6400         different stack levels.
6401         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
6402         (maybe_move_args_size_note): New.
6403         (combine_stack_adjustments_for_block): Use it.
6404         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
6405         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
6406         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
6407         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
6408         (cur_cfa): New.
6409         (queued_args_size): Remove.
6410         (add_cfi_args_size): Assert size is non-negative.
6411         (stack_adjust_offset, dwarf2out_args_size): Remove.
6412         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
6413         (notice_args_size, notice_eh_throw): New.
6414         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
6415         (dwarf2out_frame_debug_adjust_cfa): Likewise.
6416         (dwarf2out_frame_debug_cfa_offset): Likewise.
6417         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
6418         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
6419         (change_cfi_row): Don't emit args_size.
6420         (maybe_record_trace_start_abnormal): Split out from ...
6421         (maybe_record_trace_start): Here.  Set args_size_undefined.
6422         (create_trace_edges): Update to match.
6423         (scan_trace): Handle REG_ARGS_SIZE.
6424         (connect_traces): Connect args_size between EH insns.
6425         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
6426         * explow.c (suppress_reg_args_size): New.
6427         (adjust_stack_1): Split out from ...
6428         (adjust_stack): ... here.
6429         (anti_adjust_stack): Use it.
6430         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
6431         * expr.c (mem_autoinc_base): New.
6432         (fixup_args_size_notes): New.
6433         (emit_single_push_insn_1): Rename from emit_single_push_insn.
6434         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
6435         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
6436         * reload1.c (reload_as_needed): Likewise.
6437         * rtl.h (fixup_args_size_notes): Declare.
6438
6439 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
6440
6441         PR bootstrap/49914
6442         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
6443         of abs.
6444         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6445         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6446
6447 2011-08-02  Richard Henderson  <rth@redhat.com>
6448
6449         * config/h8300/h8300.c (push, pop): Return the insn.
6450         (h8300_swap_into_er6): Generate correct unwind info.
6451         (h8300_swap_out_of_er6): Likewise.
6452         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
6453         complex cfa expression.
6454         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
6455
6456 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
6457
6458         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6459
6460 2011-08-02  Richard Henderson  <rth@redhat.com>
6461
6462         PR target/49878
6463         * config/h8300/h8300.c (h8300_move_ok): New.
6464         * config/h8300/h8300-protos.h: Declare it.
6465         * config/h8300/h8300.md (P): New mode iterator.
6466         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
6467         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
6468         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
6469         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
6470         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
6471         and pushqi1_h8300hs_normal; use PRE_MODIFY and
6472         register_no_sp_elim_operand.
6473         (*pushhi1_h8300hs_<P>): Similarly.
6474         (pushqi1, pushhi1, pushhi1_h8300): Remove.
6475         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
6476
6477 2011-08-02  Richard Henderson  <rth@redhat.com>
6478
6479         PR target/49881
6480         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
6481
6482 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
6483
6484         * c-parser.c (enum c_parser_prec): New enum, moved from within
6485         c_parser_binary_expression.
6486         (c_parser_binary_expression): Add PREC argument.  Stop parsing
6487         if operator has lower or equal precedence than PREC.
6488         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
6489         callers.
6490         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
6491         Adjust c_finish_omp_atomic caller.
6492         (c_parser_omp_taskyield): New function.
6493         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
6494         (c_parser_omp_clause_name): Handle final and mergeable clauses.
6495         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
6496         functions.
6497         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
6498         and PRAGMA_OMP_CLAUSE_MERGEABLE.
6499         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
6500         (c_parser_omp_clause_reduction): Handle min and max.
6501         * c-typeck.c (c_finish_omp_clauses): Don't complain about
6502         const qualified predetermined vars in firstprivate clause.
6503         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6504         Handle MIN_EXPR and MAX_EXPR.
6505         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
6506         and OMP_CLAUSE_MERGEABLE.
6507         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
6508         and OMP_ATOMIC_CAPTURE_NEW.
6509         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
6510         OMP_CLAUSE_MERGEABLE.
6511         (omp_clause_code_name): Likewise.
6512         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6513         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
6514         and OMP_CLAUSE_MERGEABLE.
6515         (OMP_CLAUSE_FINAL_EXPR): Define.
6516         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
6517         OMP_CLAUSE_MERGEABLE.
6518         (expand_task_call): Likewise.
6519         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
6520         (expand_omp_atomic_fetch_op): Handle cases where old or new
6521         value is needed afterwards.
6522         (expand_omp_atomic): Call expand_omp_atomic_load resp.
6523         expand_omp_atomic_store.
6524         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
6525         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
6526         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
6527         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6528         * tree-nested.c (convert_nonlocal_omp_clauses,
6529         convert_local_omp_clauses): Likewise.
6530         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
6531         OMP_ATOMIC_CAPTURE_NEW): New.
6532         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
6533         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
6534         New inlines.
6535         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
6536         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
6537         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
6538
6539 2011-08-02  Kai Tietz  <ktietz@redhat.com>
6540
6541         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
6542         boolean-type.
6543         (ssa_forward_propagate_and_combine): Interprete result of
6544         forward_propagate_comparison.
6545         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
6546         boolean-typed operands for comparisons.
6547
6548 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
6549
6550         * config/avr/libgcc.S: Gather related function in the
6551         same input section.
6552         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
6553         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
6554         references.
6555         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
6556         __udivmodsi4, __divmodsi4, __prologue_saves__,
6557         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
6558         __do_copy_data, __do_clear_bss, __do_global_ctors,
6559         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
6560
6561 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
6562
6563         PR target/47766
6564         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
6565         (stack_protect_test): The pattern compares ptr_mode value.
6566
6567 2011-08-02  Alan Modra  <amodra@gmail.com>
6568
6569         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
6570         note for save_LR_around_toc_setup sequence.
6571
6572 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6573
6574         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
6575
6576 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
6577             Joseph Myers  <joseph@codesourcery.com>
6578
6579         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
6580         * hwint.c: Include diagnostic-core.h.
6581         (abs_hwi): New.
6582         (gcd): Moved here...
6583         (pos_mul_hwi): New.
6584         (mul_hwi): New.
6585         (least_common_multiple): Moved here...
6586         * hwint.h (gcd): ... from here.
6587         (least_common_multiple): ... from here.
6588         (HOST_WIDE_INT_MIN): New.
6589         (HOST_WIDE_INT_MAX): New.
6590         (abs_hwi): Declared.
6591         (gcd): Declared.
6592         (pos_mul_hwi): Declared.
6593         (mul_hwi): Declared.
6594         (least_common_multiple): Declared.
6595         * omega.c (check_pos_mul): Removed.
6596         (check_mul): Removed.
6597         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
6598         mul_hwi instead of check_mul.
6599
6600 2011-08-01  Richard Henderson  <rth@redhat.com>
6601
6602         PR target/49881
6603         * config/avr/avr.h (PUSH_ROUNDING): New.
6604         * config/avr/avr.md (pushqi1): Rename from *pushqi.
6605         (*pushhi, *pushsi, *pushsf): Remove.
6606         (MPUSH): New mode iterator.
6607         (push<MPUSH>1): New expander.
6608
6609 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
6610
6611         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
6612         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6613         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
6614         mmix_preferred_output_reload_class): Remove.
6615         * config/mmix/mmix.c (mmix_preferred_reload_class,
6616         mmix_preferred_output_reload_class): Make static. Change rclass
6617         argument and return type to reg_class_t.
6618         (TARGET_PREFERRED_RELOAD_CLASS,
6619         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6620
6621 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
6622
6623         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
6624         handling.
6625
6626 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6627
6628         PR target/47766
6629         * config/i386/i386.md (PTR): New.
6630         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
6631         (stack_protect_test): Likewise.
6632         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
6633         (stack_tls_protect_set_<mode>): Likewise.
6634         (stack_tls_protect_test_<mode>): Likewise.
6635
6636 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
6637
6638         PR target/49927
6639         * config/i386/i386.c (ix86_address_subreg_operand): New.
6640         (ix86_decompose_address): Use ix86_address_subreg_operand.
6641         (ix86_legitimate_address_p): Do not assert that subregs satisfy
6642         register_no_elim_operand in DImode.
6643
6644 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
6645
6646         PR tree-optimization/49926
6647         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6648         in a chain doesn't have uses both inside and outside the loop.
6649
6650 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6651
6652         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6653         * config/avr/avr-devices.c (avr_mcu_types): Use it.
6654         * config/avr/avr-mcus.def (AVR_MCU): Use it.
6655         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6656         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6657         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6658         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6659         to detect if XJMP must not be skipped.
6660
6661 2011-08-02  Alan Modra  <amodra@gmail.com>
6662
6663         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6664         Delete.
6665         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6666         (rs6000_emit_prologue): Don't prematurely return when
6667         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
6668         save_toc_in_prologue case.
6669         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6670         calls_alloca.
6671
6672 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6673
6674         * config/avr/avr-devices.c: Delete SVN property svn:executable.
6675         * config/avr/predicates.md: Ditto.
6676         * config/avr/driver-avr.c: Ditto.
6677         * config/avr/genopt.sh: Set SVN property svn:executable to *.
6678
6679 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6680
6681         * calls.c (emit_library_call_value_1): Declare size only if
6682         BLOCK_REG_PADDING is defined.
6683
6684 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
6685
6686         PR target/49547
6687         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6688         (x86_64-*-*): Likewise.
6689         * config/i386/i386.opt (mlzcnt): New.
6690         * config/i386/abmintrin.h: File removed.
6691         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6692         * config/i386/lzcntintrin.h: ... here.  New file.
6693         (__lzcnt): Rename to ...
6694         (__lzcnt32): ... this.
6695         * config/i386/bmiintrin.h (head): Update copyright year.
6696         (__lzcnt_u16): Removed.
6697         (__lzcnt_u32): Likewise.
6698         (__lzcnt_u64): Likewise.
6699         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6700         is defined, remove abmintrin.h.
6701         * config/i386/cpuid.h (bit_LZCNT): New.
6702         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6703         LZCNT feature.
6704         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6705         __LZCNT__ if needed.
6706         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6707         (ix86_option_override_internal): Handle LZCNT option.
6708         (ix86_valid_target_attribute_inner_p): Likewise.
6709         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6710         * config/i386/i386.h (TARGET_LZCNT): New.
6711         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6712         * config/i386/i386.md (clz<mode>2): Update insn constraint.
6713         (clz<mode>2_lzcnt): Likewise.
6714         * doc/invoke.texi: Mention -mlzcnt option.
6715         * doc/extend.texi: Likewise.
6716
6717 2011-08-01  Julian Brown  <julian@codesourcery.com>
6718
6719         * configure.ac (fixed-point): Add ARM support.
6720         * configure: Regenerate.
6721         * config/arm/arm.c (arm_fixed_mode_set): New struct.
6722         (arm_set_fixed_optab_libfunc): New.
6723         (arm_set_fixed_conv_libfunc): New.
6724         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6725         ARM-specific names.
6726         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6727         return values in SImode.
6728         (arm_return_in_msb): Return fixed-point types in the msb.
6729         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6730         upwards.
6731         (arm_scalar_mode_supported_p): Support fixed-point modes.
6732         (arm_vector_mode_supported_p): Support vector fixed-point modes.
6733         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6734         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6735         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6736         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6737         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6738         New mode iterators.
6739         (qaddsub_suf): New mode attribute.
6740         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6741         vector modes.
6742         * config/arm/predicates.md (sat_shift_operator): New predicate.
6743         * config/arm/arm-fixed.md: New.
6744         * config/arm/arm.md: Include arm-fixed.md.
6745         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6746
6747 2011-08-01  Julian Brown  <julian@codesourcery.com>
6748
6749         * calls.c (emit_library_call_value_1): Support padding for libcall
6750         arguments and return values.
6751         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6752         downwards in big-endian mode.
6753
6754 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6755
6756         PR debug/49887
6757         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6758         * config/sol2-protos.h: Likewise.
6759         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6760         solaris_code_end.
6761         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6762         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6763         solaris_file_end.
6764         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6765
6766 2011-08-01  Julian Brown  <julian@codesourcery.com>
6767
6768         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6769
6770 2011-08-01  Julian Brown  <julian@codesourcery.com>
6771
6772         * final.c (output_addr_const): Print fixed-point constants as
6773         decimal not hex.
6774
6775 2011-08-01  Richard Guenther  <rguenther@suse.de>
6776
6777         * stor-layout.c (initialize_sizetypes): Properly sign-extend
6778         bitsiztype TYPE_MAX_VALUE.
6779
6780 2011-08-01  Julian Brown  <julian@codesourcery.com>
6781
6782         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6783         comparison helpers.
6784
6785 2011-07-31  Richard Henderson  <rth@redhat.com>
6786
6787         * config/h8300/crti.asm: Add flags to .section directive.
6788         * config/h8300/crtn.asm: Likewise.
6789
6790 2011-07-31  Richard Henderson  <rth@redhat.com>
6791
6792         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6793         * tree.c (build_common_tree_nodes): Likewise.
6794
6795 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6796
6797         PR target/49880
6798         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6799         (divsi3_i1): Likewise.
6800
6801 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6802
6803         PR tree-optimization/49749
6804         * tree-ssa-reassoc.c (get_rank): New forward declaration.
6805         (PHI_LOOP_BIAS): New macro.
6806         (phi_rank): New function.
6807         (loop_carried_phi): Likewise.
6808         (propagate_rank): Likewise.
6809         (get_rank): Add calls to phi_rank and propagate_rank.
6810
6811 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6814         of TARGET_64BIT.
6815         (PTRDIFF_TYPE): Likewise.
6816
6817 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
6818
6819         PR target/49920
6820         * config/i386/i386.md (strset): Do not expand strset_singleop
6821         when %eax or $edi are fixed.
6822         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6823         (*strsetsi_1): Ditto.
6824         (*strsethi_1): Ditto.
6825         (*strsetqi_1): Ditto.
6826         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6827         (*rep_stossi): Ditto.
6828         (*rep_stosqi): Ditto.
6829         (*strlenqi_1): Ditto.
6830         (cmpstrnsi): Also fail when %ecx is fixed.
6831         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6832         (*cmpstrnqi_1): Ditto.
6833         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6834         (*strmovsi_1): Ditto.
6835         (*strmovhi_1): Ditto.
6836         (*strmovqi_1): Ditto.
6837         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6838         (*rep_movsi): Ditto.
6839         (*rep_movqi): Ditto.
6840
6841 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
6842
6843         PR target/47908
6844         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6845         Disable instruction scheduling for non-ColdFire targets.
6846         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6847
6848 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6849
6850         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6851         of anti-dep edge from a branch.
6852         (add_cross_iteration_register_deps): Create anti-dep edge from
6853         a branch.
6854
6855 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6856
6857         * modulo-sched.c: Change comment.
6858         (reset_sched_times): Fix print message.
6859         (print_partial_schedule): Add print info.
6860
6861 2011-07-31  Tom de Vries  <tom@codesourcery.com>
6862
6863         PR middle-end/43513
6864         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6865         get_object_alignment and TYPE_ALIGN.
6866
6867 2011-07-30  Tom de Vries  <tom@codesourcery.com>
6868
6869         PR middle-end/43513
6870         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6871         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6872
6873 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6874
6875         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6876         <sys/sbd.h>.
6877         (cpu_types): New array.
6878         (cputype): New function.
6879         (host_detect_local_cpu): Only define buf, f if !__sgi__.
6880         Use scaninvent instead of /proc/cpuinfo if __sgi__.
6881         * config.host: Also use driver-native.o, mips/x-native on
6882         mips-sgi-irix*.
6883         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6884         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6885         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6886
6887 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
6888
6889         PR middle-end/49897
6890         PR middle-end/49898
6891         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6892         in nested parallel and outer is a gimple_reg, mark it as addressable
6893         and set its bit in task_shared_vars bitmap too.
6894
6895 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6896
6897         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6898
6899 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6900
6901         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6902         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6903         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6904         AMASK_LOCKPFTCHOK): Define.
6905         (host_detect_local_cpu): Remove buf, f, cpu_names.
6906         Define cpu_types, implver, amask.
6907         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6908         native CPU.
6909         * config.host: Also use driver-alpha.o, alpha/x-alpha on
6910         alpha*-dec-osf*.
6911         * config/alpha/osf5.h [__alpha__ || __alpha]
6912         (host_detect_local_cpu): Declare.
6913         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6914         (DRIVER_SELF_SPECS): Define.
6915
6916 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6917
6918         PR target/47715
6919         * config/i386/i386.md (*load_tp_x32): New.
6920         (*load_tp_x32_zext): Ditto.
6921         (*add_tp_x32): Ditto.
6922         (*add_tp_x32_zext): Ditto.
6923         (*load_tp_<mode>): Disable for TARGET_X32 targets.
6924         (*add_tp_<mode>): Ditto.
6925         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6926         ptr_mode and convert to Pmode if needed.
6927
6928 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6929
6930         PR target/49687
6931         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6932         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6933         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6934         Add X to register footprint: Clobber r26/r27.
6935
6936 2011-07-29  Richard Guenther  <rguenther@suse.de>
6937
6938         * builtins.c (fold_builtin_signbit): Build the comparison
6939         with a proper type.
6940
6941 2011-07-29  Richard Guenther  <rguenther@suse.de>
6942
6943         PR tree-optimization/49893
6944         * tree-predcom.c (suitable_reference_p): Volatile references
6945         are not suitable.
6946
6947 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6948
6949         PR target/49313
6950         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6951         (__ctzsi2): Result for 0 may be undefined.
6952         (__ctzhi2): Result for 0 may be undefined.
6953         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6954         (__popcountsi2): Ditto. And don't clobber r26.
6955         (__popcountdi2): Ditto. And don't clobber r27.
6956         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6957         (parityhi2): New expand.
6958         (paritysi2): New expand.
6959         (popcounthi2): New expand.
6960         (popcountsi2): New expand.
6961         (clzhi2): New expand.
6962         (clzsi2): New expand.
6963         (ctzhi2): New expand.
6964         (ctzsi2): New expand.
6965         (ffshi2): New expand.
6966         (ffssi2): New expand.
6967         (copysignsf3): New insn.
6968         (bswapsi2): New expand.
6969         (*parityhi2.libgcc): New insn.
6970         (*parityqihi2.libgcc): New insn.
6971         (*paritysihi2.libgcc): New insn.
6972         (*popcounthi2.libgcc): New insn.
6973         (*popcountsi2.libgcc): New insn.
6974         (*popcountqi2.libgcc): New insn.
6975         (*popcountqihi2.libgcc): New insn-and-split.
6976         (*clzhi2.libgcc): New insn.
6977         (*clzsihi2.libgcc): New insn.
6978         (*ctzhi2.libgcc): New insn.
6979         (*ctzsihi2.libgcc): New insn.
6980         (*ffshi2.libgcc): New insn.
6981         (*ffssihi2.libgcc): New insn.
6982         (*bswapsi2.libgcc): New insn.
6983
6984 2011-07-29  Richard Guenther  <rguenther@suse.de>
6985
6986         * tree-vrp.c (get_value_range): Only set parameter default
6987         definitions to varying, leave others at undefined.
6988         (extract_range_from_binary_expr): Fix undefined handling.
6989         (vrp_visit_phi_node): Handle merged undefined state.
6990
6991 2011-07-29  Wei Guozhi  <carrot@google.com>
6992
6993         PR rtl-optimization/49799
6994         * combine.c (make_compound_operation): Check if the bit field is valid
6995         before change it to bit field extraction.
6996
6997 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
6998
6999         PR rtl-optimization/49891
7000         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
7001         newly created returnjumps.
7002
7003 2011-07-28  DJ Delorie  <dj@redhat.com>
7004
7005         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
7006         local frame in a naked function, and produce a suitable error for
7007         that specific case.
7008
7009         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
7010         registers to be reloaded in HI classes when the target is HI.
7011
7012 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7013
7014         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
7015         bound_one, bound_two.
7016
7017 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7018
7019         PR middle-end/48648
7020         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
7021         CLAST assignments.
7022         (translate_clast): Same.
7023         (translate_clast_assignment): New.
7024
7025 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
7026
7027         PR tree-optimization/49876
7028         * sese.c (rename_uses): Do not return false on gloog_error: set
7029         the new_expr to integer_zero_node and continue code generation.
7030         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
7031
7032 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7033
7034         PR debug/49846
7035         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
7036         arguments also check if they aren't initialized with a MODE_INT
7037         mode of the same size.
7038
7039 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
7040
7041         * expr.c (get_bit_range): Handle *MEM_REF's.
7042
7043 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
7044
7045         * rtlanal.c (tablejump_p): False for returns.
7046         * reorg.c (first_active_target_insn): New static function.
7047         (find_end_label): Set JUMP_LABEL for a new returnjump.
7048         (optimize_skip, get_jump_flags, rare_destination,
7049         mostly_true_jump, get_branch_condition,
7050         steal_delay_list_from_target, own_thread_p,
7051         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
7052         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
7053         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
7054         * jump.c (delete_related_insns): Likewise.
7055         (jump_to_label_p): New function.
7056         (redirect_target): New static function.
7057         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
7058         (redirect_jump_1): Assert that the new label is nonnull.
7059         (redirect_jump): Likewise.
7060         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
7061         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
7062         exit block.
7063         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
7064         changed.  Ensure that the right label is passed to redirect_jump.
7065         * function.c (emit_return_into_block,
7066         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
7067         ret_rtx in their JUMP_LABEL.
7068         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
7069         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
7070         pass ret_rtx as label.
7071         * cfglayout.c (fixup_reorder_chain): Use
7072         force_nonfallthru_and_redirect rather than force_nonfallthru.
7073         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
7074         * rtl.h (ANY_RETURN_P): New macro.
7075         (jump_to_label_p): Declare.
7076         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
7077         JUMP_LABELs.
7078         (mark_target_live_regs): Likewise.
7079         * basic-block.h (force_nonfallthru_and_redirect): Declare.
7080         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
7081         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
7082         alpha_tablejump_best_label): Remove functions.
7083         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
7084         alpha_tablejump_best_label): Remove declarations.
7085         * config/sh/sh.c (barrier_align, split_branches): Adjust for
7086         ret_rtx in JUMP_LABELs.
7087         * config/arm/arm.c (is_jump_table): Likewise.
7088
7089 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7090
7091         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
7092         special predicate.  Remove explicit mode checks.
7093
7094 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
7095
7096         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
7097         DW_AT_data_member_location containing just DW_OP_plus_uconst.
7098
7099         PR debug/49871
7100         * dwarf2out.c (size_of_die, value_format, output_die): Use
7101         DW_FORM_udata instead of DW_FORM_data[48] for
7102         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
7103
7104 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7105
7106         * config/i386/i386.md (*tls_global_dynamic_64): Update
7107         length attribute.
7108
7109 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7110
7111         PR target/47715
7112         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
7113         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
7114         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
7115         (tls_dynamic_gnu2_64): Ditto.
7116         (*tls_dynamic_gnu2_lea_64): Ditto.
7117         (*tls_dynamic_gnu2_call_64): Ditto.
7118         (*tls_dynamic_gnu2_combine_64): Ditto.
7119
7120 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7121
7122         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
7123
7124 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
7125
7126         PR target/47364
7127         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
7128
7129 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7130
7131         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
7132         before the core constraints. Adjust attributes.
7133         ("*thumb2_movdf_vfp"): Likewise.
7134
7135 2011-07-28  Kai Tietz  <ktietz@redhat.com>
7136
7137         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
7138         (simplify_truth_ops_using_ranges): Likewise.
7139         (build_assert_expr_for): Likewise.
7140         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
7141         and handle BIT_NOT_EXPR for truth-operation.
7142
7143 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7144
7145         PR target/49313
7146         Undo r176835 from trunk
7147         2011-07-27  Georg-Johann Lay
7148
7149 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
7150
7151         PR target/49687
7152         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
7153         Add _muluhisi3, _mulshisi3, _usmulhisi3.
7154         * config/avr/libgcc.S (__mulsi3): Rewrite.
7155         (__mulhisi3): Rewrite.
7156         (__umulhisi3): Rewrite.
7157         (__usmulhisi3): New.
7158         (__muluhisi3): New.
7159         (__mulshisi3): New.
7160         (__mulohisi3): New.
7161         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
7162         declare.
7163         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
7164         (pseudo_register_or_const_int_operand): New.
7165         (combine_pseudo_register_operand): New.
7166         (u16_operand): New.
7167         (s16_operand): New.
7168         (o16_operand): New.
7169         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
7170         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
7171         (any_extend, any_extend2): New code iterators.
7172         (extend_prefix): New code attribute.
7173         (mulsi3): Rewrite. Turn insn to expander.
7174         (mulhisi3): Ditto.
7175         (umulhisi3): Ditto.
7176         (usmulhisi3): New expander.
7177         (*mulsi3): New insn-and-split.
7178         (mulu<mode>si3): New insn-and-split.
7179         (muls<mode>si3): New insn-and-split.
7180         (mulohisi3): New insn-and-split.
7181         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
7182         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
7183         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
7184         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
7185         insn-and-split.
7186         (*mulsi3_call): Rewrite.
7187         (*mulhisi3_call): Rewrite.
7188         (*umulhisi3_call): Rewrite.
7189         (*usmulhisi3_call): New insn.
7190         (*muluhisi3_call): New insn.
7191         (*mulshisi3_call): New insn.
7192         (*mulohisi3_call): New insn.
7193         (extendqihi2): Use combine_pseudo_register_operand as predicate
7194         for operand 1.
7195         (extendqisi2): Ditto.
7196         (zero_extendqihi2): Ditto.
7197         (zero_extendqisi2): Ditto.
7198         (zero_extendhisi2): Ditto.
7199         (extendhisi2): Ditto. Don't early-clobber operand 0.
7200
7201 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
7202
7203         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
7204
7205 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7206
7207         PR tree-optimization/49471
7208         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
7209         iv only when the largest type is unsigned.  Do not call
7210         lang_hooks.types.type_for_size.
7211
7212 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7213
7214         PR middle-end/45450
7215         * graphite-poly.c (apply_poly_transforms): Disable legality check
7216         after an openscop read.
7217
7218 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
7219
7220         PR middle-end/47691
7221         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
7222         copy_bb_and_scalar_dependences.
7223         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
7224         (graphite_copy_stmts_from_block): Update call to rename_uses.
7225         (copy_bb_and_scalar_dependences): Update call to
7226         graphite_copy_stmts_from_block.
7227         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7228
7229 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
7230
7231         PR target/49313
7232         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
7233         (__ctzsi2): Result for 0 may be undefined.
7234         (__ctzhi2): Result for 0 may be undefined.
7235         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
7236         (__popcountsi2): Ditto. And don't clobber r26.
7237         (__popcountdi2): Ditto. And don't clobber r27.
7238         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
7239         (parityhi2): New expand.
7240         (paritysi2): New expand.
7241         (popcounthi2): New expand.
7242         (popcountsi2): New expand.
7243         (clzhi2): New expand.
7244         (clzsi2): New expand.
7245         (ctzhi2): New expand.
7246         (ctzsi2): New expand.
7247         (ffshi2): New expand.
7248         (ffssi2): New expand.
7249         (copysignsf3): New insn.
7250         (bswapsi2): New expand.
7251         (*parityhi2.libgcc): New insn.
7252         (*parityqihi2.libgcc): New insn.
7253         (*paritysihi2.libgcc): New insn.
7254         (*popcounthi2.libgcc): New insn.
7255         (*popcountsi2.libgcc): New insn.
7256         (*popcountqi2.libgcc): New insn.
7257         (*popcountqihi2.libgcc): New insn-and-split.
7258         (*clzhi2.libgcc): New insn.
7259         (*clzsihi2.libgcc): New insn.
7260         (*ctzhi2.libgcc): New insn.
7261         (*ctzsihi2.libgcc): New insn.
7262         (*ffshi2.libgcc): New insn.
7263         (*ffssihi2.libgcc): New insn.
7264         (*bswapsi2.libgcc): New insn.
7265
7266 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7267
7268         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
7269         the mode of symbolic_opreand RTXes.
7270
7271 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
7272
7273         * config/i386/predicates.md (x86_64_movabs_operand): Return false
7274         for pic_32bit_operand RTXes.
7275         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
7276         in DImode.
7277
7278 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7279
7280         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
7281         for 32-bit, too.
7282         (ix86_handle_abi_attribute): Allow function attributes
7283         ms_abi/sysv_abi in 32-bit mode, too.
7284         * doc/extend.texi: Adjust attribute documentation.
7285
7286         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
7287         expression handling.
7288         (and_var_with_comparison_1): Likewise.
7289
7290 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
7291
7292         * params.h (ALLOW_STORE_DATA_RACES): New.
7293         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
7294         * Makefile.in (expr.o): Depend on PARAMS_H.
7295         * machmode.h (get_best_mode): Add argument.
7296         * fold-const.c (optimize_bit_field_compare): Add argument to
7297         get_best_mode.
7298         (fold_truthop): Same.
7299         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
7300         * expr.c (emit_group_store): Same.
7301         (copy_blkmode_from_reg): Same.
7302         (write_complex_part): Same.
7303         (optimize_bitfield_assignment_op): Add argument.
7304         Add argument to get_best_mode.
7305         (get_bit_range): New.
7306         (expand_assignment): Calculate maxbits and pass it down accordingly.
7307         (store_field): New argument.
7308         (expand_expr_real_2): New argument to store_field.  Include params.h.
7309         * expr.h (store_bit_field): New argument.
7310         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
7311         into account maxbits.
7312         * calls.c (store_unaligned_arguments_into_pseudos): New argument
7313         to store_bit_field.
7314         * expmed.c (store_bit_field_1): New argument.  Use it.
7315         (store_bit_field): Same.
7316         (store_fixed_bit_field): Same.
7317         (store_split_bit_field): Same.
7318         (extract_bit_field_1): Pass new argument to get_best_mode.
7319         (extract_bit_field): Same.
7320         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
7321         * doc/invoke.texi: Document parameter allow-store-data-races.
7322
7323 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
7324
7325         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7326
7327 2011-07-27  Kai Tietz  <ktietz@redhat.com>
7328
7329         * tree-vrp.c (extract_range_from_binary_expr): Remove
7330         TRUTH-binary cases and add new bitwise-cases.
7331         (extract_range_from_assignment): Likewise.
7332         (register_edge_assert_for_1): Likeiwise.
7333         (register_edge_assert_for): Likewise.
7334         (simplify_truth_ops_using_ranges): Likewise.
7335         (simplify_stmt_using_ranges): Likewise.
7336
7337 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
7338
7339         PR target/47372
7340         * config/i386/i386.c (ix86_delegitimize_address): Call
7341         simplify_gen_subreg for PIC with mode of x only if modes of
7342         x and orig_x are different.
7343
7344 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
7345
7346         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
7347         to GC allocated copy of the string.
7348         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
7349         before .debug_line, not after it.
7350
7351 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7352
7353         PR middle-end/47046
7354         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
7355         evolution_function_is_affine_p on CHREC_RIGHT.
7356
7357 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7358
7359         * tree-data-ref.c (max_stmt_executions_tree): Do not call
7360         lang_hooks.types.type_for_size.
7361
7362 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7363
7364         PR middle-end/47653
7365         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
7366         loops using wrapping semantics.
7367
7368 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
7369
7370         PR middle-end/48805
7371         * tree-scalar-evolution.c (instantiate_scev_r): Return
7372         chrec_dont_know for ADDR_EXPR.
7373
7374 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7375             H.J. Lu  <hongjiu.lu@intel.com>
7376
7377         PR target/47369
7378         PR target/49853
7379         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
7380         if legitimize_tls_address returned operand in wrong mode. Allow
7381         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
7382         if legitimize_pic_address returned operand in wrong mode.
7383
7384 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7385
7386         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
7387         return false for invariants.
7388
7389 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7390
7391         * config/i386/i386.md (add->lea splitter): Implement using SWI
7392         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
7393         (add->lea zext splitter): Change operand 2 predicate to
7394         x86_64_nonmemory_operand.
7395
7396 2011-07-26  Richard Guenther  <rguenther@suse.de>
7397
7398         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
7399         frequency makes everything hot.
7400
7401 2011-07-26  Richard Guenther  <rguenther@suse.de>
7402
7403         PR tree-optimization/49840
7404         * tree-vrp.c (range_fits_type_p): Properly handle full
7405         double-int precision.
7406
7407 2011-07-26  Martin Jambor  <mjambor@suse.cz>
7408
7409         PR bootstrap/49786
7410         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
7411         counts.
7412         (update_specialized_profile): Likewise.
7413
7414 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
7415             H.J. Lu  <hongjiu.lu@intel.com>
7416
7417         PR target/47381
7418         PR target/49832
7419         PR target/49833
7420         * config/i386/i386.md (i): Change SImode attribute to "e".
7421         (g): Change SImode attribute to "rme".
7422         (di): Change SImode attribute to "nF".
7423         (general_operand): Change SImode attribute to x86_64_general_operand.
7424         (general_szext_operand): Change SImode attribute to
7425         x86_64_szext_general_operand.
7426         (immediate_operand): Change SImode attribute to
7427         x86_64_immediate_operand.
7428         (nonmemory_operand): Change SImode attribute to
7429         x86_64_nonmemory_operand.
7430         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
7431         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
7432         (*lea_1): Use SWI48 mode iterator.
7433         (*lea_1_zext): New insn pattern.
7434         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
7435         (*bt<mode>): Ditto.
7436         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
7437         Update operand constraints.
7438         (addsi_1_zext): Ditto.
7439         (*add<mode>2): Ditto.
7440         (*addsi_3_zext): Ditto.
7441         (*subsi_1_zext): Ditto.
7442         (*subsi_2_zext): Ditto.
7443         (*subsi_3_zext): Ditto.
7444         (*addsi3_carry_zext): Ditto.
7445         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
7446         (*mulsi3_1_zext): Ditto.
7447         (*andsi_1): Ditto.
7448         (*andsi_1_zext): Ditto.
7449         (*andsi_2_zext): Ditto.
7450         (*<any_or:code>si_1_zext): Ditto.
7451         (*<any_or:code>si_2_zext): Ditto.
7452         (*test<mode>_1): Use <general_operand> predicate for operand 1.
7453         (*and<mode>_2): Ditto.
7454         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
7455         (add->lea splitter): Check operand modes in insn constraint.  Extend
7456         operands less than SImode wide to SImode.
7457         (add->lea zext splitter): Do not extend input operands to DImode.
7458         (*lea_general_1): Handle only QImode and HImode operands.
7459         (*lea_general_2): Ditto.
7460         (*lea_general_3): Ditto.
7461         (*lea_general_1_zext): Remove.
7462         (*lea_general_2_zext): Ditto.
7463         (*lea_general_3_zext): Ditto.
7464         (*lea_general_4): Check operand modes in insn constraint.  Extend
7465         operands less than SImode wide to SImode.
7466         (ashift->lea splitter): Ditto.
7467         * config/i386/i386.c (ix86_print_operand_address): Print address
7468         registers with 'q' modifier on 64bit targets.
7469         * config/i386/predicates.md (pic_32bit_opreand): Define as special
7470         predicate.  Reject non-SI and non-DI modes.
7471
7472 2011-07-25  Andrew Pinski  <apinski@cavium.com>
7473
7474         PR tree-opt/49671
7475         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
7476         TREE_THIS_NOTRAP into the inner most MEM_REF.
7477         Always copy TREE_THIS_VOLATILE.
7478         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
7479         arguments are not volatile references.
7480
7481 2011-07-25  Richard Henderson  <rth@redhat.com>
7482
7483         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
7484         * final.c (final_scan_insn): Don't test for it.
7485         (rest_of_clean_state): Likewise.
7486
7487 2011-07-25  Richard Henderson  <rth@redhat.com>
7488
7489         PR debug/49841
7490         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
7491         (emit_frame_save): Likewise.
7492         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
7493         insn onto a dummy blockage insn after the join label.
7494
7495 2011-07-25  Richard Henderson  <rth@redhat.com>
7496
7497         * dwarf2cfi.c (dw_trace_info): Add ID member.
7498         (get_trace_index): Remove.  Change users to use ID member.
7499         (before_next_cfi_note): New.
7500         (connect_traces): Remove unreachable traces before the main loop.
7501         Look across one trace and generate remember/restore_state if needed.
7502
7503 2011-07-25  Richard Henderson  <rth@redhat.com>
7504
7505         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
7506
7507 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
7508
7509         * genattr.c (write_upcase, gen_attr <enum definition writing>):
7510         Move to ...
7511         * genattr-common.c ... here.
7512         (main): Call gen_attr.
7513         * optc-gen.awk: Make generated program include insn-attr-common.h .
7514         * Makefile.in (oprions.o): Depend on insn-attr-common.h
7515
7516 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7517
7518         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7519         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7520         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
7521         m32c_print_operand, m32c_print_operand_address): Remove.
7522         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
7523         Change return type to bool. Change argument type to bool.
7524         (m32c_print_operand, m32c_print_operand_address): Make static.
7525         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7526         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7527
7528 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7529
7530         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
7531         attributes): Document mmap.
7532
7533 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
7534
7535         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7536         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
7537         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
7538         mmix_print_operand, mmix_print_operand_address): Remove.
7539         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
7540         Change return type to bool. Change argument type to bool.
7541         (mmix_print_operand, mmix_print_operand_address): Make static.
7542         (mmix_intval, mmix_output_condition): Change 'x' argument type
7543         to const_rtx.
7544         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
7545         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7546
7547 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
7548
7549         PR target/39386
7550         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
7551         shift counter for x << x and x >> x shifts.
7552
7553 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7554
7555         PR target/47124
7556         * config.gcc: Reject *-*-solaris2 configuration.
7557
7558 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
7559
7560         PR tree-optimization/49809
7561         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
7562         gimple_get_lhs instead of gimple_assign_lhs.
7563
7564 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7565
7566         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
7567
7568 2011-07-25  Richard Guenther  <rguenther@suse.de>
7569
7570         PR tree-optimization/49822
7571         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7572         more.  Make sure to preserve stmts with side-effects.  Properly
7573         handle virtual defs, follow a longer def chain.
7574
7575 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
7576
7577         PR plugins/45348
7578         PR plugins/48425
7579         PR plugins/46577
7580         * Makefile.in: Do not flatten c-family directory when installing
7581         plugin headers.
7582
7583 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7584
7585         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
7586         original nodes if we are dealing with virtual clones.
7587
7588 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
7589
7590         * common/config/c6x/c6x-common.c: New file.
7591
7592 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
7593
7594         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
7595
7596 2011-07-25  Richard Guenther  <rguenther@suse.de>
7597
7598         PR tree-optimization/49715
7599         * tree-vrp.c: Include expr.h and optabs.h.
7600         (range_fits_type_): New function.
7601         (simplify_float_conversion_using_ranges): Likewise.
7602         (simplify_stmt_using_ranges): Call it.
7603         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
7604         * optabs.c (can_float_p): Export.
7605         * optabs.h (can_float_p): Declare.
7606
7607 2011-07-25  Richard Guenther  <rguenther@suse.de>
7608
7609         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
7610         (get_value_range): For out-of-range SSA names or names created
7611         after propagation return a read-only varying range.
7612         (dump_all_value_ranges): Adjust.
7613         (vrp_initialize): Likewise.
7614         (vrp_finalize): Likewise.
7615
7616 2011-07-24  Richard Henderson  <rth@redhat.com>
7617
7618         PR debug/49831
7619         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
7620         them entirely.
7621
7622 2011-07-24  Richard Henderson  <rth@redhat.com>
7623
7624         PR debug/49825
7625         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
7626         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
7627
7628 2011-07-24  Richard Henderson  <rth@redhat.com>
7629
7630         PR debug/49827
7631         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
7632
7633 2011-07-24  Richard Henderson  <rth@redhat.com>
7634
7635         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
7636         Zero args_size for abnormal edges.  Adjust all callers.
7637
7638 2011-07-24  Richard Henderson  <rth@redhat.com>
7639
7640         PR debug/49825
7641         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
7642
7643 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7644
7645         PR bootstrap/49835
7646         * collect2.c (demangle_flag): Removed.
7647
7648 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
7649
7650         * configure.ac (demangler_in_ld): Default to yes.
7651         * configure: Regenerated.
7652         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7653         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7654         --no-demangle options straight through to ld.  When
7655         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7656         way that has the intended effect on Windows.
7657
7658 2011-07-23  Richard Henderson  <rth@redhat.com>
7659
7660         * dwarf2cfi.c: Include basic-block.h.
7661         (dw_label_info): Remove.
7662         (trace_work_list, trace_index): New.
7663         (remember_row, emit_cfa_remember): Remove.
7664         (dw_trace_info_hash, dw_trace_info_eq): New.
7665         (get_trace_index, get_trace_info): New.
7666         (save_point_p): New.
7667         (free_cfi_row): Remove.
7668         (add_cfi): Do not emit DW_CFA_remember_state.
7669         (cfa_row_equal_p): New.
7670         (barrier_args_size): Remove.
7671         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7672         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7673         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7674         (dwarf2out_cfi_begin_epilogue): Remove.
7675         (dwarf2out_frame_debug_restore_state): Remove.
7676         (connect_traces, create_pseudo_cfg): New.
7677         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7678         * Makefile.in (dwarf2cfi.o): Update.
7679
7680 2011-07-23  Richard Henderson  <rth@redhat.com>
7681
7682         * dwarf2cfi.c (dw_trace_info): New.
7683         (dw_label_info): New.
7684         (cie_return_save): New.
7685         (cur_trace): New.
7686         (queued_args_size): Rename from args_size.  Update all users.
7687         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7688         (def_cfa_1): Use cur_trace instead of cfa_*.
7689         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7690         (clobbers_queued_reg_save, reg_saved_in): Likewise.
7691         (dwarf2out_frame_debug_expr): Likewise.
7692         (create_cie_data): Split out from ...
7693         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
7694
7695 2011-07-23  Richard Henderson  <rth@redhat.com>
7696
7697         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7698         Update all users to match.
7699         (execute_dwarf2_frame): Free reg_saved_in_data.
7700
7701 2011-07-23  Richard Henderson  <rth@redhat.com>
7702
7703         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
7704         (queued_reg_saves): Don't GTY.  Change to a VEC.
7705         (queue_reg_save): Update to match.
7706         (dwarf2out_flush_queued_reg_saves): Likewise.
7707         (clobbers_queued_reg_save): Likewise.
7708         (reg_saved_in): Likewise.
7709         (execute_dwarf2_frame): Free queued_reg_saves.
7710
7711 2011-07-23  Richard Henderson  <rth@redhat.com>
7712
7713         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
7714
7715 2011-07-23  Richard Henderson  <rth@redhat.com>
7716
7717         * dwarf2cfi.c (add_cfi_args_size): Split out from...
7718         (dwarf2out_args_size): ... here.
7719         (add_cfi_restore): Split out from ...
7720         (dwarf2out_frame_debug_cfa_restore): ... here.
7721         (def_cfa_0): Split out from ...
7722         (def_cfa_1): ... here.
7723         (cfi_oprnd_equal_p, cfi_equal_p): New.
7724         (change_cfi_row): New.
7725         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7726         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7727         (output_cfis): Remove.
7728         * dwarf2out.c (output_fde): Simplify output_cfi loop.
7729         (dwarf2out_switch_text_section): Don't call output_cfis.
7730         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7731         * dwarf2out.h: Update decls.
7732         (enum dw_val_class): Add dw_val_class_none.
7733
7734 2011-07-23  Richard Henderson  <rth@redhat.com>
7735
7736         * dwarf2cfi.c (update_row_reg_save): New.
7737         (dwarf2out_frame_debug_cfa_expression): Use it.
7738         (dwarf2out_frame_debug_cfa_restore): Likewise.
7739         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
7740
7741 2011-07-23  Richard Henderson  <rth@redhat.com>
7742
7743         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
7744
7745 2011-07-23  Richard Henderson  <rth@redhat.com>
7746
7747         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7748         (cie_cfi_row): New.
7749         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7750         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7751         (cur_row, remember_row): New.
7752         (def_cfa_1): Use cur_row instead of the old_* variables.
7753         (dwarf2out_frame_debug_restore_state): Similarly.
7754         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7755         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7756         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7757         (dwarf2out_frame_debug_cfa_offset): Likewise.
7758         (dwarf2out_frame_debug_expr): Likewise.
7759         (execute_dwarf2_frame): Set up cur_row.
7760         * dwarf2out.h (struct cfa_loc): Mark for GTY.
7761
7762 2011-07-23  Richard Henderson  <rth@redhat.com>
7763
7764         * basic-block.h (EDGE_PRESERVE): New.
7765         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7766         * bb-reorder.c: Include except.h.
7767         (fix_up_crossing_landing_pad): New.
7768         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7769         landing pads in the right partition.  Duplicate as necessary.
7770         (partition_hot_cold_basic_blocks): Fix up DF info after
7771         duplicating landing pads.
7772         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7773         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7774         is set properly.  Validate that EH edges are not CROSSING.
7775         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7776         (dw2_build_landing_pads): ... here.
7777         (convert_to_eh_region_ranges): Remove code to fixup crossing
7778         landing pads.
7779         * except.h (expand_dw2_landing_pad_for_region): Declare.
7780         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7781
7782 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
7783
7784         PR target/49816
7785         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7786
7787 2011-07-22  Jason Merrill  <jason@redhat.com>
7788
7789         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7790
7791 2011-07-22  Richard Henderson  <rth@redhat.com>
7792
7793         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7794
7795 2011-07-22  Richard Henderson  <rth@redhat.com>
7796
7797         * jump.c (maybe_propagate_label_ref): Split out of...
7798         (mark_all_labels): ... here.  Do not attempt label_ref
7799         propagation while in cfglayout mode.
7800
7801 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7802
7803         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7804         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7805         (dwarf_attr_name): Handle DW_AT_GNU_macros.
7806         (dwarf2out_define): If the vector is empty and
7807         lineno is 0, emit a dummy entry first.
7808         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
7809         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7810         optimize_macinfo_range): New functions.
7811         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
7812         mergeable, optimize longer strings using
7813         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7814         optimize longer sequences of define/undef ops from headers
7815         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
7816         emit a section headers.
7817         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7818         and macinfo_section_label to DEBUG_MACRO_SECTION
7819         resp. DEBUG_MACRO_SECTION_LABEL.
7820         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7821         instead of DW_AT_macro_info.
7822
7823         PR other/32998
7824         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7825         options.
7826         * dwarf2out.c: Include opts.h.
7827         (dchar_p): New typedef.  Define heap VEC for it.
7828         (producer_string): New variable.
7829         (gen_producer_string): New function.
7830         (gen_compile_unit_die): Use it.
7831         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7832         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7833         * doc/invoke.texi: Document -grecord-gcc-switches and
7834         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7835         to -frecord-gcc-switches description.
7836
7837 2011-07-22  Jason Merrill  <jason@redhat.com>
7838
7839         PR c++/30112
7840         * c-decl.c (c_linkage_bindings): Define.
7841
7842 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
7843
7844         PR debug/49815
7845         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7846
7847 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
7848
7849         * config/i386/i386.c (ix86_option_override_internal): Disallow
7850         MS ABI in x32 mode.
7851         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7852         only for TARGET_LP64.
7853         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7854
7855 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7856
7857         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7858         avoid warnings when GCC is built with a C++ compiler.
7859
7860 2011-07-22  Martin Jambor  <mjambor@suse.cz>
7861
7862         PR lto/49796
7863         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7864         if decl node is in another partition, call cgraph_get_node only once.
7865
7866 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
7867
7868         * config.gcc (x86_64-*-linux*): Set
7869         default_gnu_indirect_function to yes.
7870
7871 2011-07-22  Richard Guenther  <rguenther@suse.de>
7872
7873         PR tree-optimization/45819
7874         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7875         preserve volatile and notrap flags.
7876
7877 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7878             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7879
7880         PR bootstrap/49794
7881         * configure.ac: Test AM_ICONV with CXX.
7882         * configure: Regenerate.
7883         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7884
7885 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7886
7887         PR bootstrap/49797
7888         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7889         (set_cloog_options): Use it.
7890
7891 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7892
7893         PR c++/49756
7894         * gcc.c (main): Call stack_limit_increase (64MB).
7895         * toplev.c (toplev_main): Likewise.
7896
7897 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7898
7899         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7900         instead of force_reg.
7901
7902 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7903
7904         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7905         needed and use force_reg after convert.
7906         (ix86_expand_call): Likewise.
7907         (ix86_expand_special_args_builtin): Likewise.
7908         (ix86_expand_builtin): Likewise.
7909
7910 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7911
7912         PR middle-end/47654
7913         PR middle-end/49649
7914         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7915         in parameter.  Initialize v1 and v2 based on the values returned
7916         by clast_name_to_lb_ub.
7917         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7918         values.
7919         (type_for_clast_bin): Same.
7920         (type_for_clast_expr): Same.
7921         (type_for_clast_eq): Update calls to type_for_clast_expr.
7922         (type_for_clast_for): Same.
7923         (build_iv_mapping): Same.
7924         * graphite-ppl.h (value_min): New.
7925
7926 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7927
7928         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7929         types whenever possible.
7930
7931 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7932
7933         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7934         and ub fields.
7935         (new_clast_name_index): Add lb and ub parameters.
7936         (free_clast_name_index): New.
7937         (clast_name_to_lb_ub): New.
7938         (save_clast_name_index): Add lb and ub parameters.
7939         (compute_bounds_for_param): New.
7940         (type_for_level): Removed.
7941         (type_for_clast_for): Removed level parameter.  Do not call
7942         type_for_level.
7943         (graphite_create_new_loop): Store the lb and ub for the clast_name
7944         of the iterator of the loop that has been generated.
7945         (graphite_create_new_loop_guard): Remove parameter level.
7946         (create_params_index): Store the lb and ub of each parameter.
7947         (gloog): Use free_clast_name_index.  Pass to create_params_index
7948         the current scop.
7949
7950 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7951
7952         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7953         (max_precision_type): Inline max_signed_precision_type.
7954         (type_for_clast_red): Use max_precision_type.
7955         (type_for_clast_bin): Same.
7956         (type_for_clast_for): Same.
7957
7958 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7959
7960         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7961         type_for_interval.
7962         (gcc_type_for_value): Renamed type_for_value.
7963         (gcc_type_for_clast_term): Renamed type_for_clast_term.
7964         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7965         (gcc_type_for_clast_red): Renamed type_for_clast_red.
7966         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7967         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7968         (graphite_translate_clast_equation): Update calls.
7969         (compute_type_for_level): Renamed type_for_level.
7970         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7971         (build_iv_mapping): Update calls.
7972         (graphite_create_new_loop_guard): Same.
7973
7974 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7975
7976         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7977         comment.
7978
7979 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7980
7981         * graphite-clast-to-gimple.c (struct ivs_params): New.
7982         (clast_name_to_gcc): Use ivs_params to pass around parameters.
7983         (clast_to_gcc_expression): Same.
7984         (clast_to_gcc_expression_red): Same.
7985         (gcc_type_for_clast_term): Same.
7986         (gcc_type_for_clast_expr): Same.
7987         (gcc_type_for_clast_red): Same.
7988         (gcc_type_for_clast_bin): Same.
7989         (gcc_type_for_clast_eq): Same.
7990         (graphite_translate_clast_equation): Same.
7991         (graphite_create_guard_cond_expr): Same.
7992         (graphite_create_new_guard): Same.
7993         (graphite_create_new_loop): Same.
7994         (build_iv_mapping): Same.
7995         (translate_clast_user): Same.
7996         (graphite_create_new_loop_guard): Same.
7997         (translate_clast): Same.
7998         (translate_clast_for_loop): Same.
7999         (translate_clast_for): Same.
8000         (translate_clast_guard): Same.
8001         (initialize_cloog_names): Fix typo.
8002         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
8003
8004 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8005
8006         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
8007         (new_clast_name_index): Add level parameter.
8008         (clast_name_to_level): New.
8009         (save_clast_name_index): Add level parameter.
8010         (newivs_to_depth_to_newiv): Removed.
8011         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
8012         (graphite_create_new_loop): Add level parameter.  Pass level to
8013         save_clast_name_index.
8014         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
8015         (create_params_index): Pass level to save_clast_name_index.
8016
8017 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8018
8019         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
8020         recompute type, lb, and ub.  Get them from...
8021         (graphite_create_new_loop_guard): ...here.  Pass in parameter
8022         pointers to type, lb, and ub.
8023         (translate_clast_for_loop): Update function calls.
8024         (translate_clast_for): Same.
8025
8026 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
8027
8028         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
8029         psct_dynamic_dim.
8030         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
8031         (gcc_type_for_iv_of_clast_loop): Update use of level.
8032         (gloog): Start counting nesting level from 0.
8033         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
8034         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
8035         psct_dynamic_dim on level.
8036
8037 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8038
8039         * config/i386/i386.c (ix86_legitimize_address): Convert to
8040         Pmode if needed.
8041
8042 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
8043
8044         * config/i386/i386.c (function_value_64): Always return pointers
8045         in Pmode.
8046         (ix86_promote_function_mode): New.
8047         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
8048
8049 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8050
8051         PR tree-optimization/49749
8052         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
8053         remove no-longer-used maxrank variable.
8054
8055 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8056
8057         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
8058
8059 2011-07-21  Jason Merrill  <jason@redhat.com>
8060
8061         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
8062         * recog.h (struct insn_data_d): Check it instead of
8063         HAVE_DESIGNATED_INITIALIZERS.
8064         * genoutput.c (output_insn_data): Likewise.
8065
8066 2011-07-21  Richard Guenther  <rguenther@suse.de>
8067
8068         PR tree-optimization/49770
8069         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
8070         valueized any operand.  Renamed from ...
8071         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
8072         (valueize_shared_reference_ops_from_ref): Return whether we
8073         valueized any operand.
8074         (vn_reference_lookup): Only when we valueized any operand
8075         use the valueized reference for alias analysis.  Do not preserve
8076         the original reference tree in this case.
8077
8078 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
8079
8080         * config/i386/i386.c (ix86_decompose_address): Reject all but
8081         register operands and subregs of DImode hard registers in index.
8082
8083 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8084
8085         * fold-const.c (fold_unary_loc): Preserve indirect
8086         comparison cast to none-boolean type.
8087         * tree-ssa.c (useless_type_conversion_p): Preserve cast
8088         from/to boolean-type.
8089         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
8090         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
8091         * tree-cfg.c (verify_gimple_comparison): Check result
8092         type of comparison expression.
8093         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
8094         of condition result and disallow type-cast sinking into comparison.
8095
8096 2011-07-21  Richard Guenther  <rguenther@suse.de>
8097
8098         * tree-ssa-forwprop.c (combine_conversions): Return whether
8099         we have to run cfg-cleanup.  Properly remove dead stmts.
8100         (ssa_forward_propagate_and_combine): Adjust.
8101
8102 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
8103
8104         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
8105
8106 2011-07-21  Kai Tietz  <ktietz@redhat.com>
8107
8108         * tree-ssa-propagate.c (substitute_and_fold): Use
8109         do_dce flag to deside, if BB's statements are scanned
8110         in last to first, or first to last order.
8111
8112 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
8113
8114         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
8115
8116 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
8117             Uros Bizjak  <ubizjak@gmail.com>
8118             Richard Henderson  <rth@redhat.com>
8119
8120         * config/i386/constraints.md (w): New.
8121
8122         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
8123         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
8124
8125         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
8126         instead of TARGET_64BIT.
8127
8128         * config/i386/i386.md (indirect_jump): Replace
8129         nonimmediate_operand with indirect_branch_operand.
8130         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
8131         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
8132         Convert operand 0 to Pmode for x32 if not PIC.
8133         (*tablejump_1): Replace nonimmediate_operand with
8134         indirect_branch_operand.  Replace constraint "m" with "w".
8135         (*call_vzeroupper): Replace constraint "m" with "w".
8136         (*call): Likewise.
8137         (*call_rex64_ms_sysv_vzeroupper): Likewise.
8138         (*call_rex64_ms_sysv): Likewise.
8139         (*call_value_vzeroupper): Likewise.
8140         (*call_value): Likewise.
8141         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
8142         (*call_value_rex64_ms_sysv): Likewise.
8143         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
8144
8145         * config/i386/predicates.md (indirect_branch_operand): New.
8146         (call_insn_operand): Support x32.
8147
8148 2011-07-20  Michael Eager  <eager@eagercon.com>
8149
8150         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
8151
8152 2011-07-20  Richard Henderson  <rth@redhat.com>
8153
8154         * cfg.c (dump_bb_info): Dump basic_block->flags.
8155         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
8156
8157 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8158
8159         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8160         of DImode hard registers in index.
8161         (ix86_legitimate_address_p): Allow subregs of base and index to span
8162         more than a word.  Assert that subregs of base and index satisfy
8163         register_no_elim_operand predicates.  Reject addresses where
8164         base and index have different modes.
8165
8166 2011-07-20  Robert Millan  <rmh@gnu.org>
8167
8168         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
8169
8170 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8171
8172         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
8173         removing now-unnecessary assignment.
8174
8175 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8176
8177         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
8178         memory address space to the type's address space.
8179
8180 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8181
8182         PR target/36467
8183         PR target/49687
8184         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
8185         and expand appropriately if there is a CONST_INT in operand2.
8186         (usmulqihi3): New insn.
8187         (*sumulqihi3): New insn.
8188         (*osmulqihi3): New insn.
8189         (*oumulqihi3): New insn.
8190         (*muluqihi3.uconst): New insn_and_split.
8191         (*muluqihi3.sconst): New insn_and_split.
8192         (*mulsqihi3.sconst): New insn_and_split.
8193         (*mulsqihi3.uconst): New insn_and_split.
8194         (*mulsqihi3.oconst): New insn_and_split.
8195         (*ashifthi3.signx.const): New insn_and_split.
8196         (*ashifthi3.signx.const7): New insn_and_split.
8197         (*ashifthi3.zerox.const): New insn_and_split.
8198         (mulsqihi3): New insn.
8199         (muluqihi3): New insn.
8200         (muloqihi3): New insn.
8201         * config/avr/predicates.md (const_2_to_7_operand): New.
8202         (const_2_to_6_operand): New.
8203         (u8_operand): New.
8204         (s8_operand): New.
8205         (o8_operand): New.
8206         (s9_operand): New.
8207         (register_or_s9_operand): New.
8208
8209 2011-07-20  Kai Tietz  <ktietz@redhat.com>
8210
8211         * builtins.c (fold_builtin_expect): See through the cast
8212         from truthvalue_type_node to long.
8213
8214 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
8215
8216         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
8217         where we can use them from the standard and altivec instruction
8218         sets, instead of always using the 3 operand VSX forms that require
8219         the destination to overlap one of the inputs.
8220         (vsx_fms*): Ditto.
8221         (vsx_fnma*): Ditto.
8222         (vsx_fnms*): Ditto.
8223
8224         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
8225         for DF types.
8226         (fmsdf4_fpr): Ditto.
8227         (nfmadf4_fpr): Ditto.
8228         (nfmsdf4_fpr): Ditto.
8229
8230 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
8231
8232         * genrecog.c (make_insn_sequence): Correct position numbering
8233         when filtering out match_scratch and match_dup.
8234
8235 2011-07-20  Richard Guenther  <rguenther@suse.de>
8236
8237         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
8238         against already removed statements.
8239         (forward_propagate_into_comparison): Remove dead defining stmts.
8240         (forward_propagate_into_gimple_cond): Likewise.
8241         (forward_propagate_into_cond): Simplify.
8242         (ssa_forward_propagate_and_combine): Handle changed cfg from
8243         forward_propagate_into_comparison.
8244         * tree-ssa-phiopt.c (conditional_replacement): Use proper
8245         locations for newly built statements.
8246
8247 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
8248
8249         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
8250
8251 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8252
8253         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
8254         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
8255
8256 2011-07-20  Richard Guenther  <rguenther@suse.de>
8257
8258         PR middle-end/18908
8259         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
8260         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
8261         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
8262
8263 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
8264
8265         * config/frv/frv.c (frv_register_move_cost): Define explicitly
8266         costs for subclasses of GR_REGS.
8267
8268 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
8269
8270         PR target/49780
8271         * config/i386/predicates.md (no_seg_addres_operand): No more special.
8272         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8273         of DImode hard registers in base.
8274         (ix86_legitimate_address_p): Allow SImode and DImode base and index
8275         registers.
8276
8277 2011-07-20  Richard Guenther  <rguenther@suse.de>
8278
8279         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
8280         (unify_nodes): Deal with that.
8281         (solve_graph): Likewise.
8282
8283 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
8284
8285         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
8286         canonicalize left operand from ZERO_EXTEND to AND.
8287
8288 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
8289
8290         * target.def (class_max_nregs): New hook.
8291         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
8292         * doc/tm.texi: Regenerate.
8293         * targhooks.c (default_class_max_nregs): New function.
8294         * targhooks.h (default_class_max_nregs): Declare.
8295         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
8296         x_ira_reg_class_min_nregs arrays to unsigned char.
8297         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
8298         hook instead of CLASS_MAX_NREGS macro.
8299         * reginfo.c (restore_register_info): Ditto.
8300         * ira-conflicts.c (process_regs_for_copy): Use
8301         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8302         Change type rclass and aclass vars to reg_class_t.
8303         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
8304         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
8305         reg_class_t.
8306         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
8307         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
8308
8309         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
8310         * config/i386/i386.c (ix86_class_max_nregs): New function.
8311         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
8312         instead of CLASS_MAX_NREGS macro.
8313         (TARGET_CLASS_MAX_NREGS): Define.
8314         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
8315         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
8316         * config/avr/avr.c (class_max_nregs): Remove function.
8317         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
8318         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
8319         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
8320         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
8321         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
8322         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
8323         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
8324         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
8325         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
8326         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
8327         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
8328         * config/score/score.h (CLASS_MAX_NREGS): Remove.
8329         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
8330         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
8331         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
8332
8333 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
8334
8335         * cif-code.def (OVERWRITABLE): Fix typo and move around.
8336         (TARGET_OPTIMIZATION_MISMATCH): Delete.
8337         (EH_PERSONALITY): Fix typo.
8338         (NON_CALL_EXCEPTIONS): Fix message.
8339         (OPTIMIZATION_MISMATCH): Adjust message.
8340         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
8341
8342 2011-07-19  Ian Lance Taylor  <iant@google.com>
8343
8344         * doc/install.texi (Configuration): Document
8345         --enable-build-poststage1-with-cxx.
8346
8347 2011-07-19  Robert Millan  <rmh@gnu.org>
8348
8349         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
8350         (GLIBC_DYNAMIC_LINKER): Remove.
8351
8352         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
8353         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8354         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8355         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
8356         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
8357         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
8358
8359         * config/mips/linux.h: Remove everything except for ...
8360         (GLIBC_DYNAMIC_LINKER): ... this macro.
8361
8362         * config/mips/linux64.h: Remove everything except for ...
8363         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
8364         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
8365         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
8366         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
8367         (GNU_USER_LINK_EMULATIONN32): New macros.
8368
8369         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
8370         Use the new headers.
8371
8372 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8373
8374         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
8375         Add offset_known_p and size_known_p fields.
8376         (MEM_OFFSET_KNOWN_P): Update accordingly.
8377         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
8378         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
8379         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
8380         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
8381         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
8382         (init_emit_regs): Likewise.
8383
8384 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8385
8386         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
8387         (MEM_OFFSET): Change from returning an rtx to returning a
8388         HOST_WIDE_INT.
8389         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
8390         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
8391         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8392         (clear_mem_offset): Declare.
8393         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
8394         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
8395         MEM_OFFSET to get a HOST_WIDE_INT offset.
8396         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
8397         (adjust_offset_for_component_ref): Take a bool "known_p"
8398         parameter and a HOST_WIDE_INT "offset" parameter.
8399         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
8400         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
8401         than an rtx.  Use clear_mem_offset to clear the offset.
8402         * cfgcleanup.c (merge_memattrs): Likewise.
8403         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
8404         * function.c (assign_parm_find_stack_rtl): Likewise.
8405         (assign_parm_setup_stack): Likewise.
8406         * print-rtl.c (print_rtx): Likewise.
8407         * reload.c (find_reloads_subreg_address): Likewise.
8408         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8409         * var-tracking.c (INT_MEM_OFFSET): Likewise.
8410         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8411         (get_mem_align_offset): Likewise.
8412         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
8413         (clear_mem_offset): New function.
8414         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
8415         offset rather than an rtx.  Assume both the expressio and offset
8416         are available.
8417         (r10k_needs_protection_p_1): Update accordingly, checking the
8418         expression and offset availability here instead.
8419
8420 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8421
8422         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
8423         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
8424         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
8425         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
8426         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8427         (clear_mem_size): Declare.
8428         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
8429         (clear_mem_size): New function.
8430         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
8431         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
8432         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
8433         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
8434         to clear the size.
8435         (nonoverlapping_memrefs_p): Likewise.
8436         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
8437         (expand_builtin_init_trampoline): Likewise.
8438         * calls.c (compute_argument_addresses): Likewise.
8439         * cfgcleanup.c (merge_memattrs): Likewise.
8440         * dce.c (find_call_stack_args): Likewise.
8441         * dse.c (record_store, scan_insn): Likewise.
8442         * dwarf2out.c (dw_sra_loc_expr): Likewise.
8443         * expr.c (emit_block_move_hints): Likewise.
8444         * function.c (assign_parm_find_stack_rtl): Likewise.
8445         * print-rtl.c (print_rtx): Likewise.
8446         * reload.c (find_reloads_subreg_address): Likewise.
8447         * rtlanal.c (may_trap_p_1): Likewise.
8448         * var-tracking.c (track_expr_p): Likewise.
8449         * varasm.c (assemble_trampoline_template): Likewise.
8450         * config/arm/arm.c (arm_print_operand): Likewise.
8451         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
8452         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
8453         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
8454         (expand_constant_setmem_prologue): Likewise.
8455         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
8456         * config/rs6000/rs6000.c (expand_block_move): Likewise.
8457         (adjacent_mem_locations): Likewise.
8458         * config/s390/s390.c (s390_expand_setmem): Likewise.
8459         (s390_expand_insv): Likewise.
8460         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
8461         (*extendqi<mode>2_short_displ): Likewise.
8462         * config/sh/sh.c (expand_block_move): Likewise.
8463         * config/sh/sh.md (extv, extzv): Likewise.
8464
8465 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8466
8467         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
8468         (mem_attrs_htab_eq): ...here.
8469         (find_mem_attrs): Replace with...
8470         (set_mem_attrs): ...this function.  Take a mem_attrs structure
8471         rather than individual fields.
8472         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8473         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8474         (set_mem_size, change_address, adjust_address_1, offset_address)
8475         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8476         Update accordingly.
8477
8478 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8479
8480         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
8481         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
8482         Provide a dummy definition of MEM_ADDR_SPACE for generators.
8483         (target_rtl): Add x_mode_mem_attrs.
8484         (mode_mem_attrs): New macro.
8485         (get_mem_attrs): New function.
8486         * emit-rtl.c (get_mem_attrs): Rename to...
8487         (find_mem_attrs): ...this.
8488         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
8489         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
8490         (set_mem_size, change_address, adjust_address_1, offset_address)
8491         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
8492         Update accordingly.
8493         (init_emit_regs): Initialize mode_mem_attrs.
8494
8495 2011-07-19  Richard Guenther  <rguenther@suse.de>
8496
8497         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
8498         TRUTH_*_EXPR handling.
8499         * tree-ssa-operands.c (get_expr_operands): Likewise.
8500         * tree-ssa-pre.c (fully_constant_expression): Likewise.
8501         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
8502         Likewise.
8503         (is_and_or_or): Likewise.
8504         (is_norm_cond_subset_of): Likewise.
8505
8506 2011-07-19  Richard Guenther  <rguenther@suse.de>
8507
8508         * tree.h (fold_build_pointer_plus_loc): New helper function.
8509         (fold_build_pointer_plus_hwi_loc): Likewise.
8510         (fold_build_pointer_plus): Define.
8511         (fold_build_pointer_plus_hwi): Likewise.
8512         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
8513         (fold_builtin_memory_op): Likewise.
8514         (fold_builtin_stpcpy): Likewise.
8515         (fold_builtin_memchr): Likewise.
8516         (fold_builtin_strstr): Likewise.
8517         (fold_builtin_strchr): Likewise.
8518         (fold_builtin_strrchr): Likewise.
8519         (fold_builtin_strpbrk): Likewise.
8520         (fold_builtin_strcat): Likewise.
8521         (expand_builtin_memory_chk): Likewise.
8522         (fold_builtin_memory_chk): Likewise.
8523         * c-typeck.c (build_unary_op): Likewise.
8524         * cgraphunit.c (thunk_adjust): Likewise.
8525         * fold-const.c (build_range_check): Likewise.
8526         (fold_binary_loc): Likewise.
8527         * omp-low.c (extract_omp_for_data): Likewise.
8528         (expand_omp_for_generic): Likewise.
8529         (expand_omp_for_static_nochunk): Likewise.
8530         (expand_omp_for_static_chunk): Likewise.
8531         * tree-affine.c (add_elt_to_tree): Likewise.
8532         * tree-data-ref.c (split_constant_offset_1): Likewise.
8533         * tree-loop-distribution.c (generate_memset_zero): Likewise.
8534         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
8535         * tree-predcom.c (ref_at_iteration): Likewise.
8536         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8537         (add_to_parts): Likewise.
8538         (create_mem_ref): Likewise.
8539         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8540         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
8541         (number_of_iterations_le): Likewise.
8542         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
8543         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8544         (vect_create_addr_base_for_vector_ref): Likewise.
8545         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
8546         (vect_create_cond_for_alias_checks): Likewise.
8547         * tree-vrp.c (extract_range_from_assert): Likewise.
8548         * config/alpha/alpha.c (alpha_va_start): Likewise.
8549         (alpha_gimplify_va_arg_1): Likewise.
8550         * config/i386/i386.c (ix86_va_start): Likewise.
8551         (ix86_gimplify_va_arg): Likewise.
8552         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8553         * config/mep/mep.c (mep_expand_va_start): Likewise.
8554         (mep_gimplify_va_arg_expr): Likewise.
8555         * config/mips/mips.c (mips_va_start): Likewise.
8556         (mips_gimplify_va_arg_expr): Likewise.
8557         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8558         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
8559         (rs6000_gimplify_va_arg): Likewise.
8560         * config/s390/s390.c (s390_va_start): Likewise.
8561         (s390_gimplify_va_arg): Likewise.
8562         * config/sh/sh.c (sh_va_start): Likewise.
8563         (sh_gimplify_va_arg_expr): Likewise.
8564         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
8565         * config/spu/spu.c (spu_va_start): Likewise.
8566         (spu_gimplify_va_arg_expr): Likewise.
8567         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8568         Likewise.
8569         (xstormy16_gimplify_va_arg_expr): Likewise.
8570         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
8571         (xtensa_gimplify_va_arg_expr): Likewise.
8572
8573 2011-07-19  Richard Guenther  <rguenther@suse.de>
8574
8575         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
8576         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
8577         handling.
8578
8579         PR middle-end/18908
8580         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
8581         result of BIT_*_EXPR to bitfield precision.
8582
8583 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
8584
8585         PR tree-optimization/49742
8586         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
8587         as a potential write.
8588
8589 2011-07-19  Richard Guenther  <rguenther@suse.de>
8590
8591         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
8592         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
8593         (forward_propagate_comparison): Simplify, remove obsolete code.
8594
8595 2011-07-19  Richard Guenther  <rguenther@suse.de>
8596
8597         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
8598         BIT_XOR_EXPR, same as the RTL expander does.
8599         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
8600         (verify_gimple_assign_unary): Likewise.
8601         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
8602         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
8603         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
8604
8605 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
8606
8607         PR tree-optimization/49768
8608         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
8609         if offset is smaller than bitoffset, but offset+size is bigger
8610         than bitoffset.
8611
8612 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
8613
8614         PR tree-optimization/49771
8615         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
8616         zero step, set segment length to the size of the data-ref's type.
8617
8618 2011-07-18  Martin Jambor  <mjambor@suse.cz>
8619
8620         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
8621         comments.
8622         (ipcp_values_pool): Declare.
8623         (ipcp_sources_pool): Likewise.
8624         (ipcp_lattice): Changed to forward declaration.
8625         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
8626         cannot_devirtualize.
8627         (ipa_node_params): New fields descriptors, lattices, known_vals,
8628         clone_for_all_contexts and node dead, removed fields params and
8629         count_scale.
8630         (ipa_set_param_count): Removed.
8631         (ipa_get_param_count): Made to work with descriptors vector.
8632         (ipa_get_param): Updated.
8633         (ipa_param_cannot_devirtualize_p): Removed.
8634         (ipa_param_types_vec_empty): Likewise.
8635         (ipa_set_param_used): New function.
8636         (ipa_get_param_used): Updated to use descriptors vector.
8637         (ipa_func_list): Removed.
8638         (ipa_init_func_list): Removed declaration.
8639         (ipa_push_func_to_list_1): Likewise.
8640         (ipa_pop_func_from_list): Likewise.
8641         (ipa_push_func_to_list): Removed.
8642         (ipa_lattice_from_jfunc): Remove declaration.
8643         (ipa_get_jf_pass_through_result): Declare.
8644         (ipa_get_jf_ancestor_result): Likewise.
8645         (ipa_value_from_jfunc): Likewise.
8646         (ipa_get_lattice): Update.
8647         (ipa_lat_is_single_const): New function.
8648         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8649         (ipa_init_func_list): Likewise.
8650         (ipa_pop_func_from_list): Likewise.
8651         (ipa_get_param_decl_index): Fix coding style.
8652         (count_formal_params): Removed.
8653         (count_formal_params_1): Renamed to count_formal_params.
8654         (ipa_populate_param_decls): Update to use descriptors vector.
8655         (ipa_initialize_node_params): Likewise.
8656         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8657         (ipa_analyze_params_uses): Likewise.
8658         (ipa_free_node_params_substructures): Likewise and free also lattices
8659         and known values.
8660         (duplicate_array): Removed.
8661         (ipa_edge_duplication_hook): Add the new edge to the list of edge
8662         clones.
8663         (ipa_node_duplication_hook): Update to use new lattices.
8664         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8665         (ipa_free_all_structures_after_iinln): Likewise.
8666         (ipa_write_node_info): Update to use new lattices.
8667         (ipa_read_node_info): Likewise.
8668         (ipa_get_jf_pass_through_result): New function.
8669         (ipa_get_jf_ancestor_result): Likewise.
8670         (ipa_value_from_jfunc): Likewise.
8671         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8672         * ipa-cp.c: Reimplemented.
8673         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8674         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8675         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8676         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8677         * doc/invoke.texi (devirt-type-list-size): Removed description.
8678         (ipa-cp-value-list-size): Added description.
8679
8680 2011-07-18  Richard Henderson  <rth@redhat.com>
8681
8682         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8683         before calling create_basic_block.
8684
8685 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
8686
8687         PR middle-end/49675
8688         * tree.c (build_common_builtin_nodes): Register
8689         __builtin_return_address, __cyg_profile_func_enter
8690         and __cyg_profile_func_exit.
8691
8692 2011-07-18  Richard Henderson  <rth@redhat.com>
8693
8694         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8695         (add_labels_and_missing_jumps): ... here.
8696         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8697
8698 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
8699
8700         PR target/47744
8701         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8702         of DImode hard registers in PLUS address chains.
8703
8704 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8705
8706         PR bootstrap/49769
8707         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8708         (alpha*-*-freebsd*): Likewise.
8709         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8710         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8711         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8712         crtprec80.o, crtfastmath.o to extra_parts for all targets.
8713         (ia64*-*-elf*): Remove extra_parts.
8714         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8715         (sparc64-*-linux*): Likewise.
8716         (sparc64-*-freebsd*): Likewise.
8717
8718         Revert:
8719         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8720         (ia64*-*-linux*): Likewise.
8721         (mips64*-*-linux*): Likewise.
8722         (mips*-*-linux*): Likewise.
8723
8724 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
8725
8726         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8727
8728 2011-07-18  Richard Guenther  <rguenther@suse.de>
8729
8730         * gimplify.c (gimplify_expr): Use input_location, not saved_location
8731         when building new trees.
8732
8733 2011-07-18  Richard Guenther  <rguenther@suse.de>
8734
8735         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8736         expansion result to bitfield precision if required.
8737
8738 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8739
8740         * config.gcc (i[3456x]86-*-netware*): Remove.
8741
8742         * gthr-nks.h: Remove.
8743         * configure.ac (enable_threads): Remove nks.
8744         * configure: Regenerate.
8745
8746         * config/i386/i386.c (ix86_encode_section_info): Remove netware
8747         reference.
8748         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8749         <netware.h> reference.
8750
8751         * config/i386/netware-libgcc.c,
8752         gcc/config/i386/netware-libgcc.def,
8753         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8754         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8755         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8756         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8757
8758         * doc/extend.texi (Function Attributes,
8759         callee_pop_aggregate_return): Remove i?86-netware reference.
8760         * doc/install.texi (Configuration, --enable-threads): Remove nks.
8761
8762 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8763
8764         PR target/49746
8765         Revert:
8766         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8767
8768         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8769         patterns.
8770
8771 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
8772
8773         PR middle-end/49732
8774         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8775
8776 2011-07-16  Matthias Klose  <doko@ubuntu.com>
8777
8778         * doc/install.texi: Document --enable-static-libjava.
8779
8780 2011-07-15  Richard Henderson  <rth@redhat.com>
8781
8782         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8783         Replace all three arguments by returning a VEC of edges.
8784         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8785         pointers and counts.
8786         (fix_edges_for_rarely_executed_code): Merge ...
8787         (rest_of_handle_partition_blocks): ... into...
8788         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
8789         any work was performed.
8790         (pass_partition_blocks): Clear todo_flags_finish.
8791
8792 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
8793             Jakub Jelinek  <jakub@redhat.com>
8794             Jonathan Wakely  <jwakely.gcc@gmail.com>
8795
8796         PR libstdc++/49745
8797         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8798         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8799
8800 2011-07-15  Jason Merrill  <jason@redhat.com>
8801
8802         PR testsuite/49741
8803         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8804         rather than --tool_opts.
8805
8806 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
8807
8808         * doc/plugins.texi (Building GCC plugins): gengtype needs its
8809         corresponding gtype.state.
8810
8811 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8812
8813         PR target/49723
8814         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8815
8816 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8817
8818         PR target/48220
8819         * doc/md.texi (Standard Names): Document window_save.
8820         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8821         expand_debug_expr and expand_debug_source_expr.  If the target has
8822         a window_save instruction, adjust the ENTRY_VALUE_EXP.
8823         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8824         SSA_NAME_VAR is a parameter.
8825         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8826         * var-tracking.c (parm_reg_t): New type and associated vector type.
8827         (windowed_parm_regs): New variable.
8828         (adjust_insn): If the target has a window_save instruction and this
8829         is the instruction, make its effect on parameter registers explicit.
8830         (next_non_note_insn_var_location): New function.
8831         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8832         (vt_add_function_parameter): If the target has a window_save insn,
8833         adjust the incoming RTL and record that in windowed_parm_regs.
8834         (vt_finalize): Free windowed_parm_regs.
8835
8836 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8837
8838         * doc/invoke.texi (C6X Options): New section.
8839         * doc/md.texi (TI C6X family): New section.
8840         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8841         tic6x-*-uclinux.
8842         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8843         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8844         Provide C6X definitions.
8845         * config/c6x/c6x.md: New file.
8846         * config/c6x/constraints.md: New file.
8847         * config/c6x/predicates.md: New file.
8848         * config/c6x/c6x-sched.md.in: New file.
8849         * config/c6x/c6x-sched.md: New file.
8850         * config/c6x/gensched.sh: New file.
8851         * config/c6x/c6x-mult.md.in: New file.
8852         * config/c6x/genmult.sh: New file.
8853         * config/c6x/c6x-mult.md: New file.
8854         * config/c6x/sync.md: New file.
8855         * config/c6x/c6x-protos.h: New file.
8856         * config/c6x/sfp-machine.h: New file.
8857         * config/c6x/c6x.c: New file.
8858         * config/c6x/c6x.h: New file.
8859         * config/c6x/crti.s: New file.
8860         * config/c6x/crtn.s: New file.
8861         * config/c6x/lib1funcs.asm: New file.
8862         * config/c6x/c6x-modes.def: New file.
8863         * config/c6x/genopt.sh: New file.
8864         * config/c6x/c6x.opt: New file.
8865         * config/c6x/c6x-tables.opt: New file.
8866         * config/c6x/c6x-opts.h: New file.
8867         * config/c6x/c6x-isas.def: New file.
8868         * config/c6x/elf.h: New file.
8869         * config/c6x/elf-common.h: New file.
8870         * config/c6x/uclinux-elf.h: New file.
8871         * config/c6x/t-c6x: New file.
8872         * config/c6x/t-c6x-elf: New file.
8873         * config/c6x/t-c6x-uclinux: New file.
8874         * config/c6x/t-c6x-softfp: New file.
8875         * config/c6x/gtd.c: New file.
8876         * config/c6x/gtf.c: New file.
8877         * config/c6x/ltd.c: New file.
8878         * config/c6x/ltf.c: New file.
8879         * config/c6x/ged.c: New file.
8880         * config/c6x/gef.c: New file.
8881         * config/c6x/led.c: New file.
8882         * config/c6x/lef.c: New file.
8883         * config/c6x/eqd.c: New file.
8884         * config/c6x/eqf.c: New file.
8885         * config/c6x/libgcc-c6xeabi.ver: New file.
8886
8887         Revert
8888         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8889         PR rtl-optimization/11320
8890         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8891         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8892         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8893         current_sched_info->compute_jump_reg_dependencies. Record which
8894         registers are used and which registers are set by the jump.
8895         Clear deps->reg_conditional_sets after a barrier.
8896         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8897         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8898         (init_deps): Initialize reg_conditional_sets.
8899         (free_deps): Clear reg_conditional_sets.
8900         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8901         Mark registers live on entry of the fallthrough block and conditionally
8902         set as set by the jump. Mark registers live on entry of non-fallthrough
8903         blocks as used by the jump.
8904         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8905         Mark new parameters as unused.
8906
8907 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
8908
8909         PR tree-opt/49309
8910         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8911         Use fold_build2_loc instead of build2.
8912         Use the correct type for the new tree.
8913
8914 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8915
8916         PR rtl-optimization/11320
8917         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8918         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8919
8920 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8921
8922         PR target/49487
8923         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8924         of REG.
8925         (*rotw<mode>): Use const_int_operand for operand2.
8926         Use match_scatch for operand3.
8927         (*rotb<mode>): Ditto
8928         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8929
8930 2011-07-14  Richard Guenther  <rguenther@suse.de>
8931
8932         PR tree-optimization/49651
8933         * tree-ssa-structalias.c (get_constraint_for_1): Properly
8934         handle dereferences with subvariables.
8935
8936 2011-07-14  Richard Guenther  <rguenther@suse.de>
8937
8938         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8939         (fold_stmt_1): Do it here directly on gimple and as a first thing.
8940
8941 2011-07-14  Richard Guenther  <rguenther@suse.de>
8942
8943         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8944         not bool_var when folding bool_var != 1 or bool_var == 0.
8945
8946 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8947
8948         * haifa-sched.c (schedule_insns): Remove outdated comment.
8949         (schedule_block): When computing a known value for TODO_SPEC,
8950         just set it rather than using logical operations.
8951         (try_ready): Likewise.  Use a local variable rather than a
8952         pointer to TODO_SPEC.  Reorder an if statement to move the
8953         easy case to the then block.
8954         * sched-deps.c (dep_spec_p): New static function.
8955         (update_dep): Use it to decide whether to call
8956         change_spec_dep_to_hard.
8957         (get_back_and_forw_lists): Use it.
8958         (sd_resolve_dep): Likewise.
8959         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8960         (haifa_note_mem_dep): Likewise.
8961         (check_dep): Likewise.
8962         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8963         (sched_free_deps): Free in two passes.
8964
8965 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
8966
8967         PR middle-end/49736
8968         * expr.c (all_zeros_p): Undo bogus part of last change.
8969
8970 2011-07-14  Matthias Klose <doko@ubuntu.com>
8971
8972         * doc/extend.texi (optimize attribute): Fix typo.
8973
8974 2011-07-14  Richard Guenther  <rguenther@suse.de>
8975
8976         * gimplify.c (gimplify_expr): Only do required conversions.
8977
8978 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8979
8980         PR target/43746
8981         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8982         i.e. use default_elf_select_section.
8983         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8984         (READONLY_DATA_SECTION_ASM_OP): Remove.
8985         (TARGET_ASM_NAMED_SECTION): Move from here...
8986         * config/avr/avr.c: ...to here.
8987         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8988         (avr_asm_named_section): Make static.
8989
8990 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8991
8992         PR bootstrap/49739
8993         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8994         and crtfastmath.o for Linux/x86.
8995
8996 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8997
8998         * haifa-sched.c: Include "hashtab.h"
8999         (sched_no_dce): New global variable.
9000         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
9001         SHADOW_P): New macros.
9002         (last_clock_var, cycle_issued_insns): Move declarations.
9003         (must_backtrack): New static variable.
9004         (struct delay_pair): New structure.
9005         (delay_htab, delay_htab_i2): New static variables.
9006         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
9007         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
9008         functions.
9009         (dep_cost_1): If delay pairs exist, try to look up the insns and
9010         use the correct pair delay if we find them.
9011         (rank-for_schedule): Tweak priority for insns that must be scheduled
9012         soon to avoid backtracking.
9013         (queue_insn): Detect conditions which force backtracking.
9014         (ready_add): Likewise.
9015         (struct sched_block_state): Add member shadows_only_p.
9016         (struct haifa_save_data): New structure.
9017         (backtrack_queue): New static variable.
9018         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
9019         unschedule_insns_until, restore_last_backtrack_point,
9020         free_topmost_backtrack_point, free_backtrack_queue,
9021         estimate_insn_tick, estimate_shadow_tick): New functions.
9022         (prune_ready_list): New arg shadows_only_p.  All callers changed.
9023         If true, remove everything that isn't SHADOW_P.  Look up delay
9024         pairs and estimate ticks to avoid scheduling the first insn too early.
9025         (verify_shadows): New function.
9026         (schedule_block): Add machinery to enable backtracking.
9027         (sched_init): Take sched_no_dce into account when setting
9028         DF_LR_RUN_DCE.
9029         (free_delay_pairs): New function.
9030         (init_h_i_d): Initialize INSN_EXACT_TICK.
9031         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
9032         * sched-deps.c (sd_unresolve_dep): New function.
9033         * sched-int. (struct haifa_sched_info): New fields save_state
9034         and restore_state.
9035         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
9036         feeds_backtrack_insn and shadow_p.
9037         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
9038         (sched_no_dce): Declare variable.
9039         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
9040         sd_unresolve_dep): Declare functions.
9041         * modulo-sched.c (sms_sched_info): Clear the two new fields.
9042         * sched-rgn.c (rgn_const_sched_info): Likewise.
9043         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9044         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
9045         (ebb_sched_info): Add them for the two new fields.
9046         (add_deps_for_risky_insns): Call add_delay_dependencies.
9047
9048 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9049
9050         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
9051         Rename -mr11.
9052         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
9053         (rs6000_call_indirect_aix): Ditto.
9054         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
9055         (call_indirect_aix<ptrsize>_internal): Ditto.
9056         (call_indirect_aix<ptrsize>_nor11): Ditto.
9057         (call_indirect_aix<ptrsize>_internal2): Ditto.
9058         (call_value_indirect_aix<ptrsize>): Ditto.
9059         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9060         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9061         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9062         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
9063
9064 2011-07-13  Jason Merrill  <jason@redhat.com>
9065
9066         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
9067
9068 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9069
9070         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
9071         * config/spu/spu.md ("clrsb<mode>2"): New expander.
9072
9073 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
9074
9075         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
9076         * configure: Regenerate.
9077
9078 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9079
9080         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
9081         (asm_file_start): Remove.
9082         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
9083         free_bb_for_insn around code that modifies insns before
9084         restarting df analysis.
9085
9086 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9087
9088         PR target/49541
9089         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
9090         (LINK_SPEC): ... here.
9091
9092 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9093
9094         * haifa-sched.c (struct sched_block_state): New.
9095         (schedule_block): Move some local variables into such a structure.
9096
9097 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9098
9099         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
9100         * config/i386/t-crtpc: Remove.
9101         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9102         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
9103         tmake_file.
9104         (x86_64-*-darwin*): Likewise.
9105         (i[34567]86-*-linux*): Likewise.
9106         (x86_64-*-linux*): Likewise.
9107
9108         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
9109         Handle -mpc32, -mpc64, -mpc80.
9110
9111 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9112
9113         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
9114         * config/alpha/t-crtfm: Remove.
9115         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
9116         * config/i386/t-crtfm: Remove.
9117         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
9118         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
9119         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
9120         * config/sparc/t-crtfm: Remove.
9121
9122         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
9123         (alpha*-*-freebsd*): Likewise.
9124         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
9125         (x86_64-*-darwin*): Likewise.
9126         (i[34567]86-*-linux*): Likewise.
9127         (x86_64-*-linux*): Likewise.
9128         (x86_64-*-mingw*): Likewise.
9129         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
9130         (ia64*-*-freebsd*): Likewise.
9131         (ia64*-*-linux*): Likewise.
9132         (mips64*-*-linux*): Likewise.
9133         (mips*-*-linux*): Likewise.
9134         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
9135         (sparc64-*-linux*): Likewise.
9136         (sparc64-*-freebsd*): Likewise.
9137
9138 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9139
9140         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
9141         * config/darwin-crt3.c: Move to ../libgcc/config.
9142         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
9143         ($(T)crt3$(objext)): Remove.
9144         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
9145         ($(T)crt2$(objext)): Remove.
9146         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
9147         (powerpc64-*-darwin*): Likewise.
9148
9149 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9150
9151         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
9152
9153         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
9154         (addsi_1_zext): This.
9155
9156 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9157
9158         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
9159         * doc/tm.texi: Regenerate.
9160         * target.def (mergeable_rodata_prefix): New defhookpod.
9161         * varasm.c (mergeable_string_section, mergeable_constant_section):
9162         Use it. Allocate name with alloca.
9163
9164 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9165
9166         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
9167
9168 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9169
9170         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
9171         overlap check.
9172
9173 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
9174
9175         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
9176         (count_type_elements): Delete.
9177         (complete_ctor_at_level_p): Declare.
9178         * expr.c (flexible_array_member_p): New function, split out from...
9179         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
9180         parameter with for_ctor_p.  When for_ctor_p is true, return the
9181         number of elements that should appear in the top-level constructor,
9182         otherwise return an estimate of the number of scalars.
9183         (categorize_ctor_elements): Replace p_must_clear with p_complete.
9184         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
9185         (complete_ctor_at_level_p): New function, borrowing union logic
9186         from old categorize_ctor_elements_1.
9187         (mostly_zeros_p): Return true if the constructor is not complete.
9188         (all_zeros_p): Update call to categorize_ctor_elements.
9189         * gimplify.c (gimplify_init_constructor): Update call to
9190         categorize_ctor_elements.  Don't call count_type_elements.
9191         Unconditionally prevent clearing for variable-sized types,
9192         otherwise rely on categorize_ctor_elements to detect
9193         incomplete initializers.
9194
9195 2011-07-13  Richard Guenther  <rguenther@suse.de>
9196
9197         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
9198         the final type is integral.
9199
9200 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
9201
9202         * sched-int.h (struct _dep): Add member cost.
9203         (DEP_COST, UNKNOWN_DEP_COST): New macros.
9204         * sched-deps.c (init_dep_1): Initialize DEP_COST.
9205         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
9206         (sched_change_pattern): Reset it for dependent insns.
9207
9208 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9209
9210         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
9211         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
9212         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
9213         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
9214         (CRT0_S, MCRT0_S): Remove.
9215         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
9216         Remove.
9217         (s-crt0): Remove.
9218         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
9219
9220 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9221
9222         * cse.c (insert_with_costs): Put semi-colon after empty loop body
9223         on the next line.
9224         * emit-rtl.c (push_to_sequence): Likewise.
9225         * haifa-sched.c (max_issue): Likewise.
9226         * matrix-reorg.c (add_allocation_site): Likewise.
9227         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
9228         * reload.c (alternative_allows_const_pool_ref): Likewise.
9229         * sched-rgn.c (rgn_add_block): Likewise.
9230         (rgn_fix_recovery_cfg): Likewise.
9231         * tree.c (attribute_list_contained): Likewise.
9232
9233 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
9234
9235         * config/i386/i386.c: Tidy processor feature bitmasks.
9236         (m_P4_NOCONA): New.
9237
9238 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
9239
9240         PR rtl-opt/49474
9241         * cprop.c (find_implicit_sets): Correct the condition.
9242
9243 2011-07-12  Richard Henderson  <rth@redhat.com>
9244
9245         PR target/49713
9246         * dwarf2out.h (dwarf_frame_regnum): Remove.
9247         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
9248         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
9249         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
9250         (execute_dwarf2_frame): Initialize them.
9251         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
9252         users of the macros with the variables.
9253         (expand_builtin_dwarf_sp_column): Revert last change.
9254         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
9255         result of DWARF_FRAME_REGNUM into a local variable.
9256
9257 2011-07-12  Richard Henderson  <rth@redhat.com>
9258
9259         PR target/49714
9260         * config/i386/i386.c (x86_output_mi_thunk): Use
9261         machopic_indirect_call_target instead of machopic_indirection_name
9262         directly.
9263
9264 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
9265             Eric Botcazou  <ebotcazou@adacore.com>
9266
9267         * prefix.h: Wrap up in extern "C" block.
9268
9269 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
9270
9271         AMD bdver2 Enablement
9272         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
9273         (case ${target}): Add bdver2.
9274         * config/i386/driver-i386.c (host_detect_local_cpu): Let
9275         -march=native recognize bdver2 processors.
9276         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9277         bdver2 def_and_undef
9278         * config/i386/i386.c (struct processor_costs bdver2_cost): New
9279         bdver2 cost table.
9280         (m_BDVER2): New definition.
9281         (m_AMD_MULTIPLE): Includes m_BDVER2.
9282         (initial_ix86_tune_features): Add bdver2 tuning.
9283         (processor_target_table): Add bdver2 entry.
9284         (static const char *const cpu_names): Add bdver2 entry.
9285         (ix86_option_override_internal): Add bdver2 instruction sets.
9286         (ix86_issue_rate): Add bdver2.
9287         (ix86_adjust_cost): Add bdver2.
9288         (has_dispatch): Add bdver2.
9289         * config/i386/i386.h (TARGET_BDVER2): New definition.
9290         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
9291         (enum processor_type): Add PROCESSOR_BDVER2.
9292         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
9293         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
9294         description.
9295
9296 2011-07-12  Richard Henderson  <rth@redhat.com>
9297
9298         PR target/49714
9299         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
9300         destination address in memory on some paths.
9301
9302 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
9303
9304         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
9305         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
9306         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
9307         * function.c (locate_and_pad_parm): Take it into account.
9308         * target.def (function_arg_round_boundary): New hook.
9309         * targhooks.c (default_function_arg_round_boundary): New function.
9310         * targhooks.h (default_function_arg_round_boundary): Declare.
9311         * doc/tm.texi: Regenerate.
9312
9313 2011-07-12  Richard Guenther  <rguenther@suse.de>
9314
9315         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
9316         Do not perform no-op changes.
9317
9318 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
9319
9320         * config/arm/predicates.md (neon_struct_operand): Make a normal
9321         predicate.
9322         (neon_struct_or_register_operand): New predicate.
9323         * config/arm/neon.md (movmisalign<mode>): Replace predicates
9324         with neon_struct_or_register_operand.
9325         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
9326         neon_struct_operand instead of memory_operand.
9327
9328 2011-07-12  Martin Jambor  <mjambor@suse.cz>
9329
9330         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
9331         * cgraph.c (cgraph_get_node_or_alias): Removed.
9332         (change_decl_assembler_name): Changed all calls to
9333         cgraph_get_node_or_alias to a call to cgraph_get_node.
9334         (cgraph_make_decl_local): Likewise.
9335         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
9336         * varasm.c (default_binds_local_p_1): Likewise.
9337         (decl_binds_to_current_def_p): Likewise.
9338
9339 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
9340
9341         PR tree-optimization/49712
9342         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
9343
9344 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
9345
9346         * genautomata.c (add_arc): Return void.  All callers changed.
9347         (make_automaton): Remove dead code.
9348
9349 2011-07-11  Richard Henderson  <rth@redhat.com>
9350
9351         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
9352         (DW_FRAME_POINTER_REGNUM): New.
9353         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
9354         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
9355         (dwf_regno): New.
9356         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
9357         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
9358         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
9359         Use it.
9360         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
9361         * dwarf2out.h (dwarf_frame_regnum): New.
9362         (struct cfa_loc): Document the domain of the reg member.
9363
9364 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
9365
9366         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
9367         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
9368
9369 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
9370
9371         PR debug/49676
9372         * dwarf2out.c (int_shift_loc_descriptor): New function.
9373         (int_loc_descriptor): If shorter, emit i as
9374         (i >> shift), shift, DW_OP_shl for suitable shift value.
9375         Similarly, try to optimize large negative values using
9376         DW_OP_neg of a positive value if shorter.
9377         (size_of_int_shift_loc_descriptor): New function.
9378         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
9379         changes.
9380         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
9381         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
9382         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
9383         is shorter.
9384         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
9385         addend as added DW_OP_plus if it is shorter.
9386
9387 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9388
9389         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
9390         (DTORS_SECTION_ASM_OP): Define.
9391
9392 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9393
9394         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
9395         * config/t-dfprules: Move to ../libgcc/config.
9396         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
9397         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
9398         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
9399         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9400         Likewise.
9401         (i[34567]86-*-cygwin*): Likewise.
9402         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
9403         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
9404         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
9405         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
9406         D64PBIT_FUNCS, D128PBIT_FUNCS.
9407
9408 2011-07-11  Richard Guenther  <rguenther@suse.de>
9409
9410         * tree-vrp.c (simplify_conversion_using_ranges): Manually
9411         translate the source value-range through the conversion chain.
9412
9413 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
9414
9415         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
9416
9417 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9418
9419         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
9420         a bi-arch compiler defaulting to 31-bit. In this case:
9421         (tmake_file): Add s390/t-linux64.
9422         * doc/install.texi: Add s390-linux to the list of targets supporting
9423         --enable-targets=all.
9424
9425 2011-07-11  Arthur Loiret  <aloiret@debian.org>
9426             Matthias Klose <doko@debian.org>
9427
9428         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
9429         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
9430         (tm_file): Add mips/linux64.h.
9431         (tmake_file): Add mips/t-linux64.
9432         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
9433         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
9434         instead of hardcoded mabi=n32.
9435         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
9436         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
9437         convention.
9438
9439 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9440
9441         * passes.c (init_optimization_passes): Add invariant motion pass
9442         after induction variable optimization.
9443
9444 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
9445
9446         PR target/39633
9447         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
9448         offsets 1..5 set cc0 in a usable way.
9449
9450 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
9451
9452         * tree.h (call_expr_arg): Remove.
9453         (call_expr_argp): Likewise.
9454
9455 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
9456
9457         * config/sparc/sparc.md (save_register_window_1): Rename to...
9458         (window_save): ...this.
9459         * config/sparc/sparc.c (emit_save_register_window): Rename to...
9460         (emit_window_save): ...this.
9461         (sparc_expand_prologue): Adjust to above renaming.
9462
9463 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9464
9465         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
9466         of movabs for x32.
9467
9468 2011-07-10  Richard Henderson  <rth@redhat.com>
9469
9470         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
9471         run final, instead of emitting text directly.
9472
9473 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         * config/i386/i386.c (ix86_option_override_internal): Turn on
9476         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
9477         small PIC models for TARGET_X32.
9478
9479 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
9480
9481         PR target/49684
9482         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
9483         $(LIBGCC2_CFLAGS).
9484
9485         PR bootstrap/49680
9486         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
9487         stray notes and debug insns by using prev_nonnote_nondebug_insn
9488         instead of PREV_INSN.
9489
9490 2011-07-09  Richard Henderson  <rth@redhat.com>
9491
9492         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
9493         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
9494         * dwarf2out.c: ... here.
9495         (output_all_cfis): Remove.
9496         (dwarf2out_switch_text_section): Use output_cfis directly.
9497         (size_of_locs): Export.
9498         (output_loc_sequence, output_loc_sequence_raw): Export.
9499         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
9500         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
9501         output_cfa_loc_raw): Move to ...
9502         * dwarfcfi.c: ... here.
9503         * dwarf2out.h: Update decls.
9504
9505 2011-07-09  Richard Henderson  <rth@redhat.com>
9506
9507         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
9508         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
9509         * dwarf2cfi.c: ... here.
9510         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
9511         (DWARF_ROUND, DWARF_CIE_ID): Remove.
9512         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
9513         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
9514         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
9515
9516 2011-07-09  Richard Henderson  <rth@redhat.com>
9517
9518         * dwarf2cfi.c (cie_return_save): New.
9519         (queue_reg_save): Use compare_reg_or_pc.
9520         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
9521         (dwarf2out_frame_debug_expr): Likewise.
9522         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
9523         (initial_return_save): Likewise.
9524         (execute_dwarf2_frame): Save and restore initial return save from
9525         the cie to the fde.
9526         * config/mips/mips.c (mips_frame_set): Remove special case for
9527         DWARF_FRAME_RETURN_COLUMN.
9528
9529 2011-07-09  Richard Henderson  <rth@redhat.com>
9530
9531         * dwarf2cfi.c (lookup_cfa): Remove.
9532         (execute_dwarf2_frame): Assert queues are empty on entry.
9533         Setup initial cfa directly, not via lookup_cfa.
9534         Don't clear args_size state here.
9535
9536 2011-07-09  Richard Henderson  <rth@redhat.com>
9537
9538         * dwarf2cfi.c (add_cfi_vec): New.
9539         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
9540         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
9541         (execute_dwarf2_frame): Set add_cfi_vec.
9542
9543 2011-07-09  Richard Henderson  <rth@redhat.com>
9544
9545         * defaults.h (ASM_COMMENT_START): Move here...
9546         * dwarf2asm.c: ... from here.
9547         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
9548         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
9549         * varasm.c: Likewise.
9550
9551 2011-07-09  Richard Henderson  <rth@redhat.com>
9552
9553         PR debug/49686
9554         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
9555         (create_cfi_notes): ... do it here instead.
9556
9557 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
9558
9559         PR debug/49676
9560         * dwarf2out.c (size_of_int_loc_descriptor): New function.
9561         (address_of_int_loc_descriptor): Use it.
9562         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
9563
9564 2011-07-09  Richard Henderson  <rth@redhat.com>
9565
9566         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
9567         (prologue, epilogue): New.
9568         (return, *rts): New.
9569         (blockage, setd, seti): New.
9570         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9571         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
9572         (pdp11_saved_regno): New.
9573         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
9574         generate rtl instead of text.
9575         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
9576         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
9577         * config/pdp11/pdp11-protos.h: Update.
9578
9579 2011-07-09  Richard Henderson  <rth@redhat.com>
9580
9581         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
9582         try to insert an rtl prologue here.
9583         (rs6000_output_function_epilogue): Similarly.
9584         * config/rs6000/rs6000.md (prologue): Emit a barrier to
9585         satisfy !TARGET_SCHED_PROLOG.
9586         (epilogue, sibcall_epilogue): Likewise.
9587
9588 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
9589
9590         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
9591         (FP_REG_P): Delete.
9592         (IN_OR_GLOBAL_P): Likewise.
9593
9594 2011-07-08  Jason Merrill  <jason@redhat.com>
9595
9596         PR c++/45437
9597         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
9598         compound assignment.
9599
9600         * cgraph.c (cgraph_add_to_same_comdat_group): New.
9601         * cgraph.h: Declare it.
9602         * ipa.c (function_and_variable_visibility): Make sure thunks
9603         have the right visibility.
9604
9605 2011-07-08  Richard Henderson  <rth@redhat.com>
9606
9607         PR bootstrap/49680
9608         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
9609         any tablejump vector.
9610
9611         PR bootstrap/49680
9612         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
9613         end of the prologue.
9614
9615 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
9616
9617         PR target/49621
9618         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
9619         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
9620         * config/rs6000/vector.md (vector_select_<mode>,
9621         vector_select_<mode>_uns): Change second operand of NE to
9622         CONST0_RTX (<MODE>mode) instead of const0_rtx.
9623         * config/rs6000/altivec.md (*altivec_vsel<mode>,
9624         *altivec_vsel<mode>_uns): Expect second operand of NE to be
9625         zero_constant of the corresponding vector mode.
9626         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
9627         Likewise.
9628
9629 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
9630
9631         * graphite-dependences.c (build_alias_set_powerset): Remove
9632         continue from loop, add one more assert.
9633
9634 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9635
9636         PR target/46779
9637         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
9638         In particular, allow 8-bit values in r28 and r29.
9639         (avr_hard_regno_scratch_ok): Disallow any register that might be
9640         part of the frame pointer.
9641         (avr_hard_regno_rename_ok): Same.
9642         (avr_legitimate_address_p): Don't allow SUBREGs.
9643
9644 2011-07-08  Julian Brown  <julian@codesourcery.com>
9645
9646         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9647         big-endian mode.
9648         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9649         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9650         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9651         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9652         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9653         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9654         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9655         registers in big-endian mode.
9656
9657 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9658
9659         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9660         in terms of another.
9661         (write_attr_value): Write a cast if necessary.
9662
9663         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9664         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9665         (REG_WORDS_BIG_ENDIAN): Document.
9666         * doc/tm.texi: Regenerate.
9667         * reload.c (operands_match_p): Take it into account.
9668         (reload_adjust_reg_for_mode): Likewise.
9669         * rtlanal.c (subreg_get_info): Likewise.
9670
9671 2011-07-08  Richard Guenther  <rguenther@suse.de>
9672
9673         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9674         folding.
9675
9676 2011-07-08  Kai Tietz  <ktietz@redhat.com>
9677
9678         * fold-const.c (fold_truth_andor): Factored out truth_andor
9679         label from fold_binary as function.
9680         (fold_binary_loc): Replace truth_andor lable
9681         by function fold_truth_andor.
9682
9683 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
9684
9685         PR middle-end/49519
9686         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9687         check if address is stored in register. If so - give up.
9688         (check_sibcall_argument_overlap_1): Do not perform check of
9689         overlapping when it is call to address.
9690
9691 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9692
9693         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9694         of magic '31'.
9695
9696 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9697
9698         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9699         GET_MODE_BITSIZE where appropriate.
9700         (widen_leading, expand_parity, expand_ctz, expand_ffs,
9701         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9702         expand_float, expand_fix): Likewise.
9703         * expr.c (convert_move, convert_modes, expand_expr_real_2,
9704         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9705         * stor-layout.c (get_mode_bounds): Likewise.
9706         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9707         Likewise.
9708         * convert.c (convert_to_integer): Likewise.
9709         * expmed.c (expand_shift_1): Likewise.
9710
9711         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9712         a bitsize.
9713
9714         * optabs.c (expand_binop): Tighten conditions for doubleword
9715         expansions.
9716         (widen_bswap): Assert that mode bitsize and precision are the same.
9717         * stor-layout.c (get_best_mode): Skip modes that have lower
9718         precision than bitsize.
9719         * recog.c (simplify_while_replacing): Assert that bitsize and
9720         precision are the same.
9721
9722 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9723
9724         * Makefile.in (LIBGCOV): Remove.
9725         (libgcc.mvars): Remove LIBGCOV.
9726         * libgov.c: Move to ../libgcc.
9727
9728 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9729
9730         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9731
9732 2011-07-08  Martin Jambor  <mjambor@suse.cz>
9733
9734         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9735         is too big for total scalarization.
9736
9737 2011-07-07  Richard Henderson  <rth@redhat.com>
9738
9739         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9740         (DBX_DEBUGGING_INFO): Undef.
9741
9742 2011-07-07  Richard Henderson  <rth@redhat.com>
9743
9744         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
9745         Handle some opcodes specially for debugging.
9746         * print-rtl.c: Include dwarf2out.h
9747         (print_rtx): Handle NOTE_INSN_CFI.
9748         * Makefile.in (print-rtl.o): Update.
9749
9750 2011-07-07  Richard Henderson  <rth@redhat.com>
9751
9752         * tree-pass.h (pass_dwarf2_frame): Declare.
9753         * passes.c (init_optimization_passes): Add it.
9754         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9755         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9756         make static, do not call add_cfis_to_fde.
9757         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9758         dwarf2out_frame_init): Merge into...
9759         (execute_dwarf2_frame): ... here.  New function.
9760         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
9761         saved_do_cfi_asm to a tri-state variable.
9762         (gate_dwarf2_frame, pass_dwarf2_frame): New.
9763         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9764         if it has yet to be done.  Don't call dwarf2cfi_function_init.
9765         * dwarf2out.h, debug.h: Update decls.
9766         * final.c (final_start_function): Don't call
9767         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9768         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9769         * toplev.c (lang_dependent_init): Likewise.
9770
9771 2011-07-07  Richard Henderson  <rth@redhat.com>
9772
9773         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9774         FDE_TABLE_INCREMENT): Replace with...
9775         (fde_vec): ... this, a new vector.
9776         (current_fde): Remove.  Replace all users with cfun->fde.
9777         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9778         (size_of_aranges, dwarf2out_finish): Likewise.
9779         (dwarf2out_alloc_current_fde): Break out from ...
9780         (dwarf2out_begin_prologue): ... here.
9781         (dwarf2out_frame_init): Remove.
9782         * dwarf2cfi.c: Update all users of current_fde.
9783         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9784         * dwarf2out.h: Update decls.
9785         (dw_fde_node): Add fde_index member.
9786         * function.h (struct function): Add fde member.
9787
9788 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9789             Richard Henderson  <rth@redhat.com>
9790
9791         * dwarf2cfi.c (add_cfi): Remove.
9792         (dwarf2out_cfi_label): Remove force argument.  Only generate the
9793         label name.
9794         (add_fde_cfi): Simplify the different code paths.
9795         (add_cie_cfi): New.
9796         (old_cfa, old_cfa_remember): New.
9797         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9798         (last_reg_save_label): Remove.
9799         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9800         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9801         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9802         dwarf2out_frame_debug_cfa_expression,
9803         dwarf2out_frame_debug_cfa_restore,
9804         dwarf2out_frame_debug_cfa_window_save,
9805         dwarf2out_frame_debug_expr): Remove label parameter.
9806         (cfi_label_required_p, add_cfis_to_fde): New.
9807         (dwarf2out_frame_debug_after_prologue): New.
9808         (dwarf2cfi_frame_init): Initialize old_cfa.
9809         (dwarf2out_frame_debug_restore_state): Likewise.
9810         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9811         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9812         * final.c (final_start_function): Call
9813         dwarf2out_frame_debug_after_prologue.
9814
9815 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9816             Richard Henderson  <rth@redhat.com>
9817
9818         * dwarf2cfi.c (cfi_insn): New.
9819         (dwarf2out_cfi_label): Don't emit cfi label here.
9820         (add_fde_cfi): Create a NOTE_INSN_CFI.
9821         (dwarf2out_frame_debug): Setup cfi_insn.
9822         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9823         (dwarf2out_cfi_begin_epilogue): Make static.
9824         (dwarf2out_frame_debug_restore_state): Make static.
9825         * dwarf2out.c (output_cfi_directive): Make static.
9826         (dwarf2out_emit_cfi): New.
9827         * dwarf2out.h: Update.
9828         * final.c (final): Remove CFI notes.
9829         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9830         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9831         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9832         * insn-notes.def (NOTE_INSN_CFI): New.
9833         (NOTE_INSN_CFI_LABEL): New.
9834         * rtl.h (union rtunion_def): Add rt_cfi member.
9835         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9836
9837 2011-07-07  Richard Henderson  <rth@redhat.com>
9838
9839         * dwarf2cfi.c: New file.
9840         * Makefile.in (OBJS): Add it.
9841         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9842         * gengtype.c (open_base_files): Include dwarf2out.h.
9843         * coretypes.h (enum var_init_status): Move from ...
9844         * rtl.h: ... here.
9845         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9846         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9847         expand_builtin_dwarf_sp_column, init_return_column_size,
9848         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9849         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9850         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9851         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9852         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9853         compute_barrier_args_size, dwarf2out_args_size,
9854         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9855         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9856         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9857         queue_reg_save, dwarf2out_flush_queued_reg_saves,
9858         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9859         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9860         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9861         dwarf2out_frame_debug_cfa_expression,
9862         dwarf2out_frame_debug_cfa_restore,
9863         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9864         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9865         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9866         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9867         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9868         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9869         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9870         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9871         dw_loc_descr_node): Move to dwarf2out.h.
9872         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9873         mem_loc_descriptor): Export.
9874         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
9875         (dwarf2out_frame_init): Extract CIE generation code to
9876         dwarf2cfi_frame_init.
9877
9878 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9879
9880         PR target/49660
9881         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9882         MASK_V8PLUS, remove commented out flag and reorder.
9883
9884 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9885
9886         PR c/49644
9887         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9888         one non-complex and one complex argument, call c_save_expr on both
9889         operands.
9890
9891 2011-07-07  Martin Jambor  <mjambor@suse.cz>
9892
9893         PR middle-end/49495
9894         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9895         (verify_cgraph_node): Some functinality moved to
9896         verify_edge_corresponds_to_fndecl, call it.
9897
9898 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9899
9900         * config.gcc (*local*): Remove.
9901         * doc/install-old.texi: Don't mention local configurations.
9902
9903 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9904
9905         PR debug/49522
9906         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9907         referencing debug insns that have been reset.
9908         (dead_debug_insert_before): Don't assert reg is non-NULL,
9909         instead return immediately if it is NULL.
9910
9911 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9912
9913         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9914
9915 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9916
9917         * hw-doloop.c: New file.
9918         * hw-doloop.h: New file.
9919         * Makefile.in (OBJS): Add hw-doloop.o.
9920         (hw-doloop.o): New rule.
9921         ($(obj_out_file)): Add hw-doloop.h dependency.
9922         * config/bfin/bfin.c: Include "hw-doloop.h".
9923         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9924         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9925         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
9926         type changed to hwloop_info.  Return bool, true if the loop was
9927         successfully optimized.  Remove code that was moved to
9928         hw-doloop.c, and adjust other parts.
9929         (hwloop_fail): New static function, containing parts that used
9930         to be in bfin_optimize_loop.
9931         (bfin_discover_loop, bfin_discover_loops, free_loops,
9932         bfin_reorder_loops): Remove.
9933         (hwloop_pattern_reg): New static function.
9934         (bfin_doloop_hooks): New variable.
9935         (bfin_reorg_loops): Remove most code, call reorg_loops.
9936         * config/bfin/bfin.md (doloop_end splitter): Also enable if
9937         loop counter is a memory_operand.
9938
9939 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
9940
9941         * config.gcc: Support --with-multilib-list for x86 Linux targets.
9942
9943         * configure.ac: Mention x86-64 for --with-multilib-list.
9944         * configure: Regenerated.
9945
9946         * config/i386/gnu-user64.h (SPEC_64): Support x32.
9947         (SPEC_32): Likewise.
9948         (ASM_SPEC): Likewise.
9949         (LINK_SPEC): Likewise.
9950         (TARGET_THREAD_SSP_OFFSET): Likewise.
9951         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9952         (SPEC_X32): New.
9953
9954         * config/i386/i386.h (TARGET_X32): New.
9955         (TARGET_LP64): New.
9956         (LONG_TYPE_SIZE): Likewise.
9957         (POINTER_SIZE): Likewise.
9958         (POINTERS_EXTEND_UNSIGNED): Likewise.
9959         (OPT_ARCH64): Support x32.
9960         (OPT_ARCH32): Likewise.
9961
9962         * config/i386/i386.opt (mx32): New.
9963
9964         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9965         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9966         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9967         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9968
9969         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9970         (BIONIC_DYNAMIC_LINKERX32): Likewise.
9971         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9972
9973         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9974
9975         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9976
9977         * doc/invoke.texi: Document -mx32.
9978
9979 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9980
9981         * doc/invoke.texi (mwords-little-endian): Deprecate.
9982         * config/arm/arm.opt (mwords-little-endian): Likewise.
9983         * config/arm/arm.c (arm_option_override): Warn about the deprecation
9984         of -mwords-little-endian.
9985
9986 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9987
9988         * reload1.c (choose_reload_regs): Use mode sizes to check whether
9989         an old reload register completely defines the required value.
9990
9991 2011-07-07  Richard Guenther  <rguenther@suse.de>
9992
9993         * fold-const.c (fold_unary_loc): Do not strip sign-changes
9994         for NEGATE_EXPR.
9995
9996 2011-07-07  Richard Guenther  <rguenther@suse.de>
9997
9998         * tree-vrp.c (simplify_conversion_using_ranges): New function.
9999         (simplify_stmt_using_ranges): Call it.
10000
10001 2011-07-07  Kai Tietz  <ktietz@redhat.com>
10002
10003         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
10004         (lookup_logical_inverted_value): Likewise.
10005         (simplify_bitwise_binary_1): Likewise.
10006         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
10007
10008 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10009
10010         * gcc.c (%[Spec]): Don't document.
10011         (struct spec_list): Update comment.
10012         (do_spec_1): Don't handle %[Spec].
10013         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
10014
10015 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
10016
10017         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
10018         default based on TARGET_ASM_NAMED_SECTION.
10019         * common/common-target.def (have_named_sections): Default to true.
10020         * common/config/default-common.c: Don't include tm.h.
10021         * common/config/picochip/picochip-common.c
10022         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
10023         * common/config/m32c/m32c-common.c: Remove.
10024         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
10025         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10026         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10027         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10028         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10029         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10030         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
10031
10032 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
10033
10034         PR middle-end/49640
10035         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
10036         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
10037
10038 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10039
10040         PR libmudflap/49550
10041         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
10042
10043 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10044
10045         PR target/39150
10046         * configure.ac (gcc_cv_as_hidden): Also accept
10047         x86_64-*-solaris2.1[0-9]*.
10048         (gcc_cv_as_cfi_directive): Likewise.
10049         (gcc_cv_as_comdat_group_group): Likewise.
10050         (set_have_as_tls): Likewise.
10051         * configure: Regenerate.
10052         * config.gcc (i[34567]86-*-solaris2*): Also handle
10053         x86_64-*-solaris2.1[0-9]*.
10054         * config.host (i[34567]86-*-solaris2*): Likewise.
10055         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
10056         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
10057         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
10058         (TARGET_LD_EMULATION): Use it.
10059         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
10060         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
10061         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
10062         (ASM_CPU64_DEFAULT_SPEC): Define.
10063         (ASM_CPU_SPEC): Use %(asm_cpu_default).
10064         (ASM_SPEC): Redefine.
10065         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
10066         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
10067         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
10068         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
10069         configuration.
10070         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
10071
10072 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10073
10074         * config/sol2.h (ASM_SPEC): Split into ...
10075         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
10076         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
10077         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
10078         (ASM_SPEC): Use ASM_SPEC_BASE.
10079         * config/sparc/sol2.h (ASM_SPEC): Redefine.
10080
10081 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
10082
10083         * config/avr/avr.md (*reload_insi): Change predicate #1 to
10084         const_int_operand.  Ditto for peep2 producing this insn.
10085         Add argument to output_reload_insisf call.
10086         (*movsi,*movsf): Add argument to output_movsisf call.
10087         (*reload_insf): New insn and new peep2 to produce it.
10088         * config/avr/avr-protos.h (output_movsisf): Change prototype.
10089         (output_reload_insisf): Change prototype.
10090         * config/avr/avr.c (avr_asm_len): New function.
10091         (output_reload_insisf): Rewrite.
10092         (output_movsisf): Change prototype.  output_reload_insisf for
10093         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
10094         (adjust_insn_length): Add argument to output_movsisf and
10095         output_reload_insisf call.
10096
10097 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10098
10099         * emit-rtl.c (paradoxical_subreg_p): New function.
10100         * rtl.h (paradoxical_subreg_p): Declare.
10101         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
10102         apply_distributive_law, simplify_comparison, simplify_set): Use it.
10103         * cse.c (record_jump_cond, cse_insn): Likewise.
10104         * expr.c (force_operand): Likewise.
10105         * rtlanal.c (num_sign_bit_copies1): Likewise.
10106         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
10107         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
10108         (push_reload): Use precision to check for paradoxical subregs.
10109         * expmed.c (extract_bit_field_1): Likewise.
10110
10111         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
10112         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
10113         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
10114         simplify_set, simplify_logical, expand_compound_operation,
10115         make_extraction, force_to_mode, if_then_else_cond, extended_count,
10116         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
10117         record_value_for_reg): Likewise.
10118         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
10119         * simplify-rtx. c (simplify_unary_operation_1,
10120         simplify_binary_operation_1, simplify_const_relational_operation):
10121         Likewise.
10122
10123         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
10124         instead of GET_MODE_BITSIZE where appropriate.
10125         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
10126         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
10127         init_num_sign_bit_copies_in_rep): Likewise.
10128         * cse.c (fold_rtx, cse_insn): Likewise.
10129         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
10130         * simplify-rtx.c (simplify_unary_operation_1,
10131         simplify_const_unary_operation, simplify_binary_operation_1,
10132         simplify_const_binary_operation, simplify_ternary_operation,
10133         simplify_const_relational_operation, simplify_subreg): Likewise.
10134         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
10135         simplify_if_then_else, simplify_set, expand_compound_operation,
10136         expand_field_assignment, make_extraction, if_then_else_cond,
10137         make_compound_operation, force_to_mode, make_field_assignment,
10138         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
10139         extended_count, try_widen_shift_mode, simplify_shift_const_1,
10140         simplify_comparison, record_promoted_value, simplify_compare_const,
10141         record_dead_and_set_regs_1): Likewise.
10142
10143         Revert:
10144         * simplify-rtx.c (simplify_const_binary_operation): Use the
10145         shift_truncation_mask hook instead of performing modulo by width.
10146         Compare against mode precision, not bitsize.
10147         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10148         Use shift_truncation_mask instead of constructing the value manually.
10149
10150 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10151
10152         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
10153         declaration.
10154         (rs6000_save_toc_in_prologue_p): Ditto.
10155
10156         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
10157         up the static chain (r11) during indirect function calls.
10158         (-msave-toc-indirect): New undocumented debug switch.
10159
10160         * config/rs6000/rs6000.c (struct machine_function): Add
10161         save_toc_in_prologue field to note whether the prologue needs to
10162         save the TOC value in the reserved stack location.
10163         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
10164         to save the TOC in the prologue, do so.
10165         (rs6000_trampoline_init): Don't allow creating AIX style
10166         trampolines if -mno-r11 is in effect.
10167         (rs6000_call_indirect_aix): New function to create AIX style
10168         indirect calls, adding support for -mno-r11 to suppress loading
10169         the static chain, and saving the TOC in the prologue instead of
10170         the call body.
10171         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
10172         TOC in the prologue.
10173
10174         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
10175         register numbers.
10176         (TOC_REGNUM): Ditto.
10177         (STATIC_CHAIN_REGNUM): Ditto.
10178         (ARG_POINTER_REGNUM): Ditto.
10179         (SFP_REGNO): Delete, unused.
10180         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
10181         function descriptor offsets.
10182         (TOC_SAVE_OFFSET_64BIT): Ditto.
10183         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
10184         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
10185         (AIX_FUNC_DESC_SC_32BIT): Ditto.
10186         (AIX_FUNC_DESC_SC_64BIT): Ditto.
10187         (ptrload): New mode attribute for the appropriate load of a pointer.
10188         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
10189         (call_indirect_aix64): Ditto.
10190         (call_value_indirect_aix32): Ditto.
10191         (call_value_indirect_aix64): Ditto.
10192         (call_indirect_nonlocal_aix32_internal): Ditto.
10193         (call_indirect_nonlocal_aix32): Ditto.
10194         (call_indirect_nonlocal_aix64_internal): Ditto.
10195         (call_indirect_nonlocal_aix64): Ditto.
10196         (call): Rewrite AIX indirect function calls.  Add support for
10197         eliminating the static chain, and for moving the save of the TOC
10198         to the function prologue.
10199         (call_value): Ditto.
10200         (call_indirect_aix<ptrsize>): Ditto.
10201         (call_indirect_aix<ptrsize>_internal): Ditto.
10202         (call_indirect_aix<ptrsize>_internal2): Ditto.
10203         (call_indirect_aix<ptrsize>_nor11): Ditto.
10204         (call_value_indirect_aix<ptrsize>): Ditto.
10205         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10206         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10207         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10208         (call_nonlocal_aix32): Relocate in the rs6000.md file.
10209         (call_nonlocal_aix64): Ditto.
10210
10211         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
10212         -mno-r11 documentation.
10213
10214 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
10215
10216         PR other/49658
10217         * doc/extend.texi (Compound Literals): Fix typo.
10218
10219 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
10220
10221         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
10222
10223 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
10224
10225         * configure.ac (plugin-version.h): Generate
10226         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
10227         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
10228         macros.
10229
10230         * configure: Regenerate.
10231
10232         * doc/plugins.texi (Building GCC plugins): Mention
10233         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
10234
10235 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10236
10237         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
10238         * combine.c (make_extraction, gen_lowpart_or_truncate,
10239         apply_distributive_law, simplify_comparison,
10240         reg_truncated_to_mode, record_truncated_value): Use it.
10241         * cse.c (notreg_cost): Likewise.
10242         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10243         * expr.c (convert_move, convert_modes): Likewise.
10244         * optabs.c (expand_binop, expand_unop): Likewise.
10245         * postreload.c (move2add_last_label): Likewise.
10246         * regmove.c (optimize_reg_copy_3): Likewise.
10247         * rtlhooks.c (gen_lowpart_general): Likewise.
10248         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10249
10250 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
10251
10252         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
10253
10254 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10255
10256         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
10257         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
10258         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
10259         (simplify_const_unary_operation, simplify_binary_operation_1,
10260         simplify_const_binary_operation, simplify_const_relational_operation):
10261         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
10262         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
10263         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
10264         simplify_shift_const_1, simplify_comparison): Likewise.
10265         * expr.c (convert_modes): Likewise.
10266         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
10267         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
10268         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
10269
10270         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
10271
10272 2011-07-06  Richard Guenther  <rguenther@suse.de>
10273
10274         PR tree-optimization/49645
10275         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
10276         register variables.
10277         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
10278         in type qualification here ...
10279         (copy_reference_ops_from_ref): ... not here.
10280         (vn_reference_lookup_3): ... or here.
10281         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
10282         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
10283
10284 2011-07-06  Ian Lance Taylor  <iant@google.com>
10285
10286         * doc/install.texi (Configuration): It's
10287         --enable-gnu-indirect-function, not --enable-indirect-function.
10288
10289 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
10290
10291         * simplify-rtx.c (simplify_const_binary_operation): Use the
10292         shift_truncation_mask hook instead of performing modulo by width.
10293         Compare against mode precision, not bitsize.
10294         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
10295         Use shift_truncation_mask instead of constructing the value manually.
10296
10297 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10298
10299         PR middle-end/47383
10300         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
10301         address computation and convert to address_mode if needed.
10302
10303 2011-07-06  Richard Guenther  <rguenther@suse.de>
10304
10305         * tree.c (build_common_tree_nodes_2): Merge with
10306         build_common_tree_nodes.
10307         * tree.h (build_common_tree_nodes): Adjust prototype.
10308         (build_common_tree_nodes_2): Remove.
10309         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
10310         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
10311
10312 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
10313
10314         PR tree-optimization/49618
10315         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
10316         t recurse on the decl.
10317         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
10318         return true if expr isn't known to be defined in current
10319         TU or some other LTO partition.
10320
10321 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
10322
10323         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
10324         override CASE_VALUES_THRESHOLD.
10325
10326         * stmt.c (toplevel): Include params.h.
10327         (case_values_threshold): Use the --param case-values-threshold
10328         value if non-zero, otherwise use machine dependent value.
10329         (expand_case): Use case_values_threshold.
10330
10331         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
10332
10333         * doc/invoke.texi (--param case-values-threshold): Document.
10334
10335 2011-07-05  Richard Henderson  <rth@redhat.com>
10336
10337         * dwarf2out.c (dwarf2out_cfi_label): Make static.
10338         (dwarf2out_flush_queued_reg_saves): Make static.
10339         (dwarf2out_reg_save): Remove.
10340         (dwarf2out_return_save): Remove.
10341         (dwarf2out_return_reg): Remove.
10342         (dwarf2out_reg_save_reg): Remove.
10343         (dwarf2out_def_cfa): Merge into ...
10344         (dwarf2out_frame_init): ... here.
10345         * dwarf2out.h, tree.h: Remove declarations as necessary.
10346
10347 2011-07-05  Richard Henderson  <rth@redhat.com>
10348
10349         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
10350         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10351         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
10352         the alloc insn.
10353
10354         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
10355         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
10356         (process_epilogue): Don't call dwarf2out_def_cfa.
10357
10358         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
10359         indicate the return address save.
10360         (process_cfa_register): Likewise.
10361
10362         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
10363         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
10364
10365         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
10366         for ar.pfs save at alloc insn.
10367
10368 2011-07-05  Richard Henderson  <rth@redhat.com>
10369
10370         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
10371         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10372         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
10373         stack pointer save.
10374         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
10375         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
10376         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
10377         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
10378
10379 2011-07-05  Richard Henderson  <rth@redhat.com>
10380
10381         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
10382         VUNSPEC_* constants here instead of via define_constants.
10383         (VUNSPEC_PEM): New constant.
10384         (procedure_entry_mask): New insn.
10385         (prologue): New expander.
10386         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
10387         (vax_expand_prologue): Rename from vax_output_function_prologue;
10388         emit rtl instead of text.
10389         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
10390         (print_operand): Add 'x' prefix.
10391
10392 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10393
10394         PR middle-end/47715
10395         * calls.c (precompute_register_parameters): Promote the function
10396         argument before checking non-legitimate constant.
10397
10398 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10399
10400         PR tree-optimization/47654
10401         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
10402         (lst_do_strip_mine_loop): Return an int.
10403         (lst_do_strip_mine): Same.
10404         (scop_do_strip_mine): Same.
10405         (scop_do_block): Loop blocking should strip-mine at least two loops.
10406         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
10407         (scop_do_interchange): Same.
10408         * graphite-poly.h (scop_do_interchange): Update declaration.
10409         (scop_do_strip_mine): Same.
10410
10411 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10412
10413         * graphite-clast-to-gimple.c (precision_for_value): Removed.
10414         (precision_for_interval): Removed.
10415         (gcc_type_for_interval): Use mpz_sizeinbase.
10416
10417 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10418
10419         * graphite-ppl.h (value_max): Correct computation of max.
10420
10421 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
10422
10423         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
10424
10425 2011-07-05  Richard Guenther  <rguenther@suse.de>
10426
10427         * c-decl.c (c_init_decl_processing): Defer building common
10428         tree nodes to c_common_nodes_and_builtins.
10429
10430 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
10431
10432         PR tree-optimization/49580
10433         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
10434         the loop's number of iterations.
10435         * tree-parloops.c (transform_to_exit_first_loop): Add the
10436         handling of the loop's number of iterations before the call
10437         to gimple_duplicate_sese_tail.
10438         Insert the stmt caclculating the new rhs of the loop's
10439         condition stmt to the preheader instead of iters_bb.
10440
10441 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10442
10443         PR rtl-optimization/47449
10444         * fwprop.c (forward_propagate_subreg): Don't propagate hard
10445         register nor zero/sign extended hard register.
10446
10447 2011-07-05  Richard Guenther  <rguenther@suse.de>
10448
10449         PR tree-optimization/49518
10450         PR tree-optimization/49628
10451         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
10452         irrelevant and invariant data-references.
10453         (vect_analyze_data_ref_access): For invariant loads clear the
10454         group association.
10455
10456 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
10457
10458         PR rtl-optimization/49619
10459         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
10460         pass VOIDmode as op0_mode to recursive call, and return temp even
10461         when different from tor, just if it is not IOR of the original
10462         PLUS arguments.
10463
10464         PR rtl-optimization/49472
10465         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
10466         negating MULT, negate the second operand instead of first.
10467         (simplify_binary_operation_1) <case MULT>: If one operand is
10468         a NEG and the other is MULT, don't attempt to optimize by negation
10469         of the MULT operand if it only moves the NEG operation around.
10470
10471         PR debug/49602
10472         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
10473         get_current_def return value if it can't be trusted to be
10474         the current value of the variable in the current bb.
10475
10476 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
10477
10478         PR target/49600
10479         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
10480         general register to memory for !TARGET_INTER_UNIT_MOVES.
10481
10482 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10483
10484         PR target/44643
10485         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
10486         instead of TREE_READONLY.
10487
10488 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10489
10490         * doc/extend.texi (AVR Built-in Functions): Update documentation
10491         of __builtin_avr_fmul*.
10492         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
10493         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
10494         * config/avr/avr.md (fmul): Rename to fmul_insn.
10495         (fmuls): Rename to fmuls_insn.
10496         (fmulsu): Rename to fmulsu_insn.
10497         (fmul,fmuls,fmulsu): New expander.
10498         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
10499         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
10500         * config/avr/libgcc.S (__fmul): New function.
10501         (__fmuls): New function.
10502         (__fmulsu,__fmulsu_exit): New function.
10503
10504 2011-07-04  Richard Guenther  <rguenther@suse.de>
10505
10506         PR tree-optimization/49615
10507         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
10508         basic-block index check.
10509
10510 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
10511
10512         * longlong.h (count_leading_zeros, count_trailing_zeros,
10513         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
10514         resp. 64.
10515
10516 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
10517
10518         PR tree-optimization/49610
10519         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
10520         a basic block.
10521
10522 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
10523             Olivier Hainque  <hainque@adacore.com>
10524             Nicolas Setton  <setton@adacore.com>
10525
10526         * tree.h (TYPE_ARTIFICIAL): New flag.
10527         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
10528         the DIE of the type if it is artificial.
10529         (gen_array_type_die): Likewise.
10530         (gen_enumeration_type_die): Likewise.
10531         (gen_struct_or_union_type_die): Likewise.
10532         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
10533         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
10534
10535 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10536
10537         * tree-object-size.c (pass_through_call): Handle
10538         BUILT_IN_ASSUME_ALIGNED.
10539
10540 2011-07-01  Martin Jambor  <mjambor@suse.cz>
10541
10542         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
10543
10544 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         PR middle-end/48016
10547         * explow.c (update_nonlocal_goto_save_area): Use proper mode
10548         for stack save area.
10549         * function.c (expand_function_start): Likewise.
10550
10551 2011-07-01  Richard Guenther  <rguenther@suse.de>
10552
10553         PR middle-end/49596
10554         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
10555         may have unknown refs.
10556
10557 2011-07-01  Kai Tietz  <ktietz@redhat.com>
10558
10559         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
10560
10561 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10562
10563         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
10564         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
10565         (Specific, mips-sgi-irix6): Likewise.
10566
10567 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10568
10569         PR libmudflap/49549
10570         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
10571
10572 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
10573
10574         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
10575         [idx]= and [idx1 ... idx2]= before initializers if needed for
10576         array initializers.
10577
10578 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
10579
10580         * config.gcc (score-*-elf): Remove score7.o.
10581         * config/score/t-score-elf: Likewise.
10582         * config/score/score.c: Merge score7 to score.c and
10583         remove forwarding functions.
10584         * config/score/score7.c: Deleted.
10585         * config/score/score7.h: Deleted.
10586
10587 2011-07-01  Richard Guenther  <rguenther@suse.de>
10588
10589         PR tree-optimization/49603
10590         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
10591
10592 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10593
10594         * tree-sra.c (struct access): Rename total_scalarization to
10595         grp_total_scalarization
10596         (completely_scalarize_var): New function.
10597         (sort_and_splice_var_accesses): Set total_scalarization in the
10598         representative access.
10599         (analyze_access_subtree): Propagate total scalarization accross the
10600         tree, no holes in totally scalarized trees, simplify coverage
10601         computation.
10602         (analyze_all_variable_accesses): Call completely_scalarize_var instead
10603         of completely_scalarize_record.
10604
10605 2011-06-30  Richard Henderson  <rth@redhat.com>
10606
10607         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
10608         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
10609         * config/i386/i386.c: Don't include dwarf2out.h.
10610         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
10611         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
10612         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
10613         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
10614         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
10615
10616 2011-06-30  Richard Henderson  <rth@redhat.com>
10617
10618         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
10619         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10620         * final.c (final_scan_insn): Look for it, and invoke
10621         dwarf2out_frame_debug before the insn if found.
10622
10623 2011-06-30  Richard Henderson  <rth@redhat.com>
10624
10625         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
10626         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
10627
10628 2011-06-30  Richard Henderson  <rth@redhat.com>
10629
10630         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
10631         Define a vector of this type.
10632         (regs_saved_in_regs): Use a VEC.
10633         (num_regs_saved_in_regs): Remove.
10634         (compare_reg_or_pc): New.
10635         (record_reg_saved_in_reg): Split out from...
10636         (dwarf2out_flush_queued_reg_saves): ... here.
10637         (clobbers_queued_reg_save): Update for VEC.
10638         (reg_saved_in): Likewise.
10639         (dwarf2out_frame_debug_init): Likewise.
10640         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
10641         (dwarf2out_frame_debug_cfa_register): Likewise.
10642
10643 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10644
10645         PR tree-optimization/49572
10646         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10647         type of the RHS instead of that of the LHS for the expression type.
10648
10649 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10650
10651         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10652         unconditionally.
10653
10654 2011-06-30  Richard Guenther  <rguenther@suse.de>
10655
10656         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10657         * tree-ssa-structalias.c (create_variable_info_for): Do not
10658         add initial constraints for non-var-decls.  Properly handle
10659         globals in other ltrans partitions.
10660         (intra_create_variable_infos): Manually create constraints for
10661         the fake no-alias parameter.
10662         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10663         and assert there are no clones.
10664
10665 2011-06-30  Richard Guenther  <rguenther@suse.de>
10666
10667         PR tree-optimization/46787
10668         * tree-data-ref.c (dr_address_invariant_p): Remove.
10669         (find_data_references_in_stmt): Invariant accesses are ok now.
10670         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10671         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10672         invariant loads.
10673
10674 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10675
10676         PR tree-optimization/49094
10677         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10678         (build_accesses_from_assign): Use it.
10679
10680 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10681
10682         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10683         handling of BUILT_IN_ASSUME_ALIGNED.
10684
10685         PR debug/49364
10686         * dwarf2out.c (output_abbrev_section): Don't return early
10687         if abbrev_die_table_in_use is 1.
10688         (dwarf2out_finish): Instead don't call output_abbrev_section
10689         nor emit abbrev_section_label in that case.
10690
10691 2011-06-30  Nick Clifton  <nickc@redhat.com>
10692
10693         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10694         for the V850E.
10695
10696 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10697
10698         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10699         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10700
10701 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
10702
10703         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10704         both pattern and original statements if necessary.
10705         (vect_transform_loop): Likewise.
10706         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10707         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10708         Mark the pattern statement only if the original statement doesn't
10709         have its own uses.
10710         (process_use): Call vect_mark_relevant with additional parameter.
10711         (vect_mark_stmts_to_be_vectorized): Likewise.
10712         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10713         (vect_analyze_stmt): Handle both pattern and original statements
10714         if necessary.
10715         (vect_transform_stmt): Don't store vectorized pattern statement
10716         in the original statement.
10717         (vect_is_simple_use_1): Use related pattern statement only if the
10718         original statement is irrelevant.
10719         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10720
10721 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
10722
10723         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10724         option.
10725         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10726         entry.
10727         (TARGET_AVX128_OPTIMAL): New definition.
10728         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10729         X86_TUNE_AVX128_OPTIMAL entry.
10730         (ix86_option_override_internal): Enable the generation
10731         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10732         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10733         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10734
10735 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10736
10737         PR tree-optimization/49539
10738         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10739         names by means of stmt_references_abnormal_ssa_name.
10740         (associate_plusminus): Call can_propagate_from before propagating
10741         from definition statements.
10742         (ssa_forward_propagate_and_combine): Remove superfluous newline.
10743
10744 2011-06-29  Richard Guenther  <rguenther@suse.de>
10745
10746         * doc/invoke.texi: Document -scev dump modifier.
10747         * tree-pass.h (TDF_SCEV): New dump flag.
10748         * tree-dump.c (dump_option_value_in): Add scev.
10749         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10750         * tree-scalar-evolution.c: Likewise.
10751
10752 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10753
10754         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10755         (cxa_type_match): Correct declaration.
10756         (__gnu_unwind_pr_common): Reconstruct additional indirection
10757         when __cxa_type_match returns succeeded_with_ptr_to_base.
10758
10759 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10760
10761         PR rtl-optimization/49114
10762         * reload.c (struct replacement): Remove SUBREG_LOC member.
10763         (push_reload): Do not set it.
10764         (push_replacement): Likewise.
10765         (subst_reload): Remove dead code.
10766         (copy_replacements): Remove assertion.
10767         (copy_replacements_1): Do not handle SUBREG_LOC.
10768         (move_replacements): Likewise.
10769         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
10770         Detect subregs via recursive descent instead of via SUBREG_LOC.
10771
10772 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10773
10774         * config/avr/avr.c (avr_encode_section_info): Dispatch to
10775         default_encode_section_info.
10776
10777 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
10778
10779         PR tree-optimization/49545
10780         * builtins.c (get_object_alignment_1): Update function comment.
10781         Do not use DECL_ALIGN for functions, but test
10782         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10783         * fold-const.c (get_pointer_modulus_and_residue): Don't check
10784         for functions here.
10785         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10786
10787 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
10788
10789         PR debug/49567
10790         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10791         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10792
10793 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10794
10795         PR target/34734
10796         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10797         about uninitialized data attributed 'progmem' from here...
10798         (avr_encode_section_info): ...to this new function.
10799         (TARGET_ENCODE_SECTION_INFO): New define.
10800         (avr_section_type_flags): For data in ".progmem.data", remove
10801         section flag SECTION_WRITE.
10802
10803 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10804
10805         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10806         _xmulhisi3_exit.
10807         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10808         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
10809         (__umulhisi3): Ditto.
10810         * config/avr/avr.md (mulhisi3): New insn expender.
10811         (umulhisi3): New insn expender.
10812         (*mulhisi3_call): New insn.
10813         (*umulhisi3_call): New insn.
10814
10815 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10816
10817         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10818
10819 2011-06-28  Richard Henderson  <rth@redhat.com>
10820
10821         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
10822         all code and arguments that handled pushes.  Update all callers.
10823
10824 2011-06-28  Richard Henderson  <rth@redhat.com>
10825
10826         * config/arm/arm.c (arm_output_function_prologue): Don't call
10827         thumb1_output_function_prologue.
10828         (arm_expand_prologue): Avoid dead store.
10829         (number_of_first_bit_set): Use ctz_hwi.
10830         (thumb1_emit_multi_reg_push): New.
10831         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10832         to emit the entire prologue as rtl.
10833         (thumb1_output_interwork): Split out from
10834         thumb1_output_function_prologue.
10835         (thumb1_output_function_prologue): Remove.
10836         (arm_attr_length_push_multi): Handle thumb1.
10837         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10838         (prologue_thumb1_interwork): New.
10839         (*push_multi): Allow thumb1; use push_mult_memory_operand.
10840         * config/arm/predicates.md (push_mult_memory_operand): New.
10841
10842 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10843
10844         * config/sparc/sync.md (*stbar): Delete.
10845         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10846
10847 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10848
10849         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10850
10851 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10852
10853         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10854         (TARGET_64BIT_DEFAULT): Define.
10855         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10856         of tm_file.
10857         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10858
10859 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10860
10861         * common.opt (in_lto_p): New Variable entry.
10862         * flags.h (in_lto_p): Move to common.opt.
10863         * gcc.c: Include params.h.
10864         (set_option_handlers): Also use common_handle_option and
10865         target_handle_option.
10866         (main): Call global_init_params, finish_params and init_options_struct.
10867         * opts.c (debug_type_names): Move from toplev.c.
10868         (print_filtered_help): Access quiet_flag through opts pointer.
10869         (common_handle_option): Return early in the driver for some options.
10870         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10871         opts pointer.
10872         * toplev.c (in_lto_p): Move to common.opt.
10873         (debug_type_names): Move to opts.c.
10874         * Makefile.in (OBJS): Remove opts.o.
10875         (OBJS-libcommon-target): Add opts.o.
10876         (gcc.o): Update dependencies.
10877
10878 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10879
10880         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10881
10882 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10883
10884         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10885         with '=' constraint modifier.
10886         (*divdf3_vfp): Likewise.
10887         ("*mulsf3_vfp"): Likewise.
10888         ("*muldf3_vfp"): Likewise.
10889         ("*mulsf3negsf_vfp"): Likewise.
10890         ("*muldf3negdf_vfp"): Likewise.
10891
10892 2011-06-28  Nick Clifton  <nickc@redhat.com>
10893
10894         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10895         relaxation when performing an incremental link.
10896
10897 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10898
10899         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10900         within BB from last to first.
10901
10902 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10903
10904         * genattr-common.c: New.  Based on genattr.c.
10905         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10906         (MOSTLYCLEANFILES): Add insn-attr-common.h.
10907         (opts.o): Update dependencies.
10908         (.PRECIOUS): Add insn-attr-common.h.
10909         (simple_rtl_generated_h): Add insn-attr-common.h.
10910         (build/genattr-common.o): New.
10911         (genprogrtl): Add attr-common.
10912         * genattr.c (main): Include insn-attr-common.h.  Don't generate
10913         definitions of DELAY_SLOTS or INSN_SCHEDULING.
10914         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10915
10916 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
10917
10918         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10919         avr-*-* and avr-*-rtems* targets.
10920
10921         * config/avr/elf.h: New file.
10922         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10923         (TARGET_ASM_SELECT_SECTION): Define.
10924         (INIT_SECTION_ASM_OP): Undefine.
10925         (FINI_SECTION_ASM_OP): Undefine.
10926         (READONLY_DATA_SECTION_ASM_OP): Undefine.
10927         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10928         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10929         * config/avr/avr.h:
10930         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10931         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10932         (MAX_OFILE_ALIGNMENT): Move to elf.h.
10933         (STRING_LIMIT): Move to elf.h.
10934         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10935         (ASM_DECLARE_OBJECT_NAME): Remove.
10936         (ESCAPES): Remove.
10937         (ASM_OUTPUT_SKIP): Remove.
10938         (DWARF2_DEBUGGING_INFO): Remove.
10939         (OBJECT_FORMAT_ELF): Remove.
10940         (USER_LABEL_PREFIX): Remove.
10941         (ASM_OUTPUT_EXTERNAL): Remove.
10942         (ASM_OUTPUT_ASCII): Remove.
10943         (TYPE_ASM_OP): Remove.
10944         (SIZE_ASM_OP): Remove.
10945         (WEAK_ASM_OP): Remove.
10946         (STRING_ASM_OP): Remove.
10947         (SET_ASM_OP): Remove.
10948         (ASM_WEAKEN_LABEL): Remove.
10949         (TYPE_OPERAND_FMT): Remove.
10950         (ASM_DECLARE_FUNCTION_SIZE): Remove.
10951         (ASM_FINISH_DECLARE_OBJECT): Remove.
10952         (NO_DOLLAR_IN_LABEL): Remove.
10953         (ASM_GENERATE_INTERNAL_LABEL): Remove.
10954         (ASM_OUTPUT_CASE_LABEL): Remove.
10955         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10956         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10957         (gas_output_ascii): Remove.
10958         (gas_output_limited_string): Remove.
10959         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10960         * config/avr/avr-protos.h
10961         (gas_output_ascii): Remove prototye.
10962         (gas_output_limited_string): Remove prototype.
10963
10964 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
10965
10966         PR target/48637
10967         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
10968         asm operands.
10969
10970 2011-06-27  Jan Hubicka  <jh@suse.cz>
10971
10972         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10973         node instead of references in node.
10974
10975 2011-06-27  Richard Henderson  <rth@redhat.com>
10976
10977         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10978         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10979         inside ifdef.
10980
10981 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
10982
10983         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10984
10985         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10986         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10987         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10988         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10989         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10990         (evaluate_stmt, execute_fold_all_builtins): Handle
10991         BUILT_IN_ASSUME_ALIGNED.
10992         * tree-ssa-dce.c (propagate_necessity): Likewise.
10993         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10994         call_may_clobber_ref_p_1): Likewise.
10995         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10996         (expand_builtin_assume_aligned): New function.
10997         * doc/extend.texi (__builtin_assume_aligned): Document.
10998
10999         PR debug/49544
11000         * cselib.c (promote_debug_loc): If cselib_preserve_constants
11001         and l has two DEBUG_INSN owned locs instead of just one, adjust
11002         the second location's setting_insn too.
11003
11004 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11005
11006         PR libmudflap/38738
11007         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
11008
11009 2011-06-27  Nick Clifton  <nickc@redhat.com>
11010
11011         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
11012         bit position of highest bit set into a count of the high zero bits.
11013
11014 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11015
11016         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
11017
11018 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11019
11020         PR lto/48492
11021         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
11022         to a NULL parent.
11023
11024 2011-06-27  Richard Guenther  <rguenther@suse.de>
11025
11026         PR tree-optimization/49394
11027         * passes.c (execute_one_pass): Restore current_pass after
11028         applying IPA transforms.
11029
11030 2011-06-27  Kai Tietz  <ktietz@redhat.com>
11031
11032         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
11033         out of type precision after operation.
11034         (find_bswap): Take for limit value the integer auto-promotion
11035         into account.
11036
11037 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11038
11039         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
11040         forward scan as well.
11041
11042 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11043
11044         PR target/44241
11045         * config/vms/vms-protos.h: New file.
11046         * config/vms/vms-crtlmap.map: New file.
11047         * config/vms/vms.c: New file.
11048         * config/vms/make-crtlmap.awk: New file.
11049         * config/vms/vms-crtl.h: File removed.
11050         * config/vms/vms-crtl-64.h: File removed.
11051         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
11052         * config/alpha/vms64.h: Do not include vms-crtl-64.h
11053         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
11054         clear some builtins on VMS.  Calls vms_patch_builtins.
11055         (avms_asm_output_external): Remove.
11056         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
11057         (struct crtl_name_spec): Remove
11058         (DO_CTRL_NAMES): Remove.
11059         * config/ia64/vms.h (struct crtl_name_spec): Remove
11060         (DO_CTRL_NAMES): Remove.
11061         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
11062         clear some builtins on VMS.  Calls vms_patch_builtins.
11063         (ia64_asm_output_external): Remove DO_CRTL_NAME.
11064         * config/ia64/vms64.h: Do not include vms-crtl-64.h
11065         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
11066
11067 2011-06-27  Tristan Gingold  <gingold@adacore.com>
11068
11069         * config/alpha/alpha.c (alpha_end_function): Always generate .end
11070         directive on VMS.
11071
11072 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
11073
11074         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
11075         the function receives nonlocal gotos.
11076
11077 2011-06-27  Richard Guenther  <rguenther@suse.de>
11078
11079         PR tree-optimization/49536
11080         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
11081         For non-scalar inner types use a scalar type according to
11082         the scalar inner mode.
11083
11084 2011-06-27  Richard Guenther  <rguenther@suse.de>
11085
11086         PR tree-optimization/49365
11087         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
11088
11089 2011-06-27  Richard Guenther  <rguenther@suse.de>
11090
11091         PR tree-optimization/49169
11092         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
11093         the alignment of function decls.
11094
11095 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
11096
11097         PR target/47997
11098         * config/darwin.c (darwin_mergeable_string_section): Place string
11099         constants in '.cstring' rather than '.const' when CF/NSStrings are
11100         active.
11101
11102 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
11103
11104         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
11105         (emit_save_register_window): Likewise.
11106         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
11107         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
11108         Swap back %o7/%i7 in register naming.
11109
11110 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
11111
11112         PR driver/49371
11113         * config/darwin.c (darwin_override_options): Improve warning when
11114         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
11115         is given with fpie/fPIE.
11116         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
11117         * config/darwin9.h (PIE_SPEC): New.
11118
11119 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11120
11121         * timevar.c (timevar_print): Increase width for display of timevar
11122         name.
11123
11124 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
11125
11126         PR c++/46400
11127         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
11128         instead of TYPE_CHAIN for chain_next for types.
11129
11130 2011-06-24  Richard Henderson  <rth@redhat.com>
11131
11132         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
11133         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
11134         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
11135         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
11136         (sparc_flat_expand_prologue): Emit individual instructions
11137         instead of one of the above.
11138
11139 2011-06-24  Easwaran Raman  <eraman@google.com>
11140
11141         PR rtl-optimization/49429
11142         PR target/49454
11143         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
11144         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
11145         used to copy y into x.
11146         * calls.c (initialize_argument_information): Mark
11147         an argument addressable if it is passed by invisible reference.
11148         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
11149         if it is passed by reference.
11150
11151 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11152
11153         PR rtl-optimization/49504
11154         * rtlanal.c (nonzero_bits1): Properly handle addition or
11155         subtraction of a pointer in Pmode if pointers extend unsigned.
11156         (num_sign_bit_copies1): Likewise.
11157
11158 2011-06-24  Martin Jambor  <mjambor@suse.cz>
11159
11160         PR tree-optimizations/49516
11161         * tree-sra.c (sra_modify_assign): Choose the safe path for
11162         aggregate copies if we also did scalar replacements.
11163
11164 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11165
11166         PR target/49335
11167         * config/arm/predicates.md (add_operator): New.
11168         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
11169
11170 2011-06-24  Andi Kleen  <ak@linux.intel.com>
11171
11172         * tree-sra.c (type_internals_preclude_sra_p): Add msg
11173         parameter. Split up ifs and report reason in *msg.
11174         (reject): Add.
11175         (find_var_candiate): Add msg variable.
11176         Split up ifs and report reason to reject.
11177         (find_param_candidates): Add msg variable.
11178         Pass msg to type_internals_preclude_sra_p.
11179
11180 2011-06-23  Jeff Law  <law@redhat.com>
11181
11182         PR middle-end/48770
11183         * reload.h (reload): Change to return a bool.
11184         * ira.c (ira): If requested by reload, run a fast DCE pass after
11185         reload has completed.  Fix comment typo.
11186         * reload1.c (need_dce): New file scoped static.
11187         (reload): Set reload_completed here.  Return whether or not a DCE
11188         pass after reload is needed.
11189         (delete_dead_insn): Set need_dce as needed.
11190
11191         PR middle-end/49465
11192         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
11193         to detect threading through joiner block.  If there was already
11194         an edge to the new target, then do not change the PHI nodes.
11195
11196 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
11197
11198         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
11199         get_pointer_alignment to see if base isn't sufficiently aligned.
11200
11201 2011-06-23  Jan Hubicka  <jh@suse.cz>
11202
11203         PR tree-optimize/49373
11204         * tree-pass.h (all_late_ipa_passes): Declare.
11205         * cgraphunit.c (init_lowered_empty_function): Fix properties.
11206         (cgraph_optimize): Execute late passes; remove unreachable funcions
11207         after materialization.
11208         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
11209         LTOing.
11210         * passes.c (all_late_ipa_passes): Declare.
11211         (dump_passes, register_pass): Handle late ipa passes.
11212         (init_optimization_passes): Move ipa_pta to late passes; schedule
11213         fixup_cfg at beggining of all_passes.
11214         (apply_ipa_transforms): New function.
11215         (execute_one_pass): When doing simple ipa pass, apply all transforms.
11216
11217 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
11218
11219         * params.c: Include common/common-target.h.  Don't include tm.h.
11220         (lang_independent_params): Move from toplev.c.
11221         (global_init_params): New.
11222         * params.h (global_init_params): Declare.
11223         * target.def (default_params): Move to common-target.def.
11224         * toplev.c (lang_independent_options): Remove.
11225         (lang_independent_params): Move to params.c.
11226         (general_init): Use global_init_params.
11227         * common/common-target.def (option_default_params): Move from
11228         target.def.
11229         * common/config/ia64/ia64-common.c: Include params.h.
11230         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11231         from ia64.c.
11232         * common/config/rs6000/rs6000-common.c: Include params.h.
11233         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11234         from rs6000.c.
11235         * common/config/sh/sh-common.c: Include params.h.
11236         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11237         from sh.c.
11238         * common/config/spu/spu-common.c: Include params.h.
11239         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
11240         from spu.c.
11241         * config/ia64/ia64.c (ia64_option_default_params,
11242         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
11243         * config/rs6000/rs6000.c (rs6000_option_default_params,
11244         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
11245         * config/sh/sh.c (sh_option_default_params,
11246         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
11247         * config/spu/spu.c (spu_option_default_params,
11248         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
11249         * Makefile.in (OBJS): Remove params.o.
11250         (OBJS-libcommon-target): Add params.o.
11251         (params.o, $(common_out_object_file)): Update dependencies.
11252         * doc/tm.texi: Regenerate.
11253
11254 2011-06-23  Alan Modra  <amodra@gmail.com>
11255
11256         PR bootstrap/49383
11257         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
11258         invocation for 2011-06-09 changes.
11259
11260 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11261
11262         PR libgomp/49490
11263         * omp-low.c (expand_omp_for_static_nochunk): Only
11264         use n ceil/ nthreads size for the first n % nthreads threads in the
11265         team instead of all threads except for the last few ones which
11266         get less work or none at all.
11267
11268         PR debug/49496
11269         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
11270         uses.
11271
11272 2011-06-22  Richard Guenther  <rguenther@suse.de>
11273
11274         PR tree-optimization/49493
11275         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
11276         Refer to the alias target of variables.
11277         (associate_varinfo_to_alias_1): Remove.
11278         (ipa_pta_execute): Do not associate aliases with anything.
11279         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
11280         (cgraph_function_node): Likewise.
11281         (cgraph_function_or_thunk_node): Likewise.
11282         (varpool_variable_node): Likewise.
11283
11284 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11285
11286         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
11287         * config.gcc (arm*-*-linux*): Default to gnu tls.
11288         (arm*-*-*): Add --with-tls option.
11289         (all_defaults): Add 'tls'.
11290
11291 2011-06-22  Richard Henderson  <rth@redhat.com>
11292
11293         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
11294         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11295         (dwarf2out_frame_debug_cfa_window_save): Rename from
11296         dwarf2out_window_save; make static.
11297         * tree.h (dwarf2out_window_save): Don't declare.
11298
11299         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
11300         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
11301         (emit_save_register_window): Rename from gen_save_register_window;
11302         emit the insn and add REG_CFA_* notes.
11303         (sparc_expand_prologue): Update to match.
11304         * config/sparc/sparc.md (save_register_window_1): Simplify from
11305         save_register_window<P:mode>.
11306
11307 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
11308
11309         PR target/49497
11310         * config/i386/i386.md (*lea_general_2): Always allow SImode.
11311         (*lea_general_2_zext): Likewise.
11312         (imul to lea peepholes): Use const359_operand and check
11313         TARGET_PARTIAL_REG_STALL.
11314
11315         * config/i386/predicates.md (const359_operand): New.
11316
11317 2011-06-22  Michael Matz  <matz@suse.de>
11318
11319         * cgraphunit.c (assemble_thunk): Use correct return type.
11320
11321 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
11322             Dmitry Melnik  <dm@ispras.ru>
11323
11324         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
11325         (neon_output_shift_immediate): Ditto.
11326         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
11327         prototype.
11328         (neon_output_shift_immediate): Ditto.
11329         * config/arm/neon.md (vashl<mode>3): Modified constraint.
11330         (vashr<mode>3_imm): New insn pattern.
11331         (vlshr<mode>3_imm): Ditto.
11332         (vashr<mode>3): Modified constraint.
11333         (vlshr<mode>3): Ditto.
11334         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
11335         predicate.
11336         (imm_for_neon_rshift_operand): Ditto.
11337         (imm_lshift_or_reg_neon): Ditto.
11338         (imm_rshift_or_reg_neon): Ditto.
11339
11340         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
11341
11342 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11343
11344         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
11345         builtin calls even if likelyvalue is not CONSTANT.
11346         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
11347         Return get_value_for_expr of first operand
11348         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
11349         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11350         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
11351         their non-checking counterparts.
11352         (call_may_clobber_ref_p_1): Likewise.
11353         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
11354         like their non-checking counterparts.
11355         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11356         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
11357         like their non-checking counterparts.
11358         (find_func_clobbers): Likewise.
11359         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
11360         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
11361
11362         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
11363         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
11364         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
11365         of base type reference as argument.
11366         (resolve_addr_in_expr): Likewise.  Fix keep computation.
11367         (convert_descriptor_to_signed): Renamed to...
11368         (convert_descriptor_to_mode): ... this.  For wider types convert to
11369         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
11370         (typed_binop): New function.
11371         (scompare_loc_descriptor, ucompare_loc_descriptor,
11372         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
11373         default to unsigned type instead of signed.
11374
11375         PR debug/47858
11376         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
11377         (gimple_build_debug_source_bind_stat): New prototype.
11378         (gimple_build_debug_source_bind): Define.
11379         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
11380         gimple_debug_source_bind_get_value,
11381         gimple_debug_source_bind_get_value_ptr,
11382         gimple_debug_source_bind_set_var,
11383         gimple_debug_source_bind_set_value): New inlines.
11384         * gimple.c (gimple_build_debug_source_bind_stat): New function.
11385         * gimple-pretty-print.c (dump_gimple_debug): Handle
11386         GIMPLE_DEBUG_SOURCE_BIND.
11387         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
11388         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11389         * tree-parloops.c (eliminate_local_variables,
11390         separate_decls_in_region): Likewise.
11391         (separate_decls_in_region_debug): Renamed from
11392         separate_decls_in_region_debug_bind.  Handle
11393         gimple_debug_source_bind_p.
11394         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
11395         prototypes.
11396         (DECL_HAS_DEBUG_ARGS_P): Define.
11397         (struct tree_function_decl): Add has_debug_args_flag field.
11398         * tree.c (debug_args_for_decl): New variable.
11399         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
11400         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
11401         (rewrite_debug_stmt_uses): New function.
11402         (rewrite_stmt): Use it to rewrite debug stmt uses.
11403         * rtl.def (DEBUG_PARAMETER_REF): New.
11404         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
11405         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
11406         DEBUG_PARAMETER_REF.
11407         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
11408         * print-rtl.c (print_rtx): Likewise.
11409         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
11410         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
11411         debug stmts in the first bb.
11412         * tree-inline.c (remap_ssa_name): If remapping default def
11413         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
11414         a source bind debug stmt.
11415         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
11416         (maybe_move_debug_stmts_to_successors): Likewise.
11417         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
11418         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
11419         debug args vector from old_decl to new_decl.
11420         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
11421         or modified parameters, add debug bind stmts before call
11422         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
11423         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
11424         on DECL_DEBUG_EXPRs from debug args vector.
11425         (expand_debug_source_expr): New function.
11426         (expand_debug_locations): Use it for source bind insns.
11427         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
11428         * var-tracking.c (prepare_call_arguments): Add debug args
11429         to call_arguments if any.
11430         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
11431         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
11432         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
11433         (get_ref_die_offset, parameter_ref_descriptor): New functions.
11434         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
11435         (gen_subprogram_die): Handle parameters identified by
11436         DEBUG_PARAMETER_REF.
11437
11438 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11439
11440         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
11441         * doc/install.texi (Configuration): Document --with-tls.
11442         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
11443         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
11444         (arm_tls_descseq_addr): New.
11445         (legitimize_tls_address): Add tlsdesc support.
11446         (arm_cannot_copy_insn_p): Check for tlscall.
11447         (arm_emit_tls_decoration): Likewise.
11448         * config/arm/arm.h (TARGET_GNU2_TLS): New.
11449         (OPTION_DEFAULT_SPECS): Add with-tls support.
11450         * config/arm/arm.md (R1_REGNUM): Define.
11451         (tlscall): New.
11452         * config/arm/arm.opt (tls_type): New enumeration type and values.
11453         (mtls-dialect): New switch.
11454         * config/arm/arm-opts.h (enum tls_type): New.
11455
11456 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11457
11458         * attribs.c (register_attribute): Added assert to check that all
11459         attribute specs are registered with a name that is not empty and
11460         does not start with '_'.
11461         (decl_attributes): Avoid the lookup of the "naked" attribute spec
11462         if the function has no attributes.
11463         * tree.c (is_attribute_with_length_p): Removed.
11464         (is_attribute_p): Removed.
11465         (private_is_attribute_p): New.
11466         (private_lookup_attribute): New.
11467         (lookup_attribute): Removed.
11468         (lookup_ident_attribute): New.
11469         (remove_attribute): Require the first argument to be in the form
11470         'text', not '__text__'.  Updated asserts.
11471         (merge_attributes): Use lookup_ident_attributes instead of
11472         lookup_attribute.
11473         (merge_dllimport_decl_attributes): Use remove_attribute.
11474         (attribute_list_contained): Likewise.
11475         (attribute_list_equal): Immediately return 1 if the arguments are
11476         identical pointers.
11477         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
11478         'int'.  Require the first argument to be in the form 'text', not
11479         '__text__'.  Require the second argument to be an identifier.
11480         (lookup_attribute): Made inline.  Require the first argument to be
11481         in the form 'text', not '__text__'.
11482         (private_is_attribute_p, private_lookup_attribute): New.
11483         Updated comments.
11484
11485 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
11486
11487         * builtins.c: Add sync_ or SYNC__ to builtin names.
11488         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
11489         * omp-low.c: Add sync_ or SYNC__ to builtin names.
11490
11491 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11492
11493         PR target/33049
11494         * config/avr/avr.md (extzv): New expander.
11495         (*extzv): New insn.
11496         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
11497         * config/avr/constraints.md (C04): New constraint.
11498         * doc/md.texi (Machine Constraints): Document it.
11499
11500 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11501
11502         PR middle-end/49489
11503         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
11504         unsignedp argument instead of 1 for clrsb_optab.
11505         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
11506         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
11507         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
11508         * optabs.c (widen_leading): Call widen_operand and expand_unop
11509         with 0 as unsignedp argument instead of 1 for clrsb_optab.
11510         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
11511
11512 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
11513
11514         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
11515
11516 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
11517
11518         * gensupport.c (add_define_attr): New static function.
11519         (is_predicable): Allow multi-alternative lists for the "predicable"
11520         attribute.
11521         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
11522         (process_one_cond_exec): Call alter_attrs_for_insn.
11523         * doc/md.texi (Defining Attributes): Mention some standard names.
11524         (Conditional Execution): Update documentation for "predicable".
11525
11526         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
11527         __builtin_clrsbll): Document.
11528         * doc/rtl.texi (clrsb): New entry.
11529         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
11530         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
11531         (expand_unop): Handle clrsb_optab.
11532         (init_optabs): Initialize it.
11533         * optabs.h (enum optab_index): New entry OTI_clrsb.
11534         (clrsb_optab): Define.
11535         * genopinit.c (optabs): Add an entry for it.
11536         * builtins.c (expand_builtin): Handle clrsb builtin functions.
11537         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
11538         BUILT_IN_CLRSBLL): New.
11539         * rtl.def (CLRSB): New code.
11540         * dwarf2out.c (mem_loc_descriptor): Handle it.
11541         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11542         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
11543         and popcount.
11544         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
11545         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
11546         (__ctzDI2): Move declaration.
11547         * config/bfin/bfin.md (clrsbsi2): New expander.
11548         (signbitssi2): Use the CLRSB rtx.
11549         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
11550         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
11551
11552 2011-06-21  Richard Guenther  <rguenther@suse.de>
11553
11554         * ipa-inline-transform.c (inline_transform): Fix previous change.
11555
11556 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
11557
11558         PR tree-optimization/49478
11559         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
11560         with constant operand.
11561
11562 2011-06-21  Richard Guenther  <rguenther@suse.de>
11563
11564         * ipa-inline-transform.c (inline_transform): Fix typo.
11565
11566 2011-06-21  Richard Guenther  <rguenther@suse.de>
11567
11568         PR tree-optimization/49483
11569         * tree-vect-stmts.c (vectorizable_assignment): Also handle
11570         VIEW_CONVERT_EXPR conversions.
11571
11572 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
11573
11574         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
11575         * config/avr/avr-tables.opt: New file (generated).
11576         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
11577         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
11578         avr-mcus.def.
11579         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
11580         (avr_option_override): Don't process -mmcu= argument here.  Set
11581         avr_current_device using avr_mcu_index.
11582         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
11583         * config/avr/avr.opt (mmcu=): Use Enum.
11584         * config/avr/t-avr (avr-devices.o): Update dependencies.
11585         ($(srcdir)/config/avr/avr-tables.opt): New.
11586         * target.def (help): Remove.
11587         * doc/tm.texi.in (TARGET_HELP): Remove.
11588         * doc/tm.texi: Regenerate.
11589         * opts.c: Don't include target.h.
11590         (common_handle_option): Don't call targetm.help.
11591         * system.h (TARGET_HELP): Poison.
11592         * Makefile.in (opts.o): Update dependencies.
11593
11594 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11595
11596         * config/usegld.h: New file.
11597         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
11598         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
11599         (LIB_SPEC): Likewise.  Search /lib.
11600         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
11601         (RDYNAMIC_SPEC): Handle GNU ld.
11602         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
11603         Define.
11604         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
11605         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
11606         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
11607         (STACK_CHECK_STATIC_BUILTIN): Define.
11608         * config/sol2.opt (compat-bsd): Remove.
11609         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
11610         * config/sol2-bi.h: New file.
11611         * config/sol2-gld.h: Remove.
11612         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
11613         (NO_DBX_BNSYM_ENSYM): Remove.
11614         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11615         (STACK_CHECK_STATIC_BUILTIN): Remove.
11616         Test USE_GLD instead of TARGET_GNU_LD.
11617         * config/i386/sol2-10.h: Rename to ...
11618         * config/i386/sol2-bi.h .. this.
11619         (SUBTARGET_EXTRA_SPECS): Redefine.
11620         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
11621         (MULTILIB_DEFAULTS): Remove.
11622         (DEFAULT_ARCH32_P): Define.
11623         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
11624         (ARCH64_SUBDIR): Define.
11625         Test USE_GLD instead of TARGET_GNU_LD.
11626         (I386_EMULATION): Rename to ...
11627         (ARCH32_EMULATION): ... this.
11628         (X86_64_EMULATION): Rename to ...
11629         (ARCH64_EMULATION): ... this.
11630         (TARGET_LD_EMULATION): Remove.
11631         (LINK_ARCH_SPEC): Remove.
11632         * config/i386/sol2-gas.h: Remove.
11633         * config/i386/t-sol2-10: Rename to ...
11634         * config/i386/t-sol2-64: ... this.
11635         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
11636         (AS_SPARC64_FLAG): Define.
11637         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
11638         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
11639         depending on TARGET_CPU_DEFAULT.
11640         (CPP_CPU_SPEC): Redefine.
11641         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
11642         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11643         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11644         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11645         ASM_ARCH_DEFAULT_SPEC): Redefine.
11646         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11647         LINK_ARCH_DEFAULT_SPEC.
11648         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11649         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11650         (ARCH64_SUBDIR): Define.
11651         (LINK_ARCH64_SPEC): Redefine.
11652         (CC1_SPEC): Redefine.
11653         (OPTION_DEFAULT_SPECS): Redefine.
11654         (MULTILIB_DEFAULTS): Define.
11655         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11656         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11657         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11658         (NO_DBX_BNSYM_ENSYM): Remove.
11659         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11660         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11661         (TARGET_ASM_NAMED_SECTION): Likewise.
11662         (STACK_CHECK_STATIC_BUILTIN): Remove.
11663         * config/sparc/sol2-bi.h: Remove.
11664         * config/sparc/sol2-gas-bi.h: Remove.
11665         * config/sparc/sol2-gas.h: Remove.
11666         * config/sparc/sol2-gld-bi.h: Remove.
11667         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11668         common parts ...
11669         (*-*-solaris2*): ... here.
11670
11671 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11672
11673         PR other/43564
11674         * ipa-inline.c (can_inline_edge_p): Check
11675         !DECL_DISREGARD_INLINE_LIMITS.
11676
11677 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11678
11679         PR middle-end/49139
11680         * cgraphunit.c (process_function_and_variable_attributes): warn when
11681         always_inline functions that are not inline.
11682         * ipa-inline-transform.c (inline_transform): Always call
11683         optimize_inline.
11684         * tree-inline.c (tree_inlinable_function_p): Use error instead
11685         of sorry.
11686         (expand_call_inline): Likewise.
11687
11688 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11689
11690         * Makefile.in (dg_target_exps): Set.
11691         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11692         instead of 7, try to divide it more evenly.
11693
11694 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
11695
11696         PR target/49089
11697         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11698         (avx256_split_unaligned_store): New definition.
11699         (ix86_option_override_internal): Enable avx256 unaligned load/store
11700         splitting only when avx256_split_unaligned_load/store is set.
11701
11702 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11703
11704         * regrename.c (scan_rtx_reg): Handle the case where we write to an
11705         open chain in a smaller mode without failing the entire block.
11706
11707 2011-06-21  Alan Modra  <amodra@gmail.com>
11708
11709         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11710         CONST high part large-toc address.
11711         (rs6000_tls_referenced_p): Make static.
11712         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11713
11714 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11715
11716         PR target/49385
11717         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11718         one of the operands is a register.
11719
11720 2011-06-20  Kai Tietz  <ktietz@redhat.com>
11721
11722         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11723         operations in combination with binary and.
11724
11725 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11726
11727         * regrename.c (do_replace): Don't update notes.
11728
11729 2011-06-20  Alan Modra  <amodra@gmail.com>
11730
11731         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11732         of toc-relative address in CONST.
11733         (rs6000_delegitimize_address): Recognize changed address.
11734         (rs6000_legitimize_reload_address): Likewise.
11735         (rs6000_emit_move): Don't force these constants to memory.
11736         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11737         toc-relative address in CONST.
11738         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11739         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11740
11741 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11742
11743         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11744         (count_trailing_zeros): Likewise.
11745
11746 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11747
11748         PR other/49325
11749         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11750         .init_array can be used with .ctors on targets.
11751         * configure: Regenerated.
11752
11753 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11754
11755         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11756         if the element type is volatile.
11757
11758 2011-06-18  Jan Hubicka  <jh@suse.cz>
11759
11760         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11761         extra name aliases.
11762         (lto_symtab_resolve_can_prevail_p): Likewise.
11763         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11764         * cgraphbuild.c (record_reference): Remove extra body alias code.
11765         (mark_load): Likewise.
11766         (mark_store): Likewise.
11767         * cgraph.h (varpool_node): Remove extra_name filed;
11768         add alias_of and extraname_alias.
11769         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11770         (varpool_alias_aliased_node): New inline function.
11771         (varpool_variable_node): New function.
11772         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11773         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11774         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11775         (input_varpool_node): Likewise.
11776         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11777         (varpool_externally_visible_p): Remove extra body alias code.
11778         (function_and_variable_visibility): Likewise.
11779         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11780         (ipa_pta_execute): Use it.
11781         * varpool.c (varpool_remove_node): Remove extra name alias code.
11782         (varpool_mark_needed_node): Likewise.
11783         (varpool_analyze_pending_decls): Analyze aliases.
11784         (assemble_aliases): New functoin.
11785         (varpool_assemble_decl): Use it.
11786         (varpool_create_variable_alias): New function.
11787         (varpool_extra_name_alias): Rewrite.
11788         (varpool_for_node_and_aliases): New function.
11789
11790 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
11791
11792         PR target/49411
11793         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11794         last_arg_constant and last argument doesn't match its predicate,
11795         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11796         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11797         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11798         spelling of error message.
11799         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11800         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11801         const_0_to_255_operand instead of const_int_operand.
11802
11803         Revert:
11804         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11805
11806         * config/i386/sse.md (blendbits): Remove mode attribute.
11807         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11808         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11809         Check integer value of operand 3 in insn constraint.
11810
11811 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
11812
11813         PR rtl-optimization/48542
11814         * reload.c (find_equiv_reg): Stop looking when finding a
11815         setjmp-type call.
11816         * reload1.c (reload_as_needed): Invalidate all reload
11817         registers when crossing a setjmp-type call.
11818
11819 2011-06-16  Jeff Law  <law@redhat.com>
11820
11821         * tree-ssa-threadupdate.c (struct redirection_data): New field
11822         intermediate_edge.
11823         (THREAD_TARGET2): Define.
11824         (redirection_data_eq): Also check that the intermediate edge is equal.
11825         (lookup_redirection_data): Drop useless argument.  Extract the
11826         outgoing_edge and intermediate edge from E.  Callers updated.
11827         (copy_phi_args, update_destination_phis): New functions.
11828         (fix_duplicate_block_edges): Likewise.
11829         (create_edge_and_update_destination_phis): Duplicate all the edges
11830         hung off e->aux.  Use copy_phi_args.
11831         (create_duplicates): Use fix_duplicate_block_edges.
11832         (fixup_template_block): Likewise.
11833         (redirect_edges): If necessary, redirect the joiner block's incoming
11834         edge to the duplicate of the joiner block.
11835         (thread_block): Don't muck up loops when threading through a joiner
11836         block.
11837         (thread_through_loop_header): Handle threading through a joiner block.
11838         (mark_threaded_blocks, register_jump_thread): Likewise.
11839         * tree-flow.h (register_jump_thread): Add new argument.  Callers
11840         updated.
11841         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11842         (thread_across_edge): Handle threading through a joiner block.
11843
11844 2011-06-16  Martin Jambor  <mjambor@suse.cz>
11845
11846         PR tree-optimization/49343
11847         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11848         calculate offset, provide 2nd operand for the new COMPONENT_REF.
11849
11850 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
11851
11852         * config/darwin-protos.h (machopic_select_rtx_section): Move to
11853         inside RTX_CODE ifdef.
11854
11855 2011-06-16  Tom de Vries  <tom@codesourcery.com>
11856
11857         PR target/45098
11858         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11859         Disallow NULL pointer for pointer arithmetic.
11860
11861 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11862
11863         PR target/49398
11864         Revert.
11865         2011-06-10  Wei Guozhi  <carrot@google.com>
11866
11867         PR target/45335
11868         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11869         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11870         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11871         related peephole2.
11872         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11873         related peephole2.
11874         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11875         (arm_legitimate_ldrd_p): New prototype.
11876         (arm_output_ldrd): New prototype.
11877         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11878         (arm_legitimate_ldrd_p): New function.
11879         (arm_output_ldrd): New function.
11880
11881 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11882
11883         PR middle-end/46500
11884         * doc/tm.texi.in: Update Copyright date.
11885         * doc/tm.texi: Regenerate.
11886         * targhooks.c (default_setup_incoming_varargs): Replace
11887         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11888         (default_pretend_outgoing_varargs_named): Likewise.
11889         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11890         (hook_callee_copies_named): Likewise.
11891         (default_function_arg_advance): Likewise.
11892         (default_function_arg): Likewise.
11893         (default_function_incoming_arg): Likewise.
11894         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11895         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11896         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11897         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11898         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11899         * targhooks.h (default_setup_incoming_varargs): Likewise.
11900         (default_pretend_outgoing_varargs_named): Likewise.
11901         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11902         (hook_callee_copies_named): Likewise.
11903         (default_function_arg_advance): Likewise.
11904         (default_function_arg): Likewise.
11905         (default_function_incoming_arg): Likewise.
11906         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11907         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11908         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11909         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11910         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11911         * target.def (pass_by_reference): Likewise.
11912         (setup_incoming_varargs, strict_argument_naming): Likewise.
11913         (pretend_outgoing_varargs_named, callee_copies): Likewise.
11914         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11915         (function_incoming_arg): Likewise.
11916         * target.h: Don't include "tm.h" .
11917         (cumulative_args_t): New typedef.
11918         [GCC_TM_H] (get_cumulative_args): New static inline function.
11919         [GCC_TM_H] (pack_cumulative_args): Likewise.
11920         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11921         argument type with cumulative_args_t.
11922         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11923         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11924         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11925         (frv_arg_partial_bytes, frv_function_arg): Likewise.
11926         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11927         (frv_function_arg_1): Likewise.
11928         * config/s390/s390.c (s390_pass_by_reference): Likewise.
11929         (s390_function_arg_advance, s390_function_arg): Likewise.
11930         * config/m32c/m32c.c (m32c_function_arg): Likewise.
11931         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11932         (m32c_strict_argument_naming): Likewise.
11933         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11934         (spu_function_arg_advance): Likewise.
11935         (spu_setup_incoming_varargs): Likewise.  Make static.
11936         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11937         Remove prototype.
11938         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11939         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11940         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11941         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11942         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11943         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11944         (mep_pass_by_reference, mep_function_arg): Likewise.
11945         (mep_function_arg_advance): Likewise.
11946         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11947         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11948         (m32r_function_arg, m32r_function_arg_advance): Likewise.
11949         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11950         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11951         (ix86_function_arg, ix86_pass_by_reference): Likewise.
11952         (ix86_setup_incoming_varargs): Likewise.
11953         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11954         (sh_strict_argument_naming): Likewise.
11955         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11956         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11957         (sh_function_arg_advance, sh_function_arg): Likewise.
11958         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11959         (pdp11_function_arg_advance): Likewise.
11960         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11961         Likewise.
11962         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11963         * config/avr/avr.c (avr_function_arg): Likewise.
11964         (avr_function_arg_advance): Likewise.
11965         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11966         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11967         (xtensa_function_arg_1): Likewise.
11968         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11969         Likewise.
11970         (xstormy16_function_arg): Likewise.
11971         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11972         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11973         (fr30_function_arg_advance): Likewise.
11974         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11975         (lm32_function_arg, lm32_function_arg_advance): Likewise.
11976         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11977         (moxie_function_arg, moxie_function_arg_advance): Likewise.
11978         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11979         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11980         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11981         (cris_function_arg, cris_function_incoming_arg): Likewise.
11982         (cris_function_arg_advance, cris_function_arg_1): Likewise.
11983         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11984         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11985         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11986         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11987         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11988         (mn10300_arg_partial_bytes): Likewise.
11989         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11990         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11991         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11992         (ia64_function_arg_1): Likewise.
11993         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11994         (m68k_function_arg): Likewise.
11995         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11996         (rs6000_function_arg, setup_incoming_varargs): Likewise.
11997         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11998         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11999         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
12000         (picochip_arg_advance): Likewise.
12001         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12002         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
12003         (mcore_function_arg_advance): Likewise.
12004         * config/score/score.c (score_pass_by_reference): Likewise.
12005         (score_function_arg_advance): Likewise.
12006         (score_arg_partial_bytes): Likewise.  Make static.
12007         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
12008         * config/arm/arm.c (arm_arg_partial_bytes): Replace
12009         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12010         (arm_function_arg, arm_function_arg_advance): Likewise.
12011         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
12012         * config/pa/pa.c (pa_pass_by_reference): Likewise.
12013         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
12014         (pa_function_arg): Likewise.
12015         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
12016         (mips_function_arg, mips_function_arg_advance): Likewise.
12017         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
12018         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
12019         * config/vax/vax.c (vax_function_arg): Likewise.
12020         (vax_function_arg_advance): Likewise.
12021         * config/h8300/h8300.c (h8300_function_arg): Likewise.
12022         (h8300_function_arg_advance): Likewise.
12023         * config/v850/v850.c (v850_pass_by_reference): Likewise.
12024         (v850_strict_argument_naming, v850_function_arg): Likewise.
12025         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
12026         (v850_setup_incoming_varargs): Likewise.
12027         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12028         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
12029         (mmix_function_arg, mmix_pass_by_reference): Likewise.
12030         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
12031         with const void *.
12032         * config/bfin/bfin.c (setup_incoming_varargs): Replace
12033         CUMULATIVE_ARGS* argument type with cumulative_args_t.
12034         (bfin_function_arg_advance, bfin_function_arg): Likewise.
12035         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
12036         * calls.c (emit_call_1): Change type of args_so_far to
12037         cumulative_args_t.  Changed all callers.
12038         (initialize_argument_information): Likewise.
12039         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
12040         * dse.c (get_call_args): Likewise.
12041         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12042         * function.c (pass_by_reference, reference_callee_copied): Likewise.
12043         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
12044         New member args_so_far_v.  Changed all users.
12045         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
12046         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12047         * config/mips/mips.c (mips_output_args_xfer): Likewise.
12048         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12049         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12050         * config/microblaze/microblaze.c (microblaze_expand_prologue):
12051         Likewise.
12052         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
12053         m32r_pass_by_reference.
12054
12055 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
12056
12057         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
12058         argument to be a VEC of statements.
12059         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
12060         assert that pattern statements have to have their vector type set.
12061         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
12062         Change the first argument to be a VEC of statements.  Update
12063         documentation.
12064         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
12065         (vect_handle_widen_mult_by_const): New function.
12066         (vect_recog_widen_mult_pattern):  Change the first argument to be a
12067         VEC of statements.  Update documentation.  Check that the constant is
12068         INTEGER_CST.  Support multiplication by a constant that fits an
12069         intermediate type - call vect_handle_widen_mult_by_const.
12070         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
12071         call.  Handle additional pattern statements if necessary.
12072
12073 2011-06-16  Nick Clifton  <nickc@redhat.com>
12074
12075         PR target/49427
12076         * config.gcc: Set cpu_type to v850 for any V850 architecture.
12077         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
12078         md_file, extra_modes, out_file and extra_options are these are all
12079         deduced from cpu_type.
12080
12081 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12082
12083         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
12084         truncation mask to 63.
12085
12086 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
12087
12088         PR target/49313
12089         PR target/29524
12090         * longlong.h: Add AVR support:
12091         (count_leading_zeros): New macro.
12092         (count_trailing_zeros): New macro.
12093         (COUNT_LEADING_ZEROS_0): New macro.
12094         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
12095         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
12096         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
12097         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
12098         (LIB2FUNCS_EXCLUDE): Add _clz.
12099         * config/avr/libgcc.S (XCALL): Move up in file.
12100         (XJMP): New C Macro.
12101         (DEFUN): New asm macro.
12102         (ENDF): New asm macro.
12103         (__ffssi2): New function.
12104         (__ffshi2): New function.
12105         (__loop_ffsqi2): New function.
12106         (__ctzsi2): New function.
12107         (__ctzhi2): New function.
12108         (__clzdi2): New function.
12109         (__clzsi2): New function.
12110         (__clzhi2): New function.
12111         (__paritydi2): New function.
12112         (__paritysi2): New function.
12113         (__parityhi2): New function.
12114         (__parityqi2): New function.
12115         (__popcounthi2): New function.
12116         (__popcountsi2): New function.
12117         (__popcountdi2): New function.
12118         (__popcountqi2): New function.
12119         (__bswapsi2): New function.
12120         (__bswapdi2): New function.
12121         (__ashldi3): New function.
12122         (__ashrdi3): New function.
12123         (__lshrdi3): New function.
12124         Fix suspicous lines.
12125
12126 2011-06-16  Richard Guenther  <rguenther@suse.de>
12127
12128         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
12129         the same as x != 0.
12130         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
12131         to (bool) X & 1.
12132         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
12133         equality compares against zero for the lower bit.
12134
12135 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
12136
12137         PR tree-optimization/49419
12138         * tree-vrp.c (execute_vrp): Call init_range_assertions
12139         before estimate_numbers_of_iterations, call
12140         free_number_of_iterations_estimates before calling
12141         remove_range_assertions.
12142
12143 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12144
12145         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
12146         (struct partial_schedule): Add rows_length field.
12147         (verify_partial_schedule): Check rows_length.
12148         (ps_insert_empty_row): Handle rows_length.
12149         (create_partial_schedule): Likewise.
12150         (free_partial_schedule): Likewise.
12151         (reset_partial_schedule): Likewise.
12152         (create_ps_insn): Remove rest_count argument.
12153         (remove_node_from_ps): Update rows_length.
12154         (add_node_to_ps): Update rows_length and call create_ps_insn
12155         without passing row_rest_count.
12156         (rotate_partial_schedule): Update rows_length.
12157
12158 2011-06-16  Revital Eres  <revital.eres@linaro.org>
12159
12160         * ddg.c (add_intra_loop_mem_dep): New function.
12161         (build_intra_loop_deps): Call it.
12162
12163 2011-06-13  Jeff Law  <law@redhat.com>
12164
12165         * df-problems.c (df_lr_local_compute): Manually CSE
12166         PIC_OFFSET_TABLE_REGNUM.
12167         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
12168         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12169
12170 2011-06-13  Jan Hubicka  <jh@suse.cz>
12171
12172         * cgraphunit.c (handle_alias_pairs): New function.
12173         (cgraph_finalize_compilation_unit): Use it.
12174         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
12175         as externally visible.
12176
12177 2011-06-15  Richard Guenther  <rguenther@suse.de>
12178
12179         * expr.c (expand_expr_real_2): Reduce all integral types to
12180         bitfield precision.
12181         (expand_expr_real_1): Likewise.
12182
12183 2011-06-15  Martin Jambor  <mjambor@suse.cz>
12184
12185         PR tree-optimization/48613
12186         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
12187         ipa_node_params_vector is NULL.
12188
12189 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
12190
12191         PR debug/49382
12192         * dwarf2out.c (dw_loc_list_node): Add force field.
12193         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
12194         location in the list, even if it is modified before first real insn.
12195         (output_loc_list): Emit empty ranges with force flag set.
12196         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
12197
12198 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
12199
12200         PR target/49349
12201         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
12202         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
12203         above a fence.  Update comments.
12204         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
12205         placed just above it.  Do not allow NULL place_to_insert.
12206
12207 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
12208
12209         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
12210         (slpeel_tree_peel_loop_to_edge): Don't call
12211         remove_dead_stmts_from_loop.
12212         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12213         remove irrelevant pattern statements.  For irrelevant statements
12214         check if it is the last statement of a detected pattern, use
12215         corresponding pattern statement instead.
12216         (destroy_loop_vec_info): No need to remove pattern statements,
12217         only free stmt_vec_info.
12218         (vect_transform_loop): For irrelevant statements check if it is
12219         the last statement of a detected pattern, use corresponding
12220         pattern statement instead.
12221         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
12222         pattern statements.  Set basic block for the new statement.
12223         (vect_pattern_recog): Update documentation.
12224         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
12225         operands of pattern statements.
12226         (vectorizable_call): Fix printing.  In case of a pattern statement
12227         use the lhs of the original statement when creating a dummy
12228         statement to replace the original call.
12229         (vect_analyze_stmt): For irrelevant statements check if it is
12230         the last statement of a detected pattern, use corresponding
12231         pattern statement instead.
12232         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
12233         statements use gsi of the original statement.
12234
12235 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12236
12237         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
12238         common/common-target-def.h.
12239         * target.def (default_target_flags, handle_option,
12240         supports_split_stack, optimization_table, init_struct,
12241         except_unwind_info, unwind_tables_default, have_named_sections):
12242         Move to common/common-target.def.
12243         * target.h (enum opt_levels, struct default_options): Move to
12244         common/common-target.h.
12245         * targhooks.c (default_except_unwind_info,
12246         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12247         default_target_handle_option, empty_optimization_table): Move to
12248         common/common-targhooks.c.
12249         * targhooks.h (default_except_unwind_info,
12250         dwarf2_except_unwind_info, sjlj_except_unwind_info,
12251         default_target_handle_option, empty_optimization_table): Move to
12252         common/common-targhooks.h.
12253         * common/common-target-def.h: Include common/common-targhooks.h.
12254         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
12255         defined.
12256         * common/common-target.def (handle_option, option_init_struct,
12257         option_optimization_table, default_target_flags,
12258         except_unwind_info, supports_split_stack, unwind_tables_default,
12259         have_named_sections): Move from target.def.
12260         (HOOK_PREFIX): Undefine at end of file.
12261         * common/common-target.h: Include input.h.
12262         (enum opt_levels, struct default_options): Move from target.h.
12263         * common/common-targhooks.c, common/common-targhooks.h: New.
12264         * config.gcc (target_has_targetm_common): Default to yes.
12265         (moxie*): Set target_has_targetm_common=no.
12266         (hppa*-*-*): Don't set target_has_targetm_common=yes.
12267         * doc/tm.texi: Regenerate.
12268         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
12269         (C_TARGET_DEF_H): Add common/common-targhooks.h.
12270         (GCC_OBJS): Remove vec.o.
12271         (OBJS): Remove hooks.o and vec.o.
12272         (OBJS-libcommon-target): Add vec.o, hooks.o and
12273         common/common-targhooks.o.
12274         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
12275         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
12276         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
12277         cfglayout.o, $(out_object_file), $(common_out_object_file)):
12278         Update dependencies.
12279         (common/common-targhooks.o): New.
12280         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
12281         * common/config/pa/pa-common.c: Include more headers.  Take
12282         copyright dates from pa.c.
12283         (pa_option_optimization_table, pa_handle_option,
12284         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
12285         TARGET_HANDLE_OPTION): Move from pa.c.
12286         * common/config/alpha/alpha-common.c,
12287         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
12288         common/config/bfin/bfin-common.c,
12289         common/config/cris/cris-common.c,
12290         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
12291         common/config/h8300/h8300-common.c,
12292         common/config/i386/i386-common.c,
12293         common/config/ia64/ia64-common.c,
12294         common/config/iq2000/iq2000-common.c,
12295         common/config/lm32/lm32-common.c,
12296         common/config/m32c/m32c-common.c,
12297         common/config/m32r/m32r-common.c,
12298         common/config/m68k/m68k-common.c,
12299         common/config/mcore/mcore-common.c,
12300         common/config/mep/mep-common.c,
12301         common/config/microblaze/microblaze-common.c,
12302         common/config/mips/mips-common.c,
12303         common/config/mmix/mmix-common.c,
12304         common/config/mn10300/mn10300-common.c,
12305         common/config/pdp11/pdp11-common.c,
12306         common/config/picochip/picochip-common.c,
12307         common/config/rs6000/rs6000-common.c,
12308         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
12309         common/config/score/score-common.c, common/config/sh/sh-common.c,
12310         common/config/sparc/sparc-common.c,
12311         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
12312         common/config/vax/vax-common.c,
12313         common/config/xstormy16/xstormy16-common.c,
12314         common/config/xtensa/xtensa-common.c: New.
12315         * config/alpha/alpha.c: Include common/common-target.h.
12316         (alpha_option_optimization_table, alpha_handle_option,
12317         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12318         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
12319         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
12320         * config/arm/arm.c (arm_option_optimization_table,
12321         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12322         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
12323         arm-common.c.
12324         * config/avr/avr.c (avr_option_optimization_table,
12325         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12326         to avr-common.c.
12327         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
12328         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
12329         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
12330         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
12331         * config/cris/cris.c (cris_option_optimization_table,
12332         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12333         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
12334         cris-common.c.
12335         * config/fr30/fr30.c (fr30_option_optimization_table,
12336         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
12337         to fr30-common.c.
12338         * config/frv/frv.c (frv_option_optimization_table,
12339         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
12340         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
12341         * config/h8300/h8300.c (h8300_option_optimization_table,
12342         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12343         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
12344         * config/i386/i386-protos.h (ix86_handle_option): Declare.
12345         * config/i386/i386.c: Include common/common-target.h.
12346         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
12347         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
12348         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
12349         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
12350         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
12351         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
12352         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
12353         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
12354         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
12355         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
12356         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
12357         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
12358         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
12359         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
12360         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
12361         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
12362         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
12363         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
12364         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
12365         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
12366         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
12367         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
12368         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
12369         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
12370         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
12371         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
12372         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
12373         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
12374         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
12375         ix86_option_optimization_table, ix86_option_init_struct,
12376         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
12377         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12378         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
12379         i386-common.c.
12380         * config/i386/t-i386 (i386.o): Update dependencies.
12381         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
12382         * config/ia64/ia64.c (ia64_option_optimization_table,
12383         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12384         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12385         ia64_handle_option): Move to ia64-common.c.
12386         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
12387         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
12388         * config/lm32/lm32.c (lm32_option_optimization_table,
12389         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
12390         to lm32-common.c.
12391         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
12392         m32c-common.c.
12393         * config/m32r/m32r.c (m32r_option_optimization_table,
12394         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12395         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
12396         m32r_handle_option): Move to m32r-common.c.
12397         (m32r_memory_move_cost): Remove comment referring to
12398         TARGET_HANDLE_OPTION.
12399         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
12400         Move to m68k-common.c.
12401         * config/mcore/mcore.c (mcore_option_optimization_table,
12402         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12403         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
12404         * config/mep/mep.c (mep_option_optimization_table,
12405         mep_handle_option, TARGET_HANDLE_OPTION,
12406         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
12407         Move to mep-common.c.
12408         * config/microblaze/microblaze.c
12409         (microblaze_option_optimization_table,
12410         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
12411         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
12412         * config/mips/mips.c (mips_handle_option,
12413         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12414         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
12415         mips-common.c.
12416         * config/mmix/mmix.c (mmix_option_optimization_table,
12417         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12418         Move to mmix-common.c.
12419         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
12420         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
12421         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12422         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
12423         * config/pa/pa.c: Include common/common-target.h.
12424         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
12425         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12426         pa_handle_option): Move to pa-common.c.
12427         (pa_option_override): Use targetm_common.except_unwind_info.
12428         (pa_asm_output_mi_thunk, pa_function_section): Use
12429         targetm_common.have_named_sections.
12430         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
12431         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12432         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12433         pdp11_handle_option, pdp11_option_init_struct): Move to
12434         pdp11-common.c.
12435         * config/picochip/picochip.c (picochip_option_optimization_table,
12436         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
12437         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
12438         * config/rs6000/rs6000.c: Include common/common-target.h.
12439         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
12440         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
12441         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
12442         rs6000_handle_option): Move to rs6000-common.c.
12443         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12444         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
12445         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12446         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
12447         * config/s390/s390.c (processor_flags_table,
12448         s390_option_optimization_table, s390_option_init_struct,
12449         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
12450         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
12451         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
12452         * config/s390/s390.h (processor_flags_table): Declare.
12453         * config/score/score.c (score_option_optimization_table,
12454         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12455         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
12456         score_handle_option): Move to score-common.c.
12457         * config/sh/sh.c (sh_option_optimization_table,
12458         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
12459         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
12460         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
12461         * config/sparc/sparc.c: Include common/common-target.h.
12462         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12463         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
12464         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
12465         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
12466         spu_option_init_struct): Move to spu-common.c.
12467         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
12468         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
12469         * config/v850/v850.c (small_memory_physical_max,
12470         v850_handle_memory_optionn v850_handle_option,
12471         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
12472         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
12473         v850-common.c.
12474         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
12475         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
12476         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
12477         Move to xtensa-common.c.
12478         * cfglayout.c: Include common/common-target.h.
12479         (fixup_reorder_chain): Use targetm_common.have_named_sections.
12480         * cfgrtl.c: Include common/common-target.h.
12481         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
12482         targetm_common.have_named_sections.
12483         * dbxout.c: Include common/common-target.h.
12484         (dbxout_function_end): Use targetm_common.have_named_sections.
12485         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
12486         targetm_common.except_unwind_info.
12487         * dwarf2out.c: Include common/common-target.h.
12488         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
12489         dwarf2out_begin_prologue, dwarf2out_frame_init,
12490         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
12491         targetm_common.except_unwind_info.
12492         * except.c: Include common/common-target.h.
12493         (init_eh, finish_eh_generation,
12494         output_one_function_exception_table): Use
12495         targetm_common.except_unwind_info.
12496         (switch_to_exception_section): Use targetm_common.have_named_sections.
12497         * explow.c: Include common/common-target.h.
12498         * expr.c: Include common/common-target.h.
12499         (build_personality_function): Use targetm_common.except_unwind_info.
12500         * function.c: Include common/common-target.h.
12501         (expand_function_end): Use targetm_common.except_unwind_info.
12502         * haifa-sched.c: Include common/common-target.h.
12503         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
12504         * lto-opts.c: Include common/common-target.h instead of target.h.
12505         (lto_reissue_options): Use targetm_common.handle_option.
12506         * opts.c: Include common/common-target.h.
12507         (target_handle_option): Use targetm_common.handle_option.
12508         (init_options_struct): Update comment referring to
12509         targetm.target_option.optimization.  Use
12510         targetm_common.default_target_flags,
12511         targetm_common.unwind_tables_default and
12512         targetm_common.option_init_struct.
12513         (default_options_optimization): Use
12514         targetm_common.option_optimization_table.
12515         (finish_options): Use targetm_common.except_unwind_info,
12516         targetm_common.unwind_tables_default,
12517         targetm_common.have_named_sections and
12518         targetm_common.supports_split_stack.
12519         * toplev.c: Include common/common-target.h.
12520         (process_options): Use targetm_common.have_named_sections.
12521         * tree-tailcall.c: Include common/common-target.h.
12522         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
12523         * tree.c: Include common/common-target.h.
12524         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
12525         * varasm.c: Include common/common-target.h.
12526         (resolve_unique_section, hot_function_section,
12527         default_function_section): Use targetm_common.have_named_sections.
12528
12529 2011-06-14  Easwaran Raman  <eraman@google.com>
12530
12531         PR rtl-optimization/44194
12532         * dse.c: Include tree-flow.h
12533         (insn_info): Add new field non_frame_wild_read.
12534         (group_info): Add new fields escaped_n and escaped_p.
12535         (kill_on_calls): New variable.
12536         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
12537         (dse_step0): Initialize kill_on_calls.
12538         (can_escape): New function.
12539         (set_usage_bits): Add additional parameter; record information
12540         about escaped locations.
12541         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
12542         (dse_step2_nospill): Set kill_on_calls based on
12543         group->escaped_n and group->escaped_n.
12544         (add_wild_read): Refactor into...
12545         (reset_active_stores): ... New function, and
12546         (free_read_records): ... New function.
12547         (add_non_frame_wild_read): New function.
12548         (scan_insn): Call add_non_frame_wild_read on non-const calls.
12549         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
12550         (dse_step5_nospill): Call scan_reads_nospill for instructions
12551         marked as non_frame_wild_read.
12552         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
12553
12554 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
12555
12556         * common/common-target-def.h, common/common-target.def,
12557         common/common-target.h, common/config/default-common.c,
12558         common/config/pa/pa-common.c: New files.
12559         * Makefile.in (common_out_file, common_out_object_file,
12560         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
12561         (OBJS-libcommon-target): Include $(common_out_object_file).
12562         (prefix.o): Update dependencies.
12563         ($(common_out_object_file), common/common-target-hooks-def.h,
12564         s-common-target-hooks-def-h): New.
12565         (s-tm-texi): Also check timestamp on common-target.def.
12566         (build/genhooks.o): Update dependencies.
12567         * config.gcc (common_out_file, target_has_targetm_common): Define.
12568         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
12569         TARGET_ALWAYS_STRIP_DOTDOT.
12570         * configure.ac (common_out_object_file): Define.
12571         (common_out_file, common_out_object_file): Substitute.
12572         (common): Create directory.
12573         * configure: Regenerate.
12574         * doc/tm.texi.in (targetm_common): Document.
12575         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
12576         * doc/tm.texi: Regenerate.
12577         * genhooks.c (hook_array): Also include common/common-target.def.
12578         * prefix.c (tm.h): Don't include.
12579         (common/common-target.h): Include.
12580         (ALWAYS_STRIP_DOTDOT): Don't define.
12581         (update_path): Use targetm_common.always_strip_dotdot instead of
12582         ALWAYS_STRIP_DOTDOT.
12583         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
12584
12585 2011-06-14  David Li  <davidxl@google.com>
12586
12587         * passes.c (execute_function_todo): Remove TODO_dump_func.
12588         (execute_one_pass): Remove TODO_dump_func.
12589         (execute_function_dump): New function.
12590         * tree-vrp.c: Remove TODO_dump_func.
12591         * regrename.c: Remove TODO_dump_func.
12592         * fwprop.c: Remove TODO_dump_func.
12593         * tree-into-ssa.c: Remove TODO_dump_func.
12594         * tree-complex.c: Remove TODO_dump_func.
12595         * tracer.c: Remove TODO_dump_func.
12596         * tree-loop-distribution.c: Remove TODO_dump_func.
12597         * postreload-gcse.c: Remove TODO_dump_func.
12598         * postreload.c: Remove TODO_dump_func.
12599         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
12600         * tree-tailcall.c: Remove TODO_dump_func.
12601         * ipa-cp.c: Remove TODO_dump_func.
12602         * final.c: Remove TODO_dump_func.
12603         * tree-emutls.c: Remove TODO_dump_func.
12604         * omp-low.c: Remove TODO_dump_func.
12605         * tree-ssa-dse.c: Remove TODO_dump_func.
12606         * tree-ssa-uncprop.c: Remove TODO_dump_func.
12607         * auto-inc-dec.c: Remove TODO_dump_func.
12608         * reorg.c: Remove TODO_dump_func.
12609         * tree-ssa-copyrename.c: Remove TODO_dump_func.
12610         * tree-ssa-ccp.c: Remove TODO_dump_func.
12611         * compare-elim.c: Remove TODO_dump_func.
12612         * mode-switching.c: Remove TODO_dump_func.
12613         * modulo-sched.c: Remove TODO_dump_func.
12614         * tree-call-cdce.c: Remove TODO_dump_func.
12615         * cse.c: Remove TODO_dump_func.
12616         * web.c: Remove TODO_dump_func.
12617         * tree-stdarg.c: Remove TODO_dump_func.
12618         * lto-streamer-out.c: Remove TODO_dump_func.
12619         * tree-ssa-math-opts.c: Remove TODO_dump_func.
12620         * tree-ssa-dom.c: Remove TODO_dump_func.
12621         * tree-nrv.c: Remove TODO_dump_func.
12622         * loop-init.c: Remove TODO_dump_func.
12623         * gimple-low.c: Remove TODO_dump_func.
12624         * ipa-inline.c: Remove TODO_dump_func.
12625         * tree-ssa-sink.c: Remove TODO_dump_func.
12626         * jump.c: Remove TODO_dump_func.
12627         * ifcvt.c: Remove TODO_dump_func.
12628         * tree-ssa-loop.c: Remove TODO_dump_func.
12629         * recog.c: Remove TODO_dump_func.
12630         * dse.c: Remove TODO_dump_func.
12631         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
12632         * matrix-reorg.c: Remove TODO_dump_func.
12633         * tree-eh.c: Remove TODO_dump_func.
12634         * regmove.c: Remove TODO_dump_func.
12635         * function.c: Remove TODO_dump_func.
12636         * tree-vectorizer.c: Remove TODO_dump_func.
12637         * ipa-split.c: Remove TODO_dump_func.
12638         * gcse.c: Remove TODO_dump_func.
12639         * tree-if-conv.c: Remove TODO_dump_func.
12640         * init-regs.c: Remove TODO_dump_func.
12641         * tree-ssa-phiopt.c: Remove TODO_dump_func.
12642         * implicit-zee.c: Remove TODO_dump_func.
12643         * lower-subreg.c: Remove TODO_dump_func.
12644         * bt-load.c: Remove TODO_dump_func.
12645         * tree-dfa.c: Remove TODO_dump_func.
12646         * except.c: Remove TODO_dump_func.
12647         * emit-rtl.c: Remove TODO_dump_func.
12648         * store-motion.c: Remove TODO_dump_func.
12649         * cfgexpand.c: Remove TODO_dump_func.
12650         * tree-cfgcleanup.c: Remove TODO_dump_func.
12651         * cfgcleanup.c: Remove TODO_dump_func.
12652         * tree-ssa-pre.c: Remove TODO_dump_func.
12653         * tree-sra.c: Remove TODO_dump_func.
12654         * tree-mudflap.c: Remove TODO_dump_func.
12655         * tree-ssa-copy.c: Remove TODO_dump_func.
12656         * cfglayout.c: Remove TODO_dump_func.
12657         * tree-ssa-forwprop.c: Remove TODO_dump_func.
12658         * tree-ssa-dce.c: Remove TODO_dump_func.
12659         * ira.c: Remove TODO_dump_func.
12660         * tree-ssa.c: Remove TODO_dump_func.
12661         * integrate.c: Remove TODO_dump_func.
12662         * tree-optimize.c: Remove TODO_dump_func.
12663         * tree-ssa-phiprop.c: Remove TODO_dump_func.
12664         * tree-object-size.c: Remove TODO_dump_func.
12665         * combine.c: Remove TODO_dump_func.
12666         * bb-reorder.c: Remove TODO_dump_func.
12667         * cprop.c: Remove TODO_dump_func.
12668         * var-tracking.c: Remove TODO_dump_func.
12669         * tree-profile.c: Remove TODO_dump_func.
12670         * tree-vect-generic.c: Remove TODO_dump_func.
12671         * reg-stack.c: Remove TODO_dump_func.
12672         * sched-rgn.c: Remove TODO_dump_func.
12673         * tree-ssa-structalias.c: Remove TODO_dump_func.
12674         * tree-switch-conversion.c: Remove TODO_dump_func.
12675         * tree-cfg.c: Remove TODO_dump_func.
12676         * tree-ssa-reassoc.c: Remove TODO_dump_func.
12677         * combine-stack-adj.c: Remove TODO_dump_func.
12678         * dce.c: Remove TODO_dump_func.
12679         * tree-ssanames.c: Remove TODO_dump_func.
12680         * regcprop.c: Remove TODO_dump_func.
12681
12682 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12683
12684         PR middle-end/47364
12685         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12686         and properly handle result not in Pmode.
12687
12688 2011-06-14  Robert Millan  <rmh@gnu.org>
12689
12690         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12691         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12692         `config/linux.h'.
12693
12694         * config/i386/kfreebsd-gnu64.h: New file.
12695         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12696         with `i386/kfreebsd-gnu64.h'.
12697
12698         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12699         (GNU_USER_LINK_EMULATION64): New macros.
12700         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12701         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12702         of hardcoding `elf_i386' and `elf_x86_64'.
12703
12704 2011-06-14  Nick Clifton  <nickc@redhat.com>
12705
12706         PR target/49403
12707         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12708
12709         PR target/49402
12710         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12711
12712 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
12713
12714         PR fortran/49103
12715         * tree.h (DECL_NONSHAREABLE): Define.
12716         (struct tree_decl_common): Change decl_common_unused to
12717         decl_nonshareable_flag.
12718         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12719         Ignore vars with DECL_NONSHAREABLE bit set.
12720         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12721         on stores to automatic aggregate vars.
12722
12723         PR rtl-optimization/49390
12724         Revert:
12725         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12726
12727         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12728         MEM_ALIAS_SET.
12729
12730 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
12731             Tom de Vries  <tom@codesourcery.com>
12732
12733         PR target/45098
12734         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12735         Document changed semantics.
12736         (max_stmt_executions, max_stmt_executions_int): Declare.
12737         * tree-data-ref.c (estimated_loop_iterations)
12738         (estimated_loop_iterations_int): Move functions...
12739         * tree-ssa-loop-niter.c (estimated_loop_iterations)
12740         (estimated_loop_iterations_int): here.
12741         (record_estimate): Change nb_iterations_upper_bound and
12742         nb_iterations_estimate semantics.
12743         (max_stmt_executions, max_stmt_executions_int): New function.
12744         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12745         (max_stmt_executions_tree): this.
12746         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12747         estimated_loop_iterations_tree.
12748         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12749         max_stmt_executions_int instead of estimated_loop_iterations_int.
12750         * predict.c (predict_loops): Idem.
12751         * tree-parloops.c (parallelize_loops): Idem.
12752         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12753         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12754         (init_omega_for_ddr_1): Idem.
12755         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12756         (loop_prefetch_arrays): Idem
12757         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12758         max_stmt_executions instead of estimated_loop_iterations.
12759         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12760         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12761         instead of nb_iterations_upper_bound.
12762
12763 2011-06-13  Jan Hubicka  <jh@suse.cz>
12764
12765         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12766
12767 2011-06-14  Richard Henderson  <rth@redhat.com>
12768
12769         PR debug/48459
12770         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12771         (based_loc_descr): Assert it's true.
12772         (compute_frame_pointer_to_fb_displacement): Set it, rather than
12773         aborting immediately.
12774
12775 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
12776             Mingfeng Wu  <mingfeng@faraday-tech.com>
12777
12778         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12779
12780 2011-06-13  Jan Hubicka  <jh@suse.cz>
12781
12782         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12783
12784 2011-06-13  Jan Hubicka  <jh@suse.cz>
12785
12786         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12787         similarly to DECL_COMDAT.
12788         * cgraphunit.c (cgraph_analyze_function): Likewise.
12789         * ipa.c (function_and_variable_visibility): Likewise.
12790
12791 2011-06-13  Jan Hubicka  <jh@suse.cz>
12792
12793         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12794         BINFO_VIRTUALS when streaming for ltrans unit.
12795
12796 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
12797
12798         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12799         (movdi_internal64): Same.
12800
12801 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12802
12803         PR target/44618
12804         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12805         a set of similar patterns, where the MATCH_OPERAND for the function
12806         argument is replaced with individual references to hardware registers.
12807         (save_fpregs_<mode>): Ditto
12808         (restore_gpregs_<mode>): Ditto
12809         (return_and_restore_gpregs_<mode>): Ditto
12810         (return_and_restore_fpregs_<mode>): Ditto
12811         (return_and_restore_fpregs_aix_<mode>): Ditto
12812
12813 2011-06-13  Jan Hubicka  <jh@suse.cz>
12814
12815         * ipa-utils.c (postorder_stack): New structure.
12816         (ipa_reverse_postorder): Handle aliases.
12817
12818 2011-06-13  Jan Hubicka  <jh@suse.cz>
12819
12820         * ipa-inline.c (reset_edge_caches): Walk aliases.
12821         (update_caller_keys): Do not test inlinability of aliases.
12822         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12823         (do_estimate_growth): Fix typo.
12824
12825 2011-06-13  Jan Hubicka  <jh@suse.cz>
12826
12827         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12828         (can_remove_node_now_p): ... here; handle same comdat groups.
12829         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12830         (inline_call): Update use of can_remove_node_now_p.
12831
12832 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12833
12834         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12835         condition to disallow non-identical memory locations.
12836         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12837         preference to bit manipulation instructions.
12838
12839 2011-06-13  Jan Hubicka  <jh@suse.cz>
12840
12841         * cgraph.c (cgraph_for_node_thunks_and_aliases,
12842         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12843         (nonremovable_p): New function.
12844         (cgraph_can_remove_if_no_direct_calls_p): New function.
12845         (used_from_object_file_p): New functoin.
12846         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12847         references from aliases.
12848         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12849         * ipa-inline.c (check_caller_edge): New function.
12850         (want_inline_function_called_once_p): Use it; accept aliases called
12851         once, too.
12852         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12853
12854 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12855
12856         PR target/48454
12857         * config/arm/neon.md (vec_pack_trunc): Set the lengths
12858         correctly for the case with Quad vectors.
12859
12860 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
12861            Ira Rosen  <ira.rosen@linaro.org>
12862
12863         PR tree-optimization/49352
12864         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12865         all, make sure loop_use_stmt after the loop is a def stmt of a used
12866         SSA_NAME that is the only one defined inside of the loop.  Don't
12867         check for COND_EXPR and GIMPLE_BINARY_RHS.
12868         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12869         check_reduction is true.
12870
12871 2011-06-11  Jan Hubicka  <jh@suse.cz>
12872
12873         PR middle-end/49373
12874         * ipa.c (cgraph_externally_visible_p): Check resolution info.
12875
12876 2011-06-11  Jan Hubicka  <jh@suse.cz>
12877
12878         PR middle-end/48836
12879         * ipa-inline-transform.c: Include tree-pass.h
12880         (inline_transform): Set TODO_update_ssa_only_virtuals.
12881         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12882
12883 2011-06-11  Jan Hubicka  <jh@suse.cz>
12884
12885         PR middle-end/49378
12886         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12887         aliases and thunks.
12888
12889 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
12890
12891         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12892         Take number of iterations to peel into account for equally frequent
12893         misalignment values.
12894
12895 2011-06-11  Jan Hubicka  <jh@suse.cz>
12896
12897         * lto-streamer-out.c (produce_symtab): Stream out the newly
12898         represented aliases.
12899
12900 2011-06-11  Jan Hubicka  <jh@suse.cz>
12901
12902         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12903         varying args.
12904         (ipa_update_after_lto_read): Likewise.
12905         (ipa_write_node_info): Do not sream call_with_var_arguments.
12906         (ipa_read_node_info): Likewise.
12907
12908 2011-06-11  Jan Hubicka  <jh@suse.cz>
12909
12910         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12911
12912 2011-06-11  Jan Hubicka  <jh@suse.cz>
12913
12914         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12915         (lto_symtab_resolve_can_prevail_p): Likewise.
12916         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12917         * cgraph.c (same_body_aliases_done): New global var.
12918         (cgraph_same_body_alias_1): Rename to ...
12919         (cgraph_create_function_alias): ... this one; reorg to new
12920         representation.
12921         (cgraph_same_body_alias): Use cgraph_create_function_alias;
12922         record references when asked to.
12923         (cgraph_add_thunk): Fix formating.
12924         (cgraph_get_node): Kill same body alias code.
12925         (cgraph_node_for_asm): Likewise.
12926         (cgraph_remove_same_body_alias): Remove.
12927         (cgraph_remove_node): Kill same body alias code.
12928         (cgraph_mark_address_taken_node): Mark also the aliased function
12929         as having address taken.
12930         (dump_cgraph_node): Dump same body aliases.
12931         (cgraph_for_node_thunks_and_aliases): Update for new alias
12932         representation.
12933         (cgraph_for_node_and_aliases): Likewise.
12934         * cgraph.h (same_body): Kll pointer.
12935         (same_body_alias): Update comment.
12936         (same_body_aliases_done): Declare.
12937         (cgraph_remove_same_body_alias): Remove declaration.
12938         (cgraph_create_function_alias): Declare.
12939         (cgraph_process_same_body_aliases): Declare.
12940         (cgraph_function_with_gimple_body_p): Check for alias.
12941         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12942         (cgraph_alias_aliased_node): New function.
12943         (cgraph_function_node): Update for new aliases.
12944         (cgraph_function_or_thunk_node): Likewise.
12945         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12946         (inline_call): Remove dead aliases.
12947         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12948         name hack for same body aliases.
12949         (clone_of_p): Look through aliases.
12950         (verify_cgraph_node): Verify aliases.
12951         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12952         (cgraph_process_same_body_aliases): New function.
12953         (process_function_and_variable_attributes): Disable weakref warning on
12954         alias.
12955         (cgraph_analyze_functions): Handle aliases.
12956         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12957         (assemble_thunks): Rename to ...
12958         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12959         (cgraph_expand_function): Remove alias output code.
12960         (cgraph_output_in_order): Skip aliases.
12961         (cgraph_preserve_function_body_p): Aliases don't need preserving.
12962         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12963         (ipa_record_reference): Do not assert on alias references.
12964         (ipa_ref_has_aliases_p): New function.
12965         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12966         (ipa_ref_has_aliases_p): Declare.
12967         * lto-cgraph.c (lto_output_node): Handle aliases.
12968         (input_node): Likewise.
12969         * lto-streamer-out.c (lto_output): Skip aliases.
12970         (produce_symtab): Kill same_body_alias code.
12971         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12972         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12973         * ipa-inline.c (update_caller_keys): Walk aliases.
12974         (inline_small_functions): Fix thinko in previous patch.
12975         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12976         (function_and_variable_visibility): Do not walk same body aliases.
12977         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12978         (ipa_pta_execute): Use it.
12979
12980 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12981
12982         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12983         (*vec_dupv2df): Rename from vec_dupv2df.
12984         (vec_dupv2df): New expander.
12985
12986 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12987
12988         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12989
12990 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12991
12992         * config/i386/i386.md: Use default value in "isa" attribute.
12993         * config/i386/sse.md: Ditto.
12994         * config/i386/mmx.md: Ditto.
12995
12996 2011-06-10  Wei Guozhi  <carrot@google.com>
12997
12998         PR target/45335
12999         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13000         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13001         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13002         related peephole2.
13003         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13004         related peephole2.
13005         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13006         (arm_legitimate_ldrd_p): New prototype.
13007         (arm_output_ldrd): New prototype.
13008         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13009         (arm_legitimate_ldrd_p): New function.
13010         (arm_output_ldrd): New function.
13011
13012 2011-06-10  David Li  <davidxl@google.com>
13013
13014         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13015         * passes.c (passr_eq): New function.
13016         (create_pass_tab): New function.
13017         (pass_traverse): New function.
13018         (dump_one_pass): New function.
13019         (dump_pass_list): New function.
13020         (dump_passes): New function.
13021
13022 2011-06-10  Jan Hubicka  <jh@suse.cz>
13023
13024         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
13025         setting the nothrow flag.
13026         * ipa-reference.c (propagate): Skip aliases.
13027         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
13028         (propagate_nothrow): Skip aliases; do not update cgraph.
13029         (local_pure_const): Do not update cgraph.
13030         * tree-profile.c (tree_profiling): Do fixup_cfg.
13031
13032 2011-06-10  Jan Hubicka  <jh@suse.cz>
13033
13034         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
13035         (cgraph_local_node_p): ... here; handle aliases.
13036         (has_addr_references_p): Break out from ...;
13037         (cgraph_remove_unreachable_nodes) ... here.
13038
13039 2011-06-10  Jan Hubicka  <jh@suse.cz>
13040
13041         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
13042         * common.opt (flag_inline_functions_called_once): Do not
13043         initialize to 1.
13044
13045 2011-06-10  Jan Hubicka  <jh@suse.cz>
13046
13047         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
13048         (ipcp_initialize_node_lattices): Do not deal with aliases;
13049         Do not try to propagate through thunks.
13050         (ipcp_change_tops_to_bottom): Do not deal with aliases.
13051
13052 2011-06-10  Jan Hubicka  <jh@suse.cz>
13053
13054         * ipa-prop.c (ipa_write_node_info): Stream jump functions
13055         for indirect calls.
13056         (ipa_read_node_info): Likewise.
13057
13058 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13059
13060         PR lto/49302
13061         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
13062         (build_and_insert_call): Likewise.
13063         (build_and_insert_ref): New.
13064         (gimple_expand_builtin_pow): Minor cleanup.
13065         (gimple_expand_builtin_cabs): New.
13066         (execute_cse_sincos): Add case for BUILT_IN_CABS.
13067
13068 2011-06-10  Jan Hubicka  <jh@suse.cz>
13069
13070         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
13071         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
13072         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
13073         (ipcp_propagate_stage): Skip aliases when propagating.
13074         (ipcp_need_redirect_p): Skip aliases.
13075         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
13076         collect_callers_of_node.
13077         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
13078         for aliases.
13079         (ipa_compute_jump_functions): Look through aliases.
13080
13081 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13082
13083         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
13084
13085 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13086
13087         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
13088         Adjust comments.
13089         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
13090
13091 2011-06-10  Jan Hubicka  <jh@suse.cz>
13092
13093         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
13094         Update call of gimple_get_virt_method_for_binfo.
13095         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
13096         refuse_thunks parameter.
13097         (gimple_fold_call): Update.
13098         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
13099
13100 2011-06-10  Jan Hubicka  <jh@suse.cz>
13101
13102         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
13103         (not_all_callers_have_enough_arguments_p): ... this one; turn into
13104         worker for cgraph_for_node_and_aliases.
13105         (convert_callers_for_node): Break out from ...
13106         (convert_callers): ... here.
13107         (modify_function): Use collect_callers_of_node.
13108         (ipa_early_sra): Use cgraph_for_node_and_aliases.
13109
13110 2011-06-10  Richard Guenther  <rguenther@suse.de>
13111
13112         PR tree-optimization/49361
13113         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
13114         when not already in gimple form.
13115
13116 2011-06-10  Richard Guenther  <rguenther@suse.de>
13117
13118         PR bootstrap/49344
13119         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
13120         FOR_EACH_PHI_OR_STMT_USE.
13121
13122 2011-06-10  Jan Hubicka  <jh@suse.cz>
13123
13124         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
13125         (clone_inlined_nodes): ... here.
13126         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
13127         to real destination prior inlining.
13128         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
13129         can_early_inline_edge_p, want_early_inline_function_p,
13130         want_early_inline_function_p, want_inline_small_function_p,
13131         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
13132         edge_badness, update_all_callee_keys, lookup_recursive_calls,
13133         add_new_edges_to_heap, inline_small_functions, flatten_function,
13134         inline_always_inline_functions, early_inline_small_functions): Use
13135         cgraph_function_or_thunk_node.
13136         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
13137         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
13138         (do_estimate_edge_growth_1): Break out from ...
13139         (do_estimate_growth) ... here; walk aliases.
13140         (inline_generate_summary): Skip aliases.
13141
13142 2011-06-10  Richard Guenther  <rguenther@suse.de>
13143
13144         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
13145         forward when combining, visit inserted stmts when a stmt was changed.
13146
13147 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
13148
13149         * tree.h (error_operand_p): Add.
13150         * dbxout.c (dbxout_type_fields): Use the latter.
13151         * c-decl.c (add_stmt): Likewise.
13152         * gimplify.c (omp_add_variable, omp_notice_variable,
13153         gimplify_scan_omp_clauses): Likewise.
13154
13155 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
13156
13157         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
13158         when a value is actually passed in regs.
13159
13160 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
13161             Laurent Rougé  <laurent.rouge@menta.fr>
13162
13163         * doc/invoke.texi (SPARC options): Add -mflat.
13164         * config/sparc/sparc.opt: Likewise.
13165         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
13166         (sparc_flat_expand_prologue): Declare.
13167         (sparc_flat_expand_epilogue): Likewise.
13168         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
13169         (CPP_ENDIAN_SPEC): Replace with...
13170         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
13171         (CPP_SPEC): Adjust to above change.
13172         (EXTRA_SPECS): Likewise.
13173         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
13174         (INCOMING_REGNO): Likewise.
13175         (OUTGOING_REGNO): Likewise.
13176         (LOCAL_REGNO): Likewise.
13177         (SETUP_FRAME_ADDRESSES): Likewise.
13178         (FIXED_REGISTERS): Set 0 for %fp.
13179         (CALL_USED_REGISTERS): Likewise.
13180         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
13181         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
13182         (RETURN_ADDR_REGNUM): Define.
13183         (RETURN_ADDR_RTX): Use it.
13184         (INCOMING_RETURN_ADDR_REGNUM): Define.
13185         (INCOMING_RETURN_ADDR_RTX): Use it.
13186         (DWARF_FRAME_RETURN_COLUMN): Likewise.
13187         (EH_RETURN_REGNUM): Define.
13188         (EH_RETURN_STACKADJ_RTX): Use it.
13189         (EH_RETURN_HANDLER_RTX): Delete.
13190         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
13191         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
13192         Delete.
13193         (struct machine_function): Add frame_size, apparent_frame_size,
13194         frame_base_reg, frame_base_offset, n_global_fp_regs and
13195         save_local_in_regs_p fields.
13196         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
13197         sparc_frame_base_offset, sparc_n_global_fp_regs,
13198         sparc_save_local_in_regs_p): New macros.
13199         (sparc_option_override): Error out if -fcall-saved-REG is specified
13200         for Out registers.
13201         (eligible_for_restore_insn): Fix formatting.
13202         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
13203         (eligible_for_sibcall_delay): Likewise.
13204         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
13205         (sparc_legitimate_address_p): Adjust to above change.
13206         (save_global_or_fp_reg_p): New predicate.
13207         (return_addr_reg_needed_p): Likewise.
13208         (save_local_or_in_reg_p): Likewise.
13209         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
13210         (SORR_SAVE, SORR_RESTORE): Delete.
13211         (sorr_pred_t): New typedef.
13212         (sorr_act_t): New enum.
13213         (save_or_restore_regs): Rename to...
13214         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
13215         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
13216         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
13217         mechanism.  Add CFI information for double-word saves in 32-bit mode.
13218         (emit_adjust_base_to_offset): New function extracted from...
13219         (emit_save_or_restore_regs): ...this.  Rename the rest to...
13220         (emit_save_or_restore_regs_global_fp_regs): ...this.
13221         (emit_save_or_restore_regs_local_in_regs): New function.
13222         (gen_create_flat_frame_[123]): New functions.
13223         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
13224         (sparc_flat_expand_prologue): New function.
13225         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
13226         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
13227         (sparc_flat_expand_epilogue): New function.
13228         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
13229         (output_return): Likewise.
13230         (output_sibcall): Likewise.
13231         (sparc_output_mi_thunk): Likewise.
13232         (sparc_frame_pointer_required): Likewise.
13233         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
13234         function optimization.
13235         * config/sparc/sparc.md (flat): New attribute.
13236         (prologue): Add TARGET_FLAT handling.
13237         (save_register_window): Disable if TARGET_FLAT.
13238         (create_flat_frame_[123]): New patterns.
13239         (epilogue): Add TARGET_FLAT handling.
13240         (sibcall_epilogue): Likewise.
13241         (eh_return): New expander.
13242         (eh_return_internal): New insn and splitter.
13243         (return_internal): Add TARGET_FLAT handling.
13244         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
13245         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
13246         (nonlocal_goto): Add TARGET_FLAT handling.
13247         * config/sparc/t-elf: Add -mflat multilib.
13248         * config/sparc/t-leon: Likewise.
13249
13250 2011-06-10  Jan Hubicka  <jh@suse.cz>
13251
13252         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
13253         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
13254         (self_recursive_p): Use cgraph_function_node.
13255         (propagate_pure_const): Likewise.
13256         (propagate_nothrow): Likewise.
13257         * ipa-reference.c (ipa_reference_get_not_read_global): Use
13258         cgraph_function_node.
13259         (propagate_bits): Likewise.
13260         (propagate): Likewise.
13261
13262 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13263             Richard Earnshaw  <rearnsha@arm.com>
13264
13265         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
13266         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
13267         (*thumb2_movdi_vfp): Delete.
13268         (*arm_movdi_vfp_cortexa8): Delete.
13269         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
13270         (*movdi_vfp_cortexa8): Likewise.
13271
13272 2011-06-10  Richard Guenther  <rguenther@suse.de>
13273
13274         * stor-layout.c (initialize_sizetypes): Give names to all
13275         sizetype kinds.
13276
13277 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
13278
13279         PR tree-optimization/49318
13280         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
13281         irrelevant pattern statements.
13282
13283 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13284
13285         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
13286
13287         PR bootstrap/49354
13288         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
13289         to last assignment.
13290
13291 2011-06-09  Jan Hubicka  <jh@suse.cz>
13292
13293         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
13294         do not recompute reachable flag.
13295         (cgraph_finalize_function, cgraph_analyze_functions): Set
13296         redefined_extern_inline here.
13297
13298 2011-06-09  Jan Hubicka  <jh@suse.cz>
13299
13300         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
13301         (cgraph_only_called_directly_p): ... this one; bring offline.
13302         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
13303         varpool_used_from_object_file_p): Drop names from the declaratoin.
13304         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
13305         collect_callers_of_node): New.
13306         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
13307         (cgraph_edge_recursive_p): Use cgraph_function_node.
13308         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
13309         (cgraph_node_cannot_be_local_p_1): Break out from ...
13310         (cgraph_node_can_be_local_p): ... here; walk aliases.
13311         (cgraph_for_node_thunks_and_aliases): New function.
13312         (cgraph_for_node_and_aliases): New function.
13313         (cgraph_make_node_local_1): Break out from ...
13314         (cgraph_make_node_local) ... here; use
13315         cgraph_for_node_thunks_and_aliases.
13316         (cgraph_set_nothrow_flag_1): Break out from ...
13317         (cgraph_set_nothrow_flag) ... here;
13318         use cgraph_for_node_thunks_and_aliases.
13319         (cgraph_set_const_flag_1): Break out from ...
13320         (cgraph_set_const_flag) ... here;
13321         use cgraph_for_node_thunks_and_aliases.
13322         (cgraph_set_pure_flag_1): Break out from ...
13323         (cgraph_set_pure_flag) ... here;
13324         use cgraph_for_node_thunks_and_aliases.
13325         (cgraph_propagate_frequency_1): Break out from ...
13326         (cgraph_propagate_frequency) ... here; use
13327         cgraph_for_node_thunks_and_aliases.
13328         (cgraph_used_from_object_file_p): Do not care about aliases.
13329         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
13330         New functions.
13331         (collect_callers_of_node_1, collect_callers_of_node): New functions.
13332
13333 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13334
13335         PR rtl-optimization/49154
13336         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
13337         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
13338         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
13339         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
13340         * config/cris/cris.h (cris_register_move_cost): Remove
13341         !TARGET_V32 code.  Tweak comments.
13342
13343 2011-06-09  Jan Hubicka  <jh@suse.cz>
13344
13345         * cgraphbuild.c (record_eh_tables): Mark personality function as having
13346         address taken.
13347
13348 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
13349
13350         PR rtl-optimization/49154
13351         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
13352         is a matching slot in the hashtable, assign it to classes_ptr.
13353
13354         PR rtl-optimization/49154
13355         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
13356         register classes.
13357         * doc/tm.texi: Regenerate.
13358
13359 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13360
13361         PR target/49307
13362         * config/sh/sh.md (UNSPEC_CHKADD): New.
13363         (chk_guard_add): New define_insn_and_split.
13364         (symGOT_load): Use chk_guard_add instead of blockage.
13365
13366 2011-06-09  Kai Tietz  <ktietz@redhat.com>
13367
13368         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
13369
13370 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13371
13372         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
13373
13374 2011-06-09  Wei Guozhi  <carrot@google.com>
13375
13376         PR target/46975
13377         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
13378         (peephole2 for conditional move): Generate 16 bit instructions.
13379
13380 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
13381
13382         * config/i386/i386.md (*movdi_internal_rex64): Merge
13383         alternatives 6 and 8.
13384
13385 2011-06-09  David Li  <davidxl@google.com>
13386
13387         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
13388         * passes.c (passr_eq): New function.
13389         (create_pass_tab): New function.
13390         (pass_traverse): New function.
13391         (dump_one_pass): New function.
13392         (dump_pass_list): New function.
13393         (dump_passes): New function.
13394
13395 2011-06-09  David Li  <davidxl@google.com>
13396
13397         * tree-complex.c (tree_lower_complex): Gate cleanup.
13398         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
13399         (execute_optimize_stdarg): Ditto.
13400         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
13401         (execute_cleanup_eh_1): Ditto.
13402         (execute_cleanup_eh): Ditto.
13403         * gcse.c (gate_rtl_pre): Ditto.
13404         (execute_rtl_pre): Ditto.
13405         * except.c (finish_eh_generation): Ditto.
13406         (convert_to_eh_region_ranges): Ditto.
13407         * cprop.c (one_cprop_pass): Ditto.
13408
13409 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
13410
13411         PR target/48673
13412         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
13413         in all basic blocks.
13414
13415 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13416
13417         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
13418         (HAVE_ENABLE_EXECUTE_STACK): Define.
13419         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
13420         (HAVE_ENABLE_EXECUTE_STACK): Define.
13421         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
13422         (HAVE_ENABLE_EXECUTE_STACK): Define.
13423         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
13424         (ENABLE_EXECUTE_STACK): Remove.
13425         (HAVE_ENABLE_EXECUTE_STACK): Define.
13426         [IN_LIBGCC2]: Don't include <windows.h>.
13427         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13428         (HAVE_ENABLE_EXECUTE_STACK): Define.
13429         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
13430         (HAVE_ENABLE_EXECUTE_STACK): Define.
13431         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
13432         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
13433         (HAVE_ENABLE_EXECUTE_STACK): Define.
13434         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
13435         (HAVE_ENABLE_EXECUTE_STACK): Define.
13436         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
13437         (HAVE_ENABLE_EXECUTE_STACK): Define.
13438         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
13439         (HAVE_ENABLE_EXECUTE_STACK): Define.
13440         * config/alpha/alpha.c (alpha_trampoline_init): Test
13441         HAVE_ENABLE_EXECUTE_STACK.
13442         * config/i386/i386.c (ix86_trampoline_init): Likewise.
13443         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13444         (sparc64_initialize_trampoline): Likewise.
13445         * libgcc2.c [L_enable_execute_stack]: Remove.
13446         * system.h (ENABLE_EXECUTE_STACK): Poison.
13447         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
13448         * doc/tm.texi: Regenerate.
13449         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
13450
13451 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
13452
13453         PR middle-end/49308
13454         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
13455         variable.  After resetting and rescanning insn continue with previous
13456         statement.
13457
13458 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13459
13460         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
13461         (gcc_cv_ld_hidden): Likewise.
13462         * configure: Regenerate.
13463         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
13464         (ix86_stack_protect_fail): Mark unused.
13465         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
13466         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
13467         [TARGET_MACHO]: Don't define.
13468         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
13469         (TARGET_STACK_PROTECT_FAIL): Likewise.
13470         (rs6000_stack_protect_fail): Mark unused.
13471         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
13472         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
13473
13474 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13475
13476         * varasm.c (get_section): Print location of other conflict
13477         for section conflicts.
13478
13479 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13480
13481         * config/i386/driver-i386.c (host_detect_local_cpu):
13482         Add model 0x2d Intel CPU.
13483
13484 2011-06-08  Andi Kleen  <ak@linux.intel.com>
13485
13486         * reginfo.c (global_regs_decl): Add.
13487         (globalize_reg): Add decl parameter. Compute location.  Pass location
13488         to warnings and add inform. Store decl in global_regs_decl.
13489         * rtl.h (globalize_reg): Update prototype.
13490         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
13491
13492 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
13493
13494         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
13495
13496 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13497
13498         PR target/49305
13499         * config/sh/predicates.md (general_movsrc_operand): Check
13500         mode for memory with indexed address for QI and HImode.
13501         (general_movdst_operand): Likewise.
13502
13503 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13504
13505         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
13506
13507 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
13508
13509         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
13510         (num_ssa_operands): Likewise.
13511         (op_iter_init_phiuse): Forward-declare.
13512         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
13513
13514 2011-06-08  Nick Clifton  <nickc@redhat.com>
13515
13516         * doc/invoke.texi (ARM Options): Update description of
13517         -mthumb-interwork.
13518
13519 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
13520
13521         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13522         unknown Intel family 0x6 CPUs.
13523
13524 2011-06-08  Martin Jambor  <mjambor@suse.cz>
13525
13526         * tree-sra.c (mark_rw_status): Removed.
13527         (analyze_access_subtree): New parameter parent instead of
13528         mark_read and mark_write, propagate from that.
13529
13530 2011-06-08  Julian Brown  <julian@codesourcery.com>
13531
13532         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
13533         for double-precision helper functions in hard-float mode if only
13534         single-precision arithmetic is supported in hardware.
13535
13536 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
13537
13538         PR rtl-optimization/49303
13539         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
13540         code_motion_path_driver returned 0 or 1.
13541         (sel_region_finish): Clear h_d_i_d.
13542
13543 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13544
13545         * config/sh/sh.c (prepare_move_operands): Set pic register
13546         appropriately for global and local dynamic tls models even
13547         if flag_pic is unset.
13548
13549 2011-06-07  Jason Merrill  <jason@redhat.com>
13550
13551         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
13552
13553 2011-06-07  Xinliang David Li  <davidxl@google.com>
13554         * passes.c (enable_disable_pass): Handle assembler name.
13555         (is_pass_explicitly_enabled_or_disabled): Ditto.
13556
13557 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13558
13559         PR tree-optimization/48497
13560         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
13561
13562 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13563
13564         PR tree-optimization/46728
13565         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
13566         to use gimple_val_nonnegative_real_p.
13567         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
13568         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
13569
13570 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
13571
13572         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13573
13574 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
13575
13576         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
13577         constant vectors.
13578
13579 2011-06-07  Richard Guenther  <rguenther@suse.de>
13580
13581         * stor-layout.c (initialize_sizetypes): Initialize all
13582         sizetypes based on target definitions.
13583         (set_sizetype): Remove.
13584         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
13585         * tree.h (set_sizetype): Remove.
13586
13587 2011-06-07  Nick Clifton  <nickc@redhat.com>
13588
13589         * config.gcc: Unify V850 architecture options and add support for
13590         newer V850 architectures.
13591         * config/v850/t-v850e: Delete.
13592
13593 2011-06-07  Richard Guenther  <rguenther@suse.de>
13594
13595         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
13596         Call set_sizetype from here.
13597
13598 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
13599
13600         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
13601         (*maddhisi4tb, *maddhisi4tt): New define_insns.
13602
13603 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
13604             Andrew Stubbs  <ams@codesourcery.com>
13605
13606         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
13607         multiplies.
13608         * doc/md.texi (Canonicalization of Instructions): Document widening
13609         multiply canonicalization.
13610
13611 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
13612
13613         PR gcov-profile/49299
13614         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
13615
13616 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
13617
13618         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
13619         a pointer.
13620         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
13621         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
13622         vect_recog_pow_pattern): Likewise.
13623         (vect_pattern_recog_1): Remove declaration.
13624         (widened_name_p): Remove declaration.  Add new argument to specify
13625         whether to check that both types are either signed or unsigned.
13626         (vect_recog_widen_mult_pattern): Update documentation.  Handle
13627         unsigned patterns and multiplication by constants.
13628         (vect_pattern_recog_1): Update vect_recog_func references.  Use
13629         statement information from the statement returned from pattern
13630         detection functions.
13631         (vect_pattern_recog): Update vect_recog_func reference.
13632         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
13633         multiplication by a constant use the type of the other operand.
13634
13635 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
13636
13637         PR rtl-optimization/49145
13638         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
13639
13640 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
13641
13642         PR debug/49262
13643         * dwarf2out.c (native_encode_initializer): Decrement count in each
13644         iteration.
13645
13646         PR debug/49294
13647         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13648         non-MODE_INT modes.
13649
13650         PR c++/49264
13651         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13652         if stmt folded into nothing.
13653         * tree-inline.c (fold_marked_statements): If a builtin at the end of
13654         a bb folded into nothing, just update cgraph edges and move to next bb.
13655         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13656         to be NULL.  Don't compute count and frequency if new_call is NULL.
13657
13658 2011-06-04  Diego Novillo  <dnovillo@google.com>
13659
13660         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13661         (cgraph.o): Likewise.
13662         (cgraphunit.o): Likewise.
13663         * cgraphunit.c: Include lto-streamer.h
13664         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13665         if LTO is enabled.
13666         * lto-streamer-in.c (unpack_value_fields): Call
13667         streamer_hooks.unpack_value_fields if set.
13668         (lto_materialize_tree): For unhandled nodes, first try to
13669         call lto_streamer_hooks.alloc_tree, if it exists.
13670         (lto_input_ts_decl_common_tree_pointers): Move reading of
13671         DECL_INITIAL to lto_streamer_read_tree.
13672         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13673         (lto_streamer_read_tree): New.
13674         (lto_reader_init): Rename from lto_init_reader.
13675         Move initialization code to lto/lto.c.
13676         * lto-streamer-out.c (pack_value_fields): Call
13677         streamer_hooks.pack_value_fields if set.
13678         (lto_output_tree_ref): For tree nodes that are not normally indexable,
13679         call streamer_hooks.indexable_with_decls_p before giving up.
13680         (lto_output_ts_decl_common_tree_pointers): Move handling
13681         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13682         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13683         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
13684         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13685         (lto_streamer_write_tree): New.
13686         (lto_output): Call lto_streamer_init directly.
13687         (lto_writer_init): Remove.
13688         * lto-streamer.c (streamer_hooks): New.
13689         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13690         instead of lto_preload_common_nodes.
13691         (lto_is_streamable): Move from lto-streamer.h
13692         (lto_streamer_hooks_init): New.
13693         (streamer_hooks): New.
13694         (streamer_hooks_init): New.
13695         * lto-streamer.h (struct output_block): Forward declare.
13696         (struct lto_input_block): Likewise.
13697         (struct data_in): Likewise.
13698         (struct bitpack_d): Likewise.
13699         (struct streamer_hooks): Declare.
13700         (streamer_hooks): Declare.
13701         (lto_streamer_hooks_init): Declare.
13702         (lto_streamer_write_tree): Declare.
13703         (lto_streamer_read_tree): Declare.
13704         (streamer_hooks_init): Declare.
13705         (lto_is_streamable): Move to lto-streamer.c
13706
13707 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13708
13709         * longlong.h (smul_ppmm): The resulting register pair contains the
13710         higher order word first.
13711
13712 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13713
13714         PR tree-optimization/46728
13715         * builtins.c (powi_table): Remove.
13716         (powi_lookup_cost): Remove.
13717         (powi_cost): Remove.
13718         (expand_powi_1): Remove.
13719         (expand_powi): Remove.
13720         (expand_builtin_pow_root): Remove.
13721         (expand_builtin_pow): Remove.
13722         (expand_builtin_powi): Eliminate handling of constant exponent.
13723         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13724
13725 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13726
13727         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13728
13729 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13730
13731         * dce.c (reset_unmarked_insns_debug_uses): New.
13732         (delete_unmarked_insns): Skip debug insns.
13733         (prescan_insns_for_dce): Likewise.
13734         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13735         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13736         active reg can be found.
13737         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
13738         (convert_regs_1): Use it.
13739
13740 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13741
13742         * tree-pretty-print.c (dump_function_header): Add flags.
13743         Don't dump decl_uid with nouid.
13744         * tree-pretty-print.h (dump_function_header): Adjust.
13745         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13746         * passes.c (pass_init_dump_file): Pass dump_flags on.
13747         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13748
13749 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13750
13751         PR bootstrap/49270
13752         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13753
13754 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
13755
13756         PR tree-optimization/49243
13757         * calls.c (setjmp_call_p): Also check if fndecl has the
13758         returns_twice attribute.
13759
13760 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13761
13762         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13763         -ffast-math etc.
13764
13765 2011-06-06  Richard Henderson  <rth@redhat.com>
13766             Georg-Johann Lay  <avr@gjlay.de>
13767
13768         PR target/42210
13769         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13770         New predicates.
13771         * config/avr/avr.md ("insv"): New insn expander.
13772         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13773         "*insv.not.io", "*insv.reg"): New insns.
13774
13775 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
13776
13777         PR target/49285
13778         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13779         to nonimmediate_operand from memory_operand for the operand that is to
13780         be forced to memory by the expander.  Lose the constraints.
13781
13782 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13783
13784         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13785         EH return when delayed branches are disabled.
13786
13787 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
13788
13789         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13790         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
13791         calculation.
13792         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13793         Simplify MODE_V1DF and MODE_V2SF handling.
13794         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13795         Simplify MODE_SF handling.
13796
13797 2011-06-04  Jan Hubicka  <jh@suse.cz>
13798
13799         PR tree-optimization/48893
13800         PR tree-optimization/49091
13801         PR tree-optimization/49179
13802         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13803         Bounds check.
13804
13805 2011-06-04  Jan Hubicka  <jh@suse.cz>
13806
13807         PR lto/48954
13808         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13809         bitmaps.
13810
13811 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
13812
13813         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13814
13815 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13816
13817         PR target/49281
13818         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13819         to be strictly smaller than 1 << shiftcount.
13820
13821 2011-06-04  Jan Hubicka  <jh@suse.cz>
13822
13823         PR tree-optimize/48929
13824         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13825         of empty predicate.
13826
13827 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
13828
13829         PR debug/48333
13830         * calls.c (emit_call_1): Prefer the __builtin declaration of
13831         builtin functions.
13832
13833 2011-06-03   Diego Novillo  <dnovillo@google.com>
13834
13835         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13836         (lto_input_tree_pointers): Likewise.
13837         * lto-streamer-out.c (pack_value_fields): Likewise.
13838         (lto_output_tree_pointers): Likewise.
13839         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13840         and OPTIMIZATION_NODE.
13841
13842 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13843
13844         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13845         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13846         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13847         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13848         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13849         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13850         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13851         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13852         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13853         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13854         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13855         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13856         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13857         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13858         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13859         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13860         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13861         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13862         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13863         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13864         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13865         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13866         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13867         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13868         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13869         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13870         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13871         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13872         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13873         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13874         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13875         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13876         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13877         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13878         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13879         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13880         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13881         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13882         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13883         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13884         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13885         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13886         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13887         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13888         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13889         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13890         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13891         * system.h (MD_UNWIND_SUPPORT): Poison.
13892         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13893         * doc/tm.texi: Regenerate.
13894         * unwind-dw2.c: Include md-unwind-support.h instead of
13895         MD_UNWIND_SUPPORT.
13896         * config/ia64/unwind-ia64.c: Likewise.
13897         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13898
13899 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
13900
13901         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13902
13903 2011-06-03  Richard Henderson  <rth@redhat.com>
13904             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13905
13906         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13907         (sigill_hdlr): Correct insn, insn size.
13908         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13909
13910 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13911
13912         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13913         t-slibgcc-dummy.
13914         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13915         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13916         * config/mips/t-iris: Remove.
13917         * config/mips/t-irix6: New file.
13918         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13919
13920 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13921
13922         * Makefile.in (LIB2ADDEHDEP): Remove.
13923         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13924         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13925         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13926         * config/t-darwin (LIB2ADDEHDEP): Remove.
13927         * config/t-freebsd (LIB2ADDEHDEP): Remove.
13928         * config/t-linux (LIB2ADDEHDEP): Remove.
13929
13930 2011-06-03  Diego Novillo  <dnovillo@google.com>
13931
13932         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13933         (lto_register_var_decl_in_symtab): Likewise.
13934         (lto_register_function_decl_in_symtab): Likewise.
13935         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13936         logic to uniquify_nodes.
13937
13938 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13939
13940         * config/alpha/t-osf5: Remove.
13941         * config/alpha/t-osf-pthread: Remove.
13942         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13943         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13944
13945 2011-06-03  Julian Brown  <julian@codesourcery.com>
13946
13947         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13948         (strongarm1110): Use strongarm tuning.
13949         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13950         * config/arm/arm.c (arm_strongarm_tune): New.
13951         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13952         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13953         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13954         setting, using previous defaults or 1 for Cortex-A5.
13955         (arm_option_override): Set max_insns_skipped from current tuning.
13956
13957 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
13958
13959         * doc/install.texi (Options specification): Document --with-specs.
13960
13961 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13962
13963         * config/arm/neon.md (orndi3_neon): Actually split it.
13964
13965 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13966
13967         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13968         * var-tracking.c (reverse_op): Limite recurse depth to 5.
13969
13970 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13971
13972         PR debug/47590
13973         * target.def (delay_sched2, delay_vartrack): New.
13974         * doc/tm.texi.in: Update.
13975         * doc/tm.texi: Rebuild.
13976         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13977         * var-tracking.c (gate_handle_var_tracking): Likewise.
13978         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13979         (bfin_flag_var_tracking): Drop.
13980         (output_file_start): Don't save and override flag_var_tracking.
13981         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13982         (bfin_reorg): Test original variables.
13983         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13984         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13985         (ia64_flag_var_tracking): Drop.
13986         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13987         (ia64_file_start): Don't save and override flag_var_tracking.
13988         (ia64_override_options_after_change): Ditto
13989         flag_schedule_insns_after_reload.
13990         (ia64_reorg): Test original variables.
13991         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13992         (picochip_flag_var_tracking): Drop.
13993         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13994         (picochip_option_override): Don't save and override
13995         flag_schedule_insns_after_reload.
13996         (picochip_asm_file_start): Ditto flag_var_tracking.
13997         (picochip_reorg): Test original variables.
13998         * config/spu/spu.c (spu_flag_var_tracking): Drop.
13999         (TARGET_DELAY_VARTRACK): Define.
14000         (spu_var_tracking): New.
14001         (spu_machine_dependent_reorg): Call it.
14002         (asm_file_start): Don't save and override flag_var_tracking.
14003
14004 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14005
14006         PR target/49163
14007         * config/sh/predicates.md (general_movsrc_operand): Return 0
14008         for memory and memory subreg of which address is an invalid
14009         indexed address for QI and HImode.
14010         (general_movdst_operand): Likewise.
14011
14012 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14013
14014         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
14015         edges only, when there is a non-local label in the function.
14016         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
14017
14018 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14019
14020         * config/i386/constraints.md (Y3): New register constraint.
14021         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
14022         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
14023         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
14024         *sse2_interleave_lowv2df.
14025
14026 2011-06-02  Julian Brown  <julian@codesourcery.com>
14027
14028         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
14029         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
14030         (arm_cortex_a5_tune): New.
14031
14032 2011-06-02  Julian Brown  <julian@codesourcery.com>
14033
14034         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
14035         * config/arm/arm.c (arm_default_branch_cost): New.
14036         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
14037         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
14038         (arm_fa726_tune): Set branch_cost field using
14039         arm_default_branch_cost.
14040         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
14041         current_tune structure.
14042         * dojump.c (tm_p.h): Include file.
14043
14044 2011-06-02  Julian Brown  <julian@codesourcery.com>
14045
14046         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
14047         tuning.
14048         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
14049         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
14050         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
14051         field.
14052         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
14053         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
14054         (arm_fa726te_tune): Add prefer_constant_pool setting.
14055         (arm_v6t2_tune, arm_cortex_tune): New.
14056         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
14057         prefer_constant_pool setting.
14058
14059 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
14060
14061         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
14062         switch statement.
14063         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
14064         (*movdf_internal) <case 6,7,8>: Ditto.
14065
14066         * config/i386/constraints.md (Y4): New register constraint.
14067         * config/i386/sse.md (vec_set<mode>_0): Merge with
14068         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
14069         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
14070         *vec_extractv2di_1_sse.
14071         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
14072         and *vec_concatv2di_rex64_sse.
14073
14074 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
14075
14076         PR target/48807
14077         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
14078         of cgraph_local_info for null before attempting to use it.
14079
14080 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
14081
14082         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
14083         (current_function_dynamic_alloc_count): Delete.
14084         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
14085         (expand_builtin_nonlocal_goto): Remove obsolete comment.
14086         (expand_builtin_update_setjmp_buf): Remove dead code.
14087         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
14088         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
14089         support.
14090         * function.c (instantiate_virtual_regs): Likewise.
14091         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
14092         for a block with a single abnormal incoming edge.
14093         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
14094         (SETJMP_VIA_SAVE_AREA): Delete.
14095         * config/sparc/sparc-protos.h (load_got_register): Declare.
14096         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
14097         (load_got_register): Make global.
14098         (sparc_frame_pointer_required): Add 'static'.
14099         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
14100         (sparc_builtin_setjmp_frame_value): New function.
14101         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
14102         (save_stack_nonlocal): New expander.
14103         (restore_stack_nonlocal): Likewise.
14104         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
14105         (nonlocal_goto_internal): New insn.
14106         (goto_handler_and_restore): Delete.
14107         (builtin_setjmp_setup): Likewise.
14108         (do_builtin_setjmp_setup): Likewise.
14109         (setjmp): Likewise.
14110         (builtin_setjmp_receiver): New expander.
14111
14112 2011-06-01  David Li  <davidxl@google.com>
14113
14114         PR middle-end/49261
14115         * tree-pretty-print.c (dump_function_header): Format cleanup.
14116
14117 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
14118
14119         PR target/49238
14120         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
14121         needed when original operands are used for msw_skip comparison.
14122
14123 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14124
14125         PR debug/49250
14126         * var-tracking.c (add_uses, add_stores): Don't call
14127         cselib_subst_to_values on ENTRY_VALUE.
14128
14129 2011-06-01  Diego Novillo  <dnovillo@google.com>
14130
14131         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
14132         output_record_start with LTO_null instead of output_zero.
14133         (lto_output_ts_binfo_tree_pointers): Likewise.
14134         (lto_output_tree): Likewise.
14135         (output_eh_try_list): Likewise.
14136         (output_eh_region): Likewise.
14137         (output_eh_lp): Likewise.
14138         (output_eh_regions): Likewise.
14139         (output_bb): Likewise.
14140         (output_function): Likewise.
14141         (output_unreferenced_globals): Likewise.
14142         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
14143         instead of NUM_TREE_CODES.
14144         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
14145         (lto_output_int_in_range): Change << to >> when shifting VAL.
14146
14147 2011-06-01  Diego Novillo  <dnovillo@google.com>
14148
14149         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
14150         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
14151
14152 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14153
14154         PR target/45074
14155         * optabs.h (valid_multiword_target_p): Declare.
14156         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
14157         doing multi-word operations.
14158         * optabs.c (expand_binop): Likewise.
14159         (expand_doubleword_bswap): Likewise.
14160         (expand_absneg_bit): Likewise.
14161         (expand_unop): Likewise.
14162         (expand_copysign_bit): Likewise.
14163         (multiword_target_p): New function.
14164
14165 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14166
14167         PR rtl-optimization/48830
14168         PR rtl-optimization/48808
14169         PR rtl-optimization/48792
14170         * reload.c (push_reload): Check contains_reg_of_mode.
14171         * reload1.c (strip_paradoxical_subreg): New function.
14172         (gen_reload_chain_without_interm_reg_p): Use it to handle
14173         paradoxical subregs.
14174         (emit_output_reload_insns, gen_reload): Likewise.
14175
14176 2011-06-01  David Li  <davidxl@google.com>
14177
14178         * predict.c : Change pass name
14179         * ipa.c: Ditto.
14180         * dce.c: Ditto.
14181         * tree-profile.c: Ditto.
14182         * except.c: Ditto.
14183
14184 2011-06-01  David Li  <davidxl@google.com>
14185
14186         * tree-pretty-print.c (dump_function_header): New function.
14187         * final.c (rest_of_clean_state): Use header dumper.
14188         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
14189         * passes.c (pass_init_dump_file): Use header dumper.
14190
14191 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14192
14193         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
14194         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
14195         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
14196         New functions.
14197         (mem_loc_descriptor): Use them.
14198
14199         * var-tracking.c (create_entry_value): New function.
14200         (vt_add_function_parameter): Use it.
14201
14202 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14203
14204         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
14205         Include <signal.h>, <ucontext.h>.
14206         (sigill_caught): Define.
14207         (sigill_hdlr): New function.
14208         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
14209         insns can be executed.
14210         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
14211         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
14212
14213 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215         * config/t-slibgcc-darwin: Move to ...
14216         * config/t-slibgcc-dummy: ... this.  Clarify comments.
14217         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
14218         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
14219         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
14220         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
14221         Remove i386/t-crtstuff from tmake_file.
14222         (i[34567]86-*-solaris2*): Remove t-svr4,
14223         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
14224         t-slibgcc-dummy.
14225         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
14226         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
14227         sparc/t-crtfm from tmake_file.
14228         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
14229         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
14230         Remove extra_parts.
14231         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
14232         * config/i386/t-nwld (SHLIB_LINK): Remove.
14233         * config/i386/t-rtems-i386: Rename to ...
14234         * config/i386/t-rtems: ... this.
14235         ($(T)crti.o, $(T)crtn.o): Remove.
14236         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
14237         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
14238         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
14239         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
14240         EXTRA_MULTILIB_PARTS): Remove.
14241         * config/sparc/t-sol2-64: Likewise.
14242         * config/sparc/t-sol2: Remove.
14243         * config/sparc/t-crtin: Remove.
14244         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
14245         * config/i386/gmon-sol2.c: Remove.
14246         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
14247         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
14248         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
14249         * config/i386/sol2-gc1.asm: Remove.
14250         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
14251         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
14252         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
14253         * config/t-slibgcc-sld: Remove.
14254
14255 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
14256
14257         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
14258         base_type_for_mode with op_mode instead of mode.
14259
14260 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
14261
14262         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
14263         Cortex-A15.
14264         * config/arm/arm-tune.md: Regenerate.
14265         * config/arm/arm-tables.opt: Regenerate.
14266         * config/arm/arm.c (FL_DIV): Rename...
14267         (FL_THUMB_DIV): ... to this.
14268         (FL_ARM_DIV): Define.
14269         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
14270         (arm_arch_hwdiv): Remove.
14271         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
14272         (arm_issue_rate): Add cortexr5.
14273         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
14274         __ARM_ARCH_EXT_IDIV__.
14275         (TARGET_IDIV): Define.
14276         (arm_arch_hwdiv): Remove.
14277         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
14278         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
14279         (divsi3, udivsi3): New patterns.
14280         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
14281         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
14282
14283 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14284
14285         * ipa-utils.c (ipa_dfs_info): New field scc_no.
14286         * ipa-utils.c (searchc): Set scc_no.
14287
14288 2011-06-01  Martin Jambor  <mjambor@suse.cz>
14289
14290         * ipa-utils.c (searchc_env): New field allow_overwritable.
14291         (searchc): do not ignore edges to overwritable nodes if indicated
14292         by env->allow_overwritable.
14293         (ipa_reduced_postorder): Set env.allow_overwritable.
14294
14295 2011-06-01  Richard Guenther  <rguenther@suse.de>
14296
14297         * tree.c (free_lang_data): Do not reset boolean_type_node nor
14298         char_type_node.
14299         * lto-streamer.c (lto_record_common_node): Take node pointer,
14300         do not register types.
14301         (lto_preload_common_nodes): Explicitly skip preloading nodes
14302         that differ between frontends.
14303
14304 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14305
14306         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
14307         NON_FLOAT_REGS.
14308
14309 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
14310
14311         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
14312         parameter value for dump. Dump cost on outermost call only.
14313         (rs6000_memory_move_cost): Dump cost on outermost call only.
14314
14315 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14316
14317         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
14318         DW_OP_GNU_convert ops.
14319
14320         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
14321         cselib_preserve_constants.
14322         (cselib_lookup_1): If cselib_preserve_constants,
14323         a new VALUE is being created for REG and there is a VALUE for the
14324         same register in wider mode, add another loc with lowpart SUBREG of
14325         the wider VALUE.
14326         (cselib_subst_to_values): Handle ENTRY_VALUE.
14327         * var-tracking.c  (replace_expr_with_values): Return NULL for
14328         ENTRY_VALUE too.
14329         * dwarf2out.c (convert_descriptor_to_signed): New function.
14330         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
14331         instead of two shifts.
14332         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
14333         the right mode if needed.
14334         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
14335         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
14336         convert_descriptor_to_signed.
14337         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
14338         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
14339
14340         PR target/48688
14341         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
14342
14343 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14344
14345         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
14346         of X87MODEI12 and SWI48x instead of SSEMODEI24.
14347         (SWI248x): New mode iterator, rename from X87MODEI.
14348         (X87MODEI): Remove mode iterator.
14349         (X87MODEI12): Ditto.
14350         (SSEMODEI24): Ditto.
14351
14352 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14353
14354         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
14355         * doc/invoke.texi: Document max-vartrack-expr-depth.
14356         * var-tracking.c (EXPR_DEPTH): New.
14357         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
14358
14359 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14360
14361         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
14362         * config/i386/sse.md: Add n to negated FMA pattern names.
14363
14364 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14365
14366         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
14367
14368 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
14369
14370         * gengtype-state.c (read_state_params_structs): Initialize previous.
14371
14372 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14373
14374         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
14375         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
14376
14377 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
14378
14379         * config/i386/i386.md (*movtf_internal): Avoid allocating general
14380         registers.  Penalize F*r->o alternative to prevent partial memory
14381         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
14382         CONST_DOUBLE immediates when optimizing function for size.  Do not move
14383         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14384         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
14385         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
14386         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
14387         alternatives.
14388         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
14389
14390         (fp_register_operand splitters): Use fp_register_operand
14391         constraint.  Do not use FP_REG_P in insn condition.
14392         (any_fp_register_operand splitters): Use any_fp_register_operand
14393         constraint.  Do not use ANY_FP_REG_P in insn condition.
14394
14395 2011-05-31  Jan Hubicka  <jh@suse.cz>
14396
14397         * cgraph.h (cgraph_inline_failed_t): Give enum a name
14398         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
14399         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
14400         (lto_output_edge): Use output_enum and var_len_unsigned.
14401         (lto_output_varpool_node): Likewise.
14402         (input_overwrite_node): Do not take resolution parameter;
14403         extract it from a bitpack.
14404         (input_node): Do not read resolution; use input_enum and
14405         var_len_unsigned.
14406         (input_varpool_node): Likewise.
14407         (input_edge): Likewise.
14408         (input_cgraph_1): Likewise.
14409
14410 2011-05-31  Richard Guenther  <rguenther@suse.de>
14411
14412         * gimple.c (gimple_register_canonical_type): Do not register
14413         any types via gimple_register_type.
14414
14415 2011-05-31  Jan Hubicka  <jh@suse.cz>
14416
14417         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
14418         of thunks.
14419
14420 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
14421
14422         PR rtl-optimization/49235
14423         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
14424         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
14425
14426 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
14427
14428         PR tree-optimization/49093
14429         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
14430         data references.
14431
14432 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
14433
14434         PR debug/49047
14435         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
14436         for concrete functions containing the code of cloned functions.
14437
14438 2011-05-31  Richard Guenther  <rguenther@suse.de>
14439
14440         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
14441         to ...
14442         (forward_propagate_into_comparison_1): ... this.
14443         (forward_propagate_comparison): Rename to ...
14444         (forward_propagate_into_comparison): ... this.  Split out
14445         real forward propagation code to ...
14446         (forward_propagate_comparison): ... this.
14447         (forward_propagate_into_gimple_cond): Remove looping.
14448         (forward_propagate_into_cond): Likewise.
14449         (simplify_not_neg_expr): Return whether we have done something.
14450         (simplify_gimple_switch): Likewise.
14451         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
14452         (ssa_forward_propagate_and_combine): ... this.  Re-structure
14453         to do a forward forward-propagation walk on BBs and a backward
14454         stmt combining walk on BBs.  Consistently re-scan changed statements.
14455         (pass_forwprop): Adjust.
14456
14457 2011-05-30  Ian Lance Taylor  <iant@google.com>
14458
14459         * godump.c (go_format_type): Correct length of name added to
14460         obstack for anonymous field.
14461
14462 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
14463
14464         PR target/49186
14465         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
14466         part of the second operand is 0.
14467
14468 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
14469
14470         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
14471         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
14472         to memory for !TARGET_MEMORY_MISMATCH_STALL.
14473         (*movdf_internal_rex64): Do not penalize F->r alternative.
14474         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
14475         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
14476         when optimizing function for size.  Do not move CONST_DOUBLEs
14477         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
14478         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
14479         SUBREGs.  Do not check for MEM_P operands in the insn condition,
14480         check for ANY_FP_REGNO_P instead.
14481         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
14482         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
14483         function for speed.
14484         * config/i386/i386.c (ix86_option_override_internal): Do not
14485         set TARGET_INTEGER_DFMODE_MOVES here.
14486
14487 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
14488
14489         PR target/49168
14490         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
14491
14492 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14493
14494         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
14495         DW_TAG_rvalue_reference_type even for
14496         -gdwarf-4 -fno-debug-types-section.
14497
14498 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14499
14500         PR tree-optimization/46728
14501         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
14502         (build_and_insert_binop): New.
14503         (gimple_expand_builtin_pow): Reorder args for
14504         build_and_insert_call; use build_and_insert_binop; add more
14505         optimizations for fractional exponents.
14506
14507 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
14508
14509         PR bootstrap/49190
14510
14511         Revert:
14512         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14513
14514         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14515         tree_common.
14516         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14517         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14518         TS_BASE instead of TS_COMMON.
14519         * varasm.c (assemble_name): Remove assert.
14520
14521 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
14522
14523         * config.gcc: Keep obselete list sorted.
14524
14525 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
14526             Eric Botcazou  <ebotcazou@adacore.com>
14527
14528         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
14529         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
14530         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
14531         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
14532         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
14533
14534 2011-05-30  Richard Guenther  <rguenther@suse.de>
14535
14536         * gimple.c (gimple_types_compatible_p_1): Compare record
14537         and union type members properly.
14538
14539 2011-05-30  Richard Guenther  <rguenther@suse.de>
14540
14541         PR tree-optimization/49210
14542         * ipa-split.c (split_function): Care for the case where the call
14543         result is not trivially convertible to the result holding variable.
14544
14545 2011-05-30  Richard Guenther  <rguenther@suse.de>
14546
14547         PR tree-optimization/49218
14548         * tree-vrp.c (adjust_range_with_scev): Properly check whether
14549         overflow occured.
14550
14551 2011-05-30  Richard Guenther  <rguenther@suse.de>
14552
14553         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
14554         New function split out from ...
14555         (forward_propagate_into_gimple_cond): ... here.  Adjust.
14556         (forward_propagate_into_cond): Likewise.
14557         (forward_propagate_comparison): Also propagate into
14558         comparisons on assignment RHS.  Change return value to
14559         behave similar to forward_propagate_into_cond.
14560         (tree_ssa_forward_propagate_single_use_vars): Handle
14561         strict-overflow warnings properly for forward_propagate_comparison.
14562
14563 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14564
14565         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
14566         from plugin linker.
14567         * configure: Regenerate.
14568
14569 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
14570
14571         PR tree-optimization/49199
14572         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
14573         non-reduction operands are either defined in the loop or by induction.
14574
14575 2011-05-29  Xinliang David Li  <davidxl@google.com>
14576
14577         * opts-global.c (handle_common_deferred_options): Handle new options.
14578         * passes.c (register_one_dump_file): Call register_pass_name.
14579         (execute_one_pass): Check explicit enable/disable flag.
14580         (passr_hash): New function.
14581         (passr_eq): Ditto.
14582         (register_pass_name): Ditto.
14583         (get_pass_by_name): Ditto.
14584         (pass_hash): Ditto.
14585         (pass_eq): Ditto.
14586         (enable_pass): Ditto.
14587         (disable_pass): Ditto.
14588         (is_pass_explicitly_enabled_or_disabled): Ditto.
14589
14590 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
14591
14592         * config/i386/i386.md (*movoi_internal_avx): Use
14593         standard_sse_constant_opcode for alternative 0.
14594         (*movti_internal_sse): Ditto.
14595         (*movti_internal_rex64): Use standard_sse_constant_opcode for
14596         alternative 2.
14597         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
14598         sselog1 type moves.
14599         (*movsi_internal): Ditto.
14600         (*movdi_internal): Ditto.  Add ssecvt type moves.
14601
14602 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14603
14604         PR target/48830
14605         * rtlanal.c (simplify_subreg_regno): Adjust comment.
14606
14607 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
14608
14609         PR rtl-optimization/49095
14610         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
14611         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
14612
14613 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14614
14615         PR target/43995
14616         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
14617         recurse_p argument.  Only follow register copies if it is set,
14618         and prevent mips_find_pic_call_symbol from recursing.
14619         (mips_find_pic_call_symbol): Add a recurse_p argument.
14620         Pass it to mips_pic_call_symbol_from_set.
14621         (mips_annotate_pic_calls): Update accordingly.
14622
14623 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
14624
14625         * emit-rtl.c (try_split): Use a loop to search for
14626         NOTE_INSN_CALL_ARG_LOCATIONs.
14627
14628 2011-05-29  Richard Guenther  <rguenther@suse.de>
14629
14630         PR tree-optimization/49217
14631         * ipa-pure-const.c (propagate_pure_const): Fix typos.
14632
14633 2011-05-28  Jan Hubicka  <jh@suse.cz>
14634
14635         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
14636         length.
14637         (string_slot_free): Remove
14638         (create_output_block): Initialize obstack.
14639         (destroy_output_block): Free obstack.
14640         (lto_string_index): Add PERSISTENT parameter; do not duplicate
14641         the string unless it needs to be added into the hash.
14642         (lto_output_string_with_length): Add persistent attribute;
14643         handle NULL strings.
14644         (lto_output_string): Add PERSISTENT parameter.
14645         (output_string_cst, output_identifier): Simplify.
14646         (lto_output_location_bitpack): Update.
14647         (lto_output_builtin_tree): Update.
14648         * lto-streamer.h (struct output_block): Add obstack.
14649         (lto_output_string, lto_output_string_with_length): Remove
14650         declarations; functions are static now.
14651
14652 2011-05-28  Jan Hubicka  <jh@suse.cz>
14653
14654         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14655         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14656         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14657         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14658         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14659         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14660         unpack_ts_decl_with_vis_value_fields,
14661         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14662         lto_get_builtin_tree): Use enum and variable length i/o.
14663         * basic-block.h (profile_status_d): Add PROFILE_LAST.
14664         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14665         New functions.
14666         (bp_pack_enum, bp_unpack_enum): New macros.
14667
14668 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14669
14670         * genrecog.c: Remove redundant forward declarations.
14671
14672 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14673
14674         * config.gcc: Deprecate mips*-*-openbsd*.
14675
14676 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14677
14678         PR bootstrap/49195
14679         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14680         for match_op_dup.
14681
14682 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
14683
14684         PR middle-end/48981
14685         * gengtype.c (vec_prefix_type): New function.
14686         (note_def_vec): Use vec_prefix_type and change the length
14687         attribute to be based on the prefix.
14688         * vec.c: Include coretypes.h before vec.h.
14689         (struct vec_prefix): Remove.
14690         (vec_gc_p_reserve): Change the offsetof to sizeof.
14691         (vec_gc_p_reserve_exact): Likewise.
14692         (vec_heap_p_reserve): Likewise.
14693         (vec_heap_p_reserve_exact): Likewise.
14694         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14695         (vec_stack_p_reserve): Change the offsetof to sizeof.
14696         (vec_stack_p_reserve_exact): Likewise.
14697         * vec.h (struct vec_prefix): New struct definition.
14698         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14699         (VEC_T_GTY(T,B)): Likewise.
14700         (DEF_VEC_FUNC_P(T)): Use prefix field.
14701         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14702         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14703
14704 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14705
14706         PR tree-optimization/46728
14707         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14708         (powi_as_mults): Add gimple_set_location.
14709         (build_and_insert_call): New.
14710         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14711         0.5, 0.25, 0.75, 1./3., or 1./6.
14712
14713 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
14714
14715         * doc/contrib.texi: Update copyright years.
14716         (Contributors): Add Zdenek Sojka.
14717
14718 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
14719
14720         * c-decl.c (c_push_function_context): Copy the current statement
14721         list stack.
14722         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14723         (finish_struct): Call building_stmt_list_p instead of checking
14724         cur_stmt_list.
14725         * c-parser.c (c_parser_postfix_expression): Likewise.
14726         * c-typeck.c (c_end_compound_stmt): Likewise.
14727         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14728         * tree-iterator.c (stmt_list_cache): Change to a VEC.
14729         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14730         (free_stmt_list): Likewise.
14731         * tree.h (struct tree_statement_list): Include typed_tree instead
14732         of tree_common.
14733         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14734         as TS_TYPED instead of TS_COMMON.
14735
14736 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14737             Uros Bizjak  <ubizjak@gmail.com>
14738
14739         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14740         (HAVE_AS_IX86_TLSGDPTL): Define.
14741         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14742         (HAVE_AS_IX86_TLSLDMPLT): Define.
14743         * configure: Regenerate.
14744         * config.in: Regenerate.
14745         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14746         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14747         TARGET_SUN_TLS, use @tlsgdplt or @plt.
14748         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14749         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14750         @tlsldmplt or @plt.
14751         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14752
14753 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14754
14755         * sched-int.h (struct _haifa_deps_insn_data): New members cond
14756         and reverse_cond.
14757         (INSN_COND, INSN_REVERSE_COND): New macros.
14758         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14759         once.
14760         (sched_get_condition_with_rev): Cache the results, and look them up
14761         if possible.
14762         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14763         are clobbered by the current insn.
14764         * target.def (exposed_pipline): New sched data hook.
14765         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14766         * doc/tm.texi: Regenerate.
14767
14768 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14769
14770         PR tree-optimization/49170
14771         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
14772         sincos or cexp.
14773
14774 2011-05-27  Richard Guenther  <rguenther@suse.de>
14775
14776         PR middle-end/49189
14777         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14778         of comparisons.
14779
14780 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14781
14782         * haifa-sched.c (sched_scan_info): Remove.
14783         (schedule_block): Call sched_extend_luids rather than sched_init_luids
14784         with NULL args.
14785         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14786         Remove functions.
14787         (sched_scan): Remove.
14788         (sched_extend_luids): Renamed from luids_extend_insn and no longer
14789         static.  All callers changed.
14790         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14791         static.  All callers changed.
14792         (sched_init_luids): Remove all arguments except the first.  All
14793         callers changed.  Don't use sched_scan.
14794         (haifa_init_h_i_d): Likewise.
14795         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14796         manually rather than using sched_init_luids.  Likewise with
14797         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14798         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14799         rather than sched_init_luids with NULL args.
14800         * sel-sched-ir.c (new_insns): Remove variable.
14801         (sched_scan): New static function, previously in haifa-sched.c.  Remove
14802         all arguments but the first two; all callers changed.
14803         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14804         rather than sched_init_luids.
14805         (sel_init_bbs): Remove second argument.  All callers changed.
14806         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14807         with NULL arguments.
14808         (create_insn_rtx_from_pattern): Likewise.
14809         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14810         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14811         (sched_init_insn_luid, sched_extend_luids): Declare.
14812         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14813         declarations.
14814
14815 2011-05-27  Richard Guenther  <rguenther@suse.de>
14816
14817         PR middle-end/49177
14818         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14819         A CMP B ? (T) true : (T) false for non-integral types T again.
14820
14821 2011-05-27  Jan Hubicka  <jh@suse.cz>
14822
14823         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14824         so 0 means NULL string.
14825         (lto_output_string_with_length): ... here.
14826         (lto_output_string, output_string_cst, output_identifier): Update
14827         handling of NULL strings.
14828         (lto_output_location_bitpack): New function.
14829         (lto_output_location): Use it.
14830         (lto_output_tree_ref): Use output_record_start.
14831         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14832         len values.
14833         * lto-streamer-in.c (string_for_index): Break out from ...; offset
14834         values by 1.
14835         (input_string_internal): ... here;
14836         (input_string_cst, input_identifier, lto_input_string): Update handling
14837         of NULL strings.
14838         (lto_input_location_bitpack): New function
14839         (lto_input_location): Use it.
14840         (unpack_ts_type_common_value_fields): Pack align & alias in var len
14841         values.
14842         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14843         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14844         (bp_pack_value): Sanity check the value range.
14845         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14846         New functions.
14847         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14848         New functions.
14849
14850 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
14851
14852         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14853         call_arg_location instructions down the floor.
14854
14855 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
14856
14857         PR rtl-optimization/49154
14858         * ira.c (setup_pressure_classes): Process class without sublcasses
14859         as a candidate for pressure classes.
14860
14861 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
14862
14863         PR rtl-optimization/48575
14864         * genrecog.c (position_type): New enum.
14865         (position): New structure.
14866         (decision): Use position structure instead of a string.
14867         (root_pos, peep2_insn_pos_list): New variables.
14868         (next_position, compare_positions): New functions.
14869         (new_decision): Use position structures instead of strings.
14870         (maybe_both_true): Likewise.
14871         (change_state): Likewise.
14872         (write_tree): Likewise.
14873         (make_insn_sequence): Likewise.
14874
14875 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14876
14877         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14878         TS_BASE instead of TS_COMMON.
14879         (find_decls_types_r): Check for TS_TYPED structure before looking at
14880         TREE_TYPE.
14881         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14882         Add chain field.
14883         (BLOCK_CHAIN): Use new chain field.
14884
14885 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
14886
14887         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14888         moves expensive on Power7 also.
14889
14890 2011-05-26  Richard Guenther  <rguenther@suse.de>
14891
14892         * fold-const.c (fold_unary_loc): Remove bogus code.
14893
14894 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14895
14896         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14897         tree_common.
14898         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14899         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14900         TS_BASE instead of TS_COMMON.
14901         * varasm.c (assemble_name): Remove assert.
14902
14903 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14904
14905         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14906         substituted first.
14907         * libgcc-std.ver: Delete file.
14908
14909 2011-05-26  Richard Guenther  <rguenther@suse.de>
14910
14911         PR tree-optimization/48702
14912         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14913         only when we know the base address is within bounds.
14914         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14915         assume the base address of TARGET_MEM_REFs is in bounds.
14916
14917 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14918
14919         PR target/49099
14920         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14921         declaration in TARGET_SOLARIS.
14922
14923 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
14924
14925         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14926         The instruction is then expanded explicitly.
14927         (supported_compare): Callable instruction.
14928         (compare): Likewise.
14929
14930 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14931
14932         PR c++/49165
14933         * gimplify.c (shortcut_cond_r): Don't special case
14934         COND_EXPRs if they have void type on one of their arms.
14935
14936 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14937
14938         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14939         to reduce duplication, and to achieve a slightly more logical order
14940         of operations.
14941
14942 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14943
14944         PR tree-optimization/49161
14945         * tree-vrp.c (struct case_info): New type.
14946         (compare_case_labels): Sort case_info structs instead of
14947         trees, and not primarily by CASE_LABEL uids but by
14948         label_for_block indexes.
14949         (find_switch_asserts): Put case labels into struct case_info
14950         array instead of TREE_VEC, adjust sorting, compare label_for_block
14951         values instead of CASE_LABELs.
14952
14953 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14954
14955         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14956         ("orndi3_neon"): Likewise.
14957         ("bic<mode>3_neon"): Likewise.
14958
14959 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
14960
14961         PR tree-optimization/49038
14962         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14963         Ensure at least one epilogue iteration if required by data
14964         accesses with gaps.
14965         * tree-vectorizer.h (struct _loop_vec_info): Add new field
14966         to mark loops that require peeling for gaps.
14967         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14968         (vect_get_known_peeling_cost): Take peeling for gaps into
14969         account.
14970         (vect_transform_loop): Generate epilogue if required by data
14971         access with gaps.
14972         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14973         loop as requiring an epilogue if there are gaps in the end of
14974         the strided group.
14975
14976 2011-05-25  Ian Lance Taylor  <iant@google.com>
14977
14978         * godump.c (go_format_type): Output the first field with a usable
14979         Go type, if any.
14980
14981 2011-05-25  Ian Lance Taylor  <iant@google.com>
14982
14983         * godump.c (go_format_type): Check for invalid type names, pointer
14984         target types, and struct field types.
14985
14986 2011-05-25  Jason Merrill  <jason@redhat.com>
14987
14988         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14989
14990 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
14991
14992         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14993
14994 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14995
14996         * config/i386/i386.md (*movqi_extv_1)): Put back
14997         "register_operand" check in "type" calculation.
14998         (*movqi_extzv_2): Likewise.
14999
15000 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15001
15002         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
15003
15004 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15005
15006         PR bootstrap/49160
15007         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
15008         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
15009         __divxc3, __divtc3): Wrap definitions in #ifndef.
15010
15011 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15012
15013         PR target/49142
15014         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
15015         "register_operand" check and replace q_regs_operand with
15016         QIreg_operand in "type" calculation.
15017         (*movqi_extv_1): Likewise.
15018         (*movqi_extzv_2_rex64): Likewise.
15019         (*movqi_extzv_2): Likewise.
15020
15021         * config/i386/predicates.md (QIreg_operand): New.
15022
15023 2011-05-25  Richard Guenther  <rguenther@suse.de>
15024
15025         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15026         type-based offset disambiguation, streamline MEM_REF and
15027         TARGET_MEM_REF handling.
15028
15029 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
15030
15031         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
15032         (bdesc_special_args): Add pause intrinsic.
15033
15034         * config/i386/i386.md (UNSPEC_PAUSE): New.
15035         (pause): Likewise.
15036         (*pause): Likewise.
15037         * config/i386/ia32intrin.h (__pause): Likewise.
15038
15039         * doc/extend.texi (X86 Built-in Functions): Add documentation for
15040         pause intrinsic.
15041
15042 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15043
15044         PR tree-optimization/46728
15045         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
15046         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
15047
15048 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
15049
15050         * tree.h (struct tree_exp): Inherit from struct tree_typed.
15051         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
15052         instead of TS_COMMON.
15053
15054 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
15055
15056         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
15057         LIBGCC2_GNU_PREFIX is defined.
15058         (__N): New macro.
15059         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
15060         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
15061         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
15062         __clz_tab): Define using __N.
15063         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
15064         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
15065         * target.def (libfunc_gnu_prefix): New hook.
15066         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
15067         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
15068         * doc/tm.texi: Regenerate.
15069         * system.h (LIBGCC2_GNU_PREFIX): Poison.
15070         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
15071         account.
15072         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15073         (init_optabs): Likewise for the bswap libfuncs.
15074         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
15075         and divide.
15076         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
15077         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
15078         * libgcc-std.ver: Remove.
15079         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
15080         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
15081         libgcc-std.ver.
15082         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15083         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
15084         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
15085         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
15086         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
15087         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15088         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
15089         * config/fixed-bit.h (FIXED_OP): Define differently depending on
15090         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
15091         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
15092
15093 2011-05-25  Jan Hubicka  <jh@suse.cz>
15094
15095         * lto-streamer-out.c (output_record_start): Use lto_output_enum
15096         (lto_output_tree): Use output_record_start.
15097         * lto-streamer-in.c (input_record_start): Use lto_input_enum
15098         (lto_get_pickled_tree): Use input_record_start.
15099         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
15100         (lto_value_range_error): New function.
15101         * lto-streamer.h (lto_value_range_error): Declare.
15102         (lto_output_int_in_range, lto_input_int_in_range): New functions.
15103         (lto_output_enum, lto_input_enum): New macros.
15104
15105 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15106
15107         * common.opt (flag_stack_usage_info): New variable.
15108         (-Wstack-usage): New option.
15109         * doc/invoke.texi (Warning options): Document -Wstack-usage.
15110         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
15111         <OPT_fstack_usage>: Likewise.
15112         * toplev.c (output_stack_usage): Handle -Wstack-usage.
15113         * calls.c (expand_call): Test flag_stack_usage_info variable instead
15114         of flag_stack_usage.
15115         (emit_library_call_value_1): Likewise.
15116         * explow.c (allocate_dynamic_stack_space): Likewise.
15117         * function.c (instantiate_virtual_regs ): Likewise.
15118         (prepare_function_start): Likewise.
15119         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
15120         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
15121         * config/arm/arm.c (arm_expand_prologue): Likewise.
15122         (thumb1_expand_prologue): Likewise.
15123         * config/avr/avr.c (expand_prologue): Likewise.
15124         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15125         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15126         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
15127         * config/mips/mips.c (mips_expand_prologue): Likewise.
15128         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15129         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15130         * config/s390/s390.c (s390_emit_prologue): Likewise.
15131         * config/sh/sh.c (sh_expand_prologue): Likewise.
15132         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15133         * config/spu/spu.c (spu_expand_prologue): Likewise.
15134
15135 2011-05-25  Richard Guenther  <rguenther@suse.de>
15136
15137         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
15138         (gimple_canonical_types_compatible_p): Likewise.
15139
15140 2011-05-25  Jan Hubicka  <jh@suse.cz>
15141
15142         PR middle-end/49062
15143         * ipa.c (function_and_variable_visibility): Only add to same
15144         comdat group list if DECL_ONE_ONLY.
15145
15146 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
15147
15148         PR rtl-optimization/49014
15149         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
15150
15151 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
15152
15153         PR target/49128
15154         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
15155
15156 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15157
15158         PR rtl-optimization/48757
15159         * ira-build.c (loop_with_eh_edge_p): Rename to
15160         loop_with_complex_edge_p, check edges on complexity, make function
15161         conditional.
15162         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
15163         conditional.
15164
15165 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15166
15167         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
15168         force flag_ira_share_save_slots to 0.
15169
15170 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15171
15172         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
15173         (vt_initialize): Set PROLOGUE_BB unconditionally.
15174         Add block comment about CFA_BASE_RTX machinery.
15175         Reset FP_CFA_OFFSET to -1 on all invalid paths.
15176         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
15177
15178 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
15179
15180         PR objc/48187
15181         * c-parser.c (c_parser_objc_class_instance_variables): More robust
15182         parsing of syntax error in ObjC instance variable lists.  In
15183         particular, avoid an infinite loop if there is a stray ']'.
15184         Updated error message.
15185
15186 2011-05-24  Ian Lance Taylor  <iant@google.com>
15187
15188         * godump.c (go_define): Don't accept a string immediately after
15189         another operand.
15190
15191 2011-05-24  Ian Lance Taylor  <iant@google.com>
15192
15193         * godump.c (struct godump_container): Add invalid_hash field.
15194         (go_format_type): Return false if type is found in invalid_hash.
15195         (go_output_typedef): Add invalid type to invalid_hash.
15196         (go_finish): Create and delete invalid_hash.
15197
15198 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15199
15200         PR tree-optimization/46728
15201         * tree-ssa-math-opts.c (powi_table): New.
15202         (powi_lookup_cost): New.
15203         (powi_cost): New.
15204         (powi_as_mults_1): New.
15205         (powi_as_mults): New.
15206         (gimple_expand_builtin_powi): New.
15207         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
15208         (gate_cse_sincos): Remove sincos/cexp restriction.
15209
15210 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15211
15212         PR target/3746
15213         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
15214         mips-tdump native.
15215         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
15216         * mips-tdump.c: Likewise.
15217
15218 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15219
15220         PR target/49128
15221         * config/i386/driver-i386.c (host_detect_local_cpu): Always
15222         add -mno-XXX.  Handle FMA.
15223
15224 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15225
15226         PR rtl-optimization/48633
15227         * ira-build.c (loop_with_eh_edge_p): New function.
15228         (mark_loops_for_removal): Use it.
15229
15230 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
15231
15232         PR rtl-optimization/48971
15233         * ira.c (setup_pressure_classes): Don't check register move cost
15234         for classes with one registers.  Don't add pressure class if there
15235         is a pressure class with the same available hard registers.
15236         Check contains_reg_of_mode.  Fix a typo in collecting
15237         temp_hard_regset.  Ignore hard registers not belonging to a class.
15238
15239 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
15240
15241         PR target/49133
15242         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15243
15244 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
15245             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15246
15247         PR gcov-profile/48845
15248         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
15249
15250 2011-05-24  Richard Guenther  <rguenther@suse.de>
15251
15252         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
15253         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
15254         (gimple_types_compatible_p_1): Adjust.
15255         (iterative_hash_canonical_type): Do not bother about complete vs.
15256         incomplete types.
15257         (gimple_canonical_types_compatible_p): Likewise.
15258
15259 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15260
15261         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
15262
15263 2011-05-24  Richard Guenther  <rguenther@suse.de>
15264
15265         PR bootstrap/49078
15266         * gimple.c (gimple_register_canonical_type): Revert
15267         previous change.
15268         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
15269         does not for a tree for the case where it matters.  Cache
15270         pointer-type alias-sets.
15271
15272 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
15273
15274         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
15275         (OBJS): Remove options.o, opts-common.o and prefix.o.
15276         (OBJS-libcommon-target): New.
15277         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
15278         (BACKEND): Include libcommon-target.a.
15279         (MOSTLYCLEANFILES): Include libcommon-target.a.
15280         (libcommon-target.a): New.
15281         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
15282         prefix.o.
15283
15284 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
15285
15286         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
15287         parts of output shared with the driver.
15288         * optc-gen.awk: Don't generate parts of output not shared with the
15289         driver.
15290         * opth-gen.awk: Remove GCC_DRIVER conditionals.
15291         * doc/options.texi (SourcerInclude): Mention options-save.c.
15292         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
15293         (OBJS): Add options-save.o.
15294         (options-save.c, options-save.o): New.
15295         (options.o): Update dependencies.
15296         (gcc-options.o): Remove.
15297         (mostlyclean): Remove options-save.c.
15298
15299 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15300
15301         PR debug/49032
15302         * dbxout.c: Include cgraph.h.
15303         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
15304         and without value expr, return NULL if no varpool node exists for
15305         it or if it is not needed.
15306         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
15307
15308         PR c/49120
15309         * c-decl.c (start_decl): Convert expr to void_type_node.
15310
15311 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
15312
15313         PR rtl-optimization/48826
15314         * emit-rtl.c (try_split): When splitting a call that is followed
15315         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
15316
15317 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15318
15319         * cfgexpand.c (expand_debug_expr): For unused non-addressable
15320         parameters passed in memory prefer using DECL_INCOMING_RTL over
15321         the pseudos it will be copied into.
15322
15323 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15324
15325         PR target/47315
15326         * config/i386/i386.c (ix86_option_override_internal): Save the
15327         initial options after checking vzeroupper.
15328
15329 2011-05-23  David Li  <davidxl@google.com>
15330
15331         PR tree-optimization/48988
15332         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
15333         Initialize has_valid_pred for each pred chain.
15334
15335 2011-05-23  Richard Guenther  <rguenther@suse.de>
15336
15337         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
15338         (iterative_hash_gimple_type): Always hash type names.
15339
15340 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
15341
15342         * c-typeck.c (build_function_call_vec): Tweak call to
15343         check_function_arguments.
15344
15345 2011-05-23  Richard Guenther  <rguenther@suse.de>
15346
15347         PR tree-optimization/49115
15348         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
15349         is not necessarily carried out, do not claim it kills the ref.
15350         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
15351
15352 2011-05-23  Richard Guenther  <rguenther@suse.de>
15353
15354         PR middle-end/15419
15355         * builtins.c (fold_builtin_memory_op): Be less restrictive about
15356         what pointer types we accept for folding.
15357
15358 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15359
15360         * gthr-gnat.c: Remove.
15361         * gthr-gnat.h: Remove.
15362         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
15363         * config/t-freebsd (LIB2ADDEH): Likewise.
15364         * config/t-linux (LIB2ADDEH): Likewise.
15365         * config/t-sol2 (LIB2ADDEH): Likewise.
15366         * config/ia64/t-vms (LIB2ADDEH): Likewise.
15367         * configure.ac (target_thread_file): Remove gnat handling.
15368         * configure: Regenerate.
15369         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
15370
15371 2011-05-23  Tristan Gingold  <gingold@adacore.com>
15372             Eric Botcazou  <ebotcazou@adacore.com>
15373
15374         * gcov.c (create_file_names): If no object directory is specified,
15375         keep the directory of the file.
15376
15377 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15378
15379         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
15380         * configure: Regenerate.
15381
15382 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
15383
15384         PR middle-end/48973
15385         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
15386         failed and the comparison has a single bit signed type, use
15387         constm1_rtx instead of const1_rtx for true value.
15388         (do_store_flag): If ops->type is single bit signed type, disable
15389         signel bit test optimization and pass -1 instead of 1 as last
15390         parameter to emit_store_flag_force.
15391
15392 2011-05-23  Tom de Vries  <tom@codesourcery.com>
15393
15394         PR target/45098
15395         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15396         function.
15397         (infer_loop_bounds_from_undefined): Use new function.
15398
15399 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15400
15401         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
15402         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
15403         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
15404         and -O0 otherwise.
15405         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
15406
15407 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15408
15409         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
15410         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
15411         returns true.
15412
15413 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
15414
15415         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
15416
15417 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15418
15419         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
15420         UNSPEC_MOVE_PIC pattern.
15421
15422 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
15423
15424         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
15425         (sparc-*-rtems*): Likewise.
15426         (sparc64-*-elf*): Likewise.
15427         (sparc64-*-rtems*): Likewise.
15428         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
15429         * config/sparc/t-crtin: New file.
15430         * config/sparc/t-sol2 (crti.o): Delete rule.
15431         (crtn.o): Likewise.
15432         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
15433         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
15434         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
15435         (ENDFILE_SPEC): Add crtn.o.
15436
15437 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15438
15439         PR middle-end/48689
15440         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
15441         CODE_CONTAINS_STRUCT (TS_COMMON).
15442
15443 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
15444
15445         PR middle-end/49029
15446         * expmed.c (extract_fixed_bit_field): Test whether target can be used
15447         only after deciding which mode to use.
15448
15449 2011-05-22  Tom de Vries  <tom@codesourcery.com>
15450
15451         PR target/45098
15452         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
15453         for call to get_shiftadd_cost.
15454
15455 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
15456
15457         PR target/49104
15458         * config/i386/cpuid.h (bit_MMXEXT): New define.
15459
15460 2011-05-22  Nick Clifton  <nickc@redhat.com>
15461
15462         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
15463         initialisation of non-existant args[2] element.  Use args[] array
15464         not arg[] array to pass arguments to build_function_type_list.
15465
15466 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
15467
15468         PR tree-optimization/49087
15469         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
15470
15471 2011-05-21  Jason Merrill  <jason@redhat.com>
15472
15473         PR c++/49092
15474         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
15475         static storage duration.
15476
15477 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15478
15479         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
15480         frame pointer.
15481
15482 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15483
15484         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
15485         false if there are call-saved registers here...
15486         (sparc_can_use_return_insn_p): ...but here instead.
15487         (save_or_restore_regs): Fix thinko.
15488         (sparc_expand_prologue): Use current_function_is_leaf.
15489         (sparc_frame_pointer_required): Likewise.
15490
15491 2011-05-21  Nick Clifton  <nickc@redhat.com>
15492
15493         PR target/49098
15494         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
15495
15496 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
15497
15498         * gengtype.c (walk_type): Implemented "atomic" GTY option.
15499         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
15500
15501 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
15502
15503         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
15504         * optc-gen.awk: Move common code to opt-read.awk.
15505         * opth-gen.awk: Likewise.
15506         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
15507
15508 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
15509
15510         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
15511
15512 2011-05-20  Tom de Vries  <tom@codesourcery.com>
15513
15514         PR target/45098
15515         * tree-ssa-loop-ivopts.c: Include expmed.h.
15516         (get_shiftadd_cost): New function.
15517         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
15518
15519 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15520
15521         PR bootstrap/49086
15522         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
15523         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
15524
15525 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15526
15527         * Makefile.in: Update comment referring to $(OBJS-common).
15528
15529 2011-05-20  Ian Lance Taylor  <iant@google.com>
15530
15531         * godump.c (go_output_typedef): Put enum constants in the macro
15532         hash table to avoid duplicate Go const definitions.
15533
15534 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
15535
15536         * Makefile.in (LIBDEPS): Add libcommon.a.
15537         (LIBS): Likewise.
15538         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
15539         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
15540         pretty-print.o and version.o.
15541         (OBJS-libcommon): New.
15542         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
15543         (BACKEND): Add libcommon.a.
15544         (MOSTLYCLEANFILES): Likewise.
15545         (libcommon.a): New.
15546         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
15547         (cpp$(exeext)): Likewise.
15548         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
15549         pretty-print.o and input.o.
15550         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
15551         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
15552         (errors.o): Remove.
15553         (mips-tfile): Don't explicitly use version.o.
15554         (mips-tdump): Likewise.
15555         (gcov.o): Depend on $(DIAGNOSTIC_H).
15556         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
15557         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
15558         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
15559         * gcov-dump.c: Include intl.h and diagnostic.h.
15560         (main): Initialize diagnostics.
15561         * gcov.c: Include diagnostic.h.
15562         (fnotice): Remove.
15563         (main): Initialize diagnostics.
15564         * lto-wrapper.c: Include diagnostic.h.
15565         (main): Initialize diagnostics.
15566
15567 2011-05-20  Michael Matz  <matz@suse.de>
15568
15569         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
15570
15571 2011-05-20  Michael Matz  <matz@suse.de>
15572             Richard Guenther  <rguenther@suse.de>
15573
15574         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
15575         use lto_streamer_cache_append directly instead of returning a VEC.
15576         (preload_common_node): Remove.
15577         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
15578         track seen nodes.
15579         (lto_streamer_cache_create): Call lto_preload_common_nodes.
15580
15581 2011-05-20  Richard Guenther  <rguenther@suse.de>
15582
15583         PR tree-optimization/49079
15584         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
15585         MEM_REFs correctly for the trailing array access detection.
15586         Special case constants the same way as decls for overall size
15587         constraining.
15588
15589 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
15590
15591         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
15592         argument expansion.
15593
15594 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
15595
15596         PR tree-optimization/49073
15597         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
15598         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
15599         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
15600
15601 2011-05-20  Richard Guenther  <rguenther@suse.de>
15602
15603         PR middle-end/48849
15604         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
15605         of pointer types the same way the middle-end does.
15606
15607 2011-05-20  Richard Guenther  <rguenther@suse.de>
15608
15609         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
15610         or pointer-to chains.  Delay all fixup to uniquify_nodes.
15611
15612 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
15613
15614         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
15615         (fma4_fmaddsub): Likewise
15616
15617 2011-05-19  Jan Hubicka  <jh@suse.cz>
15618
15619         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
15620         (GIMPLE_TYPE_PAIR_SIZE): New macro.
15621         (type_pair_cache): New static var.
15622         (lookup_type_pair): Use fixed sized custom hash; make inline.
15623         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
15624         calls of lookup_type_pair.
15625         (print_gimple_types_stats): Remove cache stats.
15626         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
15627         and gtc_ob.
15628
15629 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
15630
15631         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
15632         when TARGET_RDRND is active.
15633         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
15634         Generate dummy SImode target register when target is NULL.
15635
15636 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15637
15638         * config/arm/arm-fpus.def: New.
15639         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
15640         arm-fpus.def.
15641         * config/arm/arm-tables.opt: Regenerate.
15642         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15643         (arm_option_override): Don't decode FPU name to string here.
15644         * config/arm/arm.opt (mfpu=): Use Enum.
15645         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15646         Update dependencies.
15647
15648 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15649
15650         * collect2.c: Include diagnostic.h.
15651         (fatal_perror, fatal, error, fancy_abort): Remove.
15652         (main): Set progname.  Call xmalloc_set_program_name and
15653         diagnostic_initialize.
15654         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15655         scan_libraries, resolve_lib_name): Call fatal_error instead of
15656         fatal and fatal_perror.
15657         * collect2.h (error, fatal, fatal_perror): Don't declare.
15658         * tlink.c: Include diagnostic-core.h.
15659         (recompile_files): Call fatal_error instead of fatal_perror.
15660         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15661         pretty-print.o and input.o.
15662         (collect2.o, tlink.o): Update dependencies.
15663
15664 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15665
15666         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15667
15668 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15669
15670         PR target/40483
15671         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15672         COMDAT group syntax, both SPARC and x86 variants.
15673         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15674         * configure: Regenerate.
15675         * config/sol2.h (TARGET_SOLARIS): Define.
15676         (PUSHSECTION_FORMAT): Remove.
15677         (SECTION_NAME_FORMAT): Define.
15678         * config/sol2.c: Include hashtab.h.
15679         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15680         expansion, using SECTION_NAME_FORMAT.
15681         (solaris_comdat_htab): New variable.
15682         (struct comdat_entry): Define.
15683         (comdat_hash): New function.
15684         (comdat_eq): New function.
15685         (solaris_elf_asm_comdat_section): New function.
15686         (solaris_define_comdat_signature): New function.
15687         (solaris_code_end): New function.
15688         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15689         (solaris_code_end): Declare.
15690         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15691         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15692         solaris_code_end.
15693         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15694         Remove ATTRIBUTE_UNUSED.
15695         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15696         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15697         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15698         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15699         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15700         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15701         (PUSHSECTION_FORMAT): Remove.
15702         (SECTION_NAME_FORMAT): Redefine.
15703
15704 2011-05-19  Kai Tietz  <ktietz@redhat.com>
15705
15706         * tree-cfg.c (verify_gimple_assign_binary): Barf on
15707         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15708         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15709
15710 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
15711             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15712
15713         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15714
15715 2011-05-19  Richard Guenther  <rguenther@suse.de>
15716
15717         PR middle-end/48985
15718         * tree-object-size.c (addr_object_size): If the pointed-to
15719         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15720
15721 2011-05-19  Richard Guenther  <rguenther@suse.de>
15722
15723         * gimple.c (gimple_types_compatible_p_1): Compare names of
15724         the types themselves.
15725         (iterative_hash_gimple_type): And hash them that way.
15726         (gimple_register_type_1): If we register a main variant properly
15727         initialize the leader to ourselves.
15728
15729 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15730
15731         PR target/45098
15732         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15733         get_loop_invariant_expr_id.
15734         (get_loop_invariant_expr_id): Use get_expr_id.
15735         (parm_decl_cost): New function.
15736         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15737         Improve bound cost estimation.  Use different inv_expr_id for elim and
15738         express cases.
15739
15740 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15741
15742         PR target/45098
15743         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15744         cost_base.cost == 0.
15745
15746 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15747
15748         PR target/49002
15749         * config/i386/sse.md
15750         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15751         load cast.
15752
15753 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15754
15755         PR tree-optimization/49039
15756         * tree-vrp.c (extract_range_from_binary_expr): For
15757         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15758         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15759
15760 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15761
15762         PR target/45098
15763         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15764
15765 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
15766
15767         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15768         (*tls_global_dynamic_64): Ditto.
15769         (*tls_local_dynamic_base_32_gnu): Ditto.
15770         (*tls_local_dynamic_base_64): Ditto.
15771         (tls_initial_exec_64_sun): Ditto.
15772
15773 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
15774
15775         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15776         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15777         bf592-none.
15778         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15779         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15780         * config/bfin/bfin.c (bfin_cpus): Add bf592.
15781         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15782         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15783         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15784         * config/bfin/elf.h (LIB_SPEC): Add bf592.
15785
15786 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15787
15788         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15789         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15790         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15791         target_thread_pointer, arm_structure_size_boundary, struct
15792         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15793         struct abi_name, arm_all_abis): Remove.
15794         (arm_option_override) Don't process most enumerated option values here.
15795         Don't process target_fpe_name here.  Work with integer not string for
15796         structure size boundary; use separate diagnostics for each case.
15797         * config/arm/arm.h (enum float_abi_type, enum
15798         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15799         to arm-opts.h.
15800         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15801         arm_structure_size_boundary): Remove.
15802         * config/arm/arm.opt (mabi=): Use Enum and Init.
15803         (arm_abi_type): New Enum and EnumValue entries.
15804         (mfloat-abi=): Use Enum and Init.
15805         (float_abi_type): New Enum and EnumValue entries.
15806         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15807         (mfp16-format=): Use Enum and Init.
15808         (arm_fp16_format_type): New Enum and EnumValue entries.
15809         (mstructure-size-boundary=): Use UInteger and Init.
15810         (mtp=): Use Enum and Init.
15811         (arm_tp_type): New Enum and EnumValue entries.
15812
15813 2011-05-18  Richard Guenther  <rguenther@suse.de>
15814
15815         PR tree-optimization/49018
15816         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15817         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15818         gimple_has_side_effects.
15819
15820 2011-05-18  Richard Guenther  <rguenther@suse.de>
15821
15822         * gimple.c (gimple_register_type_1): New function, split out from ...
15823         (gimple_register_type): ... here.  Avoid infinite recursion.
15824
15825 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15826
15827         PR tree-optimization/41881
15828         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15829         reduction_chains along with a macro for its access.
15830         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15831         (destroy_loop_vec_info): Free reduction chains.
15832         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15833         (vect_is_slp_reduction): New function.
15834         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15835         (vect_create_epilog_for_reduction): Support SLP reduction chains.
15836         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15837         definition types for reduction chains.
15838         (vect_supported_load_permutation_p): Don't allow permutations for
15839         reduction chains.
15840         (vect_analyze_slp_instance): Support reduction chains.
15841         (vect_analyze_slp): Try to build SLP instance from reduction chains.
15842         (vect_get_constant_vectors):  Handle reduction chains.
15843         (vect_schedule_slp_instance): Mark the first statement of the
15844         reduction chain as reduction.
15845
15846 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15847
15848         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15849         names for group elements access.
15850         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15851         reduction chains as well.  Remove data reference and interleaving
15852         related words from the fields names.
15853         * tree-vect-loop.c (vect_transform_loop): Use new names for group
15854         elements access.
15855         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15856         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15857         vect_update_interleaving_chain, vect_same_range_drs,
15858         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15859         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15860         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15861         vect_analyze_group_access, vect_analyze_data_ref_access,
15862         vect_create_data_ref_ptr, vect_transform_strided_load,
15863         vect_record_strided_load_vectors): Likewise.
15864         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15865         vect_model_load_cost, vectorizable_store, vectorizable_load,
15866         vect_remove_stores, new_stmt_vec_info): Likewise.
15867         * tree-vect-slp.c (vect_build_slp_tree,
15868         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15869
15870 2011-05-18  Richard Guenther  <rguenther@suse.de>
15871
15872         PR middle-end/48989
15873         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15874         operand verification.
15875         (verify_gimple_assign_binary): Likewise.
15876         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15877         to non-1-precision BOOLEAN_TYPEs.
15878
15879 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15880
15881         PR target/45098
15882         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15883
15884 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15885
15886         PR tree-optimization/49000
15887         * tree-ssa.c (execute_update_addresses_taken): Call
15888         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
15889         be rewritten and decl has been marked for renaming, reset
15890         the debug stmt.
15891
15892 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
15893
15894         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15895         enum_opts_set when testing if attributes have set -mfpmath=.
15896
15897 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15898
15899         * config/mips/mips.c (mips_handle_option): Remove unused variable.
15900
15901 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15902
15903         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15904         info->entry with 0
15905         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
15906         id.transform_lang_insert_block with NULL.
15907
15908 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15909
15910         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15911         (output_fp_compare): Change args 3 and 4 to bool.
15912         (ix86_expand_call): Change arg 6 to bool.
15913         (ix86_attr_length_immediate_default): Change arg 2 to bool.
15914         (ix86_attr_length_vex_default): Change arg 3 to bool.
15915         * config/i386/i386.md: Update all uses.
15916         * config/i386/i386.c: Ditto.
15917         (ix86_flags_dependent): Change return type to bool.
15918
15919 2011-05-17  Richard Guenther  <rguenther@suse.de>
15920
15921         * gimple.c (type_hash_pair_compare): Fix comparison.
15922
15923 2011-05-17  Richard Guenther  <rguenther@suse.de>
15924
15925         * gimple.c (iterative_hash_gimple_type): Simplify singleton
15926         case some more, fix final hash value of the non-singleton case.
15927
15928 2011-05-17  Richard Guenther  <rguenther@suse.de>
15929
15930         PR bootstrap/49013
15931         Revert
15932         2011-05-16  Richard Guenther  <rguenther@suse.de>
15933
15934         * gimple.c (gimple_types_compatible_p_1): Use names of the
15935         type itself, not its main variant.
15936         (iterative_hash_gimple_type): Likewise.
15937
15938 2011-05-17  Richard Guenther  <rguenther@suse.de>
15939
15940         * gimple.c (gimple_register_canonical_type): Use the main-variant
15941         leader for computing the canonical type.
15942
15943 2011-05-17  Nick Clifton  <nickc@redhat.com>
15944
15945         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15946         moves.
15947
15948         * config/rx/rx.md: Add peephole to remove redundant extensions
15949         after loads.
15950         (bitset_in_memory): Use rx_restricted_mem_operand.
15951         (bitinvert_in_memory): Likewise.
15952         (bitclr_in_memory): Likewise.
15953
15954 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
15955             Nick Clifton  <nickc@redhat.com>
15956
15957         * config/rx/rx.md: Add peepholes to match a register move followed
15958         by a comparison of the moved register.  Replace these with an
15959         addition of zero that does both actions in one instruction.
15960
15961 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
15962
15963         PR target/48986
15964         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15965         predicate to allow CONST_INT.
15966         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15967
15968 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15969
15970         * opts-common.c (opt_enum_arg_to_value): New.
15971         * opts.h (opt_enum_arg_to_value): Declare.
15972         * config/i386/i386.opt (fpmath): Remove.
15973         (mfpmath=): Use Enum, Init and Save.
15974         (fpmath_unit): New Enum and EnumValue entries.
15975         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15976         name for function fpmath state.
15977         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15978         * config/i386/i386.c: Include diagnostic.h.
15979         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15980         (ix86_target_string): Take enum fpmath_unit value instead of string.
15981         (ix86_debug_options): Update call to ix86_target_string.
15982         (ix86_option_override_internal): Don't process fpmath strings here.
15983         (x86_function_specific_save, ix86_function_specific_restore):
15984         Don't handle fpmath state specially.
15985         (ix86_function_specific_print): Pass fpmath state to
15986         ix86_target_string instead of printing in this function.
15987         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15988         Handle enum attributes.
15989         (IX86_ATTR_ENUM, ix86_opt_enum): New.
15990         (ix86_valid_target_attribute_tree): Update option_strings
15991         handling.  Handle fpmath as enum option.
15992         (ix86_can_inline_p): Update field names for function fpmath state.
15993         (ix86_expand_builtin): Update call to ix86_target_string.
15994         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15995         (ix86_fpmath): Remove.
15996         * config/i386/t-i386 (i386.o): Update dependencies.
15997
15998 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15999
16000         PR preprocessor/48677
16001         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
16002         from decoded_options[0], not from itself.
16003
16004 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
16005
16006         * config/i386/constraints.md (z): New constraint.
16007         * config/i386/i386.c (c): New mode attribute.
16008         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
16009         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
16010         constraint for operand 0.
16011         (*call_vzeroupper): Ditto.
16012         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
16013         (*call_rex64_ms_sysv_vzeroupper): Ditto.
16014         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
16015         Use "lzm" constraint for operand 0.
16016         (*call_pop_vzeroupper): Ditto.
16017         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
16018         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
16019         constraint for operand 0.
16020         (*sibcall_vzeroupper): Ditto.
16021         (*sibcall_rex64_ms_sysv): Ditto.
16022         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
16023         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
16024         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
16025         (*sibcall_pop_vzeroupper): Ditto.
16026         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
16027         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
16028         mode iterator.  Use "<c>zm" constraint for operand 1.
16029         (*call_value_vzeroupper): Ditto.
16030         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
16031         for operand 1.
16032         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
16033         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
16034         *call_value_pop_1.  Use "lzm" constraint for operand 1.
16035         (*call_value_pop_vzeroupper): Ditto.
16036         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
16037         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
16038         mode iterator.  Use "Uz" constraint for operand 1.
16039         (*sibcall_value_vzeroupper): Ditto.
16040         (*sibcall_value_rex64_ms_sysv): Ditto.
16041         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
16042         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
16043         constraint for operand 1.
16044         (*sibcall_value_pop_vzeroupper): Ditto.
16045         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
16046         and "z" constraint for operand 2.
16047         (*tls_global_dynamic_32_gnu): Ditto.
16048         (*tls_local_dynamic_base_32_gnu): Ditto.
16049         (*tls_local_dynamic_base_64): Ditto.
16050         (*tls_local_dynamic_32_once): Ditto.
16051         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
16052         Update all callers.
16053         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
16054
16055 2011-05-16  Richard Guenther  <rguenther@suse.de>
16056
16057         * gimple.c (gimple_types_compatible_p_1): Use names of the
16058         type itself, not its main variant.
16059         (iterative_hash_gimple_type): Likewise.
16060
16061 2011-05-16  Richard Guenther  <rguenther@suse.de>
16062
16063         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
16064         always visit pointer target and function result and argument types.
16065
16066 2011-05-16  Jason Merrill  <jason@redhat.com>
16067
16068         PR c++/48999
16069         * tree-inline.c (copy_statement_list): Put back recursion.
16070
16071 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16072
16073         PR target/27663
16074         PR target/41076
16075         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
16076         * config/avr/avr.md ("*ior<mode>qi.byte0",
16077         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
16078
16079 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
16080
16081         PR target/45099
16082         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
16083         register is needed for a function argument.
16084
16085 2011-05-16  Richard Guenther  <rguenther@suse.de>
16086
16087         * gimple.c (struct type_hash_pair): New type.
16088         (type_hash_pair_compare): New function.
16089         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
16090
16091 2011-05-16  Revital Eres  <revital.eres@linaro.org>
16092
16093         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
16094
16095 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16096
16097         * config/i386/i386.md (floating point move splitters): Fix
16098         usage of standard_80387_constant_p.
16099         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
16100
16101 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
16102
16103         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
16104
16105 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16106
16107         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
16108         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
16109         (tree_ssa_lim_finalize): Likewise.
16110
16111 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
16112
16113         * config/i386/constraint.md (Yd, Yx): New register constraints.
16114         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
16115         Yd conditional register constraint.
16116         (*movtf_internal): Use standard_sse_constant_opcode.
16117         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
16118         Yx conditional register constraint.
16119         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
16120         Yd conditional register constraint.  Use standard_sse_constant_p to
16121         check for valid SSE constants and call standard_sse_constant_opcode to
16122         output SSE insn.
16123         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
16124         constants and call standard_sse_constant_opcode to output SSE insn.
16125         * config/i386/i386.c (ix86_option_ovverride_internal): Set
16126         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
16127         optimize_size is set.
16128         (standard_sse_constant_opcode): Output conditional AVX insn templates.
16129
16130 2011-05-14  Tobias Burnus  <burnus@net-b.de>
16131
16132         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
16133
16134 2011-05-13  Martin Jambor  <mjambor@suse.cz>
16135
16136         * ipa-prop.c (ipa_cst_from_jfunc): New function.
16137         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
16138         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
16139         (evaluate_conditions_for_ipcp_clone): Removed.
16140         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
16141         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
16142         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
16143
16144 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16145
16146         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
16147         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
16148         lieu of MAY_HAVE_DEBUG_STMTS.
16149         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
16150         debug statements if !MAY_HAVE_DEBUG_STMTS.
16151
16152 2011-05-13  Martin Thuresson  <martint@google.com>
16153
16154         PR gcov-profile/47793
16155         * libgcov.c (gcov_exit): Support relative profile paths.
16156         * doc/invoke.texi (-fprofile-dir): Update for above change.
16157
16158 2011-05-13  Richard Guenther  <rguenther@suse.de>
16159
16160         * gimple.c (gimple_canonical_types_compatible_p): Do not use
16161         type-pair caching, do not compare hashes.
16162
16163 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
16164
16165         PR middle-end/48965
16166         * tree-cfg.c (edge_to_cases_cleanup): Return true.
16167         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
16168
16169 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16170
16171         * gimplify.c (gimplify_expr): Make sure operand is boolified.
16172         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
16173         compatible type for TRUTH_NOT_EXPR.
16174
16175 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16176
16177         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
16178         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
16179         can_create_pseudo_p ().
16180
16181 2011-05-13  Richard Guenther  <rguenther@suse.de>
16182
16183         PR lto/48978
16184         * gimple.c (iterative_hash_gimple_type): Revert change in
16185         pointer target and function result and argument hashing.
16186
16187 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
16188
16189         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
16190         (*movxf_internal_nointeger): Ditto.
16191         (*movdf_internal_rex64): Ditto.
16192         (*movdf_internal): Ditto.
16193         (*movdf_internal_nointeger): Ditto.
16194         (*movsf_internal): Ditto.
16195         (sincos splitters): Use can_create_pseudo ().
16196
16197 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
16198
16199         * config/i386/i386-opts.h: New.
16200         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
16201         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
16202         ix86_section_threshold): Remove.
16203         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
16204         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
16205         OPT_mbranch_cost_.
16206         (ix86_option_override_internal): Don't decode strings for options
16207         other than -march=, -mtune= and -mfpmath=.  Don't allow for
16208         __attribute__ uses in remaining diagnostics for options with
16209         string arguments.  Don't check for integer arguments being negative.
16210         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
16211         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
16212         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
16213         ix86_branch_cost, ix86_section_threshold): Remove.
16214         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
16215         HeaderInclude.
16216         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
16217         but not Var.
16218         (masm=): Use Enum and Init.
16219         (asm_dialect): New Enum and EnumValue entries.
16220         (mbranch-cost=): Use UInteger.
16221         (mlarge-data-threshold=): Use UInteger and Init.
16222         (mcmodel=): Use Enum and Init.
16223         (cmodel): New Enum and EnumValue entries.
16224         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
16225         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
16226         mregparm=): Use UInteger.
16227         (mstringop-strategy=): Use Enum and Init.
16228         (stringop_alg): New Enum and EnumValue entries.
16229         (mtls-dialect=): Use Enum and Init.
16230         (tls_dialect): New Enum and EnumValue entries.
16231         (mabi=): Use Enum and Init.
16232         (calling_abi): New Enum and EnumValue entries.
16233         (mveclibabi=): Use Enum and Init.
16234         (ix86_veclibabi): New Enum and EnumValue entries.
16235
16236 2011-05-13  Nick Clifton  <nickc@redhat.com>
16237
16238         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
16239         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
16240
16241 2011-05-13  Kai Tietz  <ktietz@redhat.com>
16242
16243         PR middle-end/48984
16244         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
16245         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
16246         (gimple_boolify): Check for cast for boolean_type_node instead for
16247         BOOLEAN_TYPE.
16248
16249 2011-05-13  Richard Guenther  <rguenther@suse.de>
16250
16251         PR tree-optimization/48172
16252         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
16253         multiplying by number of iterations for equal step.
16254         (vect_create_cond_for_alias_checks): Likewise.
16255
16256 2011-05-13  Andreas Schwab  <schwab@redhat.com>
16257
16258         * configure.ac: Use AS_HELP_STRING throughout.
16259         * configure: Regenerate.
16260
16261 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16262
16263         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
16264         (ix86_emit_restore_regs_using_mov): Likewise.
16265         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16266
16267 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
16268
16269         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
16270         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
16271         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
16272         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
16273         RTX_OK_FOR_OLO10_P): ...here.
16274         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
16275         SYMBOLIC_CONST.
16276
16277 2011-05-12  Kai Tietz  <ktietz@redhat.com>
16278
16279         * gimplify.c (gimple_boolify): Re-boolify expression
16280         arguments even if expression type is of kind BOOLEAN_TYPE.
16281         (gimplify_boolean_expr): Removed.
16282         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
16283         and XOR. Additional take care that we keep expression's type.
16284         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
16285         of TRUTH_AND|OR|XOR_EXPR.
16286
16287 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16288
16289         PR tree-optimization/48975
16290         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
16291         on all bbs here and free and clear ifc_bbs at the end.
16292
16293 2011-05-12  Richard Guenther  <rguenther@suse.de>
16294
16295         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
16296         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
16297         until after simple checks.
16298         (gimple_types_compatible_p): Likewise.
16299         (iterative_hash_gimple_type): Always hash pointer targets
16300         and function return and argument types.
16301         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
16302         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
16303         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
16304         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
16305         completely in the simple compare section.
16306         (gimple_register_canonical_type): Query the cache again after
16307         registering.
16308
16309 2011-05-12  Richard Guenther  <rguenther@suse.de>
16310
16311         PR tree-optimization/48172
16312         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
16313         the number of iterations from the segment size calculation.
16314         (vect_create_cond_for_alias_checks): Adjust.
16315
16316 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
16317
16318         PR debug/48967
16319         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
16320         if validate_subreg fails.
16321
16322 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
16323
16324         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
16325         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
16326         early.
16327
16328 2011-05-12  DJ Delorie  <dj@redhat.com>
16329
16330         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
16331         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
16332         created builtin into rx_builtins array.
16333         (rx_builtin_decl): New function.
16334         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
16335
16336 2011-05-12  DJ Delorie  <dj@redhat.com>
16337             Nick Clifton  <nickc@redhat.com>
16338
16339         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
16340         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
16341         (rx_is_legitimate_address): Add pre-decrement and post-increment
16342         addressing in HImode and QImode.  Fix test for out of range
16343         REG+INT addressing.
16344         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
16345         (rx_align_for_label): Test label before extracting its usage count.
16346         (rx_adjust_insn_lengths): Fix selection of insn codes.
16347         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
16348
16349 2011-05-11  Jason Merrill  <jason@redhat.com>
16350
16351         * tree.c (type_hash_canon): Use struct tree_type_non_common.
16352
16353 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16354
16355         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
16356         reindent the subsequent block.
16357
16358 2011-05-11  Satoru Takabayashi  <satorux@google.com>
16359             Paul Pluzhnikov  <ppluzhnikov@google.com>
16360
16361         * doc/install.texi (Configuration): Document --with-linker-hash-style.
16362         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
16363         * config.in: Add LINKER_HASH_STYLE.
16364         * configure.ac: Add --with-linker-hash-style.
16365         * configure: Regenerate.
16366
16367 2011-05-11  Richard Guenther  <rguenther@suse.de>
16368
16369         PR middle-end/48964
16370         * gimple.c (iterative_hash_canonical_type): Fix typo.
16371
16372 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
16373
16374         * config/i386/i386.c (legitimize_tls_address)
16375         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16376         expanders directly for TARGET_GNU2_TLS.  Determine pic and
16377         __tls_get_addr symbol reference here.  Update call to
16378         gen_tls_global_dynamic_{32,64} for added arguments.
16379         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
16380         expanders directly for TARGET_GNU2_TLS.  Determine
16381         __tls_get_addr symbol reference here.  Update call to
16382         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
16383         unique UNSPEC REG_EQUIV to libcall block.
16384         (ix86_tls_get_addr): Declare static.
16385         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
16386         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
16387         Do not determine pic and __tls_get_addr symbol reference here. Do not
16388         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
16389         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
16390         (tls_global_dynamic_64): Add operand 2.  Do not determine
16391         __tls_get_addr symbol reference here.  Do not call
16392         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
16393         (tls_local_dynamic_base64): Ditto for operand 1.
16394
16395 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16396
16397         * function.c (expand_function_start): Initialize stack_check_probe_note
16398         only if the generic stack checking mechanism is used.
16399
16400 2011-05-11  Richard Guenther  <rguenther@suse.de>
16401
16402         PR tree-optimization/15256
16403         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
16404         (A & B) | C, combine (A op CST1) op CST2.
16405         (tree_ssa_forward_propagate_single_use_vars): Only bother to
16406         visit assigns that have uses.
16407
16408 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
16409
16410         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
16411         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
16412         (unpack_ts_type_common_value_fields): ...this.  Update comment.
16413         (unpack_value_fields): Adjust for renaming.
16414         (lto_input_ts_type_tree_pointers): Split into...
16415         (lto_input_ts_type_common_tree_pointer): ...this and...
16416         (lto_input_ts_type_non_common_tree_pointers): ...this.
16417         (lto_input_tree_pointers): Adjust for above split.
16418         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
16419         (pack_ts_type_common_value_fields): ...this.  Update comment.
16420         (lto_output_ts_type_tree_pointers): Split into...
16421         (lto_output_ts_type_common_tree_pointers): ...this and...
16422         (lto_output_ts_type_non_common_tree_pointers): ...this.
16423         (lto_output_tree_pointers): Adjust for above split.
16424         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
16425         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
16426         * stor-layout.c (vector_type_mode): Adjust location of mode field.
16427         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
16428         Define.
16429         (struct tree_type): Split into...
16430         (struct tree_type_common: ...this and...
16431         (struct tree_type_with_lang_specific): ...this and...
16432         (struct tree_type_non_common): ...this.  Adjust accessor macros
16433         accordingly.
16434         (TYPE_VALUES_RAW): Define.
16435         (union tree_node): Update for above changes.
16436         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
16437         TS_TYPE_NON_COMMON.
16438         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
16439         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
16440         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
16441         * treestructu.def (TS_TYPE): Remove.
16442         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
16443         Define.
16444
16445 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
16446
16447         PR debug/48159
16448         * tree-ssa.c (reset_debug_uses): New function.
16449         * tree-flow.h (reset_debug_uses): New prototype.
16450         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
16451         * tree-loop-distribution.c (generate_loops_for_partition): Call
16452         reset_debug_uses on the stmts that will be removed.  Keep around
16453         all debug stmts, don't count them as bits in partition bitmap.
16454         (generate_builtin): Don't count debug stmts or labels as bits in
16455         partition bitmap.
16456
16457 2011-05-11  Richard Guenther  <rguenther@suse.de>
16458
16459         * gimple.c (gimple_type_hash_1): Merge with ...
16460         (gimple_type_hash): ... this.
16461         (gtc_visit): Remove mode parameter and simplify accordingly.
16462         (gimple_types_compatible_p_1): Likewise.
16463         (gimple_types_compatible_p): Likewise.
16464         (iterative_hash_gimple_type): Likewise.
16465         (visit): Likewise.
16466         (gimple_type_eq): Adjust.
16467
16468 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16469
16470         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
16471         enters the branch create an anti edge in the opposite direction
16472         to prevent the creation of reg-moves.
16473         * modulo-sched.c: Adjust comment to reflect the fact we are
16474         scheduling closing branch.
16475         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
16476         (stage_count): New field in struct partial_schedule.
16477         (calculate_stage_count): New function.
16478         (normalize_sched_times): Rename to reset_sched_times and handle
16479         incrementing the sched time of the nodes by a constant value
16480         passed as parameter.
16481         (duplicate_insns_of_cycles): Skip closing branch.
16482         (sms_schedule_by_order): Schedule closing branch.
16483         (ps_insn_find_column): Handle closing branch.
16484         (sms_schedule): Call reset_sched_times and adjust the code to
16485         support scheduling of the closing branch.
16486         (ps_insert_empty_row): Update calls to normalize_sched_times
16487         and rotate_partial_schedule functions.
16488
16489 2011-05-11  Richard Guenther  <rguenther@suse.de>
16490
16491         PR middle-end/48953
16492         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
16493
16494 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
16495
16496         * opts.c (finish_options): Move warning settings from process_options.
16497         * toplev.c (process_options): Move warning settings to finish_options.
16498
16499 2011-05-11  Richard Guenther  <rguenther@suse.de>
16500
16501         PR tree-optimization/18041
16502         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
16503         (simplify_bitwise_binary): ... this.  Handle operand conversions
16504         by applying them to the result instead.
16505         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
16506
16507 2011-05-11  Richard Guenther  <rguenther@suse.de>
16508
16509         * gimple.c (gimple_canonical_types_compatible_p): Split out
16510         from gimple_types_compatible_p and friends.  Do not recurse
16511         to pointed-to types.
16512         (gimple_canonical_type_eq): Use it.
16513         (iterative_hash_canonical_type): Split out from
16514         iterative_hash_gimple_type and friends.  Do not recurse
16515         to pointed-to types.
16516         (gimple_canonical_type_hash): Use it, allocate the hash here.
16517
16518 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16519
16520         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
16521         recognizing doloop.
16522
16523 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16524
16525         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
16526         instead of PREV_INSN.
16527
16528 2011-05-11  Revital Eres  <revital.eres@linaro.org>
16529
16530         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
16531         * loop-doloop.c (doloop_condition_get): Likewise.
16532         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
16533         (doloop_end): New.
16534         * config/arm/arm.md (*addsi3_compare0): Remove "*".
16535
16536 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
16537
16538         * tree.def (CASE_LABEL_EXPR): Add an operand.
16539         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
16540
16541 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16542
16543         * c-decl.c (c_override_global_bindings_to_false): Remove.
16544         (global_bindings_p): Don't check
16545         c_override_global_bindings_to_false.
16546         * c-tree.h (c_override_global_bindings_to_false): Remove.
16547         * c-typeck.c (composite_type): Don't set
16548         c_override_global_bindings_to_false.
16549
16550 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
16551
16552         PR target/48857, 48495
16553         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
16554         (VSX_MODE): Ditto.
16555         (VSX_MOVE_MODE): Ditto.
16556         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
16557         VSX vector types.  Add V2DImode.
16558         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
16559         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
16560         (MODES_TIEABLE_P): Ditto.
16561
16562         * config/rs6000/rs6000.c (rs6000_emit_move): Use
16563         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
16564         VSX_VECTOR_MODE.
16565         (init_cumulative_args): Ditto.
16566         (rs6000_function_arg_boundary): Ditto.
16567         (rs6000_function_arg_advance_1): Ditto.
16568         (rs6000_function_arg): Ditto.
16569         (rs6000_function_ok_for_sibcall): Ditto.
16570         (emit_frame_save): Ditto.
16571         (rs6000_function_value): Ditto.
16572         (rs6000_libcall_value): Ditto.
16573
16574 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16575
16576         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16577         i386/darwin-lib.h to $libgcc_tm_file.
16578         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
16579
16580 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16581
16582         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
16583
16584 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16585
16586         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
16587         * config/rs6000/rs6000-tables.opt: New file (generated).
16588         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
16589         rs6000/rs6000-tables.opt to extra_options.
16590         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
16591         * config/rs6000/rs6000.c (rs6000_select): Remove.
16592         (processor_target_table): Move contents to rs6000-cpus.def.
16593         (darwin_rs6000_override_options): Check
16594         global_options_set.x_rs6000_cpu_index instead of
16595         rs6000_select[1].string.
16596         (rs6000_option_override_internal): Likewise.
16597         (rs6000_handle_option): Don't assert that global structures are in
16598         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
16599         (rs6000_default_cpu): New variable.
16600         (rs6000_file_start): Set it instead of local default_cpu.  Check
16601         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
16602         global_options_set.x_rs6000_tune_index instead of rs6000_select.
16603         (rs6000_darwin_file_start): Check rs6000_default_cpu and
16604         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
16605         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
16606         rs6000_select): Remove.
16607         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
16608         Remove.
16609         (mcpu=, mtune=): Use Var, Init, Enum and Save.
16610         * config/rs6000/t-rs6000
16611         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
16612         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16613         global_options_set.x_rs6000_cpu_index instead of
16614         rs6000_select[1].string.
16615         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
16616         global_options_set.x_rs6000_cpu_index instead of
16617         rs6000_select[1].string.
16618
16619 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
16620
16621         * config.gcc (libgcc_tm_file): Define instead of including files
16622         from ../../libgcc/config/ in tm_file.
16623         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
16624         * configure: Regenerate.
16625         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
16626         libgcc_tm.h, cs-libgcc_tm.h): New.
16627         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
16628         (clean): Remove libgcc_tm.h.
16629         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
16630         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
16631         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
16632
16633 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
16634
16635         PR target/48896
16636         * config/avr/avr.c (avr_ret_register): Return unsigned int
16637         instead of int.
16638         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
16639         it to avr_libcall_value.
16640         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
16641         expand_expr.
16642         (avr_expand_binop_builtin): Ditto.
16643         (avr_expand_unop_builtin): Ditto.
16644
16645 2011-05-10  DJ Delorie  <dj@redhat.com>
16646
16647         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16648         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16649         * config/rx/rx.c (rx_align_for_label): Add label and
16650         uses_threshold parameters.  Do not align when the label is not
16651         used enough.
16652         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16653
16654 2011-05-10  Richard Guenther  <rguenther@suse.de>
16655
16656         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16657         a series of conversions and apply foldings similar to what
16658         fold-const does.
16659         (tree_ssa_forward_propagate_single_use_vars): Call it.
16660
16661 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
16662
16663         PR tree-optimization/48611
16664         PR tree-optimization/48794
16665         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16666         referenced from RESX or EH_DISPATCH arguments.
16667
16668         PR debug/48928
16669         * dfp.c (decimal_to_decnumber): Handle conversion from
16670         dconst{1,2,m1,half}.
16671
16672 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16673
16674         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16675         for !flag_prefer_avx128.
16676         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16677
16678 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16679
16680         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16681         (fold_ternary_loc): Use expr_location_or.
16682
16683 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16684
16685         PR debug/48853
16686         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16687         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16688         Pmode and mem_mode is not VOIDmode.
16689
16690 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
16691
16692         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16693         TYPE_QUAL_RESTRICT): Convert to enum.
16694
16695 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16696
16697         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16698         (const_pow2_1_to_8_operand): Ditto.
16699         (const_pow2_1_to_128_operand): Ditto.
16700         (const_pow2_1_to_32768_operand): Ditto.
16701         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16702         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
16703         in insn constraint to check integer value of operand 3.
16704         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16705
16706         (PINSR_MODE): New mode iterator.
16707         (sse2p4_1): New mode attribute.
16708         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16709         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16710         iterator.  Use const_int_operand instead of
16711         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
16712         exact_log2 in insn constraint to check integer value of operand 3.
16713
16714 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16715
16716         * config/i386/sse.md (blendbits): Remove mode attribute.
16717         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16718         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16719         Check integer value of operand 3 in insn constraint.
16720
16721 2011-05-09  Richard Guenther  <rguenther@suse.de>
16722
16723         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16724         for diagnostics.
16725         (lto_symtab_merge): Likewise.  Do not register types here.
16726         (lto_symtab_merge_decls_2): Likewise.
16727         (lto_symtab_merge_decls_1): Likewise.
16728         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16729         * gimple.c (enum gtc_mode): Declare.
16730         (gimple_types_compatible_p): Make static.
16731
16732 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16733
16734         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16735         temporary register to match Pmode.
16736
16737 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16738
16739         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16740         and *vec_concatv4si_1_avx.
16741
16742 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16743
16744         PR rtl-optimization/48927
16745         * ira-conflicts.c (commutative_constraint_p): Use
16746         recog_data.alternative_enabled_p to disable alternatives where
16747         "enabled" attribute is false.
16748         (get_dup_num): Ditto.
16749         * ira-lives.c (single_reg_class): Ditto.
16750         (ira_implicitly_set_insn_hard_regs): Ditto.
16751
16752 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16753
16754         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16755         (dataflow_set_preserve_mem_locs): Likewise.
16756
16757 2011-05-09  Philipp Thomas  <pth@suse.de>
16758
16759         * config/mep/mep.c (mep_validate_vliw): Syntax description
16760         should not be translated.
16761
16762 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
16763
16764         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16765         * config/mips/mips-tables.opt: New file (generated).
16766         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16767         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16768         MIPS_ARCH_OPTION_NATIVE): Define.
16769         * config/mips/mips.c (mips_cpu_info_table): Move contents to
16770         mips-cpus.def.
16771         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16772         mips_parse_cpu): Remove.
16773         (mips_cpu_info_from_opt, mips_default_arch): New.
16774         (mips_handle_option): Don't assert that global structures are in
16775         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16776         (mips_option_override): Use new variables and functions to set
16777         state of these options.  Use strcmp to check for individual CPU names.
16778         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16779         definition.
16780         * config/mips/mips.opt (march=): Use ToLower and Enum.
16781         (mips): Use ToLower, Enum and Var.
16782         (mtune=): Use ToLower and Enum.
16783         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16784
16785 2011-05-08  Jan Hubicka  <jh@suse.cz>
16786
16787         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16788         Arrange type pairs to be UID ordered.
16789         (gimple_lookup_type_leader): Make inline.
16790
16791 2011-05-09  Nick Clifton  <nickc@redhat.com>
16792
16793         PR target/48899
16794         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16795         PROCESSOR_DEFAULT.
16796
16797         PR target/48897
16798         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16799         variable 's'.
16800
16801 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
16802
16803         * combine.c (simplify_comparison): Abstract out parts into...
16804         (simplify_compare_const): ... new function.
16805         (try_combine): Generalize parallel arithmetic/compare combining
16806         to call simplify_compare_const() and CANONICALIZE_COMPARE().
16807
16808 2011-05-08  Jan Hubicka  <jh@suse.cz>
16809
16810         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16811         (cgraph_create_virtual_clone): Call hooks once virtual clone
16812         is finished.
16813         * cgraph.h (cgraph_clone_node): Update prototype.
16814         * ipa-cp.c (ipcp_estimate_growth): Use
16815         estimate_ipcp_clone_size_and_time.
16816         * ipa-inline-transform.c (clone_inlined_nodes): Update.
16817         * lto-cgraph.c (input_node): Update.
16818         * ipa-inline.c (recursive_inlining): Update.
16819         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16820         (evaluate_conditions_for_known_args): Break out from ...
16821         (evaluate_conditions_for_edge): ... here.
16822         (evaluate_conditions_for_ipcp_clone): New function.
16823         (inline_node_duplication_hook): Update clone summary based
16824         on parameter map.
16825         (estimate_callee_size_and_time): Rename to ...
16826         (estimate_node_size_and_time): take NODE instead of EDGE;
16827         take POSSIBLE_TRUTHS as argument.
16828         (estimate_callee_size_and_time): Update.
16829         (estimate_ipcp_clone_size_and_time): New function.
16830         (do_estimate_edge_time): Update.
16831
16832 2011-05-08  Richard Guenther  <rguenther@suse.de>
16833
16834         PR middle-end/48908
16835         PR middle-end/48905
16836         * expmed.c (expand_shift_1): Compute adjusted constant shift
16837         amount manually.
16838
16839 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16840
16841         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16842
16843 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16844
16845         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16846
16847 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16848
16849         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16850
16851 2011-05-07  Jan Hubicka  <jh@suse.cz>
16852
16853         * ipa-inline-transform.c (inline_call): Account when program size
16854         decreases.
16855         * ipa-inline.c (relative_time_benefit): New function.
16856         (edge_badness): Reorganize to be power 2 based; fix thinko when
16857         computing badness for negative growth; update comments to match
16858         reality; better dumps.
16859
16860 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16861
16862         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16863         type to bool and adjust comment.
16864         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16865         (fold_mathfn_compare): Remove calls to global_bindings_p.
16866         (fold_inf_compare): Likewise.
16867         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16868         * c-tree.h (global_bindings_p): Adjust prototype.
16869         * c-decl.c (global_bindings_p): Return bool and simplify.
16870
16871 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
16872
16873         PR tree-optimization/48837
16874         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16875         when accumulator transformation is performed.
16876
16877 2011-05-06  Jan Hubicka  <jh@suse.cz>
16878
16879         * i386.h (ix86_tune_indices): Add
16880         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16881         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16882         * i386.c (initial_ix86_tune_features): Add
16883         X86_SOFTARE_PREFETCHING_BENEFICIAL.
16884         (software_prefetching_beneficial_p): Remove predicate.
16885         (ix86_option_override_internal): Use new macro.
16886
16887 2011-05-06  Jan Hubicka  <jh@suse.cz>
16888
16889         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16890
16891 2011-05-06  Jan Hubicka  <jh@suse.cz>
16892
16893         * cgraph.c (cgraph_add_thunk): Create real function node instead
16894         of alias node; finalize it and mark needed/reachale; arrange visibility
16895         to be right and add it into the corresponding same comdat group list.
16896         (dump_cgraph_node): Dump thunks.
16897         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16898         cgraph_function_with_gimple_body_p,
16899         cgraph_first_function_with_gimple_body,
16900         cgraph_next_function_with_gimple_body): New functions.
16901         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16902         New macros.
16903         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16904         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16905         * cgraphunit.c (cgraph_finalize_function): Only look into possible
16906         devirtualization when optimizing.
16907         (verify_cgraph_node): Verify thunks.
16908         (cgraph_analyze_function): Analyze thunks.
16909         (cgraph_mark_functions_to_output): Output thunks only in combination
16910         with function they are assigned to.
16911         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16912         alias into normal node.
16913         (assemble_thunks): New functoin.
16914         (cgraph_expand_function): Use it.
16915         * lto-cgraph.c (lto_output_node): Stream thunks.
16916         (input_overwrite_node): Stream in thunks.
16917         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16918         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16919         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16920         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16921         (inline_analyze_function): Do not care about thunk jump functions.
16922         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16923         * ipa-prop.c (ipa_prop_write_jump_functions): Use
16924         cgraph_function_with_gimple_body_p.
16925         * passes.c (do_per_function_toporder): Use
16926         cgraph_function_with_gimple_body_p.
16927         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16928         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16929         (function_called_by_processed_nodes_p): Likewise.
16930
16931 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16932
16933         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16934         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16935         entries.
16936         (mabi=): Replace with separate entries for mabi=altivec,
16937         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16938         mabi=ieeelongdouble and mabi=ibmlongdouble.
16939         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16940         check for -mabi=spe without SPE ABI support here.
16941         (rs6000_handle_option): Replace OPT_mabi_ handling with
16942         OPT_mabi_altivec and OPT_mabi_spe handling.
16943
16944 2011-05-06  Cary Coutant  <ccoutant@google.com>
16945
16946         * dwarf2out.c (contains_subprogram_definition): New function.
16947         (should_move_die_to_comdat): Call it.
16948
16949 2011-05-06  Jeff Law  <law@redhat.com>
16950
16951         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16952         remove_ctrl_stmt_and_useless_edges.
16953         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16954         (fixup_template_block, thread_single_edge): Likewise.
16955         (mark_threaded_blocks): Use THREAD_TARGET.
16956
16957 2011-05-06  Alan Modra  <amodra@gmail.com>
16958
16959         PR target/48900
16960         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16961         const0_rtx as the arg to the dummy __tls_get_addr libcall.
16962
16963 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16964
16965         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16966         constraint modifier to "r".
16967
16968 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16969
16970         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16971         fall through for OPT_mcmodel_.
16972
16973 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16974
16975         * config/s390/s390.c (s390_asm_trampoline_template): Comment
16976         instruction sizes.
16977         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16978
16979 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16980
16981         PR target/47930
16982         * config/arm/arm.opt (marm): Document it.
16983         (mthumb): Reject negative variant.
16984
16985 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16986
16987         PR target/48898
16988         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16989         Fix typo in "ccvt" variable name.
16990
16991 2011-05-06  Tristan Gingold  <gingold@adacore.com>
16992
16993         PR target/48895
16994         * config/vms/vms-ar.c (main): Remove cwd variable.
16995
16996 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
16997
16998         PR debug/48902
16999         * var-tracking.c (prepare_call_arguments): Move else before #endif.
17000
17001 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
17002
17003         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
17004         * gimplify.c (gimplify_switch_expr): Likewise.
17005         * omp-low.c (expand_omp_sections): Likewise.
17006         * tree-eh.c (lower_try_finally_switch): Likewise.
17007         (lower_eh_dispatch): Likewise.
17008         * tree.h (build_case_label): Declare.
17009         * tree.c (build_case_label): Define.
17010
17011 2011-05-05  Jason Merrill  <jason@redhat.com>
17012
17013         PR c++/40975
17014         * tree-inline.c (copy_tree_r): Use copy_statement_list.
17015         (copy_statement_list): Don't recurse.
17016         * stor-layout.c (copy_self_referential_tree_r): Don't allow
17017         STATEMENT_LIST.
17018
17019 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17020
17021         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
17022         through from -mfpu= handling.
17023         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
17024
17025 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
17026
17027         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
17028         POST_MODIFY.
17029
17030 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
17031
17032         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
17033         for 11.31.
17034         (hppa[12]*-*-hpux11*): Ditto.
17035         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
17036         * config/ia64/hpux-unix2003.h: New.
17037         * config/pa/pa-hpux1131.opt: New.
17038         * config/pa/pa-hpux1131.h: New.
17039         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
17040         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
17041         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
17042
17043 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17044
17045         PR debug/48853
17046         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
17047         instead of mode as 3rd argument to recursive call.
17048         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
17049         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
17050         VOIDmode.
17051         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
17052         don't give up if mode is Pmode and mem_mode is not VOIDmode.
17053         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
17054         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
17055
17056 2011-05-05  Julian Brown  <julian@codesourcery.com>
17057
17058         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
17059         parenthesis in D-register case.
17060
17061 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17062
17063         * opt-functions.awk (var_type_struct): Handle Enum options.
17064         * optc-gen.awk: Don't check range of variables of character type.
17065         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
17066         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
17067         rs6000_sdata_name, rs6000_explicit_options): Remove.
17068         (rs6000_option_override_internal): Check for -malign-power here.
17069         Use global_options_set instead of rs6000_explicit_options.
17070         (rs6000_parse_fpu_option): Remove.
17071         (rs6000_handle_option): Access variables via opts and opts_set
17072         pointers.  Use error_at and warning_at.  Add fall-through
17073         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
17074         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
17075         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
17076         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
17077         here.  Don't use rs6000_parse_fpu_option.
17078         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
17079         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
17080         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
17081         (mrecip=): Use Var.
17082         (mspe): Use Var and Save.
17083         (mtraceback=): Use Enum and Var.
17084         (rs6000_traceback_type): New Enum and EnumValue entries.
17085         (mfloat-gprs=): Use Enum, Var and Save.
17086         (rs6000_float_gprs): New Enum and EnumValue entries.
17087         (mlong-double-): use Var and Save.
17088         (msched-costly-dep=, minsert-sched-nops=): Use Var.
17089         (malign-): Use Enum and Var.
17090         (rs6000_alignment_flags): New Enum and EnumValue entries.
17091         (mfpu=): Use Enum.
17092         (fpu_type_t): New Enum and EnumValue entries.
17093         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17094         global_options_set instead of rs6000_explicit_options.
17095         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17096         global_options_set instead of rs6000_explicit_options.
17097         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17098         global_options_set instead of rs6000_explicit_options.
17099         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
17100         global_options_set instead of rs6000_explicit_options.
17101         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
17102         global_options_set instead of rs6000_explicit_options.
17103         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17104         global_options_set instead of rs6000_explicit_options.
17105         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
17106         definition.
17107         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17108         global_options_set instead of rs6000_explicit_options.
17109         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
17110         (rs6000_cmodel): New Enum and EnumValue entries.
17111         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
17112         global_options_set instead of rs6000_explicit_options.
17113         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
17114         (mtls-size=): Use Enum and Var.
17115         (rs6000_tls_size): New Enum and EnumValue entries.
17116
17117 2011-05-05  Michael Matz  <matz@suse.de>
17118
17119         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
17120         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
17121         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
17122         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
17123         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
17124         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
17125         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
17126         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
17127         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
17128         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
17129         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
17130         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
17131         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
17132         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
17133         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
17134         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
17135
17136 2011-05-05  Richard Guenther  <rguenther@suse.de>
17137
17138         * expmed.c (expand_variable_shift): Rename to ...
17139         (expand_shift_1): ... this.  Take an expanded shift amount.
17140         For rotates recurse directly not building trees for the shift amount.
17141         (expand_variable_shift): Wrap around expand_shift_1.
17142         (expand_shift): Adjust.
17143
17144 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
17145
17146         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
17147
17148 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17149
17150         * tree.h (get_pending_sizes): Remove prototype.
17151         (put_pending_size): Likewise.
17152         (put_pending_sizes): Likewise.
17153         * stor-layout.c (pending_sizes): Delete.
17154         (get_pending_sizes): Likewise.
17155         (put_pending_size): Likewise.
17156         (put_pending_sizes): Likewise.
17157         (variable_size): Do not call put_pending_size and tidy up.
17158         * function.h (struct function): Remove dont_save_pending_sizes_p.
17159         * lto-streamer-in.c (input_function): Do not stream it.
17160         * lto-streamer-out.c (output_function): Likewise.
17161         * tree-inline.c (initialize_cfun): Do not copy it.
17162         * c-decl.c (store_parm_decls): Do not set it.
17163         * omp-low.c (create_task_copyfn): Likewise.
17164         * tree-optimize.c (tree_rest_of_compilation): Likewise.
17165
17166 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
17167
17168         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
17169         conditions.
17170         (*movdf_internal): Ditto.
17171         (*movdf_internal_nointeger): Ditto.
17172         (*movsf_internal): Ditto.
17173
17174 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
17175
17176         * c-decl.c (finish_decl): Don't call get_pending_sizes.
17177         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
17178         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
17179         (c_variable_size): Remove.
17180         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
17181         call put_pending_sizes.
17182         (get_parm_info): Add parameter expr.  Use it to set
17183         arg_info->pending_sizes.
17184         (store_parm_decls): Use arg_info->pending_sizes instead or calling
17185         get_pending_sizes.
17186         * c-parser.c (c_parser_parms_declarator): Update call to
17187         c_parser_parms_list_declarator.
17188         (c_parser_parms_list_declarator): Take parameter expr.  Update
17189         call to push_parm_decl.  Update recursive call.  Don't call
17190         get_pending_sizes.  Update calls to get_parm_info.
17191         (c_parser_objc_method_definition): Update calls to
17192         c_parser_objc_method_decl and objc_start_method_definition.
17193         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
17194         (c_parser_objc_method_decl): Add parameter expr.  Update call to
17195         grokparm.
17196         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
17197         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
17198         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
17199
17200 2011-05-05  Michael Hope  <michael.hope@linaro.org>
17201
17202         PR pch/45979
17203         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
17204         __ARM_EABI__ hosts.
17205
17206 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17207
17208         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17209         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
17210         (spu_output_mi_thunk): New function.
17211
17212 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17213
17214         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
17215         targetm.asm_out.print_operand.
17216         * config/sol2.c: Include target.h.
17217
17218 2011-05-04  Jan Hubicka  <jh@suse.cz>
17219
17220         * ipa-inline.c (reset_edge_caches): New function.
17221         (update_caller_keys): Add check_inlinablity_for; do not
17222         reset edge caches; remove now unnecesary loop.
17223         (update_callee_keys): Add comments; reset node_growth_cache of callee.
17224         (update_all_callee_keys): Likewise.
17225         (inline_small_functions): Sanity check cache; update code
17226         recomputing it.
17227
17228 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
17229
17230         PR rtl-optimization/47612
17231         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
17232         as the last insn of the sequence to be moved.
17233
17234 2011-05-04  Tobias Burnus  <burnus@net-b.de>
17235
17236         PR fortran/48864
17237         * doc/invoke.texi (Ofast): Document that it
17238         enables Fortran's -fno-protect-parens.
17239
17240 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17241
17242         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
17243
17244 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17245
17246         * stor-layout.c (variable_size): Do not issue errors.
17247
17248 2011-05-04  Richard Guenther  <rguenther@suse.de>
17249
17250         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
17251         for array-ref indices.
17252         (tree_coverage_counter_addr): Likewise.
17253         (build_fn_info_type): Use size_int for index types.
17254         (build_gcov_info): Likewise.
17255
17256 2011-05-04  Richard Guenther  <rguenther@suse.de>
17257
17258         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
17259         to build_int_cst.
17260         * c-typeck.c (really_start_incremental_init): Use bitsize_int
17261         for constructor indices.
17262         (push_init_level): Likewise.
17263
17264 2011-05-04  Richard Guenther  <rguenther@suse.de>
17265
17266         * explow.c (promote_mode): Move variable declarations before code.
17267
17268 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
17269
17270         * tree.h (build_function_type_array): Declare.
17271         (build_varargs_function_type_array): Declare.
17272         (build_function_type_vec, build_varargs_function_type_vec): Define.
17273         * tree.c (build_function_type_array_1): New function.
17274         (build_function_type_array): New function.
17275         (build_varargs_function_type_array): New function.
17276
17277 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
17278
17279         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
17280         before setting STMT_VINFO_TYPE.
17281
17282 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17283
17284         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
17285         instead of spu_pass_by_reference.
17286
17287 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17288
17289         * calls.c (emit_library_call_value_1): Invoke
17290         promote_function_mode hook on libcall arguments.
17291         * explow.c (promote_function_mode, promote_mode): Handle TYPE
17292         argument being NULL.
17293         * targhooks.c (default_promote_function_mode): Lisewise.
17294         * config/s390/s390.c (s390_promote_function_mode): Likewise.
17295         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
17296
17297         * doc/tm.texi: Document that TYPE argument might be NULL.
17298
17299 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17300
17301         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
17302
17303 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17304
17305         From Bernd Schmidt
17306         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
17307
17308 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17309
17310         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
17311         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
17312         Move ...
17313         * mips-tfile.c: ... here.
17314         Don't include coretypes.h, tm.h, filenames.h.
17315         (saber_stop): Remove definition and all calls.
17316         [__SABER__]: Remove.
17317         (__LINE__): Remove default.
17318         (Size_t, Ptrdiff_t): Remove definitions.
17319         Replace by size_t, ptrdiff_t.
17320         [!MIPS_DEBUGGING_INFO]: Remove.
17321         (SHASH_SIZE, THASH_SIZE): Remove defaults.
17322         (progname): Add const.
17323         (STATIC): Remove.
17324         Replace all uses by static.
17325         (ALIGN_SYMTABLE_OFFSET): Remove default.
17326         * mips-tdump.c: Don't include coretypes.h, tm.h.
17327         Remove !MIPS_IS_STAB guard.
17328         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
17329         $(TM_H), filenames.h dependencies.
17330         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
17331
17332 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17333
17334         From Jie Zhang
17335         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
17336         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
17337
17338 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17339
17340         From Bernd Schmidt
17341         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
17342         account and save/restore RETS.
17343         (PROFILE_BEFORE_PROLOGUE): Define.
17344         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
17345         the push insn to use predecrement.
17346
17347 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
17348
17349         From Jie Zhang
17350         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
17351
17352 2011-05-04  Nick Clifton  <nickc@redhat.com>
17353
17354         * config/mn10300/mn10300.c: Include cfgloop.h.
17355         (DUMP): New macro.
17356         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
17357         Lcc or a FLcc insn into the instruction stream.
17358         (mn10300_block_contains_call): New function.  Returns true if the
17359         given basic block contains a CALL insn.
17360         (mn10300_loop_contains_call_insn): New function.  Returns true if
17361         the given loop contains a CALL insn.
17362         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
17363         to use the SETLB and Lcc or FLcc insns.
17364         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
17365         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
17366         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
17367         disable the SETLB optimization.
17368         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
17369         __SETLB__ or __NO_SETLB__.
17370         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
17371         (movsf_internal): Handle MDR register.
17372         (cmpsi): Make visible.
17373         (setlb): New pattern.
17374         (Lcc): New pattern.
17375         (FLcc): New pattern.
17376
17377 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
17378
17379         PR target/48860
17380         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
17381         for reg<->xmm moves.
17382         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
17383         (vec_concatv2di_rex64_sse): Ditto.
17384         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
17385         (*vec_extractv2di_1_rex64): Ditto.
17386
17387         Revert:
17388         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17389
17390         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17391         reg<->xmm moves.
17392         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
17393
17394 2011-05-04  Richard Guenther  <rguenther@suse.de>
17395
17396         * tree.h (int_const_binop): Remove notrunc argument.
17397         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
17398         create integer constants that are properly truncated.
17399         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
17400         (const_binop): Remove zero notrunc argument to int_const_binop.
17401         (size_binop_loc): Likewise.
17402         (fold_div_compare): Likewise.
17403         (maybe_canonicalize_comparison_1): Likewise.
17404         (fold_comparison): Likewise.
17405         (fold_binary_loc): Likewise.
17406         (multiple_of_p): Likewise.
17407         * expr.c (store_constructor): Likewise.
17408         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17409         (maybe_fold_stmt_addition): Likewise.
17410         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
17411         * stor-layout.c (layout_type): Likewise.
17412         * tree-data-ref.c (tree_fold_divides_p): Likewise.
17413         * tree-sra.c (build_ref_for_offset): Likewise.
17414         (build_user_friendly_ref_for_offset): Likewise.
17415         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
17416         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17417         * tree-ssa-loop-niter.c (inverse): Likewise.
17418         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17419         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
17420         * tree-switch-conversion.c (check_range): Likewise.
17421         (build_constructors): Likewise.
17422         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17423         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
17424         (extract_range_from_assert): Likewise.
17425         (vrp_int_const_binop): Likewise.
17426         (extract_range_from_binary_expr): Likewise.
17427         (extract_range_from_unary_expr): Likewise.
17428         (check_array_ref): Likewise.
17429         (find_case_label_range): Likewise.
17430         (simplify_div_or_mod_using_ranges): Likewise.
17431         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
17432         comparing case labels for merging.
17433
17434 2011-05-03  Mark Wielaard  <mjw@redhat.com>
17435
17436         * dwarf2out.c (debug_str_hash_forced): Removed.
17437         (gen_label_for_indirect_string): Removed.
17438         (get_debug_string_label): Removed.
17439         (AT_string_form): Generate label directly.
17440         (output_indirect_string): Test indirect_string_node for
17441         DW_FORM_strp instead of checking label and refcount.
17442         (prune_indirect_string): Removed.
17443         (prune_unused_types): Don't check debug_str_hash_forced or
17444         call prune_indirect_string.
17445
17446 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17447
17448         PR other/48093
17449         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
17450
17451 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
17452
17453         PR debug/47994
17454         PR debug/47919
17455         * combine.c (try_combine): Skip debug insns at m_split tests.
17456
17457 2011-04-26  Mark Wielaard  <mjw@redhat.com>
17458
17459         PR42288
17460         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
17461         when info_section_emitted.
17462
17463 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
17464
17465         * config/mips/mips-opts.h: New.
17466         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
17467         to mips-opts.h.
17468         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
17469         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
17470         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
17471         via opts pointer.
17472         * config/mips/mips.h (enum mips_code_readable_setting): Move to
17473         mips-opts.h.
17474         (mips_abi, mips_code_readable): Don't declare.
17475         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
17476         (mabi=): Use Enum and Var.
17477         (mips_abi): New Enum and EnumValue entries.
17478         (mcode-readable=): Use Enum and Var.
17479         (mips_code_readable_setting): New Enum and EnumValue entries.
17480         (mr10k-cache-barrier=): Use Enum and Var.
17481         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
17482
17483 2011-05-03  Jan Hubicka  <jh@suse.cz>
17484
17485         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
17486         replace hash by pointer map.
17487         (cgraph_node_set_element_def, cgraph_node_set_element,
17488         const_cgraph_node_set_element, varpool_node_set_element_def,
17489         varpool_node_set_element, const_varpool_node_set_element): Remove.
17490         (free_cgraph_node_set, free_varpool_node_set): New function.
17491         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
17492         * tree-emutls.c: Free varpool node set.
17493         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
17494         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17495         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
17496         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17497         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
17498         Move here from ipa.c; implement using pointer_map
17499         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
17500         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
17501         debug_cgraph_node_set, varpool_node_set_new,
17502         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
17503         dump_varpool_node_set, debug_varpool_node_set):
17504         Move to ipa-uitls.c.
17505         * passes.c (ipa_write_summaries): Update.
17506
17507 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17508
17509         From Mike Frysinger:
17510         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
17511         bf542/bf544/bf547/bf548/bf549.
17512
17513 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17514
17515         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
17516
17517 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17518
17519         From Bernd Schmidt:
17520         * config/bfin/bfin.md (MOVCC): New mode_macro.
17521         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
17522         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
17523         comments from generated assembly.
17524
17525 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17526
17527         From Bernd Schmidt
17528         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
17529         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
17530         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
17531         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
17532         * config/bfin/lib1funcs.asm (___muldi3): New function.
17533
17534 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17535
17536         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
17537         build_function_type_list instead of build_function_type.
17538         Rearrange initialization of `args' to do so.
17539
17540 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17541
17542         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
17543         instead of build_function_type.
17544
17545 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17546
17547         * config/rs6000/rs6000.c (spe_init_builtins): Call
17548         build_function_type_list instead of build_function_type.
17549         (paired_init_builtins, altivec_init_builtins): Likewise.
17550         (builtin_function_type): Likewise.
17551
17552 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17553
17554         * config/sh/sh.c (sh_media_init_builtins): Call
17555         build_function_type_list instead of build_function_type.
17556
17557 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17558
17559         * config/sparc/sparc.c (sparc_file_end): Call
17560         build_function_type_list instead of build_function_type.
17561
17562 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17563
17564         * config/alpha/alpha.c (alpha_init_builtins): Call
17565         build_function_type_list instead of build_function_type.
17566
17567 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17568
17569         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
17570         build_function_type_list instead of build_function_type.
17571
17572 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17573
17574         * config/iq2000/i2000.c (iq2000_init_builtins): Call
17575         build_function_type_list instead of build_function_type.
17576         Delete `endlink' variable.
17577
17578 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17579
17580         * config/avr/avr.c (avr_init_builtins): Call
17581         build_function_type_list instead of build_function_type.
17582
17583 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17584
17585         * config/picochip/picochip.c (picochip_init_builtins): Call
17586         build_function_type_list instead of build_function_type.
17587         Delete `endlink' variable.
17588
17589 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
17590
17591         * config/bfin/bfin.c (bfin_init_builtins): Call
17592         build_function_type_list instead of build_function_type.
17593
17594 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17595
17596         From Bernd Schmidt
17597         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
17598         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
17599
17600 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17601
17602         From Jie Zhang:
17603         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
17604         libbffastfp overrides libgcc when -mfast-fp.
17605
17606 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17607
17608         Originally from Bernd Schmidt
17609         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
17610         * config/bfin/bfin.c (override_options): Test it and error if
17611         TARGET_FDPIC.
17612
17613 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
17614
17615         Originally From Bernd Schmidt
17616         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
17617         FD-PIC.
17618
17619 2011-05-03  Jeff Law  <law@redhat.com>
17620
17621         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
17622         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
17623         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
17624         than accessing AUX field directly.  Free the AUX field before
17625         clearing it.
17626         (thread_block, thread_through_loop_header): Likewise.
17627         (thread_single_edge, mark_threaded_blocks): Likewise.
17628         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
17629         (register_jump_thread): Do not attempt to thread to a NULL edge.
17630
17631 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17632
17633         * function.c (init_function_start): Call decide_function_section.
17634         * varasm.c (decide_function_section): New function.
17635         (assemble_start_function): When not using
17636         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
17637         or first_function_block_is_cold.
17638         * rtl.h (decide_function_section): Declare.
17639
17640 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
17641             Jakub Jelinek  <jakub@redhat.com>
17642
17643         PR target/48774
17644         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17645         only succeed if req_mode is the same as set_mode.
17646
17647 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17648
17649         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17650         * genemit.c (gen_exp): Handle RETURN.
17651         * emit-rtl.c (verify_rtx_sharing): Likewise.
17652         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17653         * rtl.c (copy_rtx): RETURN is shared.
17654         * rtl.h (enum global_rtl_index): Add GR_RETURN.
17655         (ret_rtx): New.
17656         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17657         * config/s390/s390.c (s390_emit_epilogue): Likewise.
17658         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17659         * config/cris/cris.c (cris_expand_return): Likewise.
17660         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17661         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17662         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17663         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17664         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17665         Likewise.
17666         * config/v850/v850.c (expand_epilogue): Likewise.
17667         * config/bfin/bfin.c (bfin_expand_call): Likewise.
17668         * config/arm/arm.md (epilogue): Likewise.
17669         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17670         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17671         variable to ret_reg.
17672
17673 2011-05-03  Richard Guenther  <rguenther@suse.de>
17674
17675         PR lto/48846
17676         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17677         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17678         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17679
17680 2011-05-03  Richard Guenther  <rguenther@suse.de>
17681
17682         * c-decl.c (grokdeclarator): Instead of looking at
17683         TREE_OVERFLOW check if the constant fits in the index type.
17684
17685 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17686
17687         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17688         (vec_store_lanes<mode><mode>): Likewise.
17689
17690 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17691
17692         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17693         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17694         convert_optab_index values.
17695         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17696         * genopinit.c (optabs): Initialize the new optabs.
17697         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17698         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17699         (expand_STORE_LANES): New functions.
17700         * tree.h (build_array_type_nelts): Declare.
17701         * tree.c (build_array_type_nelts): New function.
17702         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17703         (vect_model_load_cost): Likewise.
17704         (vect_store_lanes_supported, vect_load_lanes_supported)
17705         (vect_record_strided_load_vectors): Declare.
17706         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17707         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17708         (vect_transform_strided_load): Split out statement recording into...
17709         (vect_record_strided_load_vectors): ...this new function.
17710         * tree-vect-stmts.c (create_vector_array, read_vector_array)
17711         (write_vector_array, create_array_ref): New functions.
17712         (vect_model_store_cost): Add store_lanes_p argument.
17713         (vect_model_load_cost): Add load_lanes_p argument.
17714         (vectorizable_store): Try to use store-lanes functions for
17715         interleaved stores.
17716         (vectorizable_load): Likewise load-lanes and loads.
17717         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17718         to vect_model_store_cost.
17719         (vect_build_slp_tree): Likewise vect_model_load_cost.
17720
17721 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17722
17723         * hooks.h (hook_bool_mode_uhwi_false): Declare.
17724         * hooks.c (hook_bool_mode_uhwi_false): New function.
17725         * target.def (array_mode_supported_p): New hook.
17726         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17727         * doc/tm.texi: Regenerate.
17728         * stor-layout.c (mode_for_array): New function.
17729         (layout_type): Use it.
17730         * config/arm/arm.c (arm_array_mode_supported_p): New function.
17731         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17732
17733 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
17734
17735         PR target/48723
17736         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17737         for -fstack-check if the size to allocate is negative.
17738
17739 2011-05-02  Lawrence Crowl  <crowl@google.com>
17740
17741         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17742         (timevar_cond_start): New for starting a timer only when it is not
17743         already running.
17744         (timevar_cond_stop): New for stopping a timer when it was not already
17745         running.
17746
17747         * timevar.c (timevar_stop): Enable start/stop timers to start again.
17748         (timevar_cond_start): New as above.
17749         (timevar_cond_stop): New as above.
17750
17751         * timevar.def: Add start/stop timers for compiler phases,
17752         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17753         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17754         and TV_PHASE_FINALIZE.
17755         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17756         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17757         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17758         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17759         Make unused TV_OVERLOAD into a start/stop timer.
17760
17761         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17762         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17763         to indicate that they are start/stop timers.
17764
17765         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17766         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17767         Move initialization to do_compile.
17768         (do_compile): Add initialization from above.
17769         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17770
17771         * c-decl.c (c_write_global_declarations): Add start/stop of
17772         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17773
17774         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17775         or TV_PARSE_INLINE, as appropriate.
17776         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17777         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17778
17779 2011-05-02  Jason Merrill  <jason@redhat.com>
17780
17781         PR c++/40975
17782         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17783
17784 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
17785
17786         PR c/35445
17787         * c-decl.c (finish_decl): Only create a composite if the types are
17788         compatible.
17789
17790 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17791
17792         * config/fr30/fr30-protos.h (Mmode): Don't define.
17793         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
17794         definition where used.
17795         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17796         define.  Expand definitions where used.
17797         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17798         Expand definitions where used.
17799         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17800         rx_function_arg, rx_function_arg_advance,
17801         rx_function_arg_boundary): Expand definitions of those macros.
17802         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
17803         definition where used.
17804
17805 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17806
17807         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17808         reg<->xmm moves.
17809         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17810         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
17811         with *movv2sf_internal_rex64_avx.
17812         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17813         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17814         Use %v prefix in insn mnemonic to handle TARGET_AVX.
17815         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
17816         "vex" in "prefix" attribute calculation.
17817         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
17818
17819 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
17820
17821         PR target/47951
17822         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17823         inputs match the output.
17824
17825 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
17826
17827         PR target/47955
17828         * config/m68k/m68k.c (m68k_expand_prologue): Set
17829         current_function_static_stack_size.
17830
17831 2011-05-02   Jan Hubicka  <jh@suse.cz>
17832
17833         * lto-streamer.c (lto_streamer_cache_insert_1,
17834         lto_streamer_cache_lookup, lto_streamer_cache_create,
17835         lto_streamer_cache_delete): Use pointer map instead of hashtable.
17836         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17837
17838 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17839
17840         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17841         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17842         config/m68k/t-opts: New files.
17843         * config/m68k/m68k-tables.opt: New file (generated).
17844         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17845         extra_options and m68k/t-opts to tmake_file.
17846         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17847         (all_isas): Initialize using m68k-isas.def.
17848         (all_microarchs): Initialize using m68k-microarchs.def.
17849         (m68k_find_selection): Remove.
17850         (m68k_handle_option): Don't assert that global structures are in
17851         use.  Use error_at.  Access variables via opts pointer.  Don't
17852         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
17853         directly for -m68020-40 and -m68020-60.
17854         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17855         m68k_tune_entry here.
17856         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17857         to m68k-opts.h.
17858         (m68k_library_id_string): Remove declaration.
17859         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17860         (m68k_library_id_string): New Variable.
17861         (march=, mcpu=, mtune=): Use Enum and Var.
17862
17863 2011-05-02  Richard Guenther  <rguenther@suse.de>
17864
17865         * varasm.c (output_constructor_regular_field): Compute zero-based
17866         index with double-ints.  Make sure to ICE instead of producing
17867         wrong code.
17868         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17869         in asserts.  Properly use a signed type.
17870
17871 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17872
17873         * config/i386/sse.md (V): New mode iterator.
17874         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
17875         TARGET_SSE2.
17876         (V_256): Rename from AVX256MODE.
17877         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
17878         condition to all users.
17879         (VF1): Ditto.
17880         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
17881         condition to all users.
17882         (VF_128): Make V4SF mode unconditional.
17883         (VF_256): Rename from AVX256MODEF2P.
17884         (VI4F_128): Rename from SSEMODE4S.
17885         (VI8F_128): Rename from SSEMODE2D.
17886         (VI4F_256): Rename from AVX256MODE8P.
17887         (VI8F_256): Rename from AVX256MODE4P.
17888         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17889         (ssescalarmodesuffix): Remove SF and DF modes.
17890         (SSEMODE124): Remove.
17891         (SSEMODE1248): Ditto.
17892         (SSEMODEF2P): Ditto.
17893         (AVXMODEF2P): Ditto.
17894         (AVXMODEFDP): Ditto.
17895         (AVXMODEFSP): Ditto.
17896         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17897         unconditional.
17898         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
17899         unconditional.
17900         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17901         xop_pcmov_<mode>256.  Use V mode iterator.
17902
17903         Adjust RTX patterns globally for renamed mode attributes.
17904
17905 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17906
17907         * haifa-sched.c (sched_emit_insn): Emit insn before first
17908         non-scheduled insn.  Inform back-end about new insn.  Add
17909         new insn to scheduled_insns list.
17910
17911 2011-05-02  Richard Guenther  <rguenther@suse.de>
17912
17913         PR tree-optimization/48822
17914         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17915         (process_scc): Indicate which iteration we start.
17916
17917 2011-05-02  Jan Hubicka  <jh@suse.cz>
17918
17919         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17920         (lto_section_overrun): New.
17921         * lto-section-out.c (append_block): Rename to ...
17922         (lto_append_block): ... this one; export.
17923         (lto_output_1_stream): Move lto lto-streamer.h
17924         (lto_output_data_stream): Update.
17925         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17926         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17927         functions.
17928
17929 2011-05-02  Richard Guenther  <rguenther@suse.de>
17930
17931         * tree.c (tree_code_counts): New global array.
17932         (record_node_allocation_statistics): Count individual tree codes.
17933         (dump_tree_statistics): Dump individual code stats.
17934
17935 2011-05-01  Jan Hubicka  <jh@suse.cz>
17936
17937         * ipa-inline.c (caller_growth_limits): Fix thinko when
17938         looking for largest stack frame.
17939         * ipa-inline.h (dump_inline_summary): Declare.
17940         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17941         on stack usage.
17942         (dump_inline_summary): Export.
17943         (debug_inline_summary): Declare as DEBUG_FUNCTION.
17944
17945 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
17946
17947         * reginfo.c (memory_move_cost): Change rclass argument type form
17948         'enum reg_class' to reg_class_t.
17949         * reload.h (memory_move_cost): Update prototype.
17950         * postreload.c reload_cse_simplify_set): Change type dclass var to
17951         reg_class_t.
17952         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17953         Update prototype.
17954         (ira_allocate_and_set_costs): Change aclass argument type form
17955         'enum reg_class' to reg_class_t.
17956         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17957         Change aclass argument type to reg_class_t.
17958         (update_conflict_hard_reg_costs): Change type aclass and pref vars
17959         to reg_class_t.
17960         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17961         memory_move_cost call.
17962
17963         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17964         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17965         Change type tmp var to reg_class_t.
17966
17967 2011-04-30  Jan Hubicka  <jh@suse.cz>
17968
17969         * ipa-inline.c (can_inline_edge_p): Disregard limits when
17970         inlining into function with flatten attribute.
17971         (want_inline_small_function_p): Be more realistic about inlining
17972         cold calls where callee size grows.
17973
17974 2011-04-30  Jan Hubicka  <jh@suse.cz>
17975
17976         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17977         flags.
17978
17979 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
17980
17981         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17982         PRINT_OPERAND_PUNCT_VALID_P): Remove.
17983         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17984         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17985         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17986         (print_operand): Rename to...
17987         (sparc_print_operand): ...this. Make static. Adjust
17988         sparc_print_operand function call.
17989         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17990         functions.
17991
17992 2011-04-30  Jan Hubicka  <jh@suse.cz>
17993
17994         PR middle-end/48752
17995         * ipa-inline.c (early_inliner): Disable when doing late
17996         addition of function.
17997
17998 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
17999
18000         * dwarf2out.c (get_address_mode): New inline.
18001         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
18002         if not dwarf_strict emit
18003         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
18004         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
18005         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
18006         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
18007         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
18008         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
18009         mem_loc_descriptor callers.
18010         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18011         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
18012         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
18013         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
18014         (base_types): New variable.
18015         (get_base_type_offset, calc_base_type_die_sizes,
18016         base_type_for_mode, mark_base_types, base_type_cmp,
18017         move_marked_base_types): New functions.
18018         (calc_die_sizes): Assert that die_offset is 0 or equal to
18019         next_die_offset.
18020         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
18021         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
18022         callers.  If not dwarf_strict, call mem_loc_descriptor even for
18023         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
18024         (gen_subprogram_die): Don't give up on call site parameters
18025         with non-integral or large integral modes.  Adjust
18026         mem_loc_descriptor callers.
18027         (prune_unused_types): Call prune_unused_types_mark on base_types
18028         vector entries.
18029         (resolve_addr): Call mark_base_types.
18030         (dwarf2out_finish): Call move_marked_base_types.
18031
18032         PR tree-optimization/48809
18033         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
18034         type.
18035         (gen_inbound_check): Don't compute index_expr - range_min in utype
18036         again, instead reuse SSA_NAME initialized in build_arrays.
18037         Remove two useless gsi_for_stmt calls.
18038
18039 2011-04-29  Jeff Law  <law@redhat.com>
18040
18041         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
18042
18043 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18044
18045         * cgraph.h (cgraph_postorder): Remove declaration.
18046         * ipa-utils.h (ipa_free_postorder_info): Declare.
18047         (ipa_reverse_postorder): Likewise.
18048         * cgraphunit.c: Include ipa-utils.h.
18049         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
18050         * ipa-inline.c: Include ipa-utils.h.
18051         (ipa_inline): Update call to ipa_reverse_postorder.
18052         * ipa-pure-const.c (propagate_pure_const): Update call to
18053         ipa_reduced_postorder and ipa_print_order.  Call
18054         ipa_free_postorder_info to clean up.
18055         (propagate_nothrow): Likewise.
18056         * ipa-reference.c (propagate): Removed a useless call to
18057         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
18058         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
18059         * ipa.c: Include ipa-utils.h.
18060         (ipa_profile): Update call to ipa_reverse_postorder.
18061         (cgraph_postorder): Moved to...
18062         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
18063         (ipa_utils_print_order): Renamed to ipa_print_order.
18064         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
18065         comments.
18066         (ipa_free_postorder_info): New function.
18067         * passes.c: Include ipa-utils.h.
18068         (do_per_function_toporder): Update call to ipa_reverse_postorder.
18069         (ipa_write_summaries): Likewise.
18070         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
18071         (cgraphunit.o): Likewise.
18072         (ipa.o): Likewise.
18073         (ipa-inline.o): Likewise.
18074
18075 2011-04-29  Jan Hubicka  <jh@suse.cz>
18076
18077         * gcc.dg/tree-ssa/inline-10.c: New testcase.
18078         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
18079         * ipa-inline.h (clause_t): Turn into unsigned int.
18080         * ipa-inline-analysis.c (add_clause): Do more simplification.
18081         (and_predicates): Shortcut more cases.
18082         (predicates_equal_p): Move forward; check that clauses are properly
18083         ordered.
18084         (or_predicates): Shortcut more cases.
18085         (edge_execution_predicate): Rewrite as...
18086         (set_cond_stmt_execution_predicate): ... this function; handle
18087         __builtin_constant_p.
18088         (set_switch_stmt_execution_predicate): New .
18089         (compute_bb_predicates): New.
18090         (will_be_nonconstant_predicate): Update TODO.
18091         (estimate_function_body_sizes): Use compute_bb_predicates
18092         and free them later, always try to estimate if stmt is constant.
18093         (estimate_time_after_inlining, estimate_size_after_inlining):
18094         Gracefully handle optimized out edges.
18095         (read_predicate): Fix off by one error.
18096
18097 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
18098
18099         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
18100
18101 2011-04-27  Xinliang David Li  <davidxl@google.com>
18102
18103         * tree-profile.c (init_ic_make_global_vars): Set
18104         tls attribute on ic vars.
18105         * coverage.c (coverage_end_function): Initialize
18106         function_list with zero.
18107
18108 2011-04-29  Richard Guenther  <rguenther@suse.de>
18109
18110         * builtins.c (fold_builtin_classify_type): Use integer_type_node
18111         for the type of the result.
18112         (fold_builtin_isascii): Likewise.
18113         (fold_builtin_toascii): Use integer_type_node where appropriate.
18114         (fold_builtin_logb): Likewise.
18115         (fold_builtin_frexp): Likewise.
18116         (fold_builtin_strstr): Likewise.
18117         (fold_builtin_strpbrk): Likewise.
18118         (fold_builtin_fputs): Likewise.
18119         (fold_builtin_sprintf): Likewise.
18120         (fold_builtin_snprintf): Likewise.
18121         (fold_builtin_printf): Likewise.
18122         (do_mpfr_remquo): Use a proper type for the assigned constant.
18123         (do_mpfr_lgamma_r): Likewise.
18124         * dwarf2out.c (resolve_one_addr): Use size_int.
18125         * except.c (init_eh): Likewise.
18126         (assign_filter_values): Use integer_type_node for filter values.
18127         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
18128         indices.
18129         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
18130         for EH region numbers.
18131         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
18132         for the shift amount.
18133
18134 2011-04-29  Richard Guenther  <rguenther@suse.de>
18135
18136         * expr.h (expand_shift): Rename to ...
18137         (expand_variable_shift): ... this.
18138         (expand_shift): Take a constant shift amount.
18139         * expmed.c (expand_shift): Rename to ...
18140         (expand_variable_shift): ... this.
18141         (expand_shift): New wrapper around expand_variable_shift.
18142         * expr.c (convert_move, emit_group_load_1, emit_group_store,
18143         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
18144         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
18145         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
18146         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
18147         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
18148         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
18149         emit_store_flag_1, emit_store_flag): Likewise.
18150         * builtins.c (expand_builtin_signbit): Likewise.
18151         * calls.c (load_register_parameters): Likewise.
18152         * function.c (assign_parm_setup_block): Likewise.
18153         * lower-subreg.c (resolve_shift_zext): Likewise.
18154         * optabs.c (widen_bswap, expand_abs_nojump,
18155         expand_one_cmpl_abs_nojump, expand_float): Likewise.
18156         * spu/spu.c (spu_expand_extv): Likewise.
18157         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
18158
18159 2011-04-29  Richard Guenther  <rguenther@suse.de>
18160
18161         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
18162         for the remapped region number.
18163         * predict.c (build_predict_expr): Use integer_type_node for the
18164         predict kind.
18165         * fold-const.c (fold_binary_loc): Use integer_type_node for
18166         the shift amount.  Use a proper type for the PLUS_EXPR operand.
18167
18168 2011-04-29  Michael Matz  <matz@suse.de>
18169
18170         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
18171         other trees that just builtins.
18172         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
18173
18174 2011-04-29  Richard Guenther  <rguenther@suse.de>
18175
18176         * tree-nested.c (get_trampoline_type): Use size_int.
18177         (get_nl_goto_field): Likewise.
18178         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
18179         for all indexes.
18180         (lower_eh_constructs_2): Likewise.
18181         (lower_resx): Likewise.
18182         (lower_eh_dispatch): Likewise.
18183         * tree-mudflap.c (mf_build_string): Use size_int.
18184         (mudflap_register_call): Use integer_type_node for the flag.
18185         (mudflap_enqueue_constant): Use size_int.
18186         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
18187         instead of rebuilding it.
18188
18189 2011-04-29  Richard Guenther  <rguenther@suse.de>
18190
18191         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
18192         Handle OBJ_TYPE_REF.
18193         (find_func_aliases_for_call): Use it more consistently.
18194
18195 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
18196
18197         * haifa-sched.c (last_nondebug_scheduled_insn): New.
18198         (rank_for_schedule): Use it.
18199         (schedule_block): Set it.
18200
18201 2011-04-28  David Li  <davidxl@google.com>
18202
18203         * tree.c (crc32_string): Use crc32_byte.
18204         (crc32_byte): New function.
18205         * tree.h (crc32_byte): New function.
18206         * gcov.c (read_graph_file): Handle new cfg_cksum.
18207         (read_count_file): Ditto.
18208         * profile.c (instrument_values): Ditto.
18209         (get_exec_counts): Ditto.
18210         (read_profile_edge_counts): Ditto.
18211         (compute_branch_probabilities): Ditto.
18212         (compute_value_histograms): Ditto.
18213         (branch_prob): Ditto.
18214         (end_branch_prob): Ditto.
18215         * coverage.c (read_counts_file): Ditto.
18216         (get_coverage_counts): Ditto.
18217         (tree_coverage_counter_addr): Ditto.
18218         (coverage_checksum_string): Ditto.
18219         (coverage_begin_output): Ditto.
18220         (coverage_end_function): Ditto.
18221         (build_fn_info_type): Ditto.
18222         (build_fn_info_value): Ditto.
18223         * libgcov.c (gcov_exit): Ditto.
18224         * gcov-dump.c (tag_function): Ditto.
18225         (compute_checksum): Remove.
18226
18227 2011-04-29  Alan Modra  <amodra@gmail.com>
18228
18229         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18230         unspec plus offset.  Tidy macho code.
18231
18232 2011-04-29  Martin Jambor  <mjambor@suse.cz>
18233
18234         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
18235         node instead of a decl.  Update all callers.
18236         * cgraph.h: Update declaration.
18237
18238 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
18239
18240         PR tree-optimization/48765
18241         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
18242         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
18243         to indicate if loop aware SLP is being used.  Scan the statements
18244         and update the vectorization factor according to the type of
18245         vectorization before statement analysis.
18246         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
18247         pass it to vect_analyze_loop_operations.
18248         (vectorizable_reduction): Set number of copies to 1 in case of pure
18249         SLP statement.
18250         * tree-vect-stmts.c (vectorizable_conversion,
18251         vectorizable_assignment, vectorizable_shift,
18252         vectorizable_operation, vectorizable_type_demotion,
18253         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
18254         Likewise.
18255         (vectorizable_condition): Move the check that it is not SLP
18256         vectorization before the number of copies check.
18257         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
18258         to vectorize the loop using SLP.
18259
18260 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
18261
18262         PR middle-end/48597
18263         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
18264         inline asm.
18265
18266 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
18267
18268         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
18269         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
18270         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18271         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18272         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
18273         linux*.h headers.
18274         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
18275         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18276         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18277         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18278         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
18279         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
18280         REG_NAME.
18281         * config/i386/linux.h (REG_NAME): Don't define.
18282         * config/i386/linux64.h (REG_NAME): Don't define.
18283         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
18284         Undefine before defining.
18285
18286 2011-04-28  Jan Hubicka  <jh@suse.cz>
18287
18288         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
18289         nonconstant_names array.
18290         (estimate_function_body_sizes): Build nonconstant_names array; handle
18291         BUILT_IN_CONSTANT_P.
18292
18293 2011-04-28  Richard Guenther  <rguenther@suse.de>
18294
18295         PR bootstrap/48804
18296         Revert
18297         2011-04-28  Richard Guenther  <rguenther@suse.de>
18298
18299         * tree-ssa-structalias.c (solve_constraints): Build succ graph
18300         as late as possible.
18301
18302 2011-04-28  Richard Guenther  <rguenther@suse.de>
18303
18304         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
18305         (debug_constraint): Do it here.
18306         (dump_constraints): And here.
18307         (rewrite_constraints): And here.
18308         (dump_constraint_edge): Remove.
18309         (dump_constraint_graph): Rewrite to produce DOT output.
18310         (solve_constraints): Build succ graph as late as possible.
18311         Dump constraint graphs before and after solving.
18312
18313 2011-04-28  Richard Guenther  <rguenther@suse.de>
18314
18315         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18316         New function split out from ...
18317         (find_func_aliases): ... here.  Call it.
18318         (find_func_aliases_for_call): Likewise.
18319
18320 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18321
18322         * internal-fn.h (internal_fn_name_array): Declare.
18323         (internal_fn_flags_array): Likewise.
18324
18325 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18326
18327         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
18328         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
18329         Move from sse.md.
18330         (ssemodefsuffix): Remove.
18331         (ssevecmodesuffix): New mode attribute.
18332         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
18333         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18334         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18335         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18336         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
18337         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
18338         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
18339         ssemodesuffix mode attribute.
18340         (float splitters): Use ssevecmodesuffix mode attribute.
18341         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
18342         (sseinsmode): Rename from avxvecmode.
18343         (avxsizesuffix): Rename from avxmodesuffix.
18344         (sseintvecmode): Rename from avxpermvecmode.
18345         (ssedoublevecmode): Rename from ssedoublesizemode.
18346         (ssehalfvecmode): Rename from avxhalfvecmode.
18347         (ssescalarmode): Rename from avxscalarmode.
18348         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
18349         templates for ssemodesuffix mode attribute.
18350         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
18351         mode attribute.
18352
18353         Adjust RTX patterns globally for renamed mode attributes.
18354
18355 2011-04-27  Jan Hubcika  <jh@suse.cz>
18356
18357         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
18358         * ipa-inline-analysis.c: Include alloc-pool.h.
18359         (edge_predicate_pool): New.
18360         (trye_predicate_p): New function
18361         (false_predicate_p): New function.
18362         (add_clause): Sanity check that false clauses are "optimized";
18363         never add clauses to predicate that is already known to be false.
18364         (and_predicate): Use flase_predicate_p.
18365         (evaulate_predicate): Rename to ...
18366         (evaluate_predicate): ... this one; update all callers; assert
18367         that false is not listed among possible truths.
18368         (dump_predicate): Use true_predicate_p.
18369         (account_size_time): Use false_predicate_p.
18370         (evaulate_conditions_for_edge): Rename to ...
18371         (evaluate_conditions_for_edge) ... this one.
18372         (edge_set_predicate): New function.
18373         (inline_edge_duplication_hook): Duplicate edge predicates.
18374         (inline_edge_removal_hook): Free edge predicates.
18375         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
18376         (dump_inline_summary): Update.
18377         (estimate_function_body_sizes): Set edge predicates.
18378         (estimate_calls_size_and_time): Handle predicates.
18379         (estimate_callee_size_and_time): Update.
18380         (remap_predicate): Add toplev_predicate; update comment.
18381         (remap_edge_predicates): New function.
18382         (inline_merge_summary): Compute toplev predicate; update.
18383         (read_predicate): New function.
18384         (read_inline_edge_summary): Use it.
18385         (inline_read_section): Likewise.
18386         (write_predicate): New function.
18387         (write_inline_edge_summary): Use it.
18388         (inline_write_summary): Likewise.
18389         (inline_free_summary): Free alloc pool and edge summary vec.
18390
18391 2011-04-27  Richard Guenther  <rguenther@suse.de>
18392
18393         * tree-ssa-structalias.c (changed_count): Remove.
18394         (changed): Use a bitmap.
18395         (unify_nodes): Adjust.
18396         (do_sd_constraint): Likewise.
18397         (do_ds_constraint): Likewise.
18398         (do_complex_constraint): Likewise.
18399         (solve_graph): Likewise.
18400
18401 2011-04-27  Jan Hubicka  <jh@suse.cz>
18402
18403         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
18404
18405 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
18406
18407         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
18408         (avx_vperm2f128_*_operand): Ditto.
18409         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
18410         Use avx_vpermilp_parallel in insn condition.
18411         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
18412         Use avx_vperm2f128_parallel in insn condition.
18413
18414 2011-04-27  Richard Guenther  <rguenther@suse.de>
18415
18416         * Makefile.in (tree-ssa-structalias.o): Remove
18417         gt-tree-ssa-structalias.h dependency.
18418         (GTFILES): Remove tree-ssa-structalias.c.
18419         * tree.c (allocate_decl_uid): New function.
18420         (make_node_stat): Use it.
18421         (copy_node_stat): Likewise.
18422         * tree.h (allocate_decl_uid): Declare.
18423         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
18424         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
18425         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
18426         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
18427         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
18428         (struct heapvar_map): Likewise.
18429         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
18430         heapvar_insert): Likewise.
18431         (make_heapvar_for): Rename to ...
18432         (make_heapvar): ... this.  Simplify.
18433         (fake_var_decl_obstack): New global var.
18434         (build_fake_var_decl): New function.
18435         (make_constraint_from_heapvar): Adjust.
18436         (handle_lhs_call): Likewise.
18437         (create_function_info_for): Likewise.
18438         (intra_create_variable_infos): Likewise.
18439         (init_alias_vars): Allocate fake_var_decl_obstack.
18440         (init_alias_heapvars, delete_alias_heapvars): Remove.
18441         (compute_points_to_sets): Do not call init_alias_heapvars.
18442         (ipa_pta_execute): Likewise.
18443         (delete_points_to_sets): Free fake_var_decl_obstack.
18444
18445 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18446
18447         * config/spu/divmovti4.c (union qword_UTItype): New data type.
18448         (si_from_UTItype, si_to_UTItype): New functions.
18449         (__udivmodti4): Use them to implement type-punning.
18450         * config/spu/multi3.c (union qword_TItype): New data type.
18451         (si_from_TItype, si_to_TItype): New functions.
18452         (__multi3): Use them to implement type-punning.
18453
18454 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18455
18456         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
18457
18458 2011-04-27  Jan Hubicka  <jh@suse.cz>
18459
18460         * ipa-prop.c (function_insertion_hook_holder): New holder.
18461         (ipa_add_new_function): New function.
18462         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
18463         Register/deregister holder.
18464
18465 2011-04-27  Richard Guenther  <rguenther@suse.de>
18466
18467         PR tree-optimization/48772
18468         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
18469
18470 2011-04-27  Richard Guenther  <rguenther@suse.de>
18471
18472         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
18473         TARGET_MEM_REF handling.
18474
18475 2011-04-27  Nick Clifton  <nickc@redhat.com>
18476
18477         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
18478         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
18479         (REG_CLASS_NAMES): Likewise.
18480         (REG_CLASS_CONTENTS): Likewise.
18481         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18482         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
18483         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
18484         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
18485         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
18486         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
18487         duplicate register classes.
18488         (frv_class_likely_spilled_p): Likewise.
18489         (frv_register_move_cost): Likewise.
18490
18491         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
18492         end of the regno_reg_class array.
18493
18494 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
18495
18496         PR c/48742
18497         * c-typeck.c (build_binary_op): Don't wrap arguments if
18498         int_operands is true.
18499
18500 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
18501
18502         PR target/48767
18503         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
18504         targetm.calls.must_pass_in_stack for void type.
18505
18506 2011-04-26  Jan Hubicka  <jh@suse.cz>
18507
18508         * cgraphbuild.c (build_cgraph_edges): Update call
18509         of cgraph_create_edge and cgraph_create_indirect_edge.
18510         * cgraph.c (cgraph_create_edge_including_clones,
18511         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
18512         cgraph_update_edges_for_call_stmt_node): Do not take nest
18513         argument; do not initialize call_stmt_size/time.
18514         (dump_cgraph_node): Do not dump nest.
18515         (cgraph_clone_edge): Do not take loop_nest argument;
18516         do not propagate it; do not clone call_stmt_size/time.
18517         (cgraph_clone_node): Likewise.
18518         (cgraph_create_virtual_clone): Update.
18519         * cgraph.h (struct cgraph_edge): Remove
18520         call_stmt_size/call_stmt_time/loop_nest.
18521         (cgraph_create_edge, cgraph_create_indirect_edge,
18522         cgraph_create_edge_including_clones, cgraph_clone_node): Update
18523         prototype.
18524         * tree-emutls.c (gen_emutls_addr): Update.
18525         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
18526         loop_nest; handle indirect calls, too.
18527         (clone_inlined_nodes): Do not care about updating inline summaries.
18528         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
18529         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
18530         stream call_stmt_size/call_stmt_time/loop_nest.
18531         * ipa-inline.c (edge_badness): Update.
18532         (ipa_inline): dump summaries after inlining.
18533         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
18534         New.
18535         (inline_edge_summary): New function.
18536         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
18537         (inline_edge_removal_hook): Handle edge summaries.
18538         (inline_edge_duplication_hook): New hook.
18539         (inline_summary_alloc): Alloc hooks.
18540         (initialize_growth_caches): Do not register removal hooks.
18541         (free_growth_caches); Do not free removal hook.
18542         (dump_inline_edge_summary): New function.
18543         (dump_inline_summary): Use it.
18544         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
18545         (inline_update_callee_summaries): New function.
18546         (inline_merge_summary): Use it.
18547         (do_estimate_edge_time, do_estimate_edge_growth): Update.
18548         (read_inline_edge_summary): New function.
18549         (inline_read_section): Use it.
18550         (write_inline_edge_summary): New function.
18551         (inline_write_summary): Use it.
18552         (inline_free_summary): Free edge new holders.
18553         * tree-inline.c (copy_bb): Update.
18554
18555 2011-04-26  Jason Merrill  <jason@redhat.com>
18556
18557         * tree-eh.c (lower_try_finally_switch): Create the label along with
18558         the CASE_LABEL_EXPR.
18559
18560 2011-04-26  David S. Miller  <davem@davemloft.net>
18561             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18562
18563         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
18564         * configure: Regenerate.
18565
18566 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18567
18568         PR target/48258
18569         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
18570         reduction.
18571         (VEC_reduc): New code iterator and splitters for vector reduction.
18572         (VEC_reduc_name): Ditto.
18573         (VEC_reduc_rtx): Ditto.
18574         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
18575         (reduc_<VEC_reduc_name>_v4sf): Ditto.
18576
18577         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18578         support for extracting SF on VSX.
18579
18580         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
18581         generating xscvspdp.
18582         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
18583         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
18584         double add, minimum, maximum vector reduction.
18585         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
18586         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
18587         optimize double vector reduction.
18588         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
18589
18590 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
18591
18592         * config/fr30/fr30.h (inhibit_libc): Don't define.
18593         * config/m32r/m32r-protos.h: Correct comment.
18594         * config/v850/v850.h (GHS_default_section_names,
18595         GHS_current_section_names): Use tree, not union tree_node *.
18596
18597 2011-04-26  Xinliang David Li  <davidxl@google.com>
18598
18599         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
18600         * c-family/c-opts.c (c_common_handle_option): Set
18601         warn_maybe_uninitialized.
18602         * opts.c (common_handle_option): Ditto.
18603         * common.opt:  New option.
18604         * tree-ssa.c (warn_uninit): Add one more parameter.
18605         (warn_uninitialized_var): Pass warning code.
18606         * tree-flow.h: Interface change.
18607
18608 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18609
18610         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
18611         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
18612         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
18613
18614 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18615
18616         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
18617         * config/mips/mips.opt (mmips-tfile): Remove.
18618
18619         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
18620         mips-tdump reference to ...
18621         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
18622         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
18623         reference by Tru64 UNIX.
18624
18625 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
18626
18627         PR debug/48768
18628         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
18629         is error_mark_node, set value to NULL.
18630
18631         PR tree-optimization/48734
18632         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
18633         if return value from maybe_fold_*_comparsions isn't something
18634         the code is prepared to handle.
18635
18636 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
18637
18638         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
18639         mode check.
18640         (ext_QIreg_nomode_operands): Remove.
18641         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
18642         (*andsi_1): Ditto.
18643         (*andhi_1): Ditto.
18644
18645 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
18646
18647         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18648
18649 2011-04-26  Richard Guenther  <rguenther@suse.de>
18650
18651         * c-typeck.c (build_unary_op): Do not expand array-refs via
18652         pointer arithmetic.  Only adjust qualifiers for function types.
18653
18654 2011-04-26  Richard Guenther  <rguenther@suse.de>
18655
18656         PR middle-end/48694
18657         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18658         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18659         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
18660         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18661
18662 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
18663
18664         * doc/extend.texi: Document __underlying_type.
18665
18666 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
18667
18668         * config/rs6000/titan.md (automata_option "progress"): Remove.
18669
18670 2011-04-25  Jeff Law  <law@redhat.com>
18671
18672         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18673
18674 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
18675
18676         * system.h (ENUM_BITFIELD): Remove.
18677
18678 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
18679             Eric Botcazou  <ebotcazou@adacore.com>
18680
18681         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18682         for STORE_FLAG_VALUE==-1 case.
18683
18684 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
18685
18686         PR target/43804
18687         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18688         LEGITIMATE_PIC_OPERAND_P.
18689
18690 2011-04-24  Jan Hubicka  <jh@suse.cz>
18691
18692         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18693         WPA hack.
18694         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18695         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18696         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18697         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18698         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18699         Sanity check predicate length.
18700         (remap_predicate): Likewise; sanity check jump functions.
18701         (inline_read_section, inline_write_summary): Sanity check
18702         predicate length.
18703
18704 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
18705
18706         PR other/48748
18707         * doc/extend.texi (Type Traits): Document __is_standard_layout,
18708         __is_literal_type, and __is_trivial; update throughout about
18709         possibly cv-qualified void types.
18710
18711 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18712
18713         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18714         testsuite and make it version agnostic.
18715
18716 2011-04-22  Jan Hubicka  <jh@suse.cz>
18717
18718         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18719
18720 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
18721
18722         PR c/48685
18723         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18724         to VOID_TYPE even around MODIFY_EXPR.
18725
18726 2011-04-22  Mike Stump  <mikestump@comcast.net>
18727
18728         * gensupport.c (read_md_rtx): Fix typo in comment.
18729         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18730         comment.
18731
18732 2011-04-22  Jan Hubicka  <jh@suse.cz>
18733
18734         * gengtype.c (open_base_files): Add ipa-inline.h include.
18735         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18736         ipa-prop.c; update all uses.
18737         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18738         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18739         merge summary of inlined function into former caller.
18740         * ipa-inline.c (max_benefit): Remove.
18741         (edge_badness): Compensate for removal of benefits.
18742         (update_caller_keys): Use
18743         reset_node_growth_cache/reset_edge_growth_cache.
18744         (update_callee_keys): Likewise.
18745         (update_all_callee_keys): Likewise.
18746         (inline_small_functions): Do not collect max_benefit; do not reset
18747         estimated_growth; call free_growth_caches and initialize_growth_caches.
18748         * ipa-inline.h (struct condition, type clause_t, struct predicate,
18749         struct size_time_entry): New structures.
18750         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18751         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18752         and estimated_growth.
18753         (edge_growth_cache_entry): New structure.
18754         (node_growth_cache, edge_growth_cache): New global vars.
18755         (estimate_growth): Turn into inline.
18756         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18757         initialize_growth_caches, free_growth_caches): Declare.
18758         (estimate_edge_growth): Rewrite.
18759         (estimate_edge_time): Implement as inline cache lookup.
18760         (reset_node_growth_cache, reset_edge_growth_cache): New inline
18761         functions.
18762         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18763         (NUM_CONDITIONS): New constant.
18764         (predicate_conditions): New enum.
18765         (IS_NOT_CONSTANT): New constant.
18766         (edge_removal_hook_holder): New var.
18767         (node_growth_cache, edge_growth_cache): New global vars.
18768         (true_predicate, single_cond_predicate, false_predicate,
18769         not_inlined_predicate, add_condition, add_clause, and_predicates,
18770         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18771         dump_clause, dump_predicate, account_size_time,
18772         evaulate_conditions_for_edge): New functions.
18773         (inline_summary_alloc): Move to heap.
18774         (inline_node_removal_hook): Clear condition and entry vectors.
18775         (inline_edge_removal_hook): New function.
18776         (initialize_growth_caches, free_growth_caches): New function.
18777         (dump_inline_summary): Update.
18778         (edge_execution_predicate): New function.
18779         (will_be_nonconstant_predicate): New function.
18780         (estimate_function_body_sizes): Compute BB and constantness predicates.
18781         (compute_inline_parameters): Do not clear estimated_growth.
18782         (estimate_edge_size_and_time): New function.
18783         (estimate_calls_size_and_time): New function.
18784         (estimate_callee_size_and_time): New function.
18785         (remap_predicate): New function.
18786         (inline_merge_summary): New function.
18787         (do_estimate_edge_time): New function based on...
18788         (estimate_edge_time): ... this one.
18789         (do_estimate_edge_growth): New function.
18790         (do_estimate_growth): New function based on....
18791         (estimate_growth): ... this one.
18792         (inline_analyze_function): Analyze after deciding on jump functions.
18793         (inline_read_section): New function.
18794         (inline_read_summary): Use it.
18795         (inline_write_summary): Write all the new data.
18796         * ipa-prop.c (ipa_get_param_decl_index): Export.
18797         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18798         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18799         Declare.
18800         (ipa_get_lattice): Move here from ipa-cp.c
18801         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18802         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18803         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18804         cgraph_edge_inlinable_p): Remove.
18805         * cgraphunit.c: Include ipainline.h
18806         (cgraph_process_new_functions): Update call of
18807         compute_inline_parameters.
18808
18809 2011-04-22  Richard Guenther  <rguenther@suse.de>
18810
18811         * tree.c (build_int_cst): Properly create canonicalized integer
18812         constants.
18813         (build_int_cst_type): Remove scary comments.
18814
18815 2011-04-22  Xinliang David Li  <davidxl@google.com>
18816
18817         * toplev.c (process_options): Enable -Werror=coverage-mismatch
18818         by default when -Wno-error is not specified.
18819         * opts-global.c (decode_options): Remove call to
18820         control_warning_options.
18821
18822 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18823
18824         PR tree-optimization/48717
18825         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18826         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18827
18828 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
18829
18830         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
18831         definition where used.
18832
18833 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18834
18835         PR c/48716
18836         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18837         TREE_STATIC variables declared inside of some OpenMP construct.
18838
18839 2011-04-22  Martin Jambor  <mjambor@suse.cz>
18840
18841         PR middle-end/48585
18842         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18843
18844 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
18845
18846         PR c/36750
18847         * c-typeck.c (pop_init_level): Do not warn about initializing
18848         with ` = {0}'.
18849
18850 2011-04-22  Alan Modra  <amodra@gmail.com>
18851
18852         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18853         when returning call_cookie.
18854         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18855         pointers, to functions with no more vector args than the current
18856         function, and some non-local calls for ABI_V4.
18857         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18858         sibcall_nonlocal_aix64): Combine to ..
18859         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
18860         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18861         (sibcall_value_nonlocal_aix<mode>): ..likewise.
18862         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18863         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
18864         operand.
18865         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18866         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18867         sibcall_value_symbolic_64): Delete.
18868
18869 2011-04-21  Xinliang David Li  <davidxl@google.com>
18870
18871         * cgraph.h: Remove pid.
18872         * cgraph.c: Remove pid.
18873         * value-prof.c (init_node_map): New function.
18874         (del_node_map): New function.
18875         (find_func_by_funcdef_no): New function.
18876         (gimple_ic_transform): Call new function.
18877         * cgraphunit.c (cgraph_finalize_function): Remove pid.
18878         * function.c (get_last_funcdef_no): New function.
18879         * function.h (get_last_funcdef_no): New function.
18880         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18881         to libgcov function.
18882         (tree-profiling): Call node map init and delete function.
18883
18884 2011-04-21  Ian Lance Taylor  <iant@google.com>
18885
18886         * godump.c (go_format_type): Use exported Go name for anonymous
18887         field name.
18888
18889 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18890
18891         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18892         Call builtin_function_type_list instead of builtin_function_type.
18893         (UNARY, BINARY, TRINARY, QUAD): Likewise.
18894
18895 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18896
18897         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18898         build_function_type_list instead of build_function_type.
18899         Delete variable `endlink'.
18900
18901 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18902
18903         * config/s390/s390.c (s390_init_builtins): Call
18904         build_function_type_list instead of build_function_type.
18905
18906 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18907
18908         * config/ia64/ia64.c (ia64_init_builtins): Call
18909         build_function_type_list instead of builtin_function_type.
18910
18911 2011-04-21  Easwaran Raman  <eraman@google.com>
18912
18913         * cfgexpand.c (stack_var): Remove OFFSET...
18914         (add_stack_var): ...and its reference here...
18915         (expand_stack_vars): ...and here.
18916         (stack_var_cmp): Sort by descending order of size.
18917         (partition_stack_vars): Change heuristic.
18918         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18919         (dump_stack_var_partition): Add newline after each partition.
18920
18921 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
18922             Jeff Law  <law@redhat.com>
18923
18924         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18925         * gengtype.c (matching_file_name_substitute): Likewise.
18926
18927 2011-04-21  Richard Guenther  <rguenther@suse.de>
18928
18929         PR lto/48703
18930         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18931
18932 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
18933
18934         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18935
18936 2011-04-21  Richard Guenther  <rguenther@suse.de>
18937
18938         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18939         file name.
18940
18941 2011-04-21  Richard Guenther  <rguenther@suse.de>
18942
18943         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18944         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18945         Use DECL_P, not SSA_VAR_P.
18946         (ptr_derefs_may_alias_p): Likewise.
18947         (ptr_deref_may_alias_ref_p_1): Likewise.
18948         (decl_refs_may_alias_p): Likewise.
18949         (refs_may_alias_p_1): Likewise.
18950         (ref_maybe_used_by_call_p_1): Likewise.
18951         (call_may_clobber_ref_p_1): Likewise.
18952         (indirect_ref_may_alias_decl_p): Assume indirect refrences
18953         are either MEM_REF or TARGET_MEM_REF.
18954         (indirect_refs_may_alias_p): Likewise.
18955         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18956         for MEM_EXPR of indirect calls.
18957
18958 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18959
18960         * vmsdbgout.c (write_srccorr): Compute file length from the string.
18961         (dst_file_info_struct): Remove flen field.
18962         (lookup_filename): Remove code that set flen field.
18963
18964 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18965
18966         * config/ia64/ia64.c (ia64_start_function): Add a guard.
18967
18968 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
18969
18970         PR target/48708
18971         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18972         vec_extract and vec_concat for non-SSE4_1 targets.
18973
18974 2011-04-21  Richard Guenther  <rguenther@suse.de>
18975
18976         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18977         return statements.
18978
18979 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18980
18981         * config/i386/cygming.h (union tree_node, TREE): Don't define or
18982         undefine.
18983         (FILE): Don't undefine.
18984
18985 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18986
18987         * config/alpha/alpha.c (struct machine_function): Use rtx, not
18988         struct rtx_def *.
18989         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18990         struct rtx_def *.
18991         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18992         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18993         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18994         rtx_def *.
18995         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
18996         definitions where used.
18997         * config/microblaze/microblaze.h (struct microblaze_args): Use
18998         rtx, not struct rtx_def *.
18999         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
19000         rtx_def *.
19001         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
19002         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
19003         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
19004         not struct rtx_def *.
19005         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
19006         struct rtx_def *.
19007         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
19008         rtx_def *.
19009         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
19010
19011 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19012
19013         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
19014         operand_equal_p to compare DR_BASE_ADDRESSes.
19015         (vect_check_interleaving): Likewise.
19016
19017 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19018
19019         PR target/46329
19020         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
19021         for all Neon struct constants.
19022
19023 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19024
19025         * target.def (legitimate_constant_p): New hook.
19026         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
19027         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
19028         * doc/tm.texi: Regenerate.
19029         * hooks.h (hook_bool_mode_rtx_true): Declare.
19030         * hooks.c (hook_bool_mode_rtx_true): Define.
19031         * system.h (LEGITIMATE_CONSTANT_P): Poison.
19032         * calls.c (precompute_register_parameters): Replace uses of
19033         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
19034         (emit_library_call_value_1): Likewise.
19035         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
19036         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
19037         * ira-costs.c (scan_one_insn): Likewise.
19038         * recog.c (general_operand, immediate_operand): Likewise.
19039         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
19040         * reload1.c (init_eliminable_invariants): Likewise.
19041
19042         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
19043         mode argument.
19044         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
19045         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
19046         argument.
19047         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19048         * config/alpha/predicates.md (input_operand): Update call to
19049         alpha_legitimate_constant_p.
19050
19051         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
19052         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
19053         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
19054         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19055         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
19056         (arm_legitimate_constant_p): New functions.
19057         (arm_cannot_force_const_mem): Make static.
19058
19059         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
19060
19061         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
19062         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
19063         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
19064         instead of bfin_legitimate_constant_p.
19065         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
19066         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19067
19068         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
19069
19070         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
19071
19072         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
19073         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
19074         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19075         (frv_legitimate_constant_p): Make static.  Add a mode argument.
19076
19077         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
19078         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
19079         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
19080
19081         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
19082         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
19083         * config/i386/i386.c (legitimate_constant_p): Rename to...
19084         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
19085         argument.
19086         (ix86_cannot_force_const_mem): Update accordingly.
19087         (ix86_legitimate_address_p): Likewise.
19088         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19089         * config/i386/i386.md: Update commentary.
19090
19091         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
19092         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
19093         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19094         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
19095
19096         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
19097
19098         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
19099         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
19100         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19101         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
19102
19103         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
19104         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
19105         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
19106
19107         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
19108         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19109         (m32r_legitimate_constant_p): New function.
19110
19111         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
19112         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
19113         LEGITIMATE_CONSTANT_P.
19114         (LEGITIMATE_CONSTANT_P): Delete.
19115         * config/m68k/m68k.c (m68k_expand_prologue): Call
19116         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
19117         (m68k_legitimate_constant_p): New function.
19118         * config/m68k/m68k.md: Update comments.
19119
19120         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
19121         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19122         (mcore_legitimate_constant_p): New function.
19123
19124         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
19125         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
19126         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
19127         Add a mode argument.
19128         (mep_legitimate_address): Update accordingly.
19129         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19130
19131         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
19132         Delete.
19133         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
19134         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
19135         static.  Check OP's mode for VOIDmode.
19136         (microblaze_legitimate_constant_p): New function.
19137         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19138
19139         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
19140         * config/mips/mips.c (mips_legitimate_constant_p): New function.
19141         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
19142         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19143         * config/mips/predicates.md: Update comments.
19144
19145         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
19146         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
19147         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19148         (mmix_legitimate_constant_p): Make static, return a bool, and take
19149         a mode argument.
19150         (mmix_print_operand_address): Update accordingly.
19151
19152         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
19153         Delete.
19154         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
19155         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
19156         static.  Add a mode argument.
19157         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19158
19159         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
19160
19161         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
19162         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19163         (pa_legitimate_constant_p): New function.
19164
19165         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
19166
19167         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
19168         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19169         (pdp11_legitimate_constant_p): New function.
19170
19171         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
19172         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19173         (rs6000_legitimate_constant_p): New function.
19174
19175         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
19176         (rx_legitimate_constant_p): ...this.
19177         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
19178         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
19179         (rx_legitimate_constant_p): ...this.
19180         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19181         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
19182
19183         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
19184         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
19185         * config/s390/s390.c (legitimate_constant_p): Rename to...
19186         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
19187         and add a mode argument.
19188         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19189
19190         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
19191
19192         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
19193         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19194         (sh_legitimate_constant_p): New function.
19195
19196         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
19197         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
19198         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19199         (legitimate_constant_p): Rename to...
19200         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
19201         argument.
19202         (constant_address_p): Update accordingly.
19203
19204         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
19205         argument and return a bool.
19206         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
19207         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19208         (spu_legitimate_constant_p): Add a mode argument and return a bool.
19209         (spu_rtx_costs): Update accordingly.
19210         * config/spu/predicates.md (vec_imm_operand): Likewise.
19211
19212         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
19213
19214         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
19215         * config/v850/v850.c (v850_legitimate_constant_p): New function.
19216         (TARGET_LEGITIMATE_CONSTANT_P): Define.
19217
19218         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
19219         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
19220         * config/vax/vax.c (legitimate_constant_p): Likewise.
19221
19222         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
19223         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
19224         (xtensa_legitimate_constant_p): New function.
19225
19226 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
19227
19228         * target.def (cannot_force_const_mem): Add a mode argument.
19229         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
19230         * doc/tm.texi: Regenerate.
19231         * hooks.h (hook_bool_mode_rtx_false): Declare.
19232         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
19233         (hook_bool_mode_const_rtx_true): Likewise.
19234         (hook_bool_mode_rtx_false): New function.
19235         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
19236         to be non-VOID.  Update call to cannot_force_const_mem.
19237         (find_reloads): Update accordingly.
19238         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
19239         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
19240         argument.
19241         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
19242         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
19243         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
19244         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
19245         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
19246         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
19247         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
19248         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19249         (m68k_cannot_force_const_mem): ...this new function.
19250         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
19251         argument.
19252         (mips_const_insns, mips_legitimize_const_move): Update calls.
19253         (mips_secondary_reload_class): Likewise.
19254         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
19255         (pa_cannot_force_const_mem): ...this new function.
19256         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
19257         (rs6000_cannot_force_const_mem): ...this new function.
19258         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
19259         argument.
19260         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
19261         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
19262         to...
19263         (xtensa_cannot_force_const_mem): ...this new function.
19264
19265 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19266
19267         * config/mips/mips.c (mips16_build_function_stub): Call
19268         build_function_type_list instead of build_function_type.
19269         (mips16_build_call_stub): Likewise.
19270
19271 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19272
19273         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
19274         instead of build_function_type.
19275
19276 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
19277
19278         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
19279         instead of build_function_type.
19280
19281 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
19282
19283         PR target/48678
19284         * config/i386/i386.md (insv): Change operand 0 constraint to
19285         "register_operand".  Change operand 1 and 2 constraint to
19286         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
19287         * config/i386/sse.md (sse4_1_pinsrb): Export.
19288         (sse2_pinsrw): Ditto.
19289         (sse4_1_pinsrd): Ditto.
19290         (sse4_1_pinsrq): Ditto.
19291         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
19292         * config/i386/i386.c (ix86_expand_pinsr): New.
19293
19294 2011-04-20  Easwaran Raman  <eraman@google.com>
19295
19296         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
19297         containing union type only with -fstrict-aliasing.
19298
19299 2011-04-20  Jim Meyering  <meyering@redhat.com>
19300
19301         Remove useless if-before-free tests.
19302         * calls.c (expand_call, save_area): Likewise.
19303         * cfgcleanup.c (try_forward_edges): Likewise.
19304         * collect2.c (collect_execute): Likewise.
19305         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
19306         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
19307         * coverage.c (coverage_checksum_string): Likewise.
19308         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
19309         * cselib.c (cselib_init): Likewise.
19310         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
19311         (df_set_clean_cfg): Likewise.
19312         * function.c (free_after_compilation): Likewise.
19313         * gcc.c (do_spec_1, main): Likewise.
19314         * gcov.c (create_file_names): Likewise.
19315         * gensupport.c (identify_predicable_attribute): Likewise.
19316         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
19317         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
19318         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
19319         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
19320         * ipa-pure-const.c (local_pure_const): Likewise.
19321         * ipa-reference.c (propagate): Likewise.
19322         * ira-costs.c (free_ira_costs): Likewise.
19323         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
19324         * matrix-reorg.c (mat_free): Likewise.
19325         * prefix.c (get_key_value): Likewise.
19326         * profile.c (compute_value_histograms): Likewise.
19327         * reload1.c (free_reg_equiv): Likewise.
19328         * sched-deps.c (free_deps): Likewise.
19329         * sel-sched-ir.c (fence_clear): Likewise.
19330         * sese.c (set_rename, if_region_set_false_region): Likewise.
19331         * tree-data-ref.c (free_rdg): Likewise.
19332         * tree-eh.c (lower_try_finally): Likewise.
19333         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
19334         * tree-ssa-live.c (delete_var_map): Likewise.
19335         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
19336         * tree-ssa-pre.c (phi_trans_add): Likewise.
19337
19338 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
19339
19340         PR tree-optimization/48611
19341         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
19342         beyond ERT_MUST_NOT_THROW region.
19343
19344 2011-04-20  Catherine Moore  <clm@codesourcery.com>
19345
19346         * config/mips/mips.opt (mfix-24k): New.
19347         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
19348         * config/mips/mips.md (length): Increase by 4 for stores if
19349         fixing 24K errata.
19350         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
19351         all noreorder if fixing 24K errata.
19352         * doc/invoke.texi: Document mfix-24k.
19353
19354 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
19355
19356         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
19357         quad-word modes, reduce to 9-bit index range when above 1016 limit.
19358
19359 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19360
19361         * config/arm/arm.c (arm_gen_constant): Move movw support ....
19362         (const_ok_for_op): ... to here.
19363
19364 2011-04-20  Kai Tietz  <ktietz@redhat.com>
19365
19366         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
19367         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
19368
19369 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
19370
19371         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
19372
19373 2011-04-20  Richard Guenther  <rguenther@suse.de>
19374
19375         PR tree-optimization/47892
19376         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
19377         are if-convertible.
19378
19379 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
19380
19381         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
19382
19383 2011-04-20  Tristan Gingold  <gingold@adacore.com>
19384
19385         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
19386
19387 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
19388
19389         PR target/18145
19390
19391         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
19392         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
19393         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
19394         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19395         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
19396
19397         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
19398         New prototype.
19399
19400         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
19401         (avr_asm_named_section, avr_asm_output_aligned_common,
19402         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
19403         New functions to update...
19404         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
19405         (avr_asm_init_sections): Overwrite section callbacks for
19406         data_section, bss_section.
19407         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
19408         from here to...
19409         (avr_file_end): ...here.
19410
19411 2011-04-20  Richard Guenther  <rguenther@suse.de>
19412
19413         PR middle-end/48695
19414         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
19415         objects and types here.  Adjust for their offset before comparing.
19416
19417 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19418
19419         * tree-vect-stmts.c (vectorizable_store): Only chain one related
19420         statement per copy.
19421
19422 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
19423
19424         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
19425         (GIMPLE_H): Include $(INTERNAL_FN_H).
19426         (OBJS-common): Add internal-fn.o.
19427         (internal-fn.o): New rule.
19428         * internal-fn.def: New file.
19429         * internal-fn.h: Likewise.
19430         * internal-fn.c: Likewise.
19431         * gimple.h: Include internal-fn.h.
19432         (GF_CALL_INTERNAL): New gf_mask.
19433         (gimple_statement_call): Put fntype into a union with a new
19434         internal_fn field.
19435         (gimple_build_call_internal): Declare.
19436         (gimple_build_call_internal_vec): Likewise.
19437         (gimple_call_same_target_p): Likewise.
19438         (gimple_call_internal_p): New function.
19439         (gimple_call_internal_fn): Likewise.
19440         (gimple_call_fntype): Return null for internal calls.
19441         (gimple_call_set_fntype): Assert that the function is not internal.
19442         (gimple_call_set_fn): Likewise.
19443         (gimple_call_set_fndecl): Likewise.
19444         (gimple_call_set_internal_fn): New function.
19445         (gimple_call_addr_fndecl): Handle null functions.
19446         (gimple_call_return_type): Likewise null types.
19447         * gimple.c (gimple_build_call_internal_1): New function.
19448         (gimple_build_call_internal): Likewise.
19449         (gimple_build_call_internal_vec): Likewise.
19450         (gimple_call_same_target_p): Likewise.
19451         (gimple_call_flags): Handle calls to internal functions.
19452         (gimple_call_fnspec): New function.
19453         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
19454         (gimple_has_side_effects): Handle null functions.
19455         (gimple_rhs_has_side_effects): Likewise.
19456         (gimple_call_copy_skip_args): Handle calls to internal functions.
19457         * cfgexpand.c (expand_call_stmt): Likewise.
19458         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
19459         * gimple-fold.c (gimple_fold_call): Handle null functions.
19460         (gimple_fold_stmt_to_constant_1): Don't fold
19461         calls to internal functions.
19462         * gimple-low.c (gimple_check_call_args): Handle calls to internal
19463         functions.
19464         * gimple-pretty-print.c (dump_gimple_call): Likewise.
19465         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
19466         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
19467         (do_warn_unused_result): Likewise.
19468         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
19469         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
19470         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
19471         the target of a call.
19472         (initialize_hash_element): Update accordingly.
19473         (hashable_expr_equal_p): Use gimple_call_same_target_p.
19474         (iterative_hash_hashable_expr): Handle calls to internal functions.
19475         (print_expr_hash_elt): Likewise.
19476         * tree-ssa-pre.c (can_value_number_call): Likewise.
19477         (eliminate): Handle null functions.
19478         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
19479         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
19480         (find_func_aliases): Likewise.
19481         * value-prof.c (gimple_ic_transform): Likewise.
19482         (gimple_indirect_call_to_profile): Likewise.
19483         * lto-streamer-in.c (input_gimple_stmt): Likewise.
19484         * lto-streamer-out.c (output_gimple_stmt): Likewise.
19485
19486 2011-04-19  Jan Hubicka  <jh@suse.cz>
19487
19488         * ipa-inline-transform.c (save_inline_function_body): Add comments.
19489         * ipa-inline.c (inline_small_functions): Compute summaries first,
19490         populate heap later.
19491
19492 2011-04-19  Jan Hubicka  <jh@suse.cz>
19493
19494         * cgraph.h (save_inline_function_body): Remove.
19495         * ipa-inline-transform.c: New file, broke out of...
19496         * ipa-inline.c: ... this one; Update toplevel comment.
19497         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
19498         make global.
19499         (update_noncloned_frequencies): Move to ipa-inline-transform.c
19500         (cgraph_mark_inline_edge): Rename to inline_call; move to
19501         ipa-inline-transform.c.
19502         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
19503         move to ipa-inline-transform.c
19504         (recursive_inlining, inline_small_functions, flatten_function,
19505         ipa_inline, inline_always_inline_functions,
19506         early_inline_small_functions): Update.
19507         (inline_transform): Move to ipa-inline-transform.c.
19508         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
19509         Declare.
19510         * Makefile.in (ipa-inline-transform.o): New file.
19511         * cgraphunit.c (save_inline_function_body): Move to
19512         ipa-inline-transform.c
19513
19514 2011-04-19  DJ Delorie  <dj@redhat.com>
19515
19516         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
19517         registers if we already know there aren't any.
19518         (m32c_emit_epilogue): Don't emit a barrier here.
19519         (m32c_emit_eh_epilogue): Likewise.
19520         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
19521         operands at expand time.
19522         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
19523         int" wchar type.
19524         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
19525         duplicates.  Provide aliases instead.
19526         * config/m32c/prologue.md (eh_return): Emit a barrier here.
19527         (eh_epilogue): Add a "(return)" here as a hint to other parts of
19528         the compiler.
19529
19530 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
19531
19532         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
19533         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
19534         (general_or_i64_p, sparc_register_move_cost): New function.
19535
19536 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19537
19538         * doc/install.texi (Configuration, --enable-threads): Remove mach.
19539         Add lynx, mipssde.  Sort table.
19540
19541 2011-04-19  Xinliang David Li  <davidxl@google.com>
19542
19543         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
19544         not negative.
19545
19546 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
19547
19548         PR target/48678
19549         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
19550         is a SUBREG with non-MODE_INT mode inside of it.
19551
19552 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19553
19554         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
19555         also according to actual contants.
19556         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
19557         (gimple_fold_call): Use it.
19558         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
19559
19560 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19561
19562         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
19563         non-pointer assignments.
19564
19565 2011-04-19  Martin Jambor  <mjambor@suse.cz>
19566
19567         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
19568         account anc_offset and otr_type from the indirect edge info.
19569         * ipa-prop.c (get_ancestor_addr_info): New function.
19570         (compute_complex_ancestor_jump_func): Assignment analysis moved to
19571         get_ancestor_addr_info, call it.
19572         (ipa_note_param_call): Do not initialize information about polymorphic
19573         calls, return the indirect call graph edge.  Remove the last
19574         parameter, adjust all callers.
19575         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
19576         parameters.  Initialize polymorphic information in the indirect edge.
19577
19578 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19579
19580         PR lto/48148
19581         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
19582         the types if they have different enumeration identifiers.
19583
19584 2011-04-19  Jan Hubicka  <jh@suse.cz>
19585
19586         * cgraph.h (cgraph_optimize_for_size_p): Declare.
19587         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
19588         * predict.c (cgraph_optimize_for_size_p): Break out from ...
19589         (optimize_function_for_size_p) ... here.
19590
19591 2011-04-19  Richard Guenther  <rguenther@suse.de>
19592
19593         PR lto/48207
19594         * tree.c (free_lang_data): Do not reset the decl-assembler-name
19595         langhook.
19596
19597 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19598
19599         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
19600         if DECL_NO_INLINE_WARNING_P is set on the function.
19601
19602 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
19603
19604         PR fortran/47976
19605         * reload1.c (inc_for_reload): Return void. All callers changed.
19606         (emit_input_reload_insns): Don't try to delete previous output
19607         reloads to a register, or record spill_reg_store for autoincs.
19608
19609 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
19610
19611         * gengtype.h: Updated copyright year.
19612         (struct input_file_st): Add inpisplugin field.
19613         (type_fileloc): New function.
19614         * gengtype.c
19615         (write_typed_struct_alloc_def): Add gcc_assert.
19616         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
19617         (write_typed_alloc_defns): Don't output for plugin files.
19618         (input_file_by_name): Clear inpisplugin field.
19619         (main): Set inpisplugin field for plugin files.
19620
19621 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
19622
19623         * gengtype-state.c (string_eq): New.
19624         (read_state): Use string_eq instead of strcmp when creating the
19625         state_ident_tab.
19626
19627 2011-04-19  Wei Guozhi  <carrot@google.com>
19628
19629         PR target/47855
19630         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
19631         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
19632         linkage.
19633         * config/arm/constraints.md (Uu): New constraint.
19634         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
19635
19636 2011-04-19  Tristan Gingold  <gingold@adacore.com>
19637
19638         * config.gcc (-*-*-*vms): Added.
19639         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
19640         definitions moved.
19641         * config/vms/vms-ld.c: New file.
19642         * config/vms/vms-ar.c: New file.
19643         * config/vms/t-vmsnative: New file.
19644
19645 2011-04-18  Xinliang David Li  <davidxl@google.com>
19646
19647         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19648
19649 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19650
19651         PR middle-end/48661
19652         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19653         if TREE_TYPE (v) is non-NULL.
19654
19655         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19656         gimple_get_virt_mehtod_for_binfo.
19657         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19658         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19659         callers.
19660         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19661
19662 2011-04-18  Michael Matz  <matz@suse.de>
19663             Steve Ellcey  <sje@cup.hp.com>
19664
19665         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19666         use its mode as source mode if it isn't VOIDmode.
19667
19668 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
19669
19670         * doc/passes.texi: Fill crossref nodes.
19671
19672 2011-04-18  Jim Meyering  <meyering@redhat.com>
19673
19674         Fix doubled-word typos in comments and strings
19675         * config/alpha/vms-unwind.h: s/for for/for/
19676         * config/arm/unwind-arm.h: Likewise.
19677         * config/microblaze/microblaze.c: Likewise.
19678         * config/sh/constraints.md: s/in in/in/
19679         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19680
19681 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
19682
19683         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19684         (AVX_FLOAT_MODE_P): Ditto.
19685         (AVX128_VEC_FLOAT_MODE_P): Ditto.
19686         (AVX256_VEC_FLOAT_MODE_P): Ditto.
19687         (AVX_VEC_FLOAT_MODE_P): Ditto.
19688         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19689         (UNSPEC_MASKSTORE): Ditto.
19690         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19691         Merge from <sse>_movmsk<ssemodesuffix> and
19692         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
19693         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
19694         iterator.
19695         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19696         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19697         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19698
19699 2011-04-18  Jan Hubicka  <jh@suse.cz>
19700
19701         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19702
19703         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19704         (want_inline_function_called_once_p): Break out the logic from
19705         ipa_inline.
19706         (edge_badness): Ensure that profile is not misupdated.
19707         (lookup_recursive_calls): Prioritize by call frequencies.
19708         (inline_small_functions): Move program size estimates here;
19709         actually process whole queue even when unit growth has been
19710         met. (to properly compute inline_failed reasons and for the
19711         case unit size decrease.) Revisit comments on recursive inlining.
19712         (ipa_inline): Remove unit summary code; first inline hot calls
19713         of functions called once, cold calls next.
19714         (order, nnodes): Remove unused variables.
19715         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19716         (GTFILES): Remove ipa-inline.c
19717         * sel-sched.c (fill_insns): Silence uninitialized var warning.
19718
19719 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19720
19721         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19722
19723 2011-04-18  Jie Zhang  <jie@codesourcery.com>
19724             Richard Earnshaw  <rearnsha@arm.com>
19725
19726         * arm.c (neon_builtin_type_bits): Remove.
19727         (typedef enum neon_builtin_mode): New.
19728         (T_MAX): Don't define.
19729         (typedef enum neon_builtin_datum): Remove bits, codes[],
19730         num_vars and base_fcode.  Add mode, code and fcode.
19731         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19732         VAR10): Change accordingly.
19733         (neon_builtin_data[]): Change accordingly
19734         (arm_init_neon_builtins): Change accordingly.
19735         (neon_builtin_compare): Remove.
19736         (locate_neon_builtin_icode): Remove.
19737         (arm_expand_neon_builtin): Change accordingly.
19738
19739         * arm.h (enum arm_builtins): Move to ...
19740         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19741
19742         * arm.c (arm_builtin_decl): Declare.
19743         (TARGET_BUILTIN_DECL): Define.
19744         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19745         (arm_builtin_decls[]): New.
19746         (arm_init_neon_builtins): Store builtin declarations in
19747         arm_builtin_decls[].
19748         (arm_init_tls_builtins): Likewise.
19749         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
19750         (arm_builtin_decl): New.
19751
19752 2011-04-18  Richard Guenther  <rguenther@suse.de>
19753
19754         * tree.c (upper_bound_in_type): Build properly canonicalized
19755         INTEGER_CSTs.
19756         (lower_bound_in_type): Likewise.
19757
19758 2011-04-18  Richard Guenther  <rguenther@suse.de>
19759
19760         * gimple.h (gimple_call_addr_fndecl): New function.
19761         (gimple_call_fndecl): Use it.
19762         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19763         for direct calls.
19764         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19765         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19766
19767 2011-04-18  Richard Guenther  <rguenther@suse.de>
19768
19769         PR middle-end/48650
19770         * tree.c (build_string): STRING_CST is now derived from tree_typed.
19771
19772 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19773
19774         PR lto/48492
19775         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19776         DECL_IN_CONSTANT_POOL without RTL.
19777
19778 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
19779             Ira Rosen  <ira.rosen@linaro.org>
19780
19781         PR target/48252
19782         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19783         to match neon_vzip/vuzp/vtrn_internal.
19784         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19785         outputs explicitly dependent on both inputs.
19786         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19787
19788 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19789
19790         PR tree-optimization/48616
19791         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19792         whether the shift is by scalar or vector based on whether all SLP
19793         scalar stmts have the same rhs.
19794
19795 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
19796
19797         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19798         memory operands.
19799
19800 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
19801
19802         PR target/43700
19803         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19804         registers.
19805
19806 2011-04-17  Jan Hubicka  <jh@suse.cz>
19807
19808         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19809         * cgrpahunit.c (cgraph_finalize_function): Do not set
19810         finalized_by_frontend.
19811         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19812         finalized_by_frontend.
19813
19814 2011-04-17  Jan Hubicka  <jh@suse.cz>
19815
19816         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19817         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19818         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19819         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19820         method.
19821         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19822         gimple-fold.c
19823         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19824
19825 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19826
19827         PR lto/48538
19828         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19829         is non-null before accessing it.
19830         (input_cgraph): Remove trailing spaces.
19831
19832 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19833
19834         * params.def (sms-min-sc): New param flag.
19835         * modulo-sched.c (sms_schedule): Use it.
19836         * doc/invoke.texi (sms-min-sc): Document it.
19837
19838 2011-04-17  Jan Hubicka  <jh@suse.cz>
19839
19840         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19841         present, also set gimple_call_set_cannot_inline.
19842         * ipa-inline.c: Update toplevel comment.
19843         (MAX_TIME): Remove.
19844         (cgraph_clone_inlined_nodes): Fix linebreaks.
19845         (cgraph_check_inline_limits): Restructure to ...
19846         (caller_growth_limits): ... this one; be more tolerant
19847         on growth in nested inline chains; add explanatory comment;
19848         fix stack accounting thinko introduced by previous patch.
19849         (cgraph_default_inline_p): Remove.
19850         (report_inline_failed_reason): New function.
19851         (can_inline_edge_p): New function.
19852         (can_early_inline_edge_p): New function.
19853         (leaf_node_p): Move upwards in file.
19854         (want_early_inline_function_p): New function.
19855         (want_inline_small_function_p): New function.
19856         (want_inline_self_recursive_call_p): New function.
19857         (cgraph_edge_badness): Rename to ...
19858         (edge_badness) ... this one; fix linebreaks.
19859         (update_edge_key): Update call of edge_baddness; add
19860         detailed dump about queue updates.
19861         (update_caller_keys): Use can_inline_edge_p and
19862         want_inline_small_function_p.
19863         (cgraph_decide_recursive_inlining): Rename to...
19864         (recursive_inlining): Use can_inline_edge_p and
19865         want_inline_self_recursive_call_p; simplify and remove no longer
19866         valid FIXME.
19867         (cgraph_set_inline_failed): Remove.
19868         (add_new_edges_to_heap): Use can_inline_edge_p and
19869         want_inline_small_function_p.
19870         (cgraph_decide_inlining_of_small_functions): Rename to ...
19871         (inline_small_functions): ... this one; cleanup; use
19872         can/want predicates; cleanup debug ouput; work edges till fibheap
19873         is exhausted and do not stop once unit growth is reached; remove
19874         later loop processing remaining edges.
19875         (cgraph_flatten): Rename to ...
19876         (flatten_function): ... this one; use can_inline_edge_p
19877         and can_early_inline_edge_p predicates.
19878         (cgraph_decide_inlining): Rename to ...
19879         (ipa_inline): ... this one; remove unreachable nodes before
19880         inlining functions called once; simplify the pass.
19881         (cgraph_perform_always_inlining): Rename to ...
19882         (inline_always_inline_functions): ... this one; use
19883         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19884         (cgraph_decide_inlining_incrementally): Rename to ...
19885         (early_inline_small_functions): ... this one; simplify
19886         using new predicates; cleanup; make dumps prettier.
19887         (cgraph_early_inlining): Rename to ...
19888         (early_inliner): newer inline regular functions into always-inlines;
19889         fix updating of call stmt summaries.
19890         (pass_early_inline): Update for new names.
19891         (inline_transform): Fix formating.
19892         (gate_cgraph_decide_inlining): Rename to ...
19893         (pass_ipa_inline): ... this one.
19894         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19895         * ipa-inline-analysis.c (dump_inline_summary): Update.
19896         (compute_inline_parameters): Do not compute disregard_inline_limits;
19897         look for mismatching arguments.
19898         (estimate_growth): Fix handlig of non-trivial self recursion.
19899         (inline_read_summary): Do not read info->disregard_inline_limits.
19900         (inline_write_summary): Do not write info->disregard_inline_limits.
19901         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19902         and move all checks into can_inline_edge_p predicate; re-enable code
19903         comparing optimization levels.
19904         (expand_call_inline): Do not test inline_forbidden_into_p.
19905         * Makefile.in (ipa-inline.o): Update arguments.
19906
19907 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19908
19909         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19910
19911 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19912
19913         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19914
19915 2011-04-17  Michael Matz  <matz@suse.de>
19916
19917         PR tree-optimization/48622
19918         PR lto/48645
19919         * ipa-inline-analysis.c (inline_read_summary): Read size/time
19920         in same order as they're written.
19921
19922 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19923
19924         * config/pa/predicates.md: Reorganize and simplify predicates.
19925         Eliminate duplicate code checks.
19926         (arith_operand): Rename to arith14_operand
19927         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19928         * config/pa/pa.md: Use renamed operands.
19929         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19930         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19931         arith11_operand, adddi3_operand, indexed_memory_operand,
19932         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19933         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19934         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19935         move_dest_operand, move_src_operand, prefetch_cc_operand,
19936         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19937         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19938         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19939         div_operand, int5_operand, movb_comparison_operator,
19940         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19941         arith_double_operand, ireg_operand, lhs_lshift_operand,
19942         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19943         integer_store_memory_operand): Likewise.
19944         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19945         (integer_store_memory_operand, read_only_operand,
19946         function_label_operand, borx_reg_operand,
19947         non_hard_reg_operand): Likewise.
19948         (eq_neq_comparison_operator): Delete unused operator.
19949         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19950         function_label_operand.
19951         (emit_move_sequence): Likewise.
19952
19953 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19954
19955         * config/i386/sse.md (sseunpackmode): New mode attribute.
19956         (ssepackmode): Ditto.
19957         (vec_pack_trunc_<mode>): Macroize expander from
19958         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19959         (vec_unpacks_lo_<mode>): Macroize expander from
19960         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19961         (vec_unpacks_hi_<mode>): Macroize expander from
19962         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19963         (vec_unpacku_lo_<mode>): Macroize expander from
19964         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19965         (vec_unpacku_hi_<mode>): Macroize expander from
19966         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19967         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19968         ix86_expand_sse4_unpack.
19969         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19970
19971 2011-04-16  Jan Hubicka  <jh@suse.cz>
19972
19973         * cgraphbuild.c: Include ipa-inline.h.
19974         (reset_inline_failed): Use initialize_inline_failed.
19975         * cgraph.c: Include ipa-inline.h.
19976         (cgraph_create_node_1): Do not initialize estimated_growth.
19977         (initialize_inline_failed): More to ipa-inline-analysis.c
19978         (dump_cgraph_node): Do not dump inline flags.
19979         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19980         and disregard_inline_limits flags.
19981         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19982         time, size, estimated_growth.
19983         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19984         Update.
19985         * cgraphunit.c (cgraph_decide_is_function_needed): Use
19986         DECL_DISREGARD_INLINE_LIMITS.
19987         (cgraph_analyze_function): Do not initialize
19988         node->local.disregard_inline_limits.
19989         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19990         inlinable, versionable and disregard_inline_limits.
19991         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19992         cgraph_check_inline_limits, cgraph_default_inline_p,
19993         cgraph_edge_badness, update_caller_keys, update_callee_keys,
19994         add_new_edges_to_heap): Update.
19995         (cgraph_decide_inlining_of_small_function): Update; set
19996         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19997         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19998         cgraph_decide_inlining_incrementally): Update.
19999         * ipa-inline.h (inline_summary): Add inlinable, versionable,
20000         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
20001         time, size and estimated_growth parameters.
20002         (estimate_edge_growth): Update.
20003         (initialize_inline_failed): Declare.
20004         * ipa-split.c: Include ipa-inline.h
20005         (execute_split_functions): Update.
20006         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
20007         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
20008         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
20009         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
20010         estimated_growth to INT_MIN.
20011         (inline_node_duplication_hook): Likewise.
20012         (dump_inline_summary): Dump new fields.
20013         (compute_inline_parameters): Update.
20014         (estimate_edge_time, estimate_time_after_inlining,
20015         estimate_size_after_inlining, estimate_growth, inline_read_summary,
20016         inline_write_summary):
20017         (initialize_inline_failed): Move here from cgraph.c.
20018         * tree-sra.c: Include ipa-inline.h.
20019         (ipa_sra_preliminary_function_checks): Update.
20020         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
20021         ipa-inline.h.
20022
20023 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
20024
20025         * config/i386/sse.md (V16): New mode iterator.
20026         (VI1, VI8): Ditto.
20027         (AVXMODEQI, AVXMODEDI): Remove.
20028         (sse2, sse3): New mode attribute.
20029         (mov<mode>): Use V16 mode iterator.
20030         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
20031         (push<mode>1): Use V16 mode iterator.
20032         (movmisalign<mode>): Ditto.
20033         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20034         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
20035         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
20036         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
20037         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
20038         avx_movdqu<avxmodesuffix>.
20039         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
20040         *avx_movdqu<avxmodesuffix>.
20041         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
20042         avx_lddqu<avxmodesuffix>.
20043         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
20044         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
20045         avx_movnt<AVXMODEDI:mode>.
20046         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
20047         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
20048
20049 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20050
20051         PR target/48629
20052         * haifa-sched.c (prune_ready_list, schedule_block): Use
20053         sched_pressure_p rather than flag_sched_pressure.
20054
20055 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
20056
20057         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20058         cgraph_get_node instead of cgraph_get_create_node.
20059
20060 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
20061
20062         * cfgexpand.c (expand_debug_expr): Use
20063         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
20064
20065 2011-04-15  Michael Matz  <matz@suse.de>
20066
20067         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
20068         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
20069         * function.c (gimplify_parameters): Ditto.
20070         * gimplify.c (gimplify_vla_decl): Ditto.
20071
20072         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
20073         (gimple_call_set_alloca_for_var): New inline function.
20074         (gimple_call_alloca_for_var_p): Ditto.
20075         * gimple.c (gimple_build_call_from_tree): Remember
20076         CALL_ALLOCA_FOR_VAR_P state.
20077         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
20078
20079         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
20080         calls if they were for VLA objects.
20081
20082 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20083
20084         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
20085         of ADR_EXPRs.
20086
20087 2011-04-15  Martin Jambor  <mjambor@suse.cz>
20088
20089         PR middle-end/48601
20090         * tree-emutls.c (lower_emutls_function_body): Call
20091         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
20092         result is non-NULL.
20093
20094 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
20095
20096         * c-decl.c (detect_field_duplicates): Call
20097         objc_detect_field_duplicates instead of objc_get_interface_ivars.
20098
20099 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
20100
20101         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
20102         * gimple.c (gimple_asm_clobbers_memory_p): Define.
20103         * ipa-pure-const.c (check_stmt): Call it.
20104         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
20105
20106 2011-04-15  Richard Guenther  <rguenther@suse.de>
20107
20108         PR tree-optimization/48290
20109         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
20110         Properly decide inhibiting propagation based on the valueized
20111         operand.  Do loop-closed SSA form preserving here ...
20112         (init_copy_prop): ... not here.
20113
20114 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20115
20116         PR target/48612
20117         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
20118         (*ieee_smax<mode>3): Likewise.
20119
20120 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20121
20122         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
20123         Replace match_operand with match_dup for the third operand in
20124         these expanders.
20125
20126 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20127
20128         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
20129         to track processing of conditionals.  Update all callers.
20130         (try_combine, simplify_if_then_else): Update.
20131
20132 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
20133
20134         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
20135         -fsched-pressure.
20136
20137 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
20138
20139         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
20140         instead of match_operand for operand 3.
20141
20142 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
20143
20144         * recog.h (insn_operand_data): Add an "allows_mem" field.
20145         * genoutput.c (output_operand_data): Initialize it.
20146         * optabs.c (maybe_legitimize_operand_same_code): New function.
20147         (maybe_legitimize_operand): Use it when matching the original
20148         op->value.
20149
20150 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20151
20152         * gimplify.c: Fix issues in comments throughout.
20153         (voidify_wrapper_expr): Fix long line.
20154         (build_stack_save_restore): Likewise.
20155         (gimplify_loop_expr): Likewise.
20156         (gimplify_compound_lval): Likewise.
20157         (gimplify_init_ctor_eval): Likewise.
20158         (gimplify_modify_expr_rhs): Likewise.
20159         (omp_notice_threadprivate_variable): Likewise.
20160
20161 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
20162
20163         * cfgexpand.c (expand_call_stmt): Convert the function type to the
20164         original one if this is not a builtin function.
20165
20166 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
20167
20168         PR target/48605
20169         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
20170         offset it as needed based on top 2 bits in operands[3], change
20171         MEM mode to SFmode and mask those 2 bits away from operands[3].
20172
20173 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20174
20175         * c-parser.c (c_parser_objc_protocol_definition): Updated for
20176         change from objc_declare_protocols() to objc_declare_protocol().
20177
20178 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
20179
20180         * config/i386/sse.md (sse4_1): New mode attribute.
20181         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
20182         avx_blend<ssemodesuffix><avxmodesuffix> and
20183         sse4_1_blend<ssemodesuffix> using VF mode iterator.
20184         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
20185         avx_blendv<ssemodesuffix><avxmodesuffix> and
20186         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
20187         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
20188         avx_dp<ssemodesuffix><avxmodesuffix> and
20189         sse4_1_dp<ssemodesuffix> using VF mode iterator.
20190         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
20191         (sse4_1_packusdw): Merge with *avx_packusdw.
20192         (sse4_1_pblendvb): Merge with *avx_pblendvb.
20193         (sse4_1_pblendw): Merge with *avx_pblendw.
20194         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
20195         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
20196         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
20197         VF mode iterator.
20198         (sse4_1_round<ssescalarmodesuffix>): Merge with
20199         *avx_round<ssescalarmodesuffix>.
20200         (aesenc): Merge with *avx_aesenc.
20201         (aesenclast): Merge with *avx_aesenclast.
20202         (aesdec): Merge with *avx_aesdec.
20203         (aesdeclast): Merge with *avx_aesdeclast.
20204         (pclmulqdq): Merge with *pclmulqdq.
20205         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
20206         New predicate.
20207         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
20208
20209 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
20210
20211         PR middle-end/48608
20212         * cfgexpand.c (get_decl_align_unit): Renamed to ...
20213         (align_local_variable): This.  Update DECL_ALIGN.
20214         (add_stack_var): Updated.
20215         (expand_one_stack_var): Likewise.
20216
20217 2011-04-14  Richard Guenther  <rguenther@suse.de>
20218
20219         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
20220         Remove.
20221         (dse_initialize_block_local_data, dse_leave_block,
20222         record_voperand_set, get_stmt_uid): Likewise.
20223         (dse_possible_dead_store_p): Allow any kind of killing stmt.
20224         (dse_optimize_stmt): Remove voperand set handling code.
20225         Simplify and improve to handle any kind of killing stmt.
20226         (dse_record_phi): Remove.
20227         (dse_enter_block): Simplify.
20228         (tree_ssa_dse): Likewise.
20229         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
20230
20231 2011-04-14  Jan Hubicka  <jh@suse.cz>
20232
20233         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
20234         * cgraph.h (struct inline_summary): Move to ipa-inline.h
20235         (cgraph_local_info): Remove inline_summary.
20236         * ipa-cp.c: Include ipa-inline.h.
20237         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
20238         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
20239         accesor.
20240         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
20241         (input_overwrite_node): Do not set inline summary.
20242         (input_node): Do not stream inline summary.
20243         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
20244         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
20245         growth; we do not have inline parameters computed for that anyway.
20246         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
20247         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
20248         (inline_summary_t): New type and VECtor.
20249         (debug_inline_summary, dump_inline_summaries): Declare.
20250         (inline_summary): Use VOCtor.
20251         (estimate_edge_growth): Kill hack computing call stmt size directly.
20252         * lto-section-in.c (lto_section_name): Add inline section.
20253         * ipa-inline-analysis.c: Include lto-streamer.h
20254         (node_removal_hook_holder, node_duplication_hook_holder): New holders
20255         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
20256         (inline_summary_vec): Define.
20257         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
20258         dump_inline_summaries): New functions.
20259         (estimate_function_body_sizes): Properly compute size/time of outgoing
20260         calls.
20261         (compute_inline_parameters): Alloc inline_summary; do not compute
20262         size/time of incomming calls.
20263         (estimate_edge_time): Avoid missing time summary hack.
20264         (inline_read_summary): Read inline summary info.
20265         (inline_write_summary): Write inline summary info.
20266         (inline_free_summary): Free all hooks and inline summary vector.
20267         * lto-streamer.h: Add LTO_section_inline_summary section.
20268         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
20269         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
20270
20271 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20272
20273         * tree-vectorizer.h (vect_strided_store_supported): Add a
20274         HOST_WIDE_INT argument.
20275         (vect_strided_load_supported): Likewise.
20276         (vect_permute_store_chain): Return void.
20277         (vect_transform_strided_load): Likewise.
20278         (vect_permute_load_chain): Delete.
20279         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
20280         count argument.  Check that the count is a power of two.
20281         (vect_strided_load_supported): Likewise.
20282         (vect_permute_store_chain): Return void.  Update after above changes.
20283         Assert that the access is supported.
20284         (vect_permute_load_chain): Likewise.
20285         (vect_transform_strided_load): Return void.
20286         * tree-vect-stmts.c (vectorizable_store): Update calls after
20287         above interface changes.
20288         (vectorizable_load): Likewise.
20289         (vect_analyze_stmt): Don't check for strided powers of two here.
20290
20291 2011-04-14  Richard Guenther  <rguenther@suse.de>
20292
20293         PR tree-optimization/48590
20294         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20295         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20296         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
20297         BUILT_IN_STACK_SAVE.
20298         * tree-ssa-dce.c (propagate_necessity): Handle
20299         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
20300
20301 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
20302
20303         * c-parser.c (c_parser_objc_class_declaration): Updated call to
20304         objc_declare_class.
20305
20306 2011-04-14  Richard Guenther  <rguenther@suse.de>
20307
20308         * tree.h (get_object_alignment_1): Declare.
20309         * builtins.c (get_object_alignment_1): Split out worker from ...
20310         (get_object_alignment): ... here.
20311         * fold-const.c (get_pointer_modulus_and_residue): Use
20312         get_object_alignment_1.
20313
20314 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20315
20316         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
20317         type parameter.
20318         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
20319         parameter.  Generalise code to handle arrays as well as vectors.
20320         (vect_setup_realignment): Update accordingly.
20321         * tree-vect-stmts.c (vectorizable_store): Likewise.
20322         (vectorizable_load): Likewise.
20323
20324 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20325
20326         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
20327         within the per-copy loop.
20328
20329 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20330
20331         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
20332         in the dump file.
20333
20334 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
20335
20336         * doc/options.texi (Negative): Explicitly mention that the
20337         Negative chain must be circular.
20338
20339 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
20340
20341         * function.h (block_chainon): Declare.
20342         * function.c (block_chainon): Define.
20343
20344 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
20345             Eric Weddington  <eric.weddington@atmel.com>
20346             Georg-Johann Lay  <avr@gjlay.de>
20347
20348         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
20349         New Includes
20350         (avr_init_builtins, avr_expand_builtin,
20351         avr_expand_delay_cycles, avr_expand_unop_builtin,
20352         avr_expand_binop_builtin ): New functions.
20353         (avr_builtin_id): New enum
20354         (struct avr_builtin_description): New struct
20355         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
20356         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20357
20358         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
20359         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
20360         UNSPECV_DELAY_CYCLES): new enumeration values
20361         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
20362         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
20363         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
20364         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
20365         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
20366         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
20367         "fmulsu"): New insns
20368
20369         * config/avr/avr-c.c: fix line endings
20370         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
20371         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
20372         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
20373         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
20374         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
20375
20376         * doc/extend.texi (AVR Built-in Functions): New node
20377         (Target Builtins): Add documentation of AVR
20378         built-in functions.
20379
20380 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
20381
20382         PR target/44643
20383         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
20384         alone. Error if non-const data has attribute progmem.
20385
20386 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20387
20388         * tree.h (struct tree_constructor): Include tree_typed instead of
20389         tree_common.
20390         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
20391         TS_TYPED instead of TS_COMMON.
20392
20393 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20394
20395         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
20396         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
20397         (sse2_psadbw): Merge with *avx_psadbw.
20398         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
20399         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
20400         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
20401         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
20402         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
20403         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
20404         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
20405         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
20406         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
20407         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
20408         (ssse3_palignrti): Merge with *avx_palignrti.
20409
20410 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20411
20412         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
20413         * tree-ssanames.c (fini_ssanames): VEC_free it.
20414         (make_ssa_name_fn): Update for VECness of free_ssanames.
20415         (release_ssa_name, release_dead_ssa_names): Likewise.
20416         * tree.h (struct tree_ssa_name): Include tree_typed instead of
20417         tree_common.
20418         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
20419         TS_TYPED instead of TS_COMMON.
20420
20421 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20422
20423         * postreload-gcse.c (gcse_after_reload_main): Add calls to
20424         statistics_counter_event.
20425         * tree-ssa-copyrename.c (stats): Define.
20426         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
20427         statistics_counter_event.
20428         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
20429         (bswap_stats, widen_mul_stats): Define.
20430         (insert_reciprocals): Increment rdivs_inserted.
20431         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
20432         rfuncs_inserted.  Add calls to statistics_counter_event.
20433         (execute_cse_sincos_1): Increment inserted.
20434         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
20435         statistics_counter_event.
20436         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
20437         of bswap_stats.  Add calls to statistics_counter_event.
20438         (convert_mult_to_widen): Increment widen_mults_inserted.
20439         (convert_plusminus_to_widen): Increment maccs_inserted.
20440         (convert_mult_to_fma): Increment fmas_inserted.
20441         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
20442         calls to statistics_counter_event.
20443
20444 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
20445
20446         PR rtl-optimization/48455
20447         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
20448         `temp_costs->mem_cost'.
20449
20450 2011-04-13  Jan Hubicka  <jh@suse.cz>
20451
20452         * ipa-inline.h: New file.
20453         * ipa-inline-analysis.c: New file. Broken out of ...
20454         * ipa-inline.c: ... this file; update toplevel comment;
20455         include ipa-inline.h
20456         (inline_summary): Move to ipa-inline.h
20457         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
20458         ipa-inline-analysis.c.
20459         (cgraph_estimate_time_after_inlining): Rename to
20460         estiamte_time_after_inlining; move to ipa-inline-analysis.c
20461         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
20462         to estimate_edge_growth.
20463         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
20464         rename to estimate_size_after_inlining.
20465         (cgraph_mark_inline_edge): Update for new naming convention.
20466         (cgraph_check_inline_limits): Likewise.
20467         (cgraph_edge_badness): Likewise.
20468         (cgraph_decide_recursive_inlining): Likewise.
20469         (cgraph_decide_inlining_of_small_functions): Likewise.
20470         (cgraph_decide_inlining_incrementally): Likewise.
20471         (cgraph_estimate_growth): Rename to estimate_growth; move to
20472         ipa-inline-analysis.c.
20473         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
20474         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
20475         (compute_inline_parameters): Likewise.
20476         (compute_inline_parameters_for_current): Likewise.
20477         (pass_inline_parameters): Likewise.
20478         (inline_indirect_intraprocedural_analysis): Likewise.
20479         (analyze_function): Rename to inline_analyze_function; likewise.
20480         (add_new_function): Move to ipa-inline-analysis.c.
20481         (inline_generate_summary): Likewise.
20482         (inline_read_summary): Likewise.
20483         (inline_write_summary): Likewise.
20484         * Makefile.in (ipa-inline-analysis.c): New file.
20485
20486 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20487
20488         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
20489         * configure: Regenerate.
20490
20491 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
20492
20493         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
20494         instead of tree_common.
20495         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
20496         Likewise.
20497         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
20498         TS_TYPED rather than TS_COMMON.
20499         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
20500
20501 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
20502
20503         PR target/45263
20504         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
20505         r20 around calls of __tablejump_elpm__
20506
20507 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
20508
20509         PR middle-end/48591
20510         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
20511         NULL.
20512         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
20513
20514 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
20515
20516         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
20517         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
20518         (cfi_vec): New typedef.
20519         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
20520         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
20521         (cie_cfi_vec): New static variable.
20522         (cie_cfi_head): Delete.
20523         (add_cfi): Accept a cfi_vec * as first argument. All callers and
20524         declaration changed. Use vector rather than list operations.
20525         (new_cfi): Don't initialize the dw_cfi_next field.
20526         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
20527         rather than list operations.
20528         (lookup_cfa): Use vector rather than list operations.
20529         (output_cfis): New argument upto. Accept a cfi_vec rather than
20530         a dw_cfi_ref list head as argument. All callers changed.
20531         Iterate over the vector using upto as a maximum index.
20532         (output_all_cfis): New static function.
20533         (output_fde): Use vector rather than list operations. Use the
20534         new upto argument for output_cfis rather than manipulating a
20535         list.
20536         (dwarf2out_begin_prologue): Change initializations to match
20537         new struct members.
20538         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
20539         from the vector length rather than searching for the end of a list.
20540         Use output_all_cfis.
20541         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
20542
20543 2011-04-13  Nick Clifton  <nickc@redhat.com>
20544
20545         * config/rx/rx.md (movmemsi): Do not use this pattern when
20546         volatile pointers are involved.
20547
20548 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
20549
20550         * config/i386/sse.md (pinsrbits): Remove.
20551         (sse2_packsswb): Merge with *avx_packsswb.
20552         (sse2_packssdw): Merge with *avx_packssdw.
20553         (sse2_packuswb): Merge with *avx_packuswb.
20554         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
20555         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
20556         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
20557         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
20558         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
20559         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
20560         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
20561         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
20562         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
20563         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
20564         (sse2_loadld): Merge with *avx_loadld.
20565         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
20566         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
20567         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
20568         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
20569         (vec_concatv2di): Merge with *vec_concatv2di_avx.
20570
20571 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
20572
20573         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
20574         calling TREE_CHAIN.
20575         * print-tree.c (print_node): Likewise.
20576         * tree-inline.c (copy_tree_r): Likewise.
20577         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
20578         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
20579         instead of TS_COMMON.
20580         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
20581         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
20582         (copy_node_stat): Zero TREE_CHAIN only if necessary.
20583         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
20584         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
20585         ...and these...
20586         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
20587         * tree.h: ...here.
20588         (TREE_CHAIN): Check for a TS_COMMON structure.
20589         (TREE_TYPE): Check for a TS_TYPED structure.
20590
20591 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
20592
20593         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
20594         cgraph_get_create_node instead of cgraph_node.
20595
20596 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20597
20598         * c-parser.c (c_parser_initelt): Updated call to
20599         objc_build_message_expr.
20600         (c_parser_postfix_expression): Likewise.
20601
20602 2011-04-12  Kai Tietz  <ktietz@redhat.com>
20603
20604         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
20605         MASK_MS_BITFIELD_LAYOUT bit.
20606
20607 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20608
20609         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
20610         assert it is always true.
20611         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
20612         moves.
20613
20614 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
20615
20616         * c-parser.c (c_lex_one_token): Rewritten conditional used when
20617         compiling Objective-C to be more efficient.
20618
20619 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
20620
20621         * opts-common.c (decode_cmdline_options_to_array): Remove variable
20622         argv_copied.
20623
20624 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20625
20626         * recog.h, genoutput.c, optabs.c: Revert last patch.
20627
20628 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20629
20630         PR target/48090
20631         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
20632
20633 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20634
20635         * recog.h (insn_operand_data): Add an "allows_mem" field.
20636         * genoutput.c (output_operand_data): Initialize it.
20637         * optabs.c (maybe_legitimize_operand_same_code): New function.
20638         (maybe_legitimize_operand): Use it when matching the original
20639         op->value.
20640
20641 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20642
20643         * genpreds.c (process_define_predicate): Move most processing
20644         to gensupport.c.  Continue to validate the expression.
20645         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20646         (process_define_predicate): Move processing to gensupport.c.
20647         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20648         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20649         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
20650         argument.
20651         (valid_predicate_name_p): New function, split out from old
20652         genpreds.c:process_define_predicate.
20653         (process_define_predicate): New function, combining code from
20654         old genpreds.c and genrecog.c functions.
20655         (process_rtx): Call it for DEFINE_PREDICATE and
20656         DEFINE_SPECIAL_PREDICATE.
20657
20658 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20659
20660         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20661         size of a '%A' memory reference.
20662         (T_DREG, T_QREG): New neon_builtin_type_bits.
20663         (arm_init_neon_builtins): Assert that the load and store operands
20664         are neon_struct_operands.
20665         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20666         (NEON_ARG_MEMORY): New builtin_arg.
20667         (neon_dereference_pointer): New function.
20668         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20669         Handle NEON_ARG_MEMORY.
20670         (arm_expand_neon_builtin): Update after above interface changes.
20671         Use NEON_ARG_MEMORY for loads and stores.
20672         * config/arm/predicates.md (neon_struct_operand): New predicate.
20673         * config/arm/iterators.md (V_two_elem): Tweak formatting.
20674         (V_three_elem): Use BLKmode for accesses that have no associated mode.
20675         (V_four_elem): Tweak formatting.
20676         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20677         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20678         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20679         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20680         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20681         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20682         (neon_vst4<mode>): Replace pointer operand with a memory operand.
20683         Use %A in the output template.
20684         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20685         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20686         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20687         the width of the memory access.  Remove post-increment.
20688         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20689
20690 2011-04-12  Nick Clifton  <nickc@redhat.com>
20691
20692         * config/v850/v850.c (expand_prologue): Do not use the CALLT
20693         instruction for interrupt handlers if the target is the basic V850
20694         architecture.
20695         (expand_epilogue): Likewise.
20696
20697 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20698
20699         PR rtl-optimization/48549
20700         * combine.c (propagate_for_debug): Also stop after BB_END of
20701         this_basic_block.  Process LAST and just stop processing after it.
20702         (combine_instructions): If last_combined_insn has been deleted,
20703         set last_combined_insn to its PREV_INSN.
20704
20705 2011-04-12  Richard Guenther  <rguenther@suse.de>
20706
20707         PR tree-optimization/46076
20708         * gimple.h (struct gimple_statement_call): Add fntype field.
20709         (gimple_call_fntype): Adjust.
20710         (gimple_call_set_fntype): New function.
20711         * gimple.c (gimple_build_call_1): Set the call function type.
20712         * gimplify.c (gimplify_call_expr): Preserve the function
20713         type the frontend used for the call.
20714         (gimplify_modify_expr): Likewise.
20715         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20716         function type.
20717         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20718         function type.
20719         * tree-ssa.c (useless_type_conversion_p): Function pointer
20720         conversions are useless.
20721
20722 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20723
20724         * cgraph.h (cgraph_node): Remove function declaration.
20725         (cgraph_create_node): Declare.
20726         (cgraph_get_create_node): Likewise.
20727         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20728         Updated all callers.
20729         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20730         the decl does not already exist.  Call cgraph_get_create_node instead
20731         of cgraph_node.
20732         (cgraph_get_create_node): New function.
20733         (cgraph_same_body_alias): Update comment.
20734         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20735         assert it does not return NULL.
20736         (cgraph_update_edges_for_call_stmt): Likewise.
20737         (cgraph_clone_edge): Likewise.
20738         (cgraph_create_virtual_clone): Likewise.
20739         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20740         instead of cgraph_node.
20741         (cgraph_add_new_function): Call cgraph_create_node or
20742         cgraph_get_create_node instead of cgraph_node.
20743         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20744         instead of cgraph_node.
20745         (record_eh_tables): Likewise.
20746         (mark_address): Likewise.
20747         (mark_load): Likewise.
20748         (build_cgraph_edges): Call cgraph_get_create_node instead
20749         of cgraph_node.
20750         (rebuild_cgraph_edges): Likewise.
20751         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20752         instead of cgraph_node.
20753         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20754         cgraph_node.
20755         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20756         cgraph_create_node instead of cgraph_node.
20757         * c-decl.c (finish_function): Call cgraph_get_create_node instead
20758         of cgraph_node.
20759         * lto-cgraph.c (input_node): Likewise.
20760         * lto-streamer-in.c (input_function): Likewise.
20761         * varasm.c (mark_decl_referenced): Likewise.
20762         (assemble_alias): Likewise.
20763
20764 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20765
20766         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20767         instead of cgraph_node and assert it does not return NULL.
20768         * lto-streamer-in.c (lto_read_body): Likewise.
20769         * omp-low.c (new_omp_context): Likewise.
20770         (create_task_copyfn): Likewise.
20771         * tree-emutls.c (lower_emutls_function_body): Likewise.
20772         * matrix-reorg.c (transform_allocation_sites): Likewise.
20773
20774 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20775
20776         PR c/48552
20777         * c-typeck.c (build_asm_expr): Error out on attempts to use
20778         void type outputs or inputs for constraints that allow reg or
20779         don't allow memory.
20780
20781 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
20782             Richard Earnshaw  <rearnsha@arm.com>
20783
20784         PR target/48250
20785         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20786         to use sign-magnitude offsets. Reject unsupported unaligned
20787         cases. Add detailed description in comments.
20788         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20789         condition from TARGET_32BIT to TARGET_ARM.
20790
20791 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
20792
20793         * tree.h (struct typed_tree): New.
20794         (struct tree_common): Include it instead of tree_base.
20795         (TREE_TYPE): Update for new location of type field.
20796         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20797         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20798         (union tree_node): Add typed field.
20799         * treestruct.def (TS_TYPED): New.
20800         * lto-streamer.c (check_handled_ts_structures): Handle it.
20801         * tree.c (MARK_TS_TYPED): New macro.
20802         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20803
20804 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
20805
20806         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20807         (force_nonfallthru): Do not alter the loop nest if no basic block
20808         was created.
20809
20810 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20811
20812         * config/i386/sse.md (VI): New mode iterator.
20813         (SSEMODEI): Remove.
20814         (AVX256MODEI): Ditto.
20815         (AVXMODEF4P): Ditto.
20816         (avxvecpsmode): Ditto.
20817         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
20818         (sse2_andnot<mode>3): New expander.
20819         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20820         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
20821         (<any_logic:code><mode>3): Use VI mode iterator.
20822         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20823         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
20824         (*andnottf3): Handle AVX three-operand constraints.
20825         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20826
20827 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20828             Robert Millan  <rmh@gnu.org>
20829
20830         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20831         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20832         GNU_USER_DYNAMIC_LINKER64): Define.
20833         (REG_NAME): Don't undefine.
20834         (MD_UNWIND_SUPPORT): Undefine.
20835         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20836         (REG_NAME): Don't undefine.
20837         (MD_UNWIND_SUPPORT): Undefine.
20838         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20839
20840 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20841
20842         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20843         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20844
20845 2011-04-11  Xinliang David Li  <davidxl@google.com>
20846
20847         * value-profile.c (check_ic_target): New function.
20848         (gimple_ic_transform): Sanity check indirect call target.
20849         * gimple-low.c (gimple_check_call_args): Interface change.
20850         (gimple_check_call_matching_types): New function.
20851         * tree-inline.c (tree_can_inline_p): Call new function.
20852
20853 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
20854
20855         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20856         tree-pretty-print.h & realmpfr.h.
20857
20858 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
20859
20860         PR middle-end/48464
20861         * ira.c (setup_pressure_classes): Fix typo in loop condition.
20862         (setup_allocno_and_important_classes): Ditto.
20863
20864 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20865
20866         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20867         GNU_USER_DYNAMIC_LINKER.
20868         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20869         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20870         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20871         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20872         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20873         GNU_USER_TARGET_OS_CPP_BUILTINS.
20874         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20875         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20876         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20877         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20878         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20879         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20880         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20881         GNU_USER_TARGET_OS_CPP_BUILTINS.
20882         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20883         GNU_USER_DYNAMIC_LINKER.
20884         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20885         GNU_USER_TARGET_OS_CPP_BUILTINS.
20886         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20887         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20888         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20889         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20890         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20891         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20892         GNU_USER_DYNAMIC_LINKER64): Remove.
20893         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20894         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20895         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20896         GNU_USER_DYNAMIC_LINKER.
20897         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20898         GNU_USER_TARGET_OS_CPP_BUILTINS.
20899         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20900         GNU_USER_TARGET_OS_CPP_BUILTINS.
20901         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20902         to GNU_USER_TARGET_OS_CPP_BUILTINS.
20903         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20904         GNU_USER_TARGET_OS_CPP_BUILTINS.
20905         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20906         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20907         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20908         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20909         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20910         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20911         GNU_USER_DYNAMIC_LINKER.
20912         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20913         GNU_USER_TARGET_OS_CPP_BUILTINS.
20914         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20915         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20916         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20917         GNU_USER_DYNAMIC_LINKER.
20918         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20919         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20920         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20921         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20922         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20923         GNU_USER_DYNAMIC_LINKER.
20924         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20925         GNU_USER_DYNAMIC_LINKERN32.
20926         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20927         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
20928         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
20929         GNU_USER_DYNAMIC_LINKER32.
20930         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20931         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20932         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20933         GNU_USER_DYNAMIC_LINKER.
20934         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20935         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20936         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20937         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20938         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20939         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20940         GNU_USER_DYNAMIC_LINKER32.
20941         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20942         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20943         GNU_USER_DYNAMIC_LINKER.
20944         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20945         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20946         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20947         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
20948         GNU_USER_DYNAMIC_LINKER64.
20949         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20950         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20951         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20952         GNU_USER_DYNAMIC_LINKER.
20953         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20954         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20955         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20956         GNU_USER_DYNAMIC_LINKER.
20957         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20958         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20959         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20960         GNU_USER_DYNAMIC_LINKER32.
20961         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20962         GNU_USER_DYNAMIC_LINKER64.
20963         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20964         GNU_USER_DYNAMIC_LINKER64.
20965         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20966         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20967         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20968         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20969         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20970
20971 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20972
20973         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
20974         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20975         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20976         GNU_USER_DYNAMIC_LINKER.
20977         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20978         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
20979         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20980         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20981         GNU_USER_DYNAMIC_LINKER64.
20982         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20983         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20984         GNU_USER_LINK_EMULATION.
20985         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20986         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20987         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20988         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20989         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20990         CPP_SPEC, CC1_SPEC): Remove.
20991         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20992         (GNU_USER_DYNAMIC_LINKER): Define.
20993         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20994         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20995         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20996         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20997         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20998         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20999         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21000         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
21001         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
21002         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
21003         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
21004         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
21005         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
21006         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
21007         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
21008         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
21009         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21010         GNU_USER_DYNAMIC_LINKER.
21011         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21012         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21013         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21014         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21015         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
21016         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
21017         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
21018         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
21019         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
21020         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
21021
21022 2011-04-11  Kai Tietz  <ktietz@redhat.com>
21023
21024         PR target/9601
21025         PR target/11772
21026         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
21027         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
21028         comment.
21029         (ix86_is_msabi_thiscall): Removed.
21030         (ix86_is_type_thiscall): Likewise.
21031         (ix86_get_callcvt): New function.
21032         (ix86_comp_type_attributes): Simplify check.
21033         (ix86_function_regparm): Use ix86_get_callcvt for calling
21034         convention attribute checks.
21035         (ix86_return_pops_args): Likewise.
21036         (ix86_static_chain): Likewise.
21037         (x86_this_parameter): Likewise.
21038         (x86_output_mi_thunk): Likewise.
21039         (ix86_function_type_abi): Optimize check for types without attributes.
21040         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
21041         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
21042         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
21043         by flag-values.
21044         (IX86_BASE_CALLCVT): Helper macro.
21045         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
21046         Use ix86_get_callcvt for calling convention attribute checks and avoid
21047         symbol-decoration for stdcall in TARGET_RTD case.
21048         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
21049         Likewise.
21050         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
21051         for declaration.
21052
21053 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
21054
21055         * config/i386/sse.md (VI_128): New mode iterator.
21056         (VI12_128): Rename from SSEMODE12.
21057         (VI14_128): Rename from SSEMODE14.
21058         (VI124_128): New mode iterator.
21059         (VI24_128): Rename from SSEMODE248.
21060         (VI248_128): Rename from SSEMODE248.
21061         (SSEMODE124C8): Remove.
21062         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21063         (*sse2_<plusminus_insn><mode>3): Merge with
21064         *avx_<plusminus_insn><mode>3.
21065         (*mulv8hi3): Merge with *avx_mulv8hi3.
21066         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
21067         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
21068         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
21069         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
21070         (ashr<mode>3): Merge with *avx_ashr<mode>3.
21071         (lshr<mode>3): Merge with *avx_lshr<mode>3.
21072         (ashl<mode>3): Merge with *avx_ashl<mode>3.
21073         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
21074         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
21075         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21076         (*<smaxmin:code>v8hi3): Ditto.
21077         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
21078         (*<smaxmin:code>v16qi3): Ditto.
21079         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
21080         (*sse2_eq<mode>3): Ditto.
21081         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
21082         (*sse2_gt<mode>3): Ditto.
21083         (vcondv2di): Split out of vcond<mode>.
21084         (vconduv2di): Split out of vcondu<mode>.
21085
21086 2011-04-11  Richard Guenther  <rguenther@suse.de>
21087
21088         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
21089         before calling tree_low_cst.
21090
21091 2011-04-11  Richard Guenther  <rguenther@suse.de>
21092
21093         * stor-layout.c (layout_type): Compute all array index size operations
21094         in the original type.
21095         (initialize_sizetypes): Add comment.
21096         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
21097
21098 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
21099
21100         * common.opt (Tbss=, Tdata=, Ttext=): New options.
21101
21102 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21103
21104         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
21105         of cgraph_node, handle NULL return value.
21106         (cgraph_global_info): Likewise.
21107         (cgraph_rtl_info): Likewise.
21108         * tree-inline.c (estimate_num_insns): Likewise.
21109         * gimplify.c (unshare_body): Likewise.
21110         (unvisit_body): Likewise.
21111         (gimplify_body): Likewise.
21112         * predict.c (optimize_function_for_size_p): Likewise.
21113         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
21114         (call_may_clobber_ref_p_1): Likewise.
21115         * varasm.c (function_section_1): Likewise.
21116         (assemble_start_function): Likewise.
21117
21118 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21119
21120         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
21121         of cgraph_node.
21122         * final.c (rest_of_clean_state): Likewise.
21123         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
21124         * passes.c (pass_init_dump_file): Likewise.
21125         (execute_all_ipa_transforms): Likewise.
21126         (function_called_by_processed_nodes_p): Likewise.
21127         * predict.c (maybe_hot_frequency_p): Likewise.
21128         (probably_never_executed_bb_p): Likewise.
21129         (compute_function_frequency): Likewise.
21130         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
21131         (unnest_nesting_tree_1): Likewise.
21132         (lower_nested_functions): Likewise.
21133         * tree-optimize.c (execute_fixup_cfg): Likewise.
21134         (tree_rest_of_compilation): Likewise.
21135         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
21136         * tree-sra.c (ipa_early_sra): Likewise.
21137         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21138         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
21139         * ipa.c (record_cdtor_fn): Likewise.
21140         * ipa-inline.c (cgraph_early_inlining): Likewise.
21141         (compute_inline_parameters_for_current): Likewise.
21142         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
21143         * ipa-pure-const.c (local_pure_const): Likewise.
21144         * ipa-split.c (split_function): Likewise.
21145         (execute_split_functions): Likewise.
21146         * cgraphbuild.c (build_cgraph_edges): Likewise.
21147         (rebuild_cgraph_edges): Likewise.
21148         (cgraph_rebuild_references): Likewise.
21149         (remove_cgraph_callee_edges): Likewise.
21150         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
21151         (verify_cgraph_node): Likewise.
21152         (cgraph_analyze_functions): Likewise.
21153         (cgraph_preserve_function_body_p): Likewise.
21154         (save_inline_function_body): Likewise.
21155         (save_inline_function_body): Likewise.
21156         * tree-inline.c (copy_bb): Likewise.
21157         (optimize_inline_calls): Likewise.
21158
21159 2011-04-11  Martin Jambor  <mjambor@suse.cz>
21160
21161         PR tree-optimization/48195
21162         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
21163         ipa_check_create_edge_args.
21164         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
21165         ipa_check_create_edge_args.
21166         * ipa-inline.c (inline_generate_summary): Do not call
21167         ipa_check_create_node_params and ipa_check_create_edge_args.
21168         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
21169         ipa_check_create_edge_args.
21170
21171 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
21172
21173         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
21174         instead of loop.
21175         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21176         * function.c (record_hard_reg_sets): Likewise.
21177         * ira.c (compute_regs_asm_clobbered): Likewise.
21178         * sched-deps.c (sched_analyze_1): Likewise.
21179         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
21180
21181 2011-04-09  Xinliang David Li  <davidxl@google.com>
21182
21183         PR tree-optimization/PR48484
21184         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
21185         has_valid_pred lazily
21186
21187 2011-04-09  Duncan Sands  <baldrick@free.fr>
21188
21189         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
21190
21191 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21192
21193         * combine.c (combine_validate_cost): Adjust comments.  Set registered
21194         cost of I0 to zero at the end, if any.
21195
21196 2011-04-08  Xinliang David Li  <davidxl@google.com>
21197
21198         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
21199         to insane profile data.
21200
21201 2011-04-08  Xinliang David Li  <davidxl@google.com>
21202
21203         * ipa-cp.c (ipcp_update_profiling): Correct
21204          negative scale factor due to insane profile data.
21205
21206 2011-04-08  Xinliang David Li  <davidxl@google.com>
21207
21208         * final.c (dump_basic_block_info): New function.
21209         (final): Dump basic block.
21210         (final_scan_insn): Remove old dump.
21211
21212 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
21213
21214         PR target/47829
21215         * config.gcc (i386-*-freebsd): Disable unwind table generation for
21216         crtbegin/crtend.
21217
21218 2011-04-08  Michael Matz  <matz@suse.de>
21219
21220         PR middle-end/48389
21221         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
21222         functions.
21223         (rebuild_jump_labels): Call rebuild_jump_labels_1.
21224         * rtl.h (rebuild_jump_labels_chain): Declare.
21225         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
21226         insns inserted on edges.
21227
21228 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
21229
21230         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
21231         * config/arm/arm-arches.def: New.
21232         * config/arm/arm-opts.h: New.
21233         * config/arm/genopt.sh: New.
21234         * config/arm/arm-tables.opt: New (generated).
21235         * config/arm/arm.c (arm_handle_option, arm_target_help,
21236         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
21237         (all_architectures): Get most table contents from arm-arches.def.
21238         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
21239         arm_selected_tune here.
21240         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
21241         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
21242         (march=, mcpu=, mtune=): Use Enum and Var.
21243         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
21244         (arm.o): Update dependencies.
21245
21246 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
21247
21248         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
21249         of header_file.
21250         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
21251         (write_typed_alloc_defns): Likewise.
21252         (main): Calls write_typed_alloc_defns with output_header.
21253
21254 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
21255
21256         PR inline-asm/48435
21257         * ira-color.c (setup_profitable_hard_regs): Add comments.
21258         Don't take prohibited hard regs into account.
21259         (setup_conflict_profitable_regs): Rename to
21260         get_conflict_profitable_regs.
21261         (check_hard_reg_p): Check prohibited hard regs.
21262
21263 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
21264
21265         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
21266         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
21267         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
21268
21269 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21270
21271         PR target/48366
21272         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
21273         move from floating point to shift amount register.
21274         (emit_move_sequence): Remove secondary reload support for floating
21275         point to shift amount amount register copies.
21276         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
21277         amount register copies.
21278         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
21279         register, return false if mode isn't a scalar integer mode.
21280         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
21281
21282 2011-04-08  Richard Guenther  <rguenther@suse.de>
21283
21284         * gimple.c (gimple_call_flags): Remove kludge.
21285
21286 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21287
21288         * sel-sched.c (sel_region_init): Move call to
21289         sel_setup_region_sched_flags after setup_current_loop_nest.
21290
21291 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
21292
21293         PR rtl-optimization/48272
21294         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
21295         init_insn_reg_pressure_info.  Adjust a caller.
21296         * sched-int.h (init_insn_reg_pressure_info): Declare.
21297         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
21298         when sched-pressure is enabled.
21299
21300 2011-04-08  Richard Guenther  <rguenther@suse.de>
21301
21302         * gimple.c (gimple_set_modified): Do not queue calls to
21303         MODIFIED_NORETURN_CALLS here ...
21304         * tree-ssa-operands.c (update_stmt_operands): ... but here.
21305
21306 2011-04-08  Richard Guenther  <rguenther@suse.de>
21307
21308         PR lto/48467
21309         * toplev.c (lang_dependent_init): Do not open asm_out_file
21310         in WPA mode, nor perform debug machinery initialization.
21311         (finalize): Do not unlink asm_out_file in WPA mode.
21312
21313 2011-04-08  Richard Guenther  <rguenther@suse.de>
21314
21315         * gimple.h (gimple_call_fntype): New function.
21316         (gimple_call_return_type): Use it.
21317         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
21318         * gimple-low.c (gimple_check_call_args): Likewise.
21319         * gimple.c (gimple_call_flags): Likewise.
21320         (gimple_call_arg_flags): Likewise.
21321         (gimple_call_return_flags): Likewise.
21322         * tree-cfg.c (verify_gimple_call): Likewise.
21323         (do_warn_unused_result): Likewise.
21324         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21325         * value-prof.c (gimple_ic_transform): Fix fndecl check.
21326
21327 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
21328
21329         PR rtl-optimization/48235
21330         * sel-sched.c (code_motion_process_successors): Recompute the last
21331         insn in basic block if control flow changed.
21332         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
21333         Update condition for ilist_remove.
21334
21335 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21336
21337         PR rtl-optimization/48302
21338         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
21339         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
21340         it to record added preheader blocks.
21341         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
21342         on to sel_add_loop_preheaders.
21343         (sel_region_init): Move call to setup_current_loop_nest after
21344         sel_init_bbs.
21345
21346 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21347
21348         PR target/48273
21349         * cfgloop.h (loop_has_exit_edges): New helper.
21350         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
21351         non-clonable.
21352         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
21353         that have no exit edges.
21354
21355 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
21356
21357         PR rtl-optimization/48442
21358         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
21359         all callers.  Adjust assert.
21360
21361 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
21362
21363         PR tree-optimization/48377
21364         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
21365         is_packed to true even for types with smaller TYPE_ALIGN than
21366         TYPE_SIZE.
21367
21368 2011-04-08  Richard Guenther  <rguenther@suse.de>
21369
21370         PR bootstrap/48513
21371         * doc/tm.texi: Re-generate.
21372
21373 2011-04-08  Wei Guozhi  <carrot@google.com>
21374
21375         PR target/47855
21376         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
21377         * config/arm/arm.c (arm_attr_length_push_multi): New function.
21378         * config/arm/arm.md (*push_multi): Change the length computation to
21379         call a C function.
21380
21381 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
21382
21383         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
21384         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
21385         * doc/tm.texi: Regenerate.
21386         * system.h (ASM_OUTPUT_BSS): Poison.
21387         * varasm.c (asm_output_bss): Remove function.
21388         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
21389
21390         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
21391         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
21392         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
21393         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21394         Likewise.
21395         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21396         Likewise.
21397         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
21398         Likewise.
21399         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
21400
21401 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21402
21403         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
21404         EnumValue lines.
21405
21406 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
21407
21408         * config/m68k/m68k.c (m68k_handle_option): Don't handle
21409         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
21410         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
21411         OPT_mcpu32.
21412         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21413         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
21414         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
21415         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
21416         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
21417         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
21418         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21419         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
21420         options.  Don't map other m68k options manually.  Don't handle
21421         old-style options as canonical.
21422         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
21423         * doc/install.texi (m68k-*-*): Document binutils version requirement.
21424
21425 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
21426
21427         * basic-block.h (force_nonfallthru): Move to...
21428         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
21429         (force_nonfallthru): ...here.
21430         * cfghooks.c (force_nonfallthru): New function.
21431         * cfgrtl.c (force_nonfallthru): Rename into...
21432         (rtl_force_nonfallthru): ...this.
21433         (commit_one_edge_insertion): Do not set AUX field.
21434         (commit_edge_insertions): Do not discover new basic blocks.
21435         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
21436         (cfg_layout_rtl_cfg_hooks): Likewise.
21437         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
21438         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
21439         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
21440
21441 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
21442
21443         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21444         Remove macros.
21445
21446 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
21447
21448         * config/i386/sse.md: Update copyright year.
21449         (avxcvtvecmode): Remove.
21450         (sse_movhlps): Merge with *avx_movhlps.
21451         (sse_movlhps): Merge with *avx_movlhps.
21452         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
21453         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
21454         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
21455         (sse_loadhps): Merge with *avx_loadhps.
21456         (sse_storelps): Merge with *avx_storelps.
21457         (sse_loadlps): Merge with *avx_loadlps.
21458         (sse_movss): Merge with *avx_movss.
21459         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
21460         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
21461         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
21462         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
21463         (vec_set<mode>_0): Ditto.
21464         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
21465         (sse4_1_insertps): Merge with *avx_insertps.
21466         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
21467         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
21468         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
21469         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
21470         (sse2_storehpd): Merge with *avx_storehpd.
21471         (sse2_loadhpd): Merge with *avx_loadhpd.
21472         (sse2_loadlpd): Merge with *avx_loadlpd.
21473         (sse2_movsd): Merge with *avx_movsd.
21474         (*vec_concatv2df): Merge with *vec_concatv2df.
21475
21476 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
21477
21478         PR debug/48343
21479         * combine.c (combine_instructions): Add last_combined_insn,
21480         update it if insn is after it, pass it to all try_combine calls.
21481         (try_combine): Add last_combined_insn parameter, pass it instead of
21482         i3 to propagate_for_debug.
21483
21484 2011-04-07  Nick Clifton  <nickc@redhat.com>
21485
21486         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
21487         to handle MDR <-> data register transfers.
21488         (movhi_internal): Likewise.
21489
21490 2011-04-07  Alan Modra  <amodra@gmail.com>
21491
21492         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
21493         previous stack info.
21494
21495 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21496
21497         PR target/43920
21498         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
21499         flow_find_cross_jump.  Swap variables to implement backward replacement.
21500         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
21501
21502 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21503
21504         PR target/43920
21505         * cfgcleanup.c (walk_to_nondebug_insn): New function.
21506         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
21507         and bb2.
21508         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
21509         src1 or src2.  Redirect edges to the last basic block.  Update
21510         frequency and count on multiple basic blocks in case of fallthru.
21511
21512 2011-04-07  Tom de Vries  <tom@codesourcery.com>
21513
21514         PR target/43920
21515         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
21516         function.
21517         (old_insns_match_p): Change return type.  Replace return false/true
21518         with return dir_none/dir_both.  Use can_replace_by.
21519         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
21520         direction from dir_p.  Register replacement direction in dir, last_dir
21521         and afterlast_dir.  Handle new return type of old_insns_match_p using
21522         merge_dir.  Return replacement direction in dir_p.
21523         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
21524         return type of old_insns_match_p.
21525         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
21526         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
21527         flow_find_cross_jump.
21528         * basic-block.h (enum replace_direction): New type.
21529         (flow_find_cross_jump): Add parameter to declaration.
21530
21531 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21532
21533         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
21534         (AVXMODEDCVTPS2DQ): Ditto.
21535         (VEC_FLOAT_MODE): Ditto.
21536         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
21537         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21538         (<any_logic:code><mode>3): Use VF mode iterator.
21539         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
21540         Use VF mode iterator.
21541         (copysign<mode>3): Use VF mode iterator.
21542         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
21543         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
21544         (*<any_logic:code><MODEF:mode>3): Merge with
21545         *avx_<any_logic:code><MODEF:mode>3.
21546         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
21547         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
21548         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
21549         (avx_cvtdq2ps<avxmodesuffix>): Remove.
21550         (sse2_cvtdq2ps): Use %v modifier.
21551         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
21552         (avx_cvtps2dq<avxmodesuffix>): Remove.
21553         (sse2_cvtps2dq): Use %v modifier.
21554         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
21555         (avx_cvttps2dq<avxmodesuffix>): Remove.
21556         (sse2_cvttps2dq): Use %v modifier.
21557         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
21558         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
21559         (sse2_cvtsd2siq): Fix insn template.
21560         (sse2_cvtsd2siq_2): Ditto.
21561         (sse2_cvttsd2siq): Ditto.
21562         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
21563         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
21564
21565 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21566
21567         * gcov-io.c: Use GCC Runtime Library Exception.
21568
21569 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
21570
21571         PR debug/48466
21572         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
21573         as base_reg whatever register reg has been eliminated to, instead
21574         of hardcoding STACK_POINTER_REGNUM.
21575
21576 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
21577
21578         * doc/tm.texi.in: Document C target hooks as separate from general
21579         target hooks.
21580         * doc/tm.texi: Regenerate.
21581         * genhooks.c (struct hook_desc): Add docname field.
21582         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
21583         docname field.
21584         (hook_array): Include c-target.def.
21585         (emit_documentation): Use docname field in output.
21586         (emit_init_macros): Take docname argument.  Only emit definitions
21587         for hooks matching docname.
21588         (main): Expect additional arguments in all cases.  Pass argument
21589         to emit_init_macros.
21590         * target.def: Move initial macro definitions and comments to
21591         target-hooks-macros.h.
21592         (gcc_targetcm): Move to c-family/c-target.def.
21593         * target.h (targetcm): Move declaration to c-family/c-target.h.
21594         * targhooks.c (default_handle_c_option): Move to
21595         c-family/c-opts.c.
21596         * targhooks.h (default_handle_c_option): Move declaration to
21597         c-family/c-common.h.
21598         * target-hooks-macros.h: New file.
21599         * config.gcc (target_has_targetcm): Define and use to add to
21600         c_target_objs and cxx_target_objs.
21601         * config/default-c.c: New file.
21602         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
21603         of target.h and target-def.h.
21604         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
21605         (darwin_objc_construct_string, darwin_cfstring_ref_p,
21606         darwin_check_cfstring_format_arg): Make static.
21607         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21608         TARGET_STRING_OBJECT_REF_TYPE_P,
21609         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
21610         * config/darwin-protos.h (darwin_objc_construct_string,
21611         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
21612         declare.
21613         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
21614         TARGET_STRING_OBJECT_REF_TYPE_P,
21615         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
21616         * config/t-darwin (darwin-c.o): Update dependencies.
21617         * system.h (TARGET_HAS_TARGETCM): Poison.
21618         * Makefile.in (TARGET_H): Update.
21619         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
21620         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
21621         (default-c.o): New target.
21622         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
21623         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
21624         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
21625         c-target.def.
21626         (build/genhooks.o): Update dependencies.
21627
21628 2011-04-06  Richard Guenther  <rguenther@suse.de>
21629
21630         * ipa-inline.c (enum inlining_mode): Remove.
21631         (cgraph_flatten): Use some other token.
21632         (cgraph_edge_early_inlinable_p): New function, split out from ...
21633         (cgraph_perform_always_inlining): New function, split out from ...
21634         (cgraph_decide_inlining_incrementally): ... here.
21635         (cgraph_mark_inline_edge): Adjust.
21636         (cgraph_early_inlining): Re-structure.
21637         (pass_early_inline): Require SSA form.
21638
21639 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
21640             Julian Brown  <julian@codesourcery.com>
21641             Mark Shinwell  <shinwell@codesourcery.com>
21642
21643         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21644         LO_REGS only for Thumb-1.
21645         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21646         be used in short instructions when optimising for size on Thumb-2.
21647
21648 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21649
21650         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21651         associated with user returns to be preserved.
21652
21653 2011-04-06  Tristan Gingold  <gingold@adacore.com>
21654
21655         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21656         symbol_queue_size, DBXOUT_DECR_NESTING,
21657         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21658         if XCOFF_DEBUGGING_INFO.
21659
21660 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21661
21662         * config/i386/i386.md (attribute isa): New.
21663         (attribute enabled): New.
21664         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21665         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21666         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21667         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21668         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21669         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21670         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21671         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21672
21673         * config/i386/sse.md (VF): New mode iterator.
21674         (VF1): Ditto.
21675         (VF2): Ditto.
21676         (VF_128): Ditto.
21677         (SSEMODEF4): Remove.
21678         (attribute sse): Handle V8SF and V4DF modes.
21679         (<absneg:code><mode>2): Use VF mode iterator.
21680         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
21681         mode iterator.
21682         (<plusminus_insn><mode>3): Use VF mode iterator.
21683         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21684         Use VF mode iterator.
21685         (<sse>_vm<plusminus_insn><mode>3): Merge with
21686         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
21687         (mul<mode>3): Use VF mode iterator.
21688         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
21689         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
21690         mode iterator.
21691         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21692         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21693         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
21694         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
21695         mode iterator.
21696         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21697         Use VF1 mode iterator.
21698         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21699         (sqrt<VF2:mode>2): New expander.
21700         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21701         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21702         and sqrtv2df2.  Use VF mode iterator.
21703         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
21704         mode iterator.
21705         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21706         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21707         Use VF1 mode iterator.
21708         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21709         (<smaxmin:code><mode>3): Use VF mode iterator.
21710         (*<smaxmin:code><mode>3_finite): Merge with
21711         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
21712         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21713         (<sse>_vm<smaxmin:code><mode>2): Merge with
21714         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
21715         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
21716         mode iterator.
21717         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
21718         mode iterator.
21719         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21720         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21721         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21722         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21723         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
21724         VF mode iterator.
21725         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21726         Use VF_128 mode iterator.
21727         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
21728         mode iterator.
21729         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
21730         VF_128 mode iterator.
21731         (vcond<mode>): Use VF mode iterator.
21732         * config/i386/predicates.md (sse_comparison_operator): Merge with
21733         avx_comparison_float_operator.  Do not declare as special_predicate.
21734         * config/i386/i386.c (struct builtin_description): Update for renamed
21735         compare patterns.
21736         (ix86_expand_args_builtin): Ditto.
21737         (ix86_expand_sse_compare_mask): Ditto.
21738
21739 2011-04-06  Richard Guenther  <rguenther@suse.de>
21740
21741         * tree-inline.c (estimate_num_insns): For calls simply account
21742         for all passed arguments and a used return value.
21743
21744 2011-04-06  Richard Guenther  <rguenther@suse.de>
21745
21746         PR tree-optimization/47663
21747         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21748         call_stmt_time fields.
21749         (cgraph_edge_inlinable_p): Declare.
21750         (cgraph_edge_recursive_p): New inline function.
21751         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21752         (cgraph_clone_edge): Copy it.
21753         * ipa-inline.c (cgraph_estimate_edge_time): New function.
21754         Account for call stmt time.
21755         (cgraph_estimate_time_after_inlining): Take edge argument.
21756         (cgraph_estimate_edge_growth): Account call stmt size.
21757         (cgraph_estimate_size_after_inlining): Take edge argument.
21758         (cgraph_mark_inline_edge): Adjust.
21759         (cgraph_check_inline_limits): Likewise.
21760         (cgraph_recursive_inlining_p): Remove.
21761         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21762         (cgraph_decide_recursive_inlining): Take edge argument and
21763         adjust.
21764         (cgraph_decide_inlining_of_small_functions): Do not avoid
21765         diags for recursive inlining here.
21766         (cgraph_flatten): Adjust.
21767         (cgraph_decide_inlining_incrementally): Likewise.
21768         (estimate_function_body_sizes): Remove call cost handling.
21769         (compute_inline_parameters): Initialize caller edge call costs.
21770         (cgraph_estimate_edge_growth): New function.
21771         (cgraph_estimate_growth): Use it.
21772         (cgraph_edge_badness): Likewise.
21773         (cgraph_check_inline_limits): Take an edge argument.
21774         (cgraph_decide_inlining_of_small_functions): Adjust.
21775         (cgraph_decide_inlining): Likewise.
21776         * tree-inline.c (estimate_num_insns): Only account for call
21777         return value if it is used.
21778         (expand_call_inline): Avoid diagnostics on recursive inline
21779         functions here.
21780         * lto-cgraph.c (lto_output_edge): Output edge call costs.
21781         (input_edge): Input edge call costs.
21782
21783 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21784
21785         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21786
21787 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
21788
21789         * doc/invoke.texi (Spec Files): Fix typo.
21790
21791 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21792
21793         * profile.c (branch_prob): Move declaration of local variable.  Remove
21794         obsolete ??? comment.  Expand the location explicitly instead of using
21795         the LOCATION_FILE and LOCATION_LINE macros.
21796
21797 2011-04-06  Wei Guozhi  <carrot@google.com>
21798
21799         PR target/47855
21800         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21801         (arm_cond_branch): Likewise.
21802         (arm_cond_branch_reversed): Likewise.
21803         (arm_jump): Likewise.
21804         (push_multi): Likewise.
21805         * config/arm/constraints.md (Py): New constraint.
21806
21807 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21808
21809         PR bootstrap/48471
21810         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21811         Move these...
21812         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21813         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21814         #ifdef DBX_DEBUGGING_INFO.
21815
21816 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
21817
21818         PR bootstrap/48403
21819         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21820         if old and new states differ.
21821
21822 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21823
21824         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21825         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21826         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21827         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21828         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21829         mcfv4e): Use Alias.
21830         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21831         ColdFire options to -mcpu= options.
21832
21833 2011-04-05  Jeff Law  <law@redhat.com>
21834
21835         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21836         check if BB is a successor of LOOP->header and return
21837         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21838
21839 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21840
21841         * cprop.c (struct reg_use): Remove.
21842         (reg_use_table): Make an array of RTX.
21843         (find_used_regs, constprop_register, local_cprop_pass,
21844         bypass_block): Simplify users of reg_use_table.
21845         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
21846         on one of the uses found by find_used_regs.
21847
21848 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21849
21850         PR bootstrap/48469
21851         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21852         declaration.
21853
21854 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21855
21856         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21857         as an rtx.
21858         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21859
21860 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21861
21862         PR middle-end/48441
21863         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21864
21865 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21866
21867         * combine.c: Include obstack.h.
21868         (struct insn_link): Define.
21869         (uid_log_links): Adjust type.
21870         (FOR_EACH_LOG_LINK): New macro.
21871         (insn_link_obstack): Declare.
21872         (alloc_insn_link): Define.
21873         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
21874         type of link variables.
21875         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21876         (try_combine, record_promoted_values, distribute_notes): Likewise.
21877         (distribute_links): Likewise.  Tweak prototype.
21878         (clear_log_links): Delete.
21879         (adjust_for_new_dest): Call alloc_insn_link.
21880         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21881
21882 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21883
21884         * gcse.c (modify_mem_list): Convert to an array of VECs.
21885         (canon_modify_mem_list, compute_transp): Tweak formatting.
21886         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
21887         (load_killed_in_block_p): Likewise.
21888         (record_last_mem_set_info): Likewise.
21889         (clear_modify_mem_tables): Likewise.
21890
21891 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21892
21893         PR middle-end/48461
21894         * function.c (emit_use_return_register_into_block): Only define if
21895         HAVE_return.
21896
21897 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
21898
21899         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21900
21901 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21902
21903         * config/rx/rx-opts.h: New.
21904         * config/rx/rx.c (rx_cpu_type): Remove.
21905         (rx_handle_option): Don't assert that global structures are in
21906         use.  Access variables via opts pointer.  Defer most handling of
21907         OPT_mint_register_.  Use error_at.
21908         (rx_option_override): Handle deferred OPT_mint_register_ here.
21909         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21910         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21911         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21912         (rx_cpu_types): New Enum and EnumValue entries.
21913         (mint-register=): Use Defer and use Var accordingly.
21914
21915 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21916
21917         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21918         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21919         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21920         Move these...
21921         (debug_free_queue, debug_nesting, symbol_queue_index):
21922         ...and these...
21923         * dbxout.c: ...to here.  Make static.
21924
21925 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21926
21927         * gcse.c (modify_pair): Define.  Define a VEC of it.
21928         (canon_modify_mem_list): Convert to an array of VECs.
21929         (free_insn_expr_list_list): Delete.
21930         (clear_modify_mem_tables): Call VEC_free instead.
21931         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21932         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21933         (canon_list_insert, compute_transp): Likewise.
21934
21935 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21936
21937         PR target/43920
21938         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21939         for size.
21940
21941 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21942
21943         PR target/43920
21944         * function.c (emit_use_return_register_into_block): New function.
21945         (thread_prologue_and_epilogue_insns): Use
21946         emit_use_return_register_into_block.
21947
21948 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21949
21950         PR target/43920
21951         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21952         insn.
21953
21954 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21955
21956         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21957
21958 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
21959
21960         * config/arm/arm.md (define_constants for unspec): Replace with
21961         define_c_enum.
21962         (define_constants for unspecv): Replace with define_c_enum.
21963         * config/arm/neon.md (define_constants for unspec): Replace with
21964         define_c_enum.
21965
21966 2011-04-04  Richard Henderson  <rth@redhat.com>
21967
21968         PR bootstrap/48400
21969         * dwarf2out.c (output_line_info): Always emit line info from
21970         at least one section.
21971         (dwarf2out_init): Create text_section_line_info here ...
21972         (set_cur_line_info_table): ... not here.
21973
21974 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
21975
21976         PR target/48380
21977         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21978         not called.
21979
21980         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21981
21982 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
21983
21984         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21985         (expr_equiv_p): Remove.
21986         (insert_set_in_table): Look at <dest, src> pair instead of expr.
21987         (hash_scan_set): Update call to insert_set_in_table.
21988         (dump_hash_table): Dump <dest, src> pair.
21989         (lookup_set): Simplify.  Lookup <dest, src> pair.
21990         (compute_transp): Remove, fold heavily simplified code into...
21991         (compute_local_properties): ...here.  Expect COMP and TRANSP
21992         unconditionally.
21993         (find_avail_set): Take set directly from struct expr.
21994         (find_bypass-set): Likewise.
21995         (bypass_block): Likewise.
21996         (cprop_insn): Likewise.  Remove redundant INSN_P test.
21997
21998         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21999         checks on form of COND from find_implicit_sets to here.
22000         (find_implicit_sets): Cleanup control flow. Split critical edges
22001         if it exposes implicit sets.  Allocate/resize implicit_sets as
22002         necessary.
22003         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
22004         changed something.  Run df_analyze after find_implicit_sets if any
22005         edges were split.  Do not allocate implicit_sets here.
22006
22007         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
22008         (gcse_obstack): Renamed to cprop_obstack.
22009         (GNEW, GNEWVEC, GNEWVAR): Remove.
22010         (gmalloc): Remove.
22011         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
22012         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
22013         (gcse_alloc): Likewise, and rename to cprop_alloc.
22014         (alloc_gcse_men, free_gcse_mem): Remove.
22015         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
22016         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
22017         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
22018
22019         * cprop.c (oprs_not_set_p): Remove.
22020         (mark_set, mark_clobber): Remove.
22021         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
22022         (reg_not_set_p): New function.
22023         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
22024         (cprop_insn): Likewise.
22025         (cprop_jump): Use FOR_EACH_EDGE.
22026
22027 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
22028
22029         PR bootstrap/48403
22030         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
22031         (rank_for_schedule): Use scheduled_insns vector instead of
22032         last_scheduled_insn.
22033         (ok_for_early_queue_removal): Likewise.
22034         (queue_to_ready): Search forward in nonscheduled_insns_begin if
22035         we have a dbg_cnt.
22036         (choose_ready): Likewise.
22037         (commit_schedule): Use VEC_iterate.
22038         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
22039         a dbg_cnt, use it and ensure the first insn is in the ready list.
22040         (haifa_sched_init): Allocate scheduled_insns.
22041         (sched_extend_ready_list): Don't allocate it; reserve space.
22042         (haifa_sched_finish): Free it.
22043
22044 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22045
22046         * optc-gen.awk: Always remove type from Variable entry before
22047         recording in var_seen.
22048
22049 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
22050
22051         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
22052         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
22053         call to tidy_fallthru_edges.
22054
22055 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
22056
22057         * doc/options.texi (ToLower): Document.
22058         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
22059         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
22060         * opts.h (cl_option): Add cl_tolower field.
22061         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
22062         arguments with lowercase strings.
22063         * config/rx/rx.opt (mcpu=): Add ToLower.
22064         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
22065         argument.
22066
22067 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22068
22069         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
22070
22071 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
22072
22073         * config/vax/vax.c: Include reload.h.
22074
22075 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
22076
22077         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
22078         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22079         (sparc_preferred_reload_class): New function.
22080
22081 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
22082
22083         PR debug/48401
22084         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22085         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
22086
22087 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
22088
22089         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
22090         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
22091
22092 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
22093
22094         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
22095         (ASM_OUTPUT_ALIGNED_BSS): Define.
22096
22097 2011-04-03  Michael Matz  <matz@suse.de>
22098
22099         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
22100         and next_slot members.
22101         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
22102         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
22103         (lto_streamer_cache_append): Declare.
22104         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
22105         unsigned index, remove offset parameter, ensure that we append
22106         or update existing entries.
22107         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
22108         parameter, update next_slot for append.
22109         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
22110         parameter.
22111         (lto_streamer_cache_insert_at): Likewise.
22112         (lto_streamer_cache_append): New function.
22113         (lto_streamer_cache_lookup): Use unsigned index.
22114         (lto_streamer_cache_get): Likewise.
22115         (lto_record_common_node): Don't test tree_node_can_be_shared.
22116         (preload_common_node): Adjust call to lto_streamer_cache_insert.
22117         (lto_streamer_cache_delete): Don't free offsets member.
22118         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
22119         (lto_output_string_with_length): Use lto_output_data_stream.
22120         (lto_output_tree_header): Remove ix parameter, don't write it.
22121         (lto_output_builtin_tree): Likewise.
22122         (lto_write_tree): Adjust callers to above, don't track and write
22123         offset, write unsigned index.
22124         (output_unreferenced_globals): Don't emit all global vars.
22125         (write_global_references): Use unsigned indices.
22126         (lto_output_decl_state_refs): Likewise.
22127         (write_symbol): Likewise.
22128         * lto-streamer-in.c (lto_input_chain): Move earlier.
22129         (input_function): Use unsigned index.
22130         (input_alias_pairs): Don't read and then ignore all global vars.
22131         (lto_materialize_tree): Remove ix_p parameter, don't read index,
22132         don't pass it back, use lto_streamer_cache_append.
22133         (lto_register_var_decl_in_symtab): Use unsigned index.
22134         (lto_register_function_decl_in_symtab): Likewise.
22135         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
22136         index.
22137         (lto_get_builtin_tree): Don't read index, use
22138         lto_streamer_cache_append.
22139         (lto_read_tree): Adjust call to lto_materialize_tree.
22140
22141         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
22142         don't use function calls in arguments to MIN.
22143
22144         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
22145         twice.
22146
22147         * gimple.c (gimple_type_leader_entry): Mark deletable.
22148
22149 2011-04-03  Alan Modra  <amodra@gmail.com>
22150
22151         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
22152
22153 2011-04-03  Michael Matz  <matz@suse.de>
22154
22155         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
22156         an integer.
22157         * tree.h (tree_decl_non_common.vindex): Adjust comment.
22158
22159 2011-04-03  Michael Matz  <matz@suse.de>
22160
22161         * cgraphbuild.c (record_reference): Canonicalize constructor values.
22162         * gimple-fold.c (canonicalize_constructor_val): Accept being called
22163         without function context.
22164         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
22165         current_function_decl and cfun.
22166
22167 2011-04-03  Michael Matz  <matz@suse.de>
22168
22169         * tree.c (decl_init_priority_insert): Don't create entry for
22170         default priority.
22171         (decl_fini_priority_insert): Ditto.
22172         (fields_compatible_p, find_compatible_field): Remove.
22173         * tree.h (fields_compatible_p, find_compatible_field): Remove.
22174         * gimple.c (gimple_compare_field_offset): Adjust block comment.
22175
22176 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
22177
22178         * combine.c (try_combine): Remove useless local variable.
22179
22180 2011-04-03  Richard Guenther  <rguenther@suse.de>
22181             Ira Rosen  <ira.rosen@linaro.org>
22182
22183         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
22184         non-variable offsets and compare the remaining bases of the two
22185         accesses instead of looking for exact same data-ref.
22186
22187 2011-04-02  Kai Tietz  <ktietz@redhat.com>
22188
22189         PR target/48416
22190         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
22191
22192         * i386.c (ix86_is_msabi_thiscall): New helper function.
22193         (ix86_is_type_thiscall): New helper function.
22194         (ix86_comp_type_attributes): Handle thiscall for method-functions
22195         special.
22196         (init_cumulative_args): Likewise.
22197         (find_drap_reg): Likewise.
22198         (ix86_static_chain): Likewise.
22199         (x86_this_parameter): Likewise.
22200         (x86_output_mi_thunk): Likewise.
22201
22202 2011-04-01  Olivier Hainque  <hainque@adacore.com>
22203             Nicolas Setton  <setton@adacore.com>
22204             Eric Botcazou  <ebotcazou@adacore.com>
22205
22206         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
22207         (add_gnat_descriptive_type_attribute): New function.
22208         (gen_array_type_die): Call it.
22209         (gen_enumeration_type_die): Likewise.
22210         (gen_struct_or_union_type_die): Likewise.
22211         (modified_type_die): Likewise.
22212         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
22213         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
22214         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
22215
22216 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22217
22218         PR bootstrap/48148
22219         * dwarf2out.c (resolve_addr): Don't call force_decl_die
22220         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
22221
22222         Revert:
22223         2011-03-17  Richard Guenther  <rguenther@suse.de>
22224
22225         PR bootstrap/48148
22226         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22227         origin for decls in other ltrans units.
22228         (input_varpool_node): Likewise.
22229
22230 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
22231
22232         PR middle-end/48335
22233         * expr.c (expand_assignment): Handle all possibilities
22234         if TO_RTX is CONCAT.
22235         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
22236         (store_split_bit_field): If SUBREG_REG (op0) or
22237         op0 itself has smaller mode than word, return it
22238         for offset 0 and const0_rtx for out-of-bounds stores.
22239         If word is const0_rtx, skip it.
22240
22241 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
22242
22243         * config/h8300/h8300.c (print_operand_address): Rename to...
22244         (h8300_print_operand_address): ...this. Make static. Adjust comments.
22245         Call h8300_print_operand and h8300_print_operand_address instead of
22246         print_operand and print_operand_address. Declare.
22247         (print_operand): Renake to...
22248         (h8300_print_operand): ...this. Make static. Adjust comments.
22249         Call h8300_print_operand instead of print_operand. Declare.
22250         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
22251         (h8300_register_move_cost): Likewise.
22252         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
22253         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
22254         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
22255         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
22256         * config/h8300/h8300-protos.h (print_operand): Delete.
22257         (print_operand_address): Delete.
22258
22259 2011-04-01  Richard Henderson  <rth@redhat.com>
22260
22261         PR 48400
22262         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
22263         in strict mode before dwarf4.  Re-order tests to early out
22264         before switching sections.
22265
22266 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
22267
22268         * config/h8300/constraints.md: New file.
22269         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
22270         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
22271         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
22272         * config/h8300/predicates.md (bit_operand): Likewise.
22273         (incdec_operand): Use satisfies_constraint_M and
22274         satisfies_constraint_O.  Don't use C code block.
22275         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
22276         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
22277         (compute_mov_length): Use satisfies_constraint_G.
22278         (fix_bit_operand): Use satisfies_constraint_U.
22279         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
22280         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
22281         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
22282         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
22283         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
22284         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
22285         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22286         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
22287         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
22288         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
22289         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
22290         (EXTRA_MEMORY_CONSTRAINT): Delete.
22291
22292 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
22293             Michael Meissner  <meissner@linux.vnet.ibm.com>
22294
22295         PR target/48262
22296         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
22297         operands, as per the specifications.
22298
22299         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
22300         (vec_extract_evenv4sf): Ditto.
22301         (vec_extract_evenv8hi): Ditto.
22302         (vec_extract_evenv16qi): Ditto.
22303         (vec_extract_oddv4si): Ditto.
22304
22305 2011-03-31  Mark Wielaard  <mjw@redhat.com>
22306
22307         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
22308         high_pc attribute if the CU has no associated code. Only output
22309         DW_AT_entry_pc for CU if not generating strict dwarf and
22310         dwarf_version < 4.
22311
22312 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
22313
22314         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
22315         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
22316         out of ...
22317         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
22318         * final.c (final_start_function): Call the new function rather
22319         than using a NULL argument for dwarf2out_frame_debug.
22320
22321         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
22322         that contains the prologue.
22323
22324         * haifa-sched.c (queue_insn): New arg REASON.  All callers
22325         changed.  Print it in debugging output.
22326
22327         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
22328
22329         * sched-ebb.c (begin_schedule_ready): Remove second argument.
22330         Split most of the code into...
22331         (begin_move_insn): ... here.  New function.
22332         (ebb_sched_info): Add a pointer to it.
22333         * haifa-sched.c (scheduled_insns): New static variable.
22334         (sched_extend_ready_list): Allocate it.
22335         (schedule_block): Use it to record the order of scheduled insns.
22336         Perform RTL changes to move insns only after all scheduling
22337         decisions have been made.
22338         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
22339         begin_move_insn field.
22340         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
22341         * sched-int.h (struct haifa_sched_info): Remove second argument
22342         from begin_schedule_ready hook.  Add new member begin_move_insn.
22343         * sched-rgn.c (begin_schedule_ready): Remove second argument.
22344         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
22345
22346         * haifa-sched.c (prune_ready_list): New function, broken out of
22347         schedule_block.
22348         (schedule_block): Use it.
22349
22350 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22351
22352         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
22353
22354 2011-04-01  Kai Tietz  <ktietz@redhat.com>
22355
22356         * config.gcc (*-*-mingw*): Allow as option the
22357         posix threading model.
22358         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
22359         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
22360         definition.
22361         (CPP_SPEC): Add pthread/no-pthread handling.
22362         (LIB_SPEC): Likewise.
22363         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
22364         (LIB_SPEC): Likewise.
22365         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
22366         flag to pass -pthread option for shared libgcc build.
22367         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
22368         for shared libgcc build.
22369         * config/i386/t-mingw-pthread: New file.
22370         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
22371         New define to enable use of library pthread by default.
22372         * config/i386/mingw.opt (pthread): New driver option.
22373         (no-pthread): New driver option.
22374         * config/i386/cygming.opt: Make sure trailing empty line is retained.
22375         * config/i386/mingw-w64.opt: Likewise.
22376
22377 2011-04-01  Gary Funck  <gary@intrepid.com>
22378
22379         * c-decl.c (grokdeclarator): Fix formatting.
22380
22381 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22382
22383         * expr.c (emit_block_move_via_movmem): Use n_generator_args
22384         instead of n_operands.
22385         (set_storage_via_setmem): Likewise.
22386         * optabs.c (maybe_gen_insn): Likewise.
22387         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
22388         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
22389         (mips_expand_builtin_direct): Likewise.
22390         * config/spu/spu.c (expand_builtin_args): Likewise.
22391
22392 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22393
22394         * recog.h (insn_data_d): Add n_generator_args.
22395         * genoutput.c (data): Likewise.
22396         (output_insn_data): Print it.
22397         (max_opno, num_dups): Delete.
22398         (scan_operands): Just fill in "d->operand[...]".
22399         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
22400
22401 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
22402
22403         * gensupport.h (pattern_stats): New structure.
22404         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
22405         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
22406         (max_operand_1, max_operand_vec): Delete.
22407         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
22408
22409 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
22410
22411         * emit-rtl.c (emit_pattern_after_setloc): New function.
22412         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
22413         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
22414         (emit_pattern_after): New function.
22415         (emit_insn_after, emit_jump_insn_after): Call it.
22416         (emit_call_insn_after, emit_debug_insn_after): Likewise.
22417         (emit_pattern_before_setloc): New function.
22418         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
22419         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
22420         Likewise.
22421         (emit_pattern_before): New function.
22422         (emit_insn_before, emit_jump_insn_before): Call it.
22423         (emit_call_insn_before, emit_debug_insn_before): Likewise.
22424
22425 2011-03-31  Richard Henderson  <rth@redhat.com>
22426
22427         * dwarf2out.c (dw_separate_line_info_ref): Remove.
22428         (dw_separate_line_info_entry): Remove.
22429         (enum dw_line_info_opcode): New.
22430         (dw_line_info_entry): Use it.
22431         (dw_line_info_table, dw_line_info_table_p): New.
22432         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
22433         (line_info_table, line_info_label_num): Remove.
22434         (line_info_table_in_use): Remove.
22435         (separate_line_info_table): Remove.
22436         (separate_line_info_table_allocated): Remove.
22437         (separate_line_info_table_in_use): Remove.
22438         (LINE_INFO_TABLE_INCREMENT): Remove.
22439         (line_info_label_num): New.
22440         (cur_line_info_table): New.
22441         (text_section_line_info, cold_text_section_line_info): New.
22442         (separate_line_info): New.
22443         (SEPARATE_LINE_CODE_LABEL): Remove.
22444         (print_dwarf_line_table): Remove.
22445         (debug_dwarf): Don't dump it.
22446         (output_one_line_info_table): New.
22447         (output_line_info): Use it.
22448         (new_line_info_table): New.
22449         (set_cur_line_info_table): New.
22450         (dwarf2out_switch_text_section): Use it.
22451         (dwarf2out_begin_function): Likewise.
22452         (push_dw_line_info_entry): New.
22453         (dwarf2out_source_line): Rewrite for new line info tables.
22454         (dwarf2out_init): Remove dead initailizations.
22455
22456 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22457
22458         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
22459         various flags.
22460         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
22461         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
22462         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
22463         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
22464         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
22465         * opt-functions.awk (flag_init, switch_bit_fields): New.
22466         (switch_flags): Don't handle flags moved to bit-fields.  Don't
22467         generate CL_MISSING_OK or CL_SAVE.
22468         * optc-gen.awk: Update to generate bit-field output as well as
22469         flags field.
22470         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
22471         bit-field instead of CL_REJECT_DRIVER flag.
22472         * opts-common.c (generate_canonical_option,
22473         decode_cmdline_option): Use bit-fields instead of CL_* flags.
22474         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
22475         instead of CL_REJECT_NEGATIVE flag.
22476         * toplev.c (print_switch_values): Use cl_report bit-field instead
22477         of CL_REPORT flag.
22478
22479 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22480
22481         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
22482         a zero minimum index only if it is redundant.
22483
22484 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
22485
22486         PR rtl-optimization/48381
22487         * ira-color.c (assign_hard_reg): Use hard reg set intersection
22488         instead of ira_class_hard_reg_index for calculating conflicting
22489         hard registers.
22490
22491 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
22492
22493         * cprop.c: Clean up hash table building.
22494         (reg_avail_info): Remove.
22495         (oprs_available_p): Remove.
22496         (record_last_reg_set_info): Remove.
22497         (record_last_set_info): Remove.
22498         (reg_available_p): New function.
22499         (gcse_constant_p): Do not treat unfolded conditions as constants.
22500         (make_set_regs_unavailable): New function.
22501         (hash_scan_set): Simplify with new reg_available_p.
22502         (compute_hash_table_work): Traverse insns stream only once.
22503         Do not compute reg_avail_info. Traverse insns in reverse order.
22504         Record implicit sets after recording explicit sets from the block.
22505
22506 2011-03-31  Michael Matz  <matz@suse.de>
22507
22508         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
22509
22510 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
22511
22512         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
22513         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
22514         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22515         (h8300_mode_dependent_address_p): New function.
22516         (h8300_get_index): Make static.
22517
22518 2011-03-31  Jeff Law  <law@redhat.com>
22519
22520         * reload1.c (elimination_effects): Fix typo in recent change.
22521
22522         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
22523         typo potentially leading to null pointer dereference.
22524
22525         * caller-save.c (new_saved_hard_reg): Eliminate return value.
22526         (setup_save_areas): Corresponding changes to avoid useless
22527         assignments.
22528
22529         * jump.c (reversed_comparison_code_parts): Avoid successive return
22530         statements when REVERSE_CONDITION is defined.
22531
22532         * expr.c (expand_assignment): Avoid useless assignments.
22533         (expand_expr_real_1): Likewise.
22534         (expand_expr_real_2): Avoid useless statements.
22535
22536         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
22537
22538         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
22539
22540         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
22541         statements.
22542
22543         * stmt.c (expand_expr_stmt): Avoid useless assignment.
22544
22545 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
22546
22547         PR target/47109
22548         * doc/tm.texi.in (TARGET_VERSION): Remove.
22549         * doc/tm.texi: Regenerate.
22550         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
22551         * collect2.c (main): Don't use TARGET_VERSION.
22552         * mips-tdump.c (main): Don't use TARGET_VERSION.
22553         * mips-tfile.c (main): Don't use TARGET_VERSION.
22554         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
22555         * config/rs6000/vxworksae.h: Remove.
22556         * config/alpha/alpha.h (TARGET_VERSION): Remove.
22557         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
22558         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
22559         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
22560         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22561         * config/arm/arm.h (TARGET_VERSION): Remove.
22562         * config/arm/coff.h (TARGET_VERSION): Remove.
22563         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
22564         * config/arm/elf.h (TARGET_VERSION): Remove.
22565         * config/arm/freebsd.h (TARGET_VERSION): Remove.
22566         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
22567         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
22568         * config/arm/pe.h (TARGET_VERSION): Remove.
22569         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
22570         * config/arm/semi.h (TARGET_VERSION): Remove.
22571         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
22572         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
22573         * config/arm/vxworks.h (TARGET_VERSION): Remove.
22574         * config/avr/avr.h (TARGET_VERSION): Remove.
22575         * config/bfin/bfin.h (TARGET_VERSION): Remove.
22576         * config/fr30/fr30.h (TARGET_VERSION): Remove.
22577         * config/frv/frv.h (TARGET_VERSION): Remove.
22578         * config/h8300/h8300.h (TARGET_VERSION): Remove.
22579         * config/i386/cygwin.h (TARGET_VERSION): Remove.
22580         * config/i386/darwin.h (TARGET_VERSION): Remove.
22581         * config/i386/darwin64.h (TARGET_VERSION): Remove.
22582         * config/i386/djgpp.h (TARGET_VERSION): Remove.
22583         * config/i386/freebsd.h (TARGET_VERSION): Remove.
22584         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
22585         * config/i386/gnu.h (TARGET_VERSION): Remove.
22586         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
22587         * config/i386/i386elf.h (TARGET_VERSION): Remove.
22588         * config/i386/linux.h (TARGET_VERSION): Remove.
22589         * config/i386/linux64.h (TARGET_VERSION): Remove.
22590         * config/i386/lynx.h (TARGET_VERSION): Remove.
22591         * config/i386/mingw32.h (TARGET_VERSION): Remove.
22592         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
22593         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
22594         * config/i386/netware.h (TARGET_VERSION): Remove.
22595         * config/i386/nto.h (TARGET_VERSION): Remove.
22596         * config/i386/openbsd.h (TARGET_VERSION): Remove.
22597         * config/i386/vxworks.h (TARGET_VERSION): Remove.
22598         * config/ia64/elf.h (TARGET_VERSION): Remove.
22599         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
22600         * config/ia64/hpux.h (TARGET_VERSION): Remove.
22601         * config/ia64/linux.h (TARGET_VERSION): Remove.
22602         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
22603         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
22604         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22605         * config/lm32/lm32.h (TARGET_VERSION): Remove.
22606         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
22607         * config/m32c/m32c.h (TARGET_VERSION): Remove.
22608         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
22609         * config/m32r/m32r.h (TARGET_VERSION): Remove.
22610         * config/m68k/linux.h (TARGET_VERSION): Remove.
22611         * config/m68k/m68k.h (TARGET_VERSION): Remove.
22612         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
22613         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
22614         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
22615         * config/mep/mep.h (TARGET_VERSION): Remove.
22616         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
22617         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
22618         * config/mips/iris6.h (MACHINE_TYPE): Remove.
22619         * config/mips/linux.h (TARGET_VERSION): Remove.
22620         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
22621         * config/mips/vxworks.h (TARGET_VERSION): Remove.
22622         * config/mmix/mmix.h (TARGET_VERSION): Remove.
22623         * config/mn10300/linux.h (TARGET_VERSION): Remove.
22624         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
22625         * config/pa/pa.h (TARGET_VERSION): Remove.
22626         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
22627         * config/picochip/picochip.h (TARGET_VERSION): Remove.
22628         * config/rs6000/aix.h (TARGET_VERSION): Remove.
22629         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
22630         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
22631         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
22632         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
22633         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
22634         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
22635         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
22636         * config/rs6000/linux.h (TARGET_VERSION): Remove.
22637         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
22638         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
22639         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
22640         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
22641         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
22642         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22643         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22644         * config/s390/linux.h (TARGET_VERSION): Remove.
22645         * config/s390/s390.h (TARGET_VERSION): Remove.
22646         * config/s390/tpf.h (TARGET_VERSION): Remove.
22647         * config/score/score.h (TARGET_VERSION): Remove.
22648         * config/sh/linux.h (TARGET_VERSION): Remove.
22649         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22650         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22651         * config/sh/sh.h (TARGET_VERSION): Remove.
22652         * config/sh/sh64.h (TARGET_VERSION): Remove.
22653         * config/sh/superh.h (TARGET_VERSION): Remove.
22654         * config/sh/vxworks.h (TARGET_VERSION): Remove.
22655         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22656         * config/sparc/linux.h (TARGET_VERSION): Remove.
22657         * config/sparc/linux64.h (TARGET_VERSION): Remove.
22658         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22659         TARGET_NAME32, TARGET_NAME): Remove.
22660         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22661         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22662         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22663         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22664         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22665         * config/spu/spu.h (TARGET_VERSION): Remove.
22666         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22667         * config/v850/v850.h (TARGET_VERSION): Remove.
22668         * config/vax/linux.h (TARGET_VERSION): Remove.
22669         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22670         * config/xtensa/elf.h (TARGET_VERSION): Remove.
22671         * config/xtensa/linux.h (TARGET_VERSION): Remove.
22672
22673 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22674
22675         PR target/48142
22676         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22677         frame-related from frame-unrelated adjustments to the stack pointer.
22678
22679 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
22680
22681         * common.opt (fdebug-types-section): Move earlier.
22682         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22683
22684 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
22685
22686         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22687         var.
22688
22689 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
22690
22691         * tree.h (CASE_CHAIN): Define.
22692         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22693         (gimple_redirect_edge_and_branch): Likewise.
22694
22695 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22696
22697         PR middle-end/48367
22698         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22699         calculation.
22700
22701 2011-03-30  Jeff Law  <law@redhat.com>
22702
22703         * PR bootstrap/48371
22704         * reload1.c (reload): Fix botch in last change.
22705
22706         * reload.h (struct reload): Fix typo introduced in last change.
22707
22708 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22709
22710         * config/arm/arm.opt (mhard-float, msoft-float): Mark
22711         Undocumented.  Remove help text.
22712         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22713         -mhard-float.
22714
22715 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22716
22717         * doc/options.texi (NegativeAlias): Document.
22718         (Alias): Mention NegativeAlias.
22719         * opt-functions.awk: Handle NegativeAlias.
22720         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22721         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22722         * opts.h (CL_NEGATIVE_ALIAS): Define.
22723         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22724         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22725         OPT_mspe_.
22726         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22727         Alias entries.
22728         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22729         mno-spe and mno-isel instead of mspe=no and -misel=no.
22730
22731 2011-03-29  Mark Wielaard  <mjw@redhat.com>
22732
22733         * common.opt (fdebug-types-section): New flag.
22734         * doc/invoke.texi: Document new -fno-debug-types-section flag.
22735         * dwarf2out.c (use_debug_types): New define.
22736         (struct die_struct): Mark die_id with GTY desc use_debug_types.
22737         (print_die): Guard output of type unit signatures using
22738         use_debug_types.
22739         (build_abbrev_table): Replace assert of dwarf_version >= 4
22740         with assert on use_debug_types.
22741         (size_of_die): Likewise.
22742         (unmark_dies): Likewise.
22743         (value_format): Decide AT_ref_external form on use_debug_types.
22744         (output_die): Replace dwarf_version version check guard with
22745         use_debug_types where appropriate.
22746         (modified_type_die): Likewise.
22747         (gen_reference_type_die): Likewise.
22748         (dwarf2out_start_source_file): Likewise.
22749         (dwarf2out_end_source_file): Likewise.
22750         (prune_unused_types_walk_attribs): Likewise.
22751         (dwarf2out_finish): Likewise.
22752
22753 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22754
22755         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22756
22757 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22758
22759         PR rtl-optimization/48332
22760         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22761         mode of input operand N and modeN to its actual mode.
22762
22763 2011-03-30  Jeff Law  <law@redhat.com>
22764
22765         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22766         define accessor macro.
22767         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22768         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22769         (reg_equiv_init): Likewise.
22770         (reg_equivs_size): New variable.
22771         (reg_equiv_init_size): Remove.
22772         (allocate_initial_values): Move prototype to here from....
22773         * integrate.h (allocate_initial_values): Remove prototype.
22774         * integrate.c: Include reload.h.
22775         (allocate_initial_values): Corresponding changes.
22776         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22777         (fix_reg_equiv_init, no_equiv): Corresponding changes.
22778         (update_equiv_regs): Corresponding changes.
22779         (ira): Corresponding changes.
22780         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22781         (push_secondary_reload): Corresponding changes.
22782         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22783         (make_memloc, find_reloads_address): Corresponding changes.
22784         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22785         (find_reloads_address_1): Corresponding changes.
22786         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22787         (refers_to_regno_for_reload_p): Corresponding changes.
22788         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22789         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22790         * reload1.c: Include ggc.h.
22791         (grow_reg_equivs): New function.
22792         (replace_pseudos_in, reload): Corresponding changes.
22793         (calculate_needs_all_insns, alter_regs): Corresponding changes.
22794         (eliminate_regs_1, elimination_effects): Corresponding changes.
22795         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22796         (delete_output_reload): Likewise.
22797         * caller-save.c (mark_referenced_regs): Corresponding changes.
22798         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22799         * frv/predicates.md (frv_load_operand): Corresponding changes.
22800         * microblaze/microblaze.c (double_memory_operand): Corresponding
22801         changes.
22802         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22803         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22804         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22805         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22806         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22807         changes.
22808         * pa/pa.c (emit_move_sequence): Corresponding changes.
22809         * vax/vax.c (nonindexed_address_p): Corresponding changes.
22810
22811 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22812
22813         PR target/47551
22814         * config/arm/arm.c (coproc_secondary_reload_class): Handle
22815         structure modes.  Don't check neon_vector_mem_operand for
22816         vector or structure modes.
22817
22818 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22819             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22820
22821         PR target/43590
22822         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22823         operand 1 and reshuffle the operands to match.
22824         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22825
22826 2011-03-30  Christian Schüler  <cschueler@gmx.de>
22827
22828         PR driver/48208
22829         * config/c.opt (F): Added 'Driver' to -F option.
22830
22831         PR driver/48260
22832         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22833           handler function.
22834         * config/darwin.opt: Added '-arch' option.
22835
22836 2011-03-30  Nick Clifton  <nickc@redhat.com>
22837
22838         * config/rx/rx.md: Add peepholes and patterns to combine
22839         extending loads and simple arithmetic instructions.
22840         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22841         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22842         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22843         modes to use pre-decrement and post-increment addressing.
22844         (rx_is_restricted_memory_address): Add range checking of REG+INT
22845         addresses.
22846         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
22847         (rx_memory_move_cost): Adjust cost of stores.
22848         (rx_adjust_insn_length): New function.
22849
22850 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
22851
22852         PR c/48305
22853         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22854         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22855         matching arg00/arg01 types.
22856
22857 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22858
22859         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22860         last_location to UNKNOWN_LOCATION.
22861
22862 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22863
22864         PR target/48349
22865         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22866         FLOAT_SSE_REGS.
22867
22868 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22869             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22870
22871         PR bootstrap/48337
22872         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22873         Init(PROCESSOR_V7).
22874         (sparc_cpu): Likewise.
22875         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22876         PROCESSOR_V7.
22877
22878 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22879
22880         PR target/48336
22881         PR middle-end/48342
22882         PR rtl-optimization/48345
22883         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22884         hard regs for given mode from profitable regs when doing secondary
22885         allocation.
22886
22887 2011-03-29  Jeff Law  <law@redhat.com>
22888
22889         PR bootstrap/48327
22890         * tree-ssa-threadupdate.c (struct redirection_data): Remove
22891         do_not_duplicate field.
22892         (lookup_redirection_data): Corresponding changes.
22893         (create_duplicates): Always create a template block.
22894         (redirect_edges): Remove code which reused the original block
22895         when it was going to become unreachable code.
22896         (thread_block): Don't set do_not_duplicate field.
22897
22898 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
22899
22900         * lto-opts.c (register_user_option_p, lto_register_user_option):
22901         Make type argument unsigned.
22902         * lto-streamer.h (lto_register_user_option): Make type argument
22903         unsigned.
22904         * opth-gen.awk: Make CL_* macros unsigned.
22905         * opts-common.c (find_opt): Make lang_mask argument unsigned.
22906         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22907         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22908         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22909         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22910         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22911         (find_opt): Make lang_mask argument unsigned.
22912
22913 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22914
22915         PR rtl-optimization/48331
22916         PR rtl-optimization/48334
22917         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22918         for any used algorithm.
22919
22920 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22921
22922         * ira-conflicts.c (build_object_conflicts): Add unused attribute
22923         to parent_max.
22924
22925 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
22926
22927         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22928         (alpha_option_override): Don't set alpha_sr_alias_set.
22929         (emit_frame_store_1): Use gen_frame_mem rather than calling
22930         set_mem_alias_set.
22931         (alpha_expand_epilogue): Ditto.
22932
22933 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
22934
22935         PR tree-optimization/48290
22936         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22937         vectorization, check that relevant phis in the basic block after
22938         the inner loop are really inner loop's exit phis.
22939
22940 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
22941
22942         PR debug/48190
22943         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22944         (cached_dw_loc_list_def): New structure.
22945         (cached_dw_loc_list): New typedef.
22946         (cached_dw_loc_list_table): New variable.
22947         (cached_dw_loc_list_table_hash): New function.
22948         (cached_dw_loc_list_table_eq): Likewise.
22949         (add_location_or_const_value_attribute): Take a bool cache_p.
22950         Cache the list when the parameter is true.
22951         (gen_formal_parameter_die): Update caller.
22952         (gen_variable_die): Likewise.
22953         (dwarf2out_finish): Likewise.
22954         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22955         while generating debug info for the decl.
22956         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22957         (dwarf2out_init): Initialize cached_dw_loc_list_table.
22958         (resolve_addr): Cache the result of resolving a chain of
22959         location lists.
22960
22961 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22962
22963         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22964         conflict object hard regset nodes have intersecting hard reg sets.
22965
22966         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22967         after regstat_init_n_sets_and_refs.
22968
22969         * ira.c: Add more comments at the top.
22970         (setup_stack_reg_pressure_class, setup_pressure_classes):
22971         Add comments how we compute the register pressure classes.
22972         (setup_allocno_and_important_classes): Add more comments.
22973         (setup_class_translate_array, reorder_important_classes)
22974         (setup_reg_class_relations): Add comments.
22975
22976         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
22977         start of the file.
22978
22979         * ira-color.c: Add 2011 to the Copyright line.
22980         (assign_hard_reg):  Add more comments.
22981         (improve_allocation): Ditto.
22982
22983         * ira-costs.c: Add 2011 to the Copyright line.
22984         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22985         comments.
22986         (setup_regno_cost_classes_by_mode): Ditto.
22987
22988         Initial patches from ira-improv branch:
22989
22990         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22991
22992         * ira-build.c (ira_create_object): Remove initialization of
22993         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
22994         (ira_create_allocno): Remove initialization of
22995         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22996         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22997         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22998         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22999         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
23000         Initialize ALLOCNO_ADD_DATA.
23001         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
23002         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
23003         ALLOCNO_REG.
23004         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
23005         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
23006
23007         * ira.c (ira_reallocate): Remove.
23008         (setup_pressure_classes): Call
23009         ira_init_register_move_cost_if_necessary.  Use
23010         ira_register_move_cost instead of ira_get_register_move_cost.
23011         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
23012         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
23013
23014         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
23015         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
23016         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
23017         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
23018         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
23019         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
23020         Fix formatting.
23021         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
23022         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23023         (struct allocno_color_data): New.
23024         (allocno_color_data_t): New typedef.
23025         (allocno_color_data): New definition.
23026         (ALLOCNO_COLOR_DATA): New macro.
23027         (struct object_color_data): New.
23028         (object_color_data_t): New typedef.
23029         (object_color_data): New definition.
23030         (OBJECT_COLOR_DATA): New macro.
23031         (update_copy_costs, calculate_allocno_spill_cost): Call
23032         ira_init_register_move_cost_if_necessary.  Use
23033         ira_register_move_cost instead of ira_get_register_move_cost.
23034         (move_spill_restore, update_curr_costs): Ditto.
23035         (allocno_spill_priority): Make it inline.
23036         (color_pass): Allocate and free allocno_color_dat and object_color_data.
23037         (struct coalesce_data, coalesce_data_t): New.
23038         (allocno_coalesce_data): New definition.
23039         (ALLOCNO_COALESCE_DATA): New macro.
23040         (merge_allocnos, coalesced_allocno_conflict_p): Use
23041         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
23042         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
23043         (coalesce_allocnos): Ditto.
23044         (setup_coalesced_allocno_costs_and_nums): Ditto.
23045         (collect_spilled_coalesced_allocnos): Ditto.
23046         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
23047         (setup_slot_coalesced_allocno_live_ranges): Ditto.
23048         (coalesce_spill_slots): Ditto.
23049         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
23050         free allocno_coalesce_data.
23051
23052         * ira-conflicts.c: Fix formatting.
23053         (process_regs_for_copy): Call
23054         ira_init_register_move_cost_if_necessary.  Use
23055         ira_register_move_cost instead of ira_get_register_move_cost.
23056         (build_object_conflicts): Optimize.
23057
23058         * ira-costs.c (record_reg_classes): Optimize.  Call
23059         ira_init_register_move_cost_if_necessary.  Use
23060         ira_register_move_cost, ira_may_move_in_cost, and
23061         ira_may_move_out_cost instead of ira_get_register_move_cost and
23062         ira_get_may_move_cost.
23063         (record_address_regs): Ditto.
23064         (scan_one_insn): Optimize.
23065         (find_costs_and_classes): Optimize.
23066         (process_bb_node_for_hard_reg_moves): Call
23067         ira_init_register_move_cost_if_necessary.  Use
23068         ira_register_move_cost instead of ira_get_register_move_cost.
23069
23070         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
23071         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
23072         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
23073         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
23074         definitions.
23075         (ira_initiate_emit_data, ira_finish_emit_data)
23076         (create_new_allocno): New functions.
23077         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
23078         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
23079         Use ira_register_move_cost instead of ira_get_register_move_cost.
23080
23081         * ira-int.h: Fix some comments.
23082         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
23083         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
23084         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
23085         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
23086         add_data.
23087         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
23088         bitfield after mode.  Make hard_regno a short int.  Make
23089         hard_regno short.  Remove first_coalesced_allocno and
23090         next_coalesced_allocno.  Move mem_optimized_dest_p,
23091         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
23092         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
23093         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
23094         temp, colorable_p.  Add new member add_data.
23095         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
23096         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
23097         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
23098         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
23099         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
23100         (ALLOCNO_ADD_DATA): New macro.
23101         (ira_emit_data_t): New typedef.
23102         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
23103         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
23104         from struct ira_allocno.
23105         (ALLOCNO_EMIT_DATA): New macro.
23106         (ira_allocno_emit_data, allocno_emit_reg): New.
23107         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
23108         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
23109         (OBJECT_ADD_DATA): New macro.
23110         (ira_reallocate): Remove.
23111         (ira_initiate_emit_data, ira_finish_emit_data): New.
23112         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
23113         (ira_init_register_move_cost_if_necessary): New.
23114         (ira_object_conflict_iter_next): Merge into
23115         ira_object_conflict_iter_cond.
23116         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
23117
23118         * ira-live.c (process_single_reg_class_operands): Call
23119         ira_init_register_move_cost_if_necessary.  Use
23120         ira_register_move_cost instead of ira_get_register_move_cost.
23121
23122         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
23123
23124         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
23125
23126         * ira-costs.c: Fix formatting.
23127         (cost_classes, cost_classes_num): Remove.
23128         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
23129         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
23130         (cost_classes_del, cost_classes_htab): New.
23131         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
23132         (initiate_regno_cost_classes, setup_cost_classes): New.
23133         (setup_regno_cost_classes_by_aclass): New.
23134         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
23135         (record_reg_classes): Use regno_cost_classes instead of
23136         cost_classes.  Move checking opposite operand up.
23137         (record_address_regs): Use regno_cost_classes
23138         instead of cost_classes.
23139         (scan_one_insn): Ditto.  Use always general register.
23140         (print_allocno_costs): Use regno_cost_classes instead of
23141         cost_classes.
23142         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
23143         (find_costs_and_classes): Set up cost classes for each registers.
23144         Use also their mode for this.  Use regno_cost_classes instead of
23145         cost_classes.
23146         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
23147         cost_classes.
23148         (free_ira_costs, ira_init_costs): Don't use cost_classes.
23149         (ira_costs, ira_set_pseudo_classes): Call
23150         initiate_regno_cost_classes and finish_regno_cost_classes.
23151
23152         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
23153
23154         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
23155
23156         * target.def (ira_cover_classes): Remove.
23157
23158         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
23159
23160         * doc/tm.texi.in: Ditto.
23161
23162         * ira-conflicts.c: Remove mentioning cover classes from the file.
23163         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
23164         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
23165
23166         * targhooks.c (default_ira_cover_classes): Remove.
23167
23168         * targhooks.h (default_ira_cover_classes): Ditto.
23169
23170         * haifa-sched.c: Remove mentioning cover classes from the file.
23171         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23172         ira_pressure_classes and ira_pressure_classes_num instead of
23173         ira_reg_class_cover_size and ira_reg_class_cover.  Use
23174         sched_regno_pressure_class instead of sched_regno_cover_class.
23175         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
23176         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23177
23178         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
23179         classes from the file.
23180         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
23181         (struct object_hard_regs, struct object_hard_regs_node): New.
23182         (struct ira_object): New members profitable_hard_regs,
23183         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
23184         (struct ira_allocno): Rename cover_class to aclass.  Rename
23185         cover_class_cost and updated_cover_class_cost to class_cost and
23186         updated_class_cost.  Remove splay_removed_p and
23187         left_conflict_size.  Add new members colorable_p.
23188         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
23189         (ALLOCNO_COLORABLE_P): New macro.
23190         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
23191         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
23192         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
23193         (OBJECT_...): Rename parameter C to O.
23194         (OBJECT_PROFITABLE_HARD_REGS): New macro.
23195         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
23196         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
23197         (struct target_ira_int): New members x_ira_max_memory_move_cost,
23198         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
23199         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
23200         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
23201         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
23202         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
23203         x_ira_reg_class_subunion.
23204         (ira_max_memory_move_cost, ira_max_register_move_cost)
23205         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
23206         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
23207         (ira_important_class_nums, ira_reg_class_superunion): New macros.
23208         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
23209         (ira_reg_class_union): Rename to ira_reg_class_subunion.
23210         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23211         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23212         (ira_tune_allocno_costs_and_cover_classes): Rename to
23213         ira_tune_allocno_costs.
23214         (ira_debug_hard_regs_forest): New.
23215         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
23216         (ira_object_conflict_iter_next): Fix comments.
23217         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
23218         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
23219         cover_class to aclass.
23220         (ira_allocate_and_accumulate_costs): Ditto.
23221         (ira_allocate_and_set_or_copy_costs): Ditto.
23222
23223         * opts.c (decode_options): Remove ira_cover_class check.
23224
23225         * ira-color.c: Remove mentioning cover classes from the file.  Use
23226         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
23227         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
23228         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23229         (splay-tree.h): Remove include.
23230         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
23231         before copy_freq_compare_func.
23232         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
23233         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
23234         New definitions.
23235         (hard_regs_roots, hard_regs_node_vec): Ditto.
23236         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
23237         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
23238         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
23239         (create_new_object_hard_regs_node): Ditto.
23240         (add_new_object_hard_regs_node_to_forest): Ditto.
23241         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
23242         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
23243         Ditto.
23244         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
23245         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
23246         (remove_unused_object_hard_regs_nodes): Ditto.
23247         (enumerate_object_hard_regs_nodes): Ditto.
23248         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
23249         (object_hard_regs_subnode_t): Ditto.
23250         (struct object_hard_regs_subnode): Ditto.
23251         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
23252         (setup_object_hard_regs_subnode_index): Ditto.
23253         (get_object_hard_regs_subnodes_num): Ditto.
23254         (form_object_hard_regs_nodes_forest): Ditto.
23255         (finish_object_hard_regs_nodes_tree): Ditto.
23256         (finish_object_hard_regs_nodes_forest): Ditto.
23257         (allocnos_have_intersected_live_ranges_p): Rename to
23258         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23259         (pseudos_have_intersected_live_ranges_p): Rename to
23260         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
23261         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
23262         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
23263         (update_copy_costs): Remove assert.  Skip cost update if the hard
23264         reg does not belong the class.
23265         (assign_hard_reg): Process only profitable hard regs.
23266         (uncolorable_allocnos_num): Make it scalar.
23267         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
23268         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
23269         and ira_reg_class_max_nregs.
23270         (bucket_allocno_compare_func): Check frequency first.
23271         (sort_bucket): Add compare function as a parameter.
23272         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
23273         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
23274         (push_allocno_to_stack): Rewrite for checking new allocno
23275         colorability.
23276         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
23277         (push_only_colorable): Pass new parameter to sort_bucket.
23278         (push_allocno_to_spill): Remove.
23279         (allocno_spill_priority_compare): Make it inline and rewrite.
23280         (splay_tree_allocate, splay_tree_free): Remove.
23281         (allocno_spill_sort_compare): New function.
23282         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
23283         build and use splay tree.  Choose first allocno in uncolorable
23284         allocno bucket to spill.  Remove setting spill cost.
23285         (all_conflicting_hard_regs): Remove.
23286         (setup_allocno_available_regs_num): Check only profitable hard
23287         regs.  Print info about hard regs nodes.
23288         (setup_allocno_left_conflicts_size): Remove.
23289         (put_allocno_into_bucket): Don't call
23290         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
23291         (improve_allocation): New.
23292         (color_allocnos): Call setup_profitable_hard_regs,
23293         form_object_hard_regs_nodes_forest, improve_allocation,
23294         finish_object_hard_regs_nodes_forest.  Setup spill cost.
23295         (print_loop_title): Use pressure classes.
23296         (color_allocnso): Ditto.
23297         (do_coloring): Remove allocation and freeing splay_tree_node_pool
23298         and allocnos_for_spilling.
23299         (ira_sort_regnos_for_alter_reg): Don't setup members
23300         {first,next}_coalesced_allocno.
23301         (color): Remove allocating and freeing removed_splay_allocno_vec.
23302         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
23303         prohibited_class_mode_regs.
23304
23305         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
23306         formatting.
23307         (update_allocno_pressure_excess_length): Use pressure classes.
23308         (inc_register_pressure, dec_register_pressure): Check for pressure
23309         class.
23310         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
23311         pressure class.  Use ira_reg_class_nregs instead of
23312         ira_reg_class_max_nregs.
23313         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
23314         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
23315         (single_reg_class): Use ira_reg_class_nregs instead of
23316         ira_reg_class_max_nregs.
23317         (process_bb_node_lives): Use pressure classes.
23318
23319         * ira-emit.c: Remove mentioning cover classes from the file.  Use
23320         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23321         (change_loop): Use pressure classes.
23322         (modify_move_list): Call ira_set_allocno_class instead of
23323         ira_set_allocno_cover_class.
23324
23325         * ira-build.c: Remove mentioning cover classes from the file.  Use
23326         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
23327         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
23328         ALLOCNO_UPDATED_CLASS_COST instead of
23329         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
23330         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
23331         (ira_create_allocno): Remove initialization of
23332         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
23333         ALLOCNO_COLORABLE_P.
23334         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
23335         Update conflict regs for the objects.
23336         (create_cap_allocno): Remove assert.  Don't propagate
23337         ALLOCNO_AVAILABLE_REGS_NUM.
23338         (ira_free_allocno_costs): New function.
23339         (finish_allocno): Change a part of code into call of
23340         ira_free_allocno_costs.
23341         (low_pressure_loop_node_p): Use pressure classes.
23342         (object_range_compare_func): Don't compare classes.
23343         (setup_min_max_conflict_allocno_ids): Ditto.
23344
23345         * loop-invariant.c: Remove mentioning cover classes from the file.
23346         Use ira_pressure_classes and ira_pressure_classes_num instead of
23347         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
23348         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
23349         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23350         Use reg_allocno_class instead of reg_cover_class.
23351         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
23352         STACK_REG_COVER_CLASS.
23353         (get_regno_cover_class): Rename to get_regno_pressure_class.
23354         (move_loop_invariants): Initialize and finalize regstat.
23355
23356         * ira.c: Remove mentioning cover classes from the file.  Add
23357         comments about coloring without cover classes.  Use ALLOCNO_CLASS
23358         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
23359         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
23360         setup_class_subset_and_memory_move_costs.
23361         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
23362         (setup_cover_and_important_classes): Rename to
23363         setup_allocno_and_important_classes.
23364         (setup_class_translate_array): New.
23365         (setup_class_translate): Call it for allocno and pressure classes.
23366         (cover_class_order): Rename to allocno_class_order.
23367         (comp_reg_classes_func): Use ira_allocno_class_translate instead
23368         of ira_class_translate.
23369         (reorder_important_classes): Set up ira_important_class_nums.
23370         (setup_reg_class_relations): Set up ira_reg_class_superunion.
23371         (print_class_cover): Rename to print_classes.  Add parameter.
23372         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
23373         Print pressure classes too.
23374         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
23375         setup_reg_subclasses.
23376         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23377         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23378         (setup_prohibited_class_mode_regs): Use
23379         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
23380         (clarify_prohibited_class_mode_regs): New function.
23381         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
23382         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
23383         (ira_init_once): Initialize them.
23384         (free_register_move_costs): Process them.
23385         (ira_init): Move calls of find_reg_classes and
23386         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
23387         Call clarify_prohibited_class_mode_regs.
23388         (ira_no_alloc_reg): Remove.
23389         (too_high_register_pressure_p): Use pressure classes.
23390
23391         * sched-deps.c: Remove mentioning cover classes from the file.
23392         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
23393         ira_pressure_classes and ira_pressure_classes_num instead of
23394         ira_reg_class_cover_size and ira_reg_class_cover.
23395         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
23396         sched_regno_pressure_class instead of sched_regno_cover_class.
23397         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
23398         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
23399
23400         * ira.h: Add 2010 to Copyright.
23401         (ira_no_alloc_reg): Remove external.
23402         (struct target_ira): Rename x_ira_hard_regno_cover_class,
23403         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
23404         x_ira_class_translate to x_ira_hard_regno_allocno_class,
23405         x_ira_allocno_classes_num, x_ira_allocno_classes, and
23406         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
23407         x_ira_pressure_classes, x_ira_pressure_class_translate, and
23408         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
23409         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
23410         x_ira_no_alloc_regs.
23411         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
23412         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
23413         ira_allocno_classes_num and ira_allocno_classes.
23414         (ira_class_translate): Rename to ira_allocno_class_translate.
23415         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
23416         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
23417         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
23418         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
23419         (ira_no_alloc_regs): New.
23420
23421         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
23422         classes from the file.  Use ALLOCNO_CLASS instead of
23423         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
23424         ALLOCNO_COVER_CLASS_COST.
23425         (regno_cover_class): Rename to regno_aclass.
23426         (record_reg_classes): Use ira_reg_class_subunion instead of
23427         ira_reg_class_union.
23428         (record_address_regs): Check overflow.
23429         (scan_one_insn): Ditto.
23430         (print_allocno_costs): Print total mem cost fore regional allocation.
23431         (print_pseudo_costs): Use REG_N_REFS.
23432         (find_costs_and_classes): Use classes intersected with them on the
23433         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
23434         ira_reg_class_union.  Use ira_allocno_class_translate and
23435         regno_aclass instead of ira_class_translate and regno_cover_class.
23436         Modify code for finding regno_aclass.  Setup preferred classes for
23437         the next pass.
23438         (setup_allocno_cover_class_and_costs): Rename to
23439         setup_allocno_class_and_costs.  Use regno_aclass instead of
23440         regno_cover_class.  Use ira_set_allocno_class instead of
23441         ira_set_allocno_cover_class.
23442         (init_costs, finish_costs): Use regno_aclass instead of
23443         regno_cover_class.
23444         (ira_costs): Use setup_allocno_class_and_costs instead of
23445         setup_allocno_cover_class_and_costs.
23446         (ira_tune_allocno_costs_and_cover_classes): Rename to
23447         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
23448         by processing objects.  Use ira_reg_class_max_nregs instead of
23449         ira_reg_class_nregs.
23450
23451         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
23452
23453         * sched-int.h: Remove mentioning cover classes from the file.
23454         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
23455
23456         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
23457         classes from the file.
23458         (struct reg_pref): Rename coverclass into allocnoclass.
23459         (reg_cover_class): Rename to reg_allocno_class.
23460
23461         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
23462
23463         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
23464
23465         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
23466
23467         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
23468
23469         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
23470
23471         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
23472
23473         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
23474
23475         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
23476
23477         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
23478
23479         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
23480
23481         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
23482         (i386_ira_cover_classes): Ditto.
23483
23484         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
23485
23486         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
23487
23488         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
23489
23490         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
23491
23492         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
23493
23494         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
23495
23496         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
23497         (mips_ira_cover_classes): Ditto.
23498
23499         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
23500
23501         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
23502
23503         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
23504
23505         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
23506
23507         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
23508
23509         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
23510         (IRA_COVER_CLASSES_VSX): Ditto.
23511
23512         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
23513         (rs6000_ira_cover_classes): Ditto.
23514
23515         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
23516
23517         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
23518
23519         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
23520
23521         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
23522
23523         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
23524
23525         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
23526
23527         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
23528
23529         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
23530
23531         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
23532
23533         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
23534
23535 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
23536
23537         PR debug/48253
23538         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
23539         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
23540         dw_fde_unlikely_section_end_label, cold_in_std_section,
23541         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
23542         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
23543         fields.
23544         (output_fde): Use dw_fde_second_{begin,end} if second is
23545         true, otherwise dw_fde_{begin,end}.
23546         (output_call_frame_info): Test dw_fde_second_begin != NULL
23547         instead of dw_fde_switched_sections.
23548         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
23549         fields, initialize new fields.  Initialize in_std_section
23550         unconditionally from the first partition.
23551         (dwarf2out_end_epilogue): Don't override dw_fde_end when
23552         dw_fde_second_begin is non-NULL.
23553         (dwarf2out_switch_text_section): Stop initializing removed
23554         dw_fde_struct fields, initialize new fields, initialize
23555         also dw_fde_end here.  Set dw_fde_switch_cfi even when
23556         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
23557         (struct var_loc_list_def): Add last_before_switch field.
23558         (arange_table, arange_table_allocated, arange_table_in_use,
23559         ARANGE_TABLE_INCREMENT, add_arange): Removed.
23560         (size_of_aranges): Count !in_std_section and !second_in_std_section
23561         hunks in fdes, instead of looking at arange_table_in_use.
23562         (output_aranges): Add aranges_length argument, don't call
23563         size_of_aranges here.  Instead of using aranges_table*
23564         emit ranges for fdes when !in_std_section resp.
23565         !second_in_std_section.
23566         (dw_loc_list): Break ranges crossing section switch.
23567         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
23568         use dw_fde_second_end instead of dw_fde_end as end of last range.
23569         (gen_subprogram_die): Don't call add_arange.  Use
23570         dw_fde_{begin,end} for first partition and if switched
23571         section dw_fde_second_{begin,end} for the second.
23572         (var_location_switch_text_section_1,
23573         var_location_switch_text_section): New functions.
23574         (dwarf2out_begin_function): Initialize cold_text_section even
23575         when function_section () isn't text_section.
23576         (prune_unused_types): Don't walk arange_table.
23577         (dwarf2out_finish): Don't needlessly test
23578         flag_reorder_blocks_and_partition when testing cold_text_section_used.
23579         If info_section_emitted, call size_of_aranges and if it indicates
23580         non-empty .debug_aranges, call output_aranges with the computed
23581         size.  Stop using removed dw_fde_struct fields, use
23582         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
23583         for second.
23584
23585         PR debug/48203
23586         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
23587         create ENTRY_VALUE if incoming or address of incoming's MEM
23588         is a hard REG.
23589         * dwarf2out.c (mem_loc_descriptor): Don't emit
23590         DW_OP_GNU_entry_value of DW_OP_fbreg.
23591         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
23592         on ENTRY_VALUE is able to find the canonical parameter VALUE.
23593         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
23594         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
23595         ENTRY_VALUE_EXPs.
23596         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
23597         is a REG_P or MEM_P with REG_P address, compute hash directly
23598         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
23599         (preserve_only_constants): Don't clear VALUES forwaring
23600         ENTRY_VALUE to some other VALUE.
23601
23602 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
23603
23604         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
23605         instead of GEN_INT.
23606
23607 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23608
23609         * cfgexpand.c (expand_gimple_cond): Always set the source location and
23610         block before expanding the statement.
23611         (expand_gimple_stmt_1): Likewise.  Set them here...
23612         (expand_gimple_stmt): ...and not here.  Tidy.
23613         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
23614         unknown.
23615
23616 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23617
23618         * Makefile.in: New rule for cprop.o.
23619         * gcse.c: Move constant/copy propagation to cprop.c.
23620         (compute_local_properties): Only handle expression tables.
23621         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
23622         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
23623         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
23624         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
23625         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
23626         compute_cprop_data, find_used_regs, try_replace_reg,
23627         find_avail_set, cprop_jump, constprop_register, cprop_insn,
23628         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
23629         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
23630         find_bypass_set, reg_killed_on_edge, bypass_block,
23631         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
23632         execute_rtl_cprop, pass_rtl_cprop): Move to...
23633         * cprop.c: ...here.  New file, constant/copy propagation for RTL
23634         moved from gcse.c to here with minor cleanups in duplicated code.
23635
23636 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
23637
23638         * config/i386/i386.c (flag_opts): Fix a typo in
23639         -mavx256-split-unaligned-store.
23640
23641 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23642
23643         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23644         LIBCALL_VALUE): Remove macros.
23645         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23646         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23647         (h8300_function_value, h8300_libcall_value,
23648         h8300_function_value_regno_p): New functions.
23649
23650 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23651
23652         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23653
23654 2011-03-28  Jeff Law  <law@redhat.com>
23655
23656         * tree-ssa-threadupdate.c (redirect_edges): Call
23657         create_edge_and_update_destination_phis as needed.
23658         (create_edge_and_update_destination_phis): Accept new BB argument.
23659         All callers updated.
23660         (thread_block): Do not update the profile when threading around
23661         intermediate blocks.
23662         (thread_single_edge): Likewise.
23663         (determine_bb_domination_status): If BB is not a successor of the
23664         loop header, return NONDOMINATING.
23665         (register_jump_thread): Note when we register a jump thread around
23666         an intermediate block.
23667         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23668         (thread_across_edge): Use it.
23669
23670 2011-03-28  Tristan Gingold  <gingold@adacore.com>
23671
23672         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23673         when for_return is 2.
23674
23675 2011-03-28  Jeff Law  <law@redhat.com>
23676
23677         * var-tracking.c (canonicalize_values_mark): Delete unused
23678         lhs assignment.
23679         (canonicalize_values_star, set_variable_part): Likewise.
23680         (clobber_variable_part, delete_variable_part): Likewise.
23681
23682 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23683
23684         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23685
23686 2011-03-28  Martin Jambor  <mjambor@suse.cz>
23687
23688         * tree-inline.c (expand_call_inline): Do not check that destination
23689         node is analyzed.
23690         (optimize_inline_calls): Assert that destination node is analyzed.
23691         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23692         not call tree_lowering_passes.
23693         * cgraph.h (cgraph_analyze_function): Declare.
23694         * cgraphunit.c (cgraph_analyze_function): Make public.
23695
23696 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
23697
23698         * config/sparc/sparc-opts.h: New.
23699         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23700         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23701         (sparc_option_override): Store processor_type enumeration rather
23702         than string in cpu_default.  Remove name and enumeration from
23703         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
23704         without using sparc_select.  Use target_flags_explicit instead of
23705         fpu_option_set.
23706         * config/sparc/sparc.h (enum processor_type): Move to
23707         sparc-opts.h.
23708         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23709         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23710         HeaderInclude entry.
23711         (mcpu=, mtune=): Use Var and Enum.
23712         (sparc_processor_type): New Enum and EnumValue entries.
23713
23714 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23715             Iain Sandoe  <iains@gcc.gnu.org>
23716
23717         PR target/48245
23718         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23719
23720 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23721
23722         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23723         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23724         Insert new statements at it in lieu of STMT.
23725         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23726         * tree-vect-stmts.c (vectorizable_store): Likewise.
23727         (vectorizable_load): Likewise.
23728
23729 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
23730
23731         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23732         (divtf3): Ditto.
23733         (multf3): Ditto.
23734         (subtf3): Ditto.
23735
23736 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23737
23738         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23739         unaligned 256bit load/store.
23740         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23741         (*avx_movdqu<avxmodesuffix>): Likewise.
23742
23743 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23744
23745         PR target/48288
23746         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23747         * config/pa/pa.md (iordi3): Use new predicate in expander.
23748         (iorsi3): Likewise.
23749
23750 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
23751
23752         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23753         FUNCTION_VALUE_REGNO_P): Remove macros.
23754         * config/mips/mips-protos.h (mips_function_value): Remove.
23755         * config/mips/mips.c (mips_function_value): Rename to...
23756         (mips_function_value_1): ... this. Make static.  Handle receiving
23757         the function type in 'fn_decl_or_type' argument.
23758         (mips_function_value, mips_libcall_value,
23759         mips_function_value_regno_p): New function.
23760         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23761         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23762
23763 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23764
23765         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23766         and -mavx256-split-unaligned-store.
23767         (ix86_option_override_internal): Split 32-byte AVX unaligned
23768         load/store by default.
23769         (ix86_avx256_split_vector_move_misalign): New.
23770         (ix86_expand_vector_move_misalign): Use it.
23771
23772         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23773         -mavx256-split-unaligned-store.
23774
23775         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23776         256bit load/store.  Generate unaligned store on misaligned memory
23777         operand.
23778         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23779         256bit load/store.
23780         (*avx_movdqu<avxmodesuffix>): Likewise.
23781
23782         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23783         -mavx256-split-unaligned-store.
23784
23785 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23786
23787         PR target/38598
23788         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23789         Update commentary.
23790
23791 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23792
23793         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23794         opno arguments with an expand_operand.  Use create_input_operand.
23795         (mips_prepare_builtin_target): Delete.
23796         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23797         functions.
23798         (mips_expand_builtin_direct): Use create_output_operand and
23799         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
23800         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
23801         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23802
23803 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
23804
23805         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23806         function.
23807         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23808
23809 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23810
23811         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23812         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
23813         basic blocks and call commit_edge_insertions directly.
23814         (fixup_abnormal_edges): Move from here to...
23815         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
23816         on the edges and return whether some have actually been inserted.
23817         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23818         compensation code.
23819
23820 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
23821
23822         PR rtl-optimization/48144
23823         * sel-sched-ir.c (merge_history_vect): Factor out from ...
23824         (merge_expr_data): ... here.
23825         (av_set_intersect): Rename to av_set_code_motion_filter.
23826         Update all callers.  Call merge_history_vect when an expression
23827         is found in both sets.
23828         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23829
23830 2011-03-26  Alan Modra  <amodra@gmail.com>
23831
23832         * config/rs6000/predicates.md (word_offset_memref_op): Handle
23833         cmodel medium addresses.
23834         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23835         64-bit gpr loads and stores.
23836         (rs6000_secondary_reload_ppc64): New function.
23837         * config/rs6000/rs6000-protos.h: Declare it.
23838         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23839
23840 2011-03-26  Alan Modra  <amodra@gmail.com>
23841
23842         PR target/47487
23843         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23844         GNU Go in traceback table.
23845
23846 2011-03-25  Richard Henderson  <rth@redhat.com>
23847
23848         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23849         if there are exactly 6 operands.
23850         (set_storage_via_setmem): Similarly.
23851
23852 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23853
23854         * collect2.c (write_c_file_stat): Handle backslash
23855         as right-hand directory separator.
23856         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23857         checking just for slash.
23858         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23859         instead of checking for trailing slash.
23860         * gcc.c (record_temp_file): Use filename_cmp instead
23861         of strcmp.
23862         (do_spec_1): Likewise.
23863         (replace_outfile_spec_function): Likewise.
23864         (is_directory): Use filename_ncmp instead of strncmp.
23865         (print_multilib_info): Likewise.
23866         * gcov.c (find_source): Use filename_cmp instead
23867         instead of strcmp.
23868         (make_gcov_file_name): Fix order of slash/backslash
23869         checks.
23870         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23871         (add_standard_paths): Likewise.
23872         * mips-tfile.c (saber_stop): Handle backslash.
23873         * prefix.c (update_path): Use filename_ncmp instead of
23874         strncmp.
23875         * profile.c (output_location): Use filename_cmp instead
23876         of strcmp.
23877         * read-md.c (handle_toplevel_file): Handle backslash.
23878         * tlink.c (frob_extension):  Likewise.
23879         * tree-cfg.c (same_line_p): Use filename_cmp instead of
23880         strcmp.
23881         * tree-dump.c (dequeue_and_dump): Handle backslash.
23882         * tree.c (get_file_function_name): Likewise.
23883         * gengtype.c (read_input_list): Likewise.
23884         (get_file_realbasename): Likewise.
23885         (get_output_file_with_visibility): Use filename_cmp
23886         instead of strcmp.
23887
23888 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
23889
23890         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23891         case to VFPv1.
23892
23893 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23894
23895         * fold-const.c (expr_location_or): New function.
23896         (fold_truth_not_expr): Call it.
23897
23898 2011-03-25  Jeff Law  <law@redhat.com>
23899
23900         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23901         va_end.
23902         * c-family/c-common.c (def_fn_type): Likewise.
23903         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23904         * emit-rtl.c (gen_rtvec): Likewise.
23905         * lto/lto-lang.c (def_fn_type): Likewise.
23906
23907 2011-03-25  Richard Guenther  <rguenther@suse.de>
23908
23909         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23910         also generate copies.
23911         (fini_copy_prop): Handle constant values properly.
23912
23913 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
23914
23915         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23916         mode size instead of bitsize with DWARF2_ADDR_SIZE.
23917         (hash_loc_operands, compare_loc_operands): Handle
23918         DW_OP_GNU_entry_value.
23919
23920 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23921
23922         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23923         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23924         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23925         comment and use macro TARGET_64BIT_MS_ABI instead.
23926         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23927         and change default behavior for 32-bit MS_ABI.
23928         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23929         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23930         32-bit, too.
23931         (ix86_cfun_abi): Likewise.
23932         (ix86_maybe_switch_abi): Adjust comment.
23933         (init_cumulative_args): Check for bit-ness in MS_ABI case.
23934         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23935         instead of checking for SYSV_ABI.
23936         (ix86_nsaved_sseregs): Likewise.
23937         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23938         to 16 bytes.
23939         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23940         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23941         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23942         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23943         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23944
23945 2011-03-25  Richard Guenther  <rguenther@suse.de>
23946
23947         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23948         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23949         (verify_gimple): Remove.
23950         * tree-cfg.c (verify_gimple_call): Merge verification
23951         from verify_stmts.
23952         (verify_gimple_phi): Merge verification from verify_stmts.
23953         (verify_gimple_label): New function.
23954         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23955         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23956         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23957         (verify_stmts): Rename to verify_gimple_in_cfg.
23958         (verify_gimple_in_cfg): New function.
23959         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23960         * tree-ssa.c (verify_ssa): Likewise.
23961         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23962
23963 2011-03-25  Richard Guenther  <rguenther@suse.de>
23964
23965         * passes.c (init_optimization_passes): Add FRE pass after
23966         early SRA.
23967
23968 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
23969             Andrew Stubbs  <ams@codesourcery.com>
23970
23971         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23972         for Cortex-A8.
23973         (arm_movdi_vfp_cortexa8): New pattern.
23974         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23975         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23976         instructions when tuning for Cortex-A8.  Set attribute "arch".
23977         * config/arm/arm.md: Move include arm-tune.md up a bit.
23978         (define_attr "arch"): Add "onlya8" and "nota8" values.
23979         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23980
23981 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23982
23983         PR bootstrap/48282
23984         Revert:
23985         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23986
23987         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23988         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23989         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23990         * passes.c (init_optimization_passes): Move
23991         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23992
23993 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23994
23995         * c-typeck.c (comptypes_internal): Replace target
23996         hook call of comp_type_attributes by version in tree.c file.
23997         * gimple.c (gimple_types_compatible_p_1): Likewise.
23998         * tree-ssa.c (useless_type_conversion_p): Likewise.
23999         * tree.c (build_type_attribute_qual_variant): Likewise.
24000         (attribute_value_equal): New static helper function.
24001         (comp_type_attributes): New function.
24002         (merge_attributes): Use attribute_value_equal for comparison.
24003         (attribute_list_contained): Likewise.
24004         * tree.h (comp_type_attributes): New prototype.
24005
24006 2011-03-25  Richard Guenther  <rguenther@suse.de>
24007
24008         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
24009         of complex types at -O0.
24010         (verify_gimple_assign_binary): Likewise.
24011         (verify_gimple_assign_ternary): Likewise.
24012
24013 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24014
24015         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
24016         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
24017
24018 2011-03-24  Mark Wielaard  <mjw@redhat.com>
24019
24020         PR debug/48041
24021         * dwarf2out.c (output_abbrev_section): Only write table when
24022         abbrev_die_table_in_use > 1.
24023
24024 2011-02-24  Richard Henderson  <rth@redhat.com>
24025
24026         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
24027         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
24028         (alpha_expand_unaligned_load_words): Use extql.
24029         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
24030         (emit_insxl): Handle all modes for consistency.
24031
24032 2011-02-24  Richard Henderson  <rth@redhat.com>
24033
24034         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
24035         (alpha_expand_unaligned_load): Likewise.
24036         (alpha_expand_unaligned_store): Likewise.
24037         (alpha_expand_unaligned_load_words): Likewise.
24038         (alpha_expand_unaligned_store_words): Likewise.
24039         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
24040         (alpha_split_lock_test_and_set_12): Likewise.
24041         (print_operand, alpha_fold_builtin_extxx): Likewise.
24042         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
24043         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
24044         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
24045         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
24046         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
24047         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
24048         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
24049         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
24050         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
24051         (extwl, extll, extql): Similarly.
24052         (inswh, inslh, insqh): Similarly.
24053         (mskbl, mskwl, mskll, mskql): Similarly.
24054         (mskwh, msklh, mskqh): Similarly.
24055
24056 2011-02-24  Richard Henderson  <rth@redhat.com>
24057
24058         * config/alpha/alpha.md (attribute isa): Add er, ner.
24059         (attribute enabled): Handle them.
24060         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
24061
24062 2011-02-24  Richard Henderson  <rth@redhat.com>
24063
24064         * config/alpha/alpha.md (attribute isa): Add vms.
24065         (attribute enabled): Handle it.
24066         (*movsf): Merge *movsf_{nofix,fix,nofp}.
24067         (*movdf): Merge *movdf_{nofix,fix,nofp}.
24068         (*movtf): Rename from *movtf_internal for consistency.
24069         (*movsi): Merge with *movsi_nt_vms.
24070         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
24071         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
24072         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
24073         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
24074
24075 2011-02-24  Richard Henderson  <rth@redhat.com>
24076
24077         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
24078         (extendqisi2, extendhisi2): Likewise.
24079         (extendqidi2): Simplify BWX/non-BWX expansions.
24080         (extendhidi2): Similarly.
24081
24082 2011-02-24  Richard Henderson  <rth@redhat.com>
24083
24084         * config/alpha/alpha.md (attribute isa): New.
24085         (attribute enabled): New.
24086         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
24087         (zero_extendqisi2, zero_extendqidi2): Similarly.
24088         (zero_extendhisi2, zero_extendhidi2): Similarly.
24089         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
24090
24091 2011-02-24  Richard Henderson  <rth@redhat.com>
24092
24093         * config/alpha/predicates.md (input_operand): Revert last change;
24094         update comment to mention 32-bit VMS rather than Windows.
24095
24096 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24097
24098         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
24099         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
24100         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
24101         * passes.c (init_optimization_passes): Move
24102         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
24103
24104 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24105
24106         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
24107
24108 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24109
24110         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
24111         correctly.
24112
24113 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
24114
24115         PR debug/48204
24116         * simplify-rtx.c (simplify_const_unary_operation): Call
24117         real_convert when changing mode class with FLOAT_EXTEND.
24118
24119 2011-03-24  Nick Clifton  <nickc@redhat.com>
24120
24121         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
24122         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
24123         * config/rx/rx.c (rx_option_override): Set align_jumps,
24124         align_loops and align_labels if not set by the user.
24125         (rx_align_for_label): New function.
24126         (rx_max_skip_for_label): New function.
24127         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
24128         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
24129         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
24130         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
24131         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
24132
24133 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24134
24135         PR rtl-optimization/48263
24136         * optabs.c (expand_binop_directly): Reinstate convert_modes code
24137         and original commutative_p handling.  Use maybe_gen_insn.
24138
24139 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24140
24141         * reload.c (find_reloads_subreg_address): Add address_reloaded
24142         parameter and return true there if the full address has been
24143         reloaded.
24144         (find_reloads_toplev): Pass address_reloaded flag.
24145         (find_reloads_address_1): Don't use address_reloaded parameter.
24146
24147 2011-03-24  Jeff Law  <law@redhat.com>
24148
24149         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
24150         unused variable "ann".
24151         (remove_unused_locals): Likewise.
24152
24153         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
24154         statement.
24155
24156         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
24157         after it is freed.
24158
24159 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24160
24161         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
24162         for invalid symbolic addresses.
24163         (s390_secondary_reload): Don't use s390_check_symref_alignment for
24164         larl operands.
24165
24166 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24167
24168         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
24169         the argument in calls to fold_truth_not_expr.
24170
24171 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24172
24173         * tree.c (record_node_allocation_statistics): New function.
24174         (make_node_stat, copy_node_stat, build_string): Call it.
24175         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
24176         (build1_stat, build_omp_clause): Likewise.
24177
24178 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24179
24180         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
24181         last commit.
24182
24183 2011-03-24  Richard Guenther  <rguenther@suse.de>
24184
24185         PR tree-optimization/48271
24186         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
24187         blocks that still exist.
24188
24189 2011-03-24  Richard Guenther  <rguenther@suse.de>
24190
24191         PR tree-optimization/48270
24192         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
24193         not free datarefs before ddrs.
24194
24195 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24196
24197         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
24198         from the address built for a reference with variable offset.
24199
24200 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
24201
24202         PR target/48237
24203         * config/i386/i386.md (*movdf_internal_rex64): Do not split
24204         alternatives that can be handled with movq or movabsq insn.
24205         (*movdf_internal): Disable for !TARGET_64BIT.
24206         (*movdf_internal_nointeger): Ditto.
24207         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
24208
24209 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
24210
24211         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24212         (FUNCTION_ARG_ADVANCE): Likewise.
24213         * tm.texi.in: Change references to them to hook references.
24214         * tm.texi: Regenerate.
24215         * targhooks.c (default_function_arg): Eliminate check for target macro.
24216         (default_function_incoming_arg): Likewise.
24217         (default_function_arg_advance): Likewise.
24218         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24219         (function_arg_advance): Likewise.
24220         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24221
24222 2011-03-24  Richard Guenther  <rguenther@suse.de>
24223
24224         PR middle-end/48269
24225         * tree-object-size.c (addr_object_size): Do not double-account
24226         for MEM_REF offsets.
24227
24228 2011-03-24  Diego Novillo  <dnovillo@google.com>
24229
24230         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
24231         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
24232         (lto_input_data_block): Move from lto-opts.c.  Make extern.
24233         Update all users.
24234         (lto_input_string): Rename from input_string.  Make extern.
24235         Update all users.
24236         * lto-streamer-out.c (lto_output_string_with_length): Rename from
24237         output_string_with_length.
24238         Output 0 to indicate a non-NULL string.  Update all callers to
24239         not emit 0.
24240         (lto_output_string): Rename from output_string.  Make extern.
24241         Update all users.
24242         (lto_output_decl_state_streams): Make extern.
24243         (lto_output_decl_state_refs): Make extern.
24244         * lto-streamer.h (lto_input_string): Declare.
24245         (lto_input_data_block): Declare.
24246         (lto_output_string): Declare.
24247         (lto_output_string_with_length): Declare.
24248         (lto_output_decl_state_streams): Declare.
24249         (lto_output_decl_state_refs): Declare.
24250
24251 2011-03-24  Richard Guenther  <rguenther@suse.de>
24252
24253         PR tree-optimization/46562
24254         * tree.c (build_invariant_address): New function.
24255         * tree.h (build_invariant_address): Declare.
24256         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
24257         a renamed function moved ...
24258         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
24259         Take valueization callback parameter.
24260         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
24261         * gimple-fold.h: New file.
24262         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
24263         (ccp_fold, fold_const_aggregate_ref,
24264         fold_ctor_reference, fold_nonarray_ctor_reference,
24265         fold_array_ctor_reference, fold_string_cst_ctor_reference,
24266         get_base_constructor): Move ...
24267         * gimple-fold.c: ... here.
24268         (gimple_fold_stmt_to_constant_1): New function
24269         split out from ccp_fold.  Take a valueization callback parameter.
24270         Valueize all operands.
24271         (gimple_fold_stmt_to_constant): New wrapper function.
24272         (fold_const_aggregate_ref_1): New function split out from
24273         fold_const_aggregate_ref.  Take a valueization callback parameter.
24274         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
24275         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
24276         invariant POINTER_PLUS_EXPRs to invariant form.
24277         (vn_valueize): New function.
24278         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
24279         * tree-vrp.c (vrp_valueize): New function.
24280         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
24281         to fold statements to constants.
24282         * tree-ssa-pre.c (eliminate): Properly guard propagation of
24283         function declarations.
24284         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
24285         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
24286
24287 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
24288
24289         * config/h8300/predicates.md (jump_address_operand): Fix register
24290         mode check.
24291
24292 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
24293
24294         * doc/invoke.texi (max-stores-to-sink): Document.
24295         * params.h (MAX_STORES_TO_SINK): Define.
24296         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
24297         if either vectorization or if-conversion is disabled.
24298         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
24299         tree-vect-data-refs.c vect_equal_offsets.
24300         (dr_equal_offsets_p): New function.
24301         (find_data_references_in_bb): Remove static.
24302         * tree-data-ref.h (find_data_references_in_bb): Declare.
24303         (dr_equal_offsets_p): Likewise.
24304         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
24305         (vect_drs_dependent_in_basic_block): Update calls to
24306         vect_equal_offsets.
24307         (vect_check_interleaving): Likewise.
24308         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
24309         (cond_if_else_store_replacement): Rename to...
24310         (cond_if_else_store_replacement_1): ... this.  Change arguments and
24311         documentation.
24312         (cond_if_else_store_replacement): New function.
24313         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
24314         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
24315
24316 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
24317
24318         PR target/46934
24319         * config/arm/arm.md (casesi): Use the gen_int_mode() function
24320         to subtract lower bound instead of GEN_INT().
24321
24322 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
24323
24324         PR other/48179
24325         PR other/48221
24326         PR other/48234
24327         * doc/extend.texi (Alignment): Move section to match order in TOC.
24328         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
24329         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
24330
24331 2011-03-23  Jeff Law  <law@redhat.com>
24332
24333         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
24334         before removing the edge.
24335
24336         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
24337         it may have been freed by redirect_branch_edge or
24338         redirect_edge_succ_nodup.
24339
24340 2011-03-23  Richard Guenther  <rguenther@suse.de>
24341
24342         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
24343         (check_va_list_escapes): Likewise.
24344         (check_all_va_list_escapes): Likewise.
24345
24346 2011-03-23  Richard Guenther  <rguenther@suse.de>
24347
24348         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
24349         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
24350         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
24351         (alias.o): Likewise.
24352         (ipa-type-escape.o): Remove.
24353         (ipa-struct-reorg.o): Likewise.
24354         (GTFILES): Remove ipa-struct-reorg.c.
24355         * alias.c: Do not include ipa-type-escape.h.
24356         * tree-ssa-alias.c: Likewise.
24357         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
24358         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
24359         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
24360         and ipa-type-escape passes.
24361         * tree-pass.h (pass_ipa_type_escape): Remove.
24362         (pass_ipa_struct_reorg): Likewise.
24363         * ipa-struct-reorg.h: Remove.
24364         * ipa-struct-reorg.c: Likewise.
24365         * ipa-type-escape.h: Likewise.
24366         * ipa-type-escape.c: Likewise.
24367         * doc/invoke.texi (-fipa-struct-reorg): Remove.
24368         (--param struct-reorg-cold-struct-ratio): Likewise.
24369         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24370         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
24371         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
24372
24373 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24374
24375         * config/s390/2084.md: Enable all insn reservations also for z9_ec
24376         cpu attribute value.
24377         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
24378         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
24379         * config/s390/s390.c (processor_flags_table): New constant array.
24380         (s390_handle_arch_option): Remove.
24381         (s390_handle_option): Remove s390_handle_arch_option invocations
24382         and OPT_mwarn_framesize_ handling.
24383         (s390_option_override): Remove s390_handle_arch_option invocation.
24384         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
24385         warnings.
24386         * config/s390/s390.md (cpu attribute): Add z9_ec value.
24387         * config/s390/s390.opt (s390_tune, s390_arch)
24388         (march=): Replace s390_arch_option enum and values with
24389         processor_type.  Set variable name to s390_arch.  Set
24390         initialization value.
24391         (mtune=): Replace s390_arch_option with processor_type.  Set
24392         variable name to s390_tune.  Set initialization value.
24393
24394 2011-03-23  Julian Brown  <julian@codesourcery.com>
24395
24396         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
24397         accesses which are not naturally aligned.
24398
24399 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24400
24401         PR target/47553
24402         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
24403
24404 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
24405
24406         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
24407         parameter from "int" to "enum insn_code".
24408         (expand_operand_type): New enum.
24409         (expand_operand): New structure.
24410         (create_expand_operand): New function.
24411         (create_fixed_operand, create_output_operand): Likewise
24412         (create_input_operand, create_convert_operand_to): Likewise.
24413         (create_convert_operand_from, create_address_operand): Likewise.
24414         (create_integer_operand): Likewise.
24415         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
24416         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24417         (expand_insn, expand_jump_insn): Likewise.
24418         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
24419         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
24420         (expand_movstr, expand_builtin___clear_cache): Likewise.
24421         (expand_builtin_lock_release): Likewise.
24422         * explow.c (allocate_dynamic_stack_space): Likewise.
24423         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
24424         and use the default handling in that case.
24425         * expmed.c (check_predicate_volatile_ok): Delete.
24426         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
24427         (emit_cstore): Likewise.
24428         * expr.c (emit_block_move_via_movmem): Likewise.
24429         (set_storage_via_setmem, expand_assignment): Likewise.
24430         (emit_storent_insn, try_casesi): Likewise.
24431         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
24432         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
24433         (expand_vec_shift_expr, expand_binop_directly): Likewise.
24434         (expand_twoval_unop, expand_twoval_binop): Likewise.
24435         (expand_unop_direct, emit_indirect_jump): Likewise.
24436         (emit_conditional_move, vector_compare_rtx): Likewise.
24437         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
24438         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
24439         (expand_sync_lock_test_and_set): Likewise.
24440         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
24441         (emit_unop_insn): Likewise.
24442         (expand_copysign_absneg): Change icode to an insn_code.
24443         (create_convert_operand_from_type): New function.
24444         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
24445         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
24446         (expand_insn, expand_jump_insn): Likewise.
24447         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
24448         than const_int_operand for operand 2.
24449
24450 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24451
24452         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
24453         if possible.
24454
24455 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24456
24457         * emit-rtl.c (emit_pattern_before_noloc): New function.
24458         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
24459         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
24460         (emit_pattern_after_noloc): New function.
24461         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
24462         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
24463
24464 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24465
24466         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
24467         (__ffsDI2): Likewise.
24468
24469 2011-03-22  Richard Henderson  <rth@redhat.com>
24470
24471         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
24472         of !TARGET_ABI_OPEN_VMS.
24473         (alpha_trampoline_init, alpha_start_function): Likewise.
24474         (alpha_expand_epilogue, alpha_file_start): Likewise.
24475         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
24476         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
24477         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
24478         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
24479         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
24480
24481 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24482
24483         * config/s390/s390-opts.h: New.
24484         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
24485         s390_arch_flags, s390_warn_framesize, s390_stack_size,
24486         s390_stack_guard): Remove.
24487         (s390_handle_arch_option): Return void.  Take enum
24488         s390_arch_option value instead of string and searching array.
24489         (s390_handle_option): Don't assert that global structures are in
24490         use.  Access variables via opts pointer.  Use error_at.  Don't use
24491         sscanf for -mstack-guard= or -mstack-size=.  Update call to
24492         s390_handle_arch_option.
24493         (s390_option_override): Update call to s390_handle_arch_option.
24494         (s390_emit_prologue): Use %d format for s390_stack_size in
24495         diagnostic.  Use %wd for HOST_WIDE_INT.
24496         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
24497         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
24498         * config/s390/s390.opt (config/s390/s390-opts.h): New
24499         HeaderInclude entry.
24500         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
24501         s390_arch_flags, s390_warn_framesize): New Variable entries.
24502         (s390_arch_option): New Enum and EnumValue entries.
24503         (march=): Use Enum instead of Var.
24504         (mstack-guard=, mstack-size=): Use UInteger and Var.
24505         (mtune=): Use Enum.
24506
24507 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24508
24509         * config/score/score.c (score_handle_option): Don't assert that
24510         global structures are in use.  Access target_flags via opts
24511         pointer.  Use value of -march= option to determine target_flags
24512         settings.
24513         * config/score/score.opt (march=): Use Enum.
24514         (score_arch): New Enum and EnumValue entries.
24515
24516 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24517
24518         * config/mep/mep.c (option_mtiny_specified): Remove.
24519         (mep_option_override): Move register handling for -mivc2 from
24520         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
24521         instead of option_mtiny_specified.
24522         (mep_handle_option): Access target_flags via opts pointer.  Don't
24523         assert that global structures are in use.  Defer part of -mivc2
24524         handling and move it to mep_option_override.
24525         * config/mep/mep.opt (IVC2): New Mask entry.
24526         (mivc2): Use Var and Defer instead of Mask.
24527
24528 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24529
24530         * config/v850/v850-opts.h: New.
24531         * config/v850/v850.c (small_memory): Replace with
24532         small_memory_physical_max array.  Make that array static const.
24533         (v850_handle_memory_option): Take integer value of argument.  Take
24534         gcc_options pointer, option text and location.  Return void.
24535         Update for changes to small memory structures.
24536         (v850_handle_option): Access target_flags via opts pointer.  Don't
24537         assert that global structures are in use.  Update calls to
24538         v850_handle_memory_option.
24539         (v850_encode_data_area): Update references to small memory settings.
24540         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
24541         (enum small_memory_type): Move to v850-opts.h.
24542         * config/v850/v850.opt (config/v850/v850-opts.h): New
24543         HeaderInclude entry.
24544         (small_memory_max): New Variable entry.
24545         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
24546         (mtda, mzda): Likewise.
24547
24548 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24549
24550         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
24551         pointer.  Don't assert that global structures are in use.
24552
24553 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24554
24555         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
24556         via opts pointer.  Don't assert that global structures are in use.
24557
24558 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24559
24560         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
24561         (munix=93): Use Var.
24562         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
24563         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
24564         * config/pa/pa-opts.h: New.
24565         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
24566         (pa_handle_option): Don't assert that global structures are in
24567         use.  Access target_flags via opts pointer.  Don't handle
24568         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
24569         OPT_munix_98 here.
24570         (pa_option_override): Handle deferred OPT_mfixed_range_.
24571
24572 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24573
24574         * config/mn10300/mn10300-opts.h: New.
24575         * config/mn10300/mn10300.c (mn10300_processor,
24576         mn10300_tune_string): Remove.
24577         (mn10300_handle_option): Don't assert that global structures are
24578         in use.  Access mn10300_processor via opts pointer.  Don't handle
24579         OPT_mtune_ here.
24580         * config/mn10300/mn10300.h (enum processor_type): Move to
24581         mn10300-opts.h.
24582         (mn10300_processor): Remove.
24583         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
24584         HeaderInclude entry.
24585         (mn10300_processor): New Variable entry.
24586         (mtune=): Use Var.
24587
24588 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24589
24590         * config/microblaze/microblaze.c: Don't include opts.h.
24591         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
24592         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
24593         (mno-clearbss): Use Var and Warn.
24594
24595 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24596
24597         * config/m32r/m32r-opts.h: New.
24598         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
24599         (m32r_handle_option): Don't assert that global structures are in
24600         use.  Access target_flags and m32r_cache_flush_func via opts
24601         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
24602         OPT_mno_flush_trap here.
24603         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
24604         include of m32r-opts.h.
24605         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
24606         HeaderInclude entry.
24607         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
24608         (mmodel=): Use Enum and Var.
24609         (m32r_model): New Enum and EnumValue entries.
24610         (mno-flush-trap): Use Var.
24611         (msdata=): Use Enum and Var.
24612         (m32r_sdata): New Enum and EnumValue entries.
24613
24614 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24615
24616         * config/m32c/m32c.c: Don't include opts.h.
24617         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
24618         m32c_handle_option): Remove.
24619         (m32c_option_override): Check global_options_set.x_target_memregs
24620         instead of target_memregs_set.
24621         * config/m32c/m32c.h (target_memregs): Remove.
24622         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
24623         variable.
24624
24625 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24626
24627         * config/iq2000/iq2000-opts.h: New.
24628         * config/iq2000/iq2000.c: Don't include opts.h.
24629         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
24630         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
24631         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
24632         HeaderInclude entry.
24633         (iq2000_tune): New Variable entry.
24634         (march=): Add comment.  Use Enum.
24635         (iq2000_arch): New Enum and EnumValue entries.
24636         (mcpu=): Use Enum and Var.
24637         (iq2000_tune): New Enum and EnumValue entries.
24638
24639 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24640
24641         * config/ia64/ia64-opts.h: New.
24642         * config/ia64/ia64.c (ia64_tune): Remove.
24643         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24644         here.  Use error_at.
24645         (ia64_option_override): Handle deferred OPT_mfixed_range_.
24646         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24647         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24648         HeaderInclude entry.
24649         (ia64_tune): New Variable entry.
24650         (mfixed-range=): Use Defer and Var.
24651         (mtune=): Use Enum and Var.
24652         (ia64_tune): New Enum and EnumValue entries.
24653
24654 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24655
24656         * config/frv/frv-opts.h: New.
24657         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24658         frv-opts.h.
24659         (frv_cpu_type): Remove.
24660         * config/frv/frv.c: Don't include opts.h.
24661         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24662         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24663         (frv_cpu_type): New Variable entry.
24664         (frv_cpu): New Enum and EnumValue entries.
24665
24666 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24667
24668         * config/cris/cris.c (cris_handle_option): Access target_flags via
24669         opts pointer.  Don't assert that global structures are in use.
24670         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24671         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24672
24673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24674
24675         * config/bfin/bfin-opts.h: New.
24676         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24677         bfin_si_revision, bfin_workarounds): Remove.
24678         (bfin_cpus): Make static const.
24679         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24680         not bfin_lib_id_given.
24681         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
24682         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24683         pointer. Use error_at.  Don't assert that global structures are in use.
24684         * config/bfin/bfin.h: Include bfin-opts.h.
24685         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24686         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24687         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24688         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24689         entries.
24690
24691 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24692
24693         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24694         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24695         or -msoft-float here.
24696         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24697         -msoft-float and -mhard-float.
24698         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24699         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24700         msoft-float.
24701         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24702         -msoft-float.
24703         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24704         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24705         not mhard-float.
24706         (LIBGCC_SPEC): Don't handle -msoft-float.
24707         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24708         -mhard-float.
24709         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24710         msoft-float.
24711         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24712         -mfloat-abi=*, not -msoft-float and -mhard-float.
24713         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24714         -msoft-float.
24715         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24716         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24717         mhard-float and msoft-float.
24718         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24719         mfloat-abi=soft in comments, not mhard-float and msoft-float.
24720         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24721         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24722         mhard-float.
24723         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24724         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24725         msoft-float.
24726         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24727         not mhard-float.
24728         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24729         not msoft-float.
24730
24731 2011-03-22  Richard Henderson  <rth@redhat.com>
24732
24733         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24734         TARGET_ABI_WINDOWS_NT.
24735         (alpha_output_function_end_prologue): Likewise.
24736         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24737         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24738         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24739         (trap, *movsi_nt_vms): Likewise.
24740         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24741         (*tablejump_osf_nt_internal): Remove.
24742         * config/alpha/predicates.md (input_operand): Only test Pmode.
24743
24744 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24745
24746         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24747         via opts pointer.  Use error_at.  Don't assert that global
24748         structures are in use.
24749
24750 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24751
24752         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24753         (ix86_handle_option): Access ix86_isa_flags and
24754         ix86_isa_flags_explicit via opts pointer.  Don't assert that
24755         global structures are in use.
24756         (ix86_function_specific_save, ix86_function_specific_restore):
24757         Update ix86_isa_flags_explicit field name.
24758         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24759         (ix86_isa_flags_explicit): Rename TargetSave entry to
24760         x_ix86_isa_flags_explicit.
24761
24762 2011-03-22  Richard Henderson  <rth@redhat.com>
24763
24764         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24765         (alpha_option_override, direct_return): Likewise.
24766         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24767         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24768         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24769         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24770         (alpha_expand_epilogue, alpha_end_function): Likewise.
24771         (alpha_init_libfuncs): Likewise.
24772         (struct machine_function): Remove unicosmk members.
24773         (print_operand) ['t']: Remove.
24774         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24775         unicosmk_output_module_name, unicosmk_output_common,
24776         current_section_align, unicosmk_output_text_section_asm_op,
24777         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24778         unicosmk_section_type_flags, unicosmk_unique_section,
24779         unicosmk_asm_named_section, unicosmk_insert_attributes,
24780         unicosmk_output_align, unicosmk_defer_case_vector,
24781         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24782         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24783         unicosmk_output_ssib, unicosmk_add_call_info_word,
24784         unicosmk_extern_head, unicosmk_output_default_externs,
24785         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24786         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24787         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24788         * config/alpha/alpha-protos.h: Update.
24789         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24790         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24791         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24792         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24793         (*mulsi_se, mulvsi3): Likewise.
24794         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24795         (*divmodsi_internal, call, call_value, realign): Likewise.
24796         (moddi3, umoddi3): Likewise; remove duplicate expander.
24797         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24798         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24799         (*movdi_nofix): Remove r/U alternative.
24800         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24801         * config/alpha/constraints.md ("U"): Remove.
24802         * config/alpha/predicates.md (call_operand"): Don't test
24803         TARGET_ABI_UNICOSMK.
24804
24805 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24806
24807         * target.def (handle_option): Take gcc_options and
24808         cl_decoded_option pointers and location_t.
24809         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24810         * doc/tm.texi: Regenerate.
24811         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24812         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24813         * lto-opts.c (lto_reissue_options): Generate option structure for
24814         targetm.handle_option call.
24815         * opts.c (target_handle_option): Update call to
24816         targetm.handle_option.  Remove assertions about values now passed
24817         down to hook.
24818         * targhooks.c (default_target_handle_option): New.
24819         * targhooks.h (default_target_handle_option): Declare.
24820         * config/alpha/alpha.c: Include opts.h.
24821         (alpha_handle_option): Update to new hook interface.
24822         * config/arm/arm.c: Include opts.h.
24823         (arm_handle_option): Update to new hook interface.
24824         * config/arm/t-arm (arm.o): Update dependencies.
24825         * config/bfin/bfin.c: Include opts.h.
24826         (bfin_handle_option): Update to new hook interface.
24827         * config/cris/cris.c: Include opts.h.
24828         (cris_handle_option): Update to new hook interface.
24829         * config/frv/frv.c: Include opts.h.
24830         (frv_handle_option): Update to new hook interface.
24831         * config/i386/i386.c: Include opts.h.
24832         (ix86_handle_option): Update to new hook interface.
24833         (ix86_valid_target_attribute_inner_p): Generate option structure
24834         for call to ix86_handle_option.
24835         * config/i386/t-i386 (i386.o): Update dependencies.
24836         * config/ia64/ia64.c: Include opts.h.
24837         (ia64_handle_option): Update to new hook interface.
24838         * config/ia64/t-ia64 (ia64.o): Update dependencies.
24839         * config/iq2000/iq2000.c: Include opts.h.
24840         (iq2000_handle_option): Update to new hook interface.
24841         * config/m32c/m32c.c: Include opts.h.
24842         (m32c_handle_option): Update to new hook interface.
24843         * config/m32r/m32r.c: Include opts.h.
24844         (m32r_handle_option): Update to new hook interface.
24845         * config/m68k/m68k.c: Include opts.h.
24846         (m68k_handle_option): Update to new hook interface.
24847         * config/mep/mep.c: Include opts.h.
24848         (mep_handle_option): Update to new hook interface.
24849         * config/microblaze/microblaze.c: Include opts.h.
24850         (microblaze_handle_option): Update to new hook interface.
24851         * config/mips/mips.c: Include opts.h.
24852         (mips_handle_option): Update to new hook interface.
24853         * config/mn10300/mn10300.c: Include opts.h.
24854         (mn10300_handle_option): Update to new hook interface.
24855         * config/pa/pa.c: Include opts.h.
24856         (pa_handle_option): Update to new hook interface.
24857         * config/pdp11/pdp11.c: Include opts.h.
24858         (pdp11_handle_option): Update to new hook interface.
24859         * config/rs6000/rs6000.c: Include opts.h.
24860         (rs6000_handle_option): Update to new hook interface.
24861         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24862         * config/rx/rx.c: Include opts.h.
24863         (rx_handle_option): Update to new hook interface.
24864         * config/s390/s390.c: Include opts.h.
24865         (s390_handle_option): Update to new hook interface.
24866         * config/score/score.c: Include opts.h.
24867         (score_handle_option): Update to new hook interface.
24868         * config/sh/sh.c: Include opts.h.
24869         (sh_handle_option): Update to new hook interface.
24870         * config/sparc/sparc.c: Include opts.h.
24871         (sparc_handle_option): Update to new hook interface.
24872         * config/v850/v850.c: Include opts.h.
24873         (v850_handle_option): Update to new hook interface.
24874
24875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24876
24877         * gcc.c (driver_unknown_option_callback): Only permit and save
24878         unknown -Wno- options.
24879         (driver_wrong_lang_callback): Save options directly instead of via
24880         driver_unknown_option_callback.
24881
24882 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24883
24884         * combine.c (simplify_set): Try harder to find the best CC mode when
24885         simplifying a nested COMPARE on the RHS.
24886
24887 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24888
24889         * config/alpha/gnu.h: Remove.
24890         * config/arc: Remove directory.
24891         * config/arm/netbsd.h: Remove.
24892         * config/arm/t-pe: Remove.
24893         * config/crx: Remove directory.
24894         * config/i386/netbsd.h: Remove.
24895         * config/m68hc11: Remove directory.
24896         * config/m68k/uclinux-oldabi.h: Remove.
24897         * config/mcore/mcore-pe.h: Remove.
24898         * config/mcore/t-mcore-pe: Remove.
24899         * config/netbsd-aout.h: Remove.
24900         * config/rs6000/gnu.h: Remove.
24901         * config/sh/sh-symbian.h: Remove.
24902         * config/sh/symbian-base.c: Remove.
24903         * config/sh/symbian-c.c: Remove.
24904         * config/sh/symbian-cxx.c: Remove.
24905         * config/sh/symbian-post.h: Remove.
24906         * config/sh/symbian-pre.h: Remove.
24907         * config/sh/t-symbian: Remove.
24908         * config/svr3.h: Remove.
24909         * config/vax/netbsd.h: Remove.
24910         * config.build: Don't handle i[34567]86-*-pe.
24911         * config.gcc: Remove handling of deprecations for most deprecated
24912         targets.
24913         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24914         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24915         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24916         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24917         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24918         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24919         Remove cases.
24920         * config.host: Don't handle i[34567]86-*-pe.
24921         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24922         (ASM_SPEC32): Don't handle -mcall-gnu.
24923         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24924         -mcall-gnu.
24925         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24926         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24927         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24928         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24929         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24930         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24931         conditional on SYMBIAN.
24932         * configure.ac: Don't handle powerpc*-*-gnu*.
24933         * configure: Regenerate.
24934         * doc/extend.texi (interrupt attribute): Don't mention CRX.
24935         * doc/install-old.texi (m6811, m6812): Don't mention.
24936         * doc/install.texi (arc-*-elf*): Don't document multilib option.
24937         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24938         (m68k-uclinuxoldabi): Don't mention.
24939         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24940         Remove.
24941         (-mcall-gnu): Remove.
24942         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24943         families): Remove constraint documentation.
24944
24945 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
24946
24947         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24948         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24949         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24950
24951 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24952
24953         PR target/48226
24954         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24955         vector when peeking at the next token for vector, don't expand the
24956         keywords.
24957
24958 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
24959
24960         * config/avr/avr-protos.h (expand_epilogue): Change prototype
24961         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24962         * config/avr/avr.c (init_cumulative_args)
24963         (avr_function_arg_advance): Use it.
24964         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24965         sibcall epilogues.
24966         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24967         (avr_function_ok_for_sibcall): ...this new function.
24968         (avr_lookup_function_attribute1): New static Function.
24969         (avr_naked_function_p, interrupt_function_p)
24970         (signal_function_p, avr_OS_task_function_p)
24971         (avr_OS_main_function_p): Use it.
24972         * config/avr/avr.md ("sibcall", "sibcall_value")
24973         ("sibcall_epilogue"): New expander.
24974         ("*call_insn", "*call_value_insn"): New insn.
24975         ("call_insn", "call_value_insn"): Remove
24976         ("call", "call_value", "epilogue"): Change expander to handle
24977         sibling calls.
24978
24979 2011-03-21  Nick Clifton  <nickc@redhat.com>
24980
24981         * doc/invoke.texi (Overall Options): Move closing brace to end of
24982         options list.
24983         (Optimization Options): Add missing @gol.
24984         (Directory Options): Likewise.
24985         (i386 and x86-64 Options): Likewise.
24986         (RS6000 and PowerPC Options): Likewise.
24987         (i386 and x86-64 Windows Options): Likewise.
24988         (V850 Options): Add text missing from descriptions.
24989
24990 2011-03-22  Richard Henderson  <rth@redhat.com>
24991
24992         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24993         (avr_incoming_return_addr_rtx): New.
24994         (emit_push_byte): New.
24995         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
24996         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
24997         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
24998         (emit_pop_byte): New.
24999         (expand_epilogue): Use it.  Pop frame pointer by bytes.
25000         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
25001         (INCOMING_RETURN_ADDR_RTX): New.
25002         (INCOMING_FRAME_SP_OFFSET): New.
25003         (ARG_POINTER_CFA_OFFSET): New.
25004         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
25005         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
25006         (pophi): Remove.
25007
25008         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
25009
25010 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25011
25012         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25013         (FUNCTION_ARG_ADVANCE): Likewise.
25014         * tm.texi.in: Change references to them to hook references.
25015         * tm.texi: Regenerate.
25016         * targhooks.c (default_function_arg): Eliminate check for target
25017         macro.
25018         (default_function_incoming_arg): Likewise.
25019         (default_function_arg_advance): Likewise.
25020         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25021         (function_arg_advance): Likewise.
25022         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25023
25024 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
25025
25026         * tree.c (build_call_1): New function.
25027         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
25028
25029 2011-03-22  Richard Guenther  <rguenther@suse.de>
25030
25031         PR tree-optimization/48228
25032         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
25033         for single-arg PHIs.
25034
25035 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
25036
25037         PR rtl-optimization/48143
25038         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
25039         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
25040         sse2_cvtps2pd): Likewise.
25041
25042 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25043
25044         * recog.c (canonicalize_change_group): Use validate_unshare_change.
25045
25046 2011-03-22  Richard Guenther  <rguenther@suse.de>
25047
25048         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
25049         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
25050         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
25051         and REALIGN_LOAD_EXPR.
25052         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
25053         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
25054         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
25055         DOT_PROD_EXPR case ...
25056         (expand_expr_real_2): ... here.
25057         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
25058         and REALIGN_LOAD_EXPR.
25059         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
25060         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
25061         (vect_create_epilog_for_reduction): Likewise.
25062         (vectorizable_reduction): Likewise.
25063         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
25064         * tree-vect-stmts.c (vectorizable_load): Likewise.
25065
25066 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
25067
25068         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
25069
25070 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25071
25072         * config/s390/s390.c (s390_delegitimize_address): Fix offset
25073         handling for PLTOFF/GOTOFF.
25074
25075 2011-03-22  Nick Clifton  <nickc@redhat.com>
25076
25077         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
25078         trailing backslash from the end of the macro definition.
25079
25080 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25081
25082         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
25083         and PLT unspecs.
25084
25085 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
25086
25087         * expr.h (prepare_operand): Move to...
25088         * optabs.h (prepare_operand): ...here and change the insn code
25089         parameter from "int" to "enum insn_code".
25090         (insn_operand_matches): Declare.
25091         * expr.c (init_expr_target): Use insn_operand_matches.
25092         (compress_float_constant): Likewise.
25093         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
25094         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
25095         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
25096         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
25097         Likewise.
25098         (gen_cond_trap): Likewise.
25099         (prepare_operand): Likewise.  Change icode to an insn_code.
25100         (insn_operand_matches): New function.
25101         * reload.c (find_reloads_address_1): Use insn_operand_matches.
25102         * reload1.c (gen_reload): Likewise.
25103         * targhooks.c (default_secondary_reload): Likewise.
25104
25105 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25106
25107         * config/alpha/alpha.md (unspec): New define_c_enum.
25108         (unspecv): Ditto.
25109
25110 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
25111
25112         PR debug/48214
25113         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
25114         between a call and its CALL_ARG_LOCATION note.
25115
25116 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
25117
25118         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
25119
25120 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25121
25122         PR c/42544
25123         PR c/48197
25124         * c-common.c (shorten_compare): If primopN is first sign-extended
25125         to opN and then zero-extended to result type, set primopN to opN.
25126
25127 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
25128
25129         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
25130         for barrier handlers.
25131
25132 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25133
25134         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
25135         UNSPEC constants to be in the unspec enumeration, and redefine
25136         all UNSPECV constants to be in the unspecv enumeration, so that
25137         dumps print which unspec/unspec_volatile this is.
25138         * config/rs6000/vector.md (UNSPEC_*): Ditto.
25139         * config/rs6000/paired.md (UNSPEC_*): Ditto.
25140         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
25141         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
25142         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
25143
25144         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
25145         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
25146         UNSPECV_LWSYNC, since these are used as unspec_volatile.
25147         * config/rs6000/sync.md (isync, lwsync): Ditto.
25148
25149 2011-03-21  Richard Guenther  <rguenther@suse.de>
25150
25151         * params.def (lto-min-partition): Fix typo.
25152
25153 2011-03-21  Richard Guenther  <rguenther@suse.de>
25154
25155         PR c/47939
25156         * c-decl.c (grokdeclarator): Drop to the main variant only
25157         for array types.  Drop flag_gen_aux_info check.
25158
25159 2011-03-21  Richard Guenther  <rguenther@suse.de>
25160
25161         PR translation/47911
25162         * params.def (lto-partitions): Fix typo.
25163         (lto-min-partition): Fix wording.
25164
25165 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
25166
25167         * config/rs6000/t-freebsd: Remove duplication from file.
25168
25169 2011-03-21  Richard Guenther  <rguenther@suse.de>
25170
25171         PR middle-end/47661
25172         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
25173
25174 2011-03-21  Richard Guenther  <rguenther@suse.de>
25175
25176         PR lto/48210
25177         * params.def (lto-partitions): Require at least 1 partition.
25178
25179 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25180
25181         * gthr-solaris.h: Remove.
25182         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
25183         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
25184         (LIB_SPEC): Likewise.
25185         * config/sol2.opt (threads): Remove.
25186         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
25187         (sparc*-*-solaris2*): Likewise.
25188         * configure.ac (enable_threads): Enable solaris support.
25189         * configure: Regenerate.
25190         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
25191         * doc/install.texi (Configuration, --enable-threads=lib): Remove
25192         solaris.
25193
25194 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25195
25196         * config.gcc: Obsolete *-*-solaris2.8*.
25197         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25198
25199 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25200
25201         PR bootstrap/48135
25202         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
25203         reference.  Solaris 8 perl works.
25204
25205 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25206
25207         PR bootstrap/48135
25208         * doc/install.texi (Prerequisites): Move jar etc. up.
25209         Explain support library version requirements.
25210
25211 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25212
25213         PR bootstrap/48135
25214         * doc/install.texi (Prerequisites): Move Perl to build
25215         requirements.  Always necessary on Solaris 2 with Sun ld.
25216
25217 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25218
25219         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
25220         binutils 2.21.
25221         (Specific, i?86-*-solaris2.[89]): Likewise.
25222         (Specific, i?86-*-solaris2.10): Likewise.
25223         (Specific, mips-sgi-irix6): Likewise.
25224         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
25225         Update for binutils 2.21.
25226
25227 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25228
25229         * configure.ac (gcc_cv_lto_plugin): Fix typo.
25230         Allow -fuse-linker-plugin for non-default plugin linker.
25231         * configure: Regenerate.
25232
25233 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
25234
25235         PR bootstrap/48167
25236         * gengtype.c (files_rules): Added rule for cp/parser.h.
25237
25238 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
25239
25240         PR target/48213
25241         * config/s390/s390.c (s390_delegitimize_address): Don't call
25242         lowpart_subreg if orig_x has BLKmode.
25243
25244 2011-03-21  Kai Tietz  <ktietz@redhat.com>
25245
25246         PR target/12171
25247         * doc/plugins.texi: Adjust documentation for plugin register_callback.
25248         * tree.h (attribute_spec): Add new member affects_type_identity.
25249         * attribs.c (empty_attribute_table): Adjust attribute_spec
25250         initializers.
25251         * config/alpha/alpha.c: Likewise.
25252         * config/arc/arc.c: Likewise.
25253         * config/arm/arm.c: Likewise.
25254         * config/avr/avr.c: Likewise.
25255         * config/bfin/bfin.c: Likewise.
25256         * config/crx/crx.c: Likewise.
25257         * config/darwin.h: Likewise.
25258         * config/h8300/h8300.c: Likewise.
25259         * config/i386/cygming.h: Likewise.
25260         * config/i386/i386.c: Likewise.
25261         * config/ia64/ia64.c: Likewise.
25262         * config/m32c/m32c.c: Likewise.
25263         * config/m32r/m32r.c: Likewise.
25264         * config/m68hc11/m68hc11.c: Likewise.
25265         * config/m68k/m68k.c: Likewise.
25266         * config/mcore/mcore.c: Likewise.
25267         * config/mep/mep.c: Likewise.
25268         * config/microblaze/microblaze.c: Likewise.
25269         * config/mips/mips.c: Likewise.
25270         * config/rs6000/rs6000.c: Likewise.
25271         * config/rx/rx.c: Likewise.
25272         * config/sh/sh.c: Likewise.
25273         * config/sol2.h: Likewise.
25274         * config/sparc/sparc.c: Likewise.
25275         * config/spu/spu.c: Likewise.
25276         * config/stormy16/stormy16.c: Likewise.
25277         * config/v850/v850.c: Likewise.
25278
25279 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
25280
25281         * simplify-rtx.c (simplify_binary_operation_1): Handle
25282         (xor (and A B) C) case when B and C are both constants.
25283
25284 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
25285
25286         * tree-dfa.c (add_referenced_var): Fix typo in comment.
25287
25288 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
25289
25290         PR bootstrap/48168
25291         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
25292
25293 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
25294
25295         PR rtl-optimization/48156
25296         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
25297         assume df and df_lr are not NULL.
25298
25299 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25300
25301         PR debug/48023
25302         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
25303         between a call and its CALL_ARG_LOCATION note.
25304
25305 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25306
25307         PR debug/48178
25308         * config/sh/sh.c (find_barrier): Don't emit a constant pool
25309         between a call and its corresponding CALL_ARG_LOCATION note.
25310
25311 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
25312
25313         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
25314         instead of loop. Use HARD_REGISTER_NUM_P predicate.
25315         * haifa-sched.c (setup_ref_regs): Ditto.
25316         * caller-save.c (add_used_regs_1): Ditto.
25317         * dse.c (look_for_hardregs): Ditto.
25318         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
25319         * sched-rgn.c (check_live_1): Ditto.
25320
25321 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25322
25323         * c-decl.c (diagnose_mismatched_decls): Give an error for
25324         redefining a typedef with variably modified type.
25325
25326 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
25327
25328         * c-decl.c (grokfield): Don't allow typedefs for structures or
25329         unions with no tag by default.
25330         * doc/extend.texi (Unnamed Fields): Update.
25331
25332 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
25333
25334         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25335         Rewrite using indirect functions.
25336         (lwp_slwpcb): Ditto.
25337         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
25338         (avx_vinsertf128<mode>): Ditto.
25339
25340 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25341
25342         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
25343         unspecs.
25344
25345 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25346
25347         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
25348         splitting between a call and its corresponding CALL_ARG_LOCATION note.
25349
25350 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
25351
25352         PR rtl-optimization/48170
25353         * gcse.c (hoist_code): Remove bogus asserts.
25354
25355 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
25356
25357         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
25358         computation for prologue/epilogue.
25359
25360 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25361
25362         * Makefile.in (check-consistency): Remove.
25363
25364 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
25365
25366         PR debug/48176
25367         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
25368         arange_table_in_use is 0, but either text_section_used or
25369         cold_text_section_used is true.  Don't call it if
25370         !info_section_emitted.
25371
25372 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
25373
25374         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
25375         FUNCTION_VALUE_REGNO_P): Remove.
25376         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
25377         Remove.
25378         * config/avr/avr.c (avr_ret_register): Make static inline.
25379         (avr_function_value_regno_p): New function.
25380         (avr_libcall_value): Make static. Add 'func' argument.
25381         (avr_function_value): Make static. Rename 'func' argument to
25382         'fn_decl_or_type', forward it to avr_libcall_value. Call
25383         avr_ret_register function instead of RET_REGISTER macro.
25384         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25385
25386 2011-03-18  Jason Merrill  <jason@redhat.com>
25387
25388         PR c++/23372
25389         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
25390
25391 2011-03-18  Richard Guenther  <rguenther@suse.de>
25392
25393         * doc/install.texi (--enable-gold): Remove.
25394         (--with-plugin-ld): Document.
25395         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
25396
25397 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
25398
25399         PR middle-end/47790
25400         * expr.c (optimize_bitfield_assignment_op): Revamp to work
25401         again after expansion changes.
25402
25403 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
25404
25405         * combine.c (try_combine): Do simplification only call of
25406         subst() on i2 even when i1 is present. Update comments.
25407
25408 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
25409
25410         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
25411         and UNSPEC_PCREL_SYMOFF.
25412
25413 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25414
25415         * config/s390/s390.md: Use define_c_enum for the unspec constant
25416         definitions.
25417
25418 2011-03-18  Richard Henderson  <rth@redhat.com>
25419             Jakub Jelinek  <jakub@redhat.com>
25420
25421         PR bootstrap/48161
25422         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
25423         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
25424
25425 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
25426
25427         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25428         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
25429         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
25430         Change return type to bool.
25431         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25432
25433 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25434
25435         PR debug/48163
25436         * var-tracking.c (prepare_call_arguments): If CALL target
25437         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
25438         pc instead of looking it up using cselib_lookup and use
25439         Pmode for it if x has VOIDmode.
25440         * dwarf2out.c (gen_subprogram_die): If also both first and
25441         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
25442
25443         PR debug/48163
25444         * function.c (assign_parms): For data.passed_pointer parms
25445         use MEM of data.entry_parm instead of data.entry_parm itself
25446         as DECL_INCOMING_RTL.
25447         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
25448         also when passed and declared mode is the same, DECL_RTL
25449         is a MEM with pseudo as address and DECL_INCOMING_RTL is
25450         a MEM too.
25451
25452 2011-03-16  Jeff Law  <law@redhat.com>
25453
25454         PR rtl-optimization/37273
25455         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25456         handle them like argument loads from stack slots.  Do not double
25457         count memory for memory constants and argument loads from stack slots.
25458
25459 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25460
25461         PR debug/48160
25462         * var-tracking.c (prepare_call_arguments): Check SUBREG.
25463
25464 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25465
25466         PR target/48171
25467         * config/i386/i386.opt: Add Save to -mavx and -mfma.
25468
25469 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25470
25471         PR bootstrap/48153
25472         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
25473         if dwarf_strict.
25474         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
25475         Clear call_arg_locations and call_arg_loc_last always.
25476
25477         PR middle-end/48152
25478         * var-tracking.c (prepare_call_arguments): If argument needs to be
25479         passed by reference, adjust argtype and mode.
25480
25481 2011-03-17  Richard Guenther  <rguenther@suse.de>
25482
25483         PR middle-end/48134
25484         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
25485         a value make sure to fold the statement.
25486
25487 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
25488
25489         PR target/43872
25490         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
25491         return condition with !cfun->calls_alloca.
25492
25493 2011-03-17  Richard Guenther  <rguenther@suse.de>
25494
25495         PR bootstrap/48148
25496         * lto-cgraph.c (input_overwrite_node): Clear the abstract
25497         origin for decls in other ltrans units.
25498         (input_varpool_node): Likewise.
25499
25500 2011-03-17  Richard Guenther  <rguenther@suse.de>
25501
25502         PR middle-end/48165
25503         * tree-object-size.c (compute_object_offset): Properly return
25504         the offset operand of MEM_REFs as sizetype.
25505
25506 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
25507
25508         PR rtl-optimization/48141
25509         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
25510         * dse.c: Include params.h.
25511         (active_local_stores_len): New variable.
25512         (add_wild_read, dse_step1): Clear it when setting active_local_stores
25513         to NULL.
25514         (record_store, check_mem_read_rtx): Decrease it when removing
25515         from the chain.
25516         (scan_insn): Likewise.  Increase it when adding to chain, if it
25517         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
25518         set active_local_stores to NULL before the addition.
25519         * Makefile.in (dse.o): Depend on $(PARAMS_H).
25520
25521         PR rtl-optimization/48141
25522         * dse.c (record_store): If no positions are needed in an insn
25523         that cannot be deleted, at least unchain it from active_local_stores.
25524
25525 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
25526
25527         PR debug/47510
25528         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
25529         (lookup_type_die_strip_naming_typedef): ... here.
25530         (get_context_die): Use it.
25531         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
25532         the anonymous struct named by the naming typedef.
25533
25534 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25535
25536         PR target/48154
25537         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
25538         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25539
25540 2011-03-16  Jeff Law  <law@redhat.com>
25541
25542         * tree-vrp.c (identify_jump_threads): Slightly simplify type
25543         check for operands of conditional.  Allow type to be a pointer.
25544
25545 2011-03-16  Richard Guenther  <rguenther@suse.de>
25546
25547         PR tree-optimization/48149
25548         * fold-const.c (fold_binary_loc): Fold
25549         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
25550
25551 2011-03-16  Richard Guenther  <rguenther@suse.de>
25552
25553         PR tree-optimization/26134
25554         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
25555         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
25556         (non_rewritable_mem_ref_base): Handle complex type component
25557         accesses, constrain offsets for vector and complex extracts
25558         more properly.
25559
25560 2011-03-16  Richard Guenther  <rguenther@suse.de>
25561
25562         PR tree-optimization/48146
25563         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
25564         operands avoiding the need for renaming.
25565
25566 2011-03-16  Richard Guenther  <rguenther@suse.de>
25567
25568         * gimple-fold.c (maybe_fold_reference): Open-code relevant
25569         constant folding.  Move MEM_REF canonicalization first.
25570         Rely on fold_const_aggregate_ref for initializer folding.
25571         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
25572
25573 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25574
25575         PR middle-end/48136
25576         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
25577         arg0/arg1 or their arguments are always fold converted to matching
25578         types.
25579
25580         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
25581         to nargs.
25582
25583 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25584
25585         PR lto/46944
25586         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
25587         Handle in-tree gold.
25588         (ld_vers): Extract binutils version for gold.
25589         (gcc_cv_ld_hidden): Handle gold here.
25590         (gcc_cv_lto_plugin): Determine level of linker plugin support.
25591         * configure: Regenerate.
25592         * config.in: Regenerate.
25593         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
25594         -fuse-linker-plugin otherwise.
25595         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
25596         (LINK_COMMAND_SPEC): Use it.
25597         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
25598
25599 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
25600
25601         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
25602         * calls.c: Remove debug.h include.
25603         (emit_call_1): Don't call virtual_call_token debug hook.
25604         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
25605         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
25606         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
25607         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
25608         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
25609         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
25610         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
25611         dwarf2out_virtual_call): Remove.
25612         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
25613         copy_call_info and virtual_call hooks.
25614         (dwarf2out_init): Don't initialize vcall_insn_table,
25615         debug_dcall_section and debug_vcall_section.
25616         (prune_unused_types): Don't mark nodes from dcall_table.
25617         (dwarf2out_finish): Don't output dcall or vcall tables.
25618         * final.c (final_scan_insn): Don't call direct_call or
25619         virtual_call debug hooks.
25620         * debug.h (struct gcc_debug_hooks): Remove direct_call,
25621         virtual_call_token, copy_call_info and virtual_call hooks.
25622         (debug_nothing_uid): Remove prototype.
25623         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
25624         copy_call_info and virtual_call hooks.
25625         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25626         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
25627         * debug.c (do_nothing_debug_hooks): Likewise.
25628         (debug_nothing_uid): Remove.
25629         * doc/invoke.texi (-fenable-icf-debug): Remove.
25630         * common.opt (-fenable-icf-debug): Likewise.
25631
25632         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
25633         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
25634         call's MEM.  Handle functions returning aggregate through a hidden
25635         first pointer.  For virtual calls add clobbered pc to call arguments
25636         chain.
25637         * dwarf2out.c (gen_subprogram_die): Emit
25638         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
25639         can't be emitted.
25640
25641         PR debug/45882
25642         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25643         * rtl.h (ENTRY_VALUE_EXP): Define.
25644         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25645         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25646         * print-rtl.c (print_rtx): Likewise.
25647         * gengtype.c (adjust_field_rtx_def): Likewise.
25648         * var-tracking.c (vt_add_function_parameter): Adjust
25649         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25650         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25651         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25652         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25653         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25654
25655         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25656         Call var_location debug hook even on CALL_INSNs.
25657         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25658         * rtl.def (ENTRY_VALUE): New.
25659         * dwarf2out.c: Include cfglayout.h.
25660         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25661         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25662         (struct call_arg_loc_node): New type.
25663         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25664         tail_call_site_count): New variables.
25665         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25666         DW_TAG_GNU_call_site_parameter.
25667         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25668         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25669         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25670         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25671         and DW_AT_GNU_all_source_call_sites.
25672         (mem_loc_descriptor): Handle ENTRY_VALUE.
25673         (add_src_coords_attributes): Don't add enything if
25674         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25675         (dwarf2out_abstract_function): Save and clear call_arg_location,
25676         call_site_count and tail_call_site_count around dwarf2out_decl call.
25677         (gen_call_site_die): New function.
25678         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25679         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25680         (dwarf2out_function_decl): Clear call_arg_locations,
25681         call_arg_loc_last, set call_site_count and tail_call_site_count
25682         to -1 and free block_map.
25683         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25684         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
25685         followed by any real instructions.
25686         (dwarf2out_begin_function): Set call_site_count and
25687         tail_call_site_count to 0.
25688         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25689         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25690         attempt to force a DIE for it and worst case remove the attribute.
25691         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25692         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25693         the decl itself.
25694         * var-tracking.c: Include tm_p.h.
25695         (vt_stack_adjustments): For calls call note_register_arguments.
25696         (argument_reg_set): New variable.
25697         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25698         ensure the VALUE is resolved.
25699         (call_arguments): New variable.
25700         (prepare_call_arguments): New function.
25701         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25702         (struct expand_loc_callback_data): Add ignore_cur_loc field.
25703         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25704         always use the best expression.
25705         (vt_expand_loc): Add ignore_cur_loc argument.
25706         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25707         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25708         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25709         note for all calls.
25710         (vt_add_function_parameter): Use cselib_lookup_from_insn.
25711         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25712         argument.  Don't call cselib_preserve_only_values and
25713         cselib_reset_table.
25714         (note_register_arguments): New function.
25715         (vt_initialize): Compute argument_reg_set.  Call
25716         vt_add_function_parameters before processing basic blocks instead of
25717         afterwards.  For calls call prepare_call_arguments before calling
25718         cselib_process_insn.
25719         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25720         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25721         (var-tracking.o): Depend on $(TM_P_H).
25722         * cfglayout.h (insn_scope): New prototype.
25723         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25724         * cfglayout.c (insn_scope): No longer static.
25725         * insn-notes.def (CALL_ARG_LOCATION): New.
25726         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25727         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25728         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25729         nothing for DECL_EXTERNAL BLOCK_VARS.
25730
25731 2011-03-16  Alan Modra  <amodra@gmail.com>
25732
25733         PR target/45844
25734         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25735         create invalid offset address for vsx splat insn.
25736         * config/rs6000/predicates.md (splat_input_operand): New.
25737         * config/rs6000/vsx.md (vsx_splat_*): Use it.
25738
25739 2011-03-15  Xinliang David Li  <davidxl@google.com>
25740
25741         PR c/47837
25742         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25743         (normalize_preds): New function.
25744         (is_use_properly_guarded): Normalize def predicates.
25745
25746 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25747
25748         PR target/46788
25749         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25750         in the output template.
25751
25752 2011-03-15  Richard Guenther  <rguenther@suse.de>
25753
25754         PR middle-end/47650
25755         * tree-pretty-print.c (dump_function_declaration): Properly
25756         dump unprototyped and varargs function types.
25757
25758 2011-03-15  Richard Guenther  <rguenther@suse.de>
25759
25760         PR tree-optimization/13954
25761         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25762         and friends.
25763
25764 2011-03-15  Richard Guenther  <rguenther@suse.de>
25765
25766         PR tree-optimization/48037
25767         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25768         selects into BIT_FIELD_REFs.
25769         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25770         vector select.
25771
25772 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
25773
25774         PR tree-optimization/48129
25775         * builtins.c (fold_builtin_snprintf): Convert to type of
25776         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25777         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25778
25779 2011-03-15  Richard Guenther  <rguenther@suse.de>
25780
25781         PR tree-optimization/41490
25782         * tree-ssa-dce.c (propagate_necessity): Handle returns without
25783         value but with VUSE.
25784         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25785         return statements.
25786         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25787         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25788         * tree-tailcall.c (find_tail_calls): Ignore returns.
25789
25790 2011-03-15  Richard Guenther  <rguenther@suse.de>
25791
25792         PR middle-end/48031
25793         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25794         or variable-indexed array accesses when in gimple form.
25795
25796 2011-03-15  Richard Guenther  <rguenther@suse.de>
25797
25798         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25799
25800 2011-03-15  Alan Modra  <amodra@gmail.com>
25801
25802         PR target/48032
25803         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25804         presume symbol_refs without a symbol_ref_decl are suitably
25805         aligned, nor other trees we may see here.  Handle anchor symbols.
25806         (legitimate_constant_pool_address_p): Comment.  Add mode param.
25807         Check cmodel=medium addresses.  Adjust all calls.
25808         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25809         creating cmodel=medium optimized access to locals.
25810         * config/rs6000/constraints.md (R): Pass QImode to
25811         legitimate_constant_pool_address_p.
25812         * config/rs6000/predicates.md (input_operand): Pass mode to
25813         legitimate_constant_pool_address_p.
25814         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25815         Update prototype.
25816
25817 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25818
25819         PR target/48053
25820         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25821         64-bit constants being loaded into registers other than GPRs such
25822         as loading 0 into a VSX register.
25823
25824 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25825
25826         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25827
25828 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25829
25830         PR middle-end/47917
25831         * builtins.c (fold_builtin_snprintf): New function.
25832         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25833         (fold_builtin_4): Likewise.
25834
25835         PR middle-end/38878
25836         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25837         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
25838         and C - X == X also strip nops from +/-/p+ operand.
25839         When optimizing -X == C, fold C to arg0's type.
25840
25841         PR debug/47946
25842         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25843         emit it as add_AT_int instead of add_AT_unsigned.
25844
25845 2011-03-14  Tom Tromey  <tromey@redhat.com>
25846
25847         * unwind-dw2.c: Include sys/sdt.h if it exists.
25848         (_Unwind_DebugHook): Use STAP_PROBE2.
25849         * config.in, configure: Rebuild.
25850         * configure.ac: Check for sys/sdt.h.
25851
25852 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
25853
25854         * config/i386/i386.md (ROUND_FLOOR): New constant.
25855         (ROUND_CEIL): Ditto.
25856         (ROUND_TRUNC): Ditto.
25857         (ROUND_MXCSR): Ditto.
25858         (ROUND_NO_EXC): Ditto.
25859         (rint<mode>2): Use new defines instead of numerical constants.
25860         (floor<mode>2): Ditto.
25861         (ceil<mode>2): Ditto.
25862         (btrunc<mode>2): Ditto.
25863         * config/i386/i386-builtin-types.def: Define ROUND function type
25864         aliases.
25865         * config/i386/i386.c (enum ix86_builtins): Add
25866         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25867         (struct builtin_description): Add
25868         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25869         (ix86_expand_sse_round): New static function.
25870         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25871         function types.
25872         (ix86_builtin_vectorized_function): Handle
25873         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25874
25875 2011-03-14  Tom Tromey  <tromey@redhat.com>
25876
25877         * c-parser.c (c_parser_asm_string_literal): Clear
25878         warn_overlength_strings.
25879
25880 2011-03-14  Tom Tromey  <tromey@redhat.com>
25881
25882         * c-parser.c (disable_extension_diagnostics): Save
25883         warn_overlength_strings.
25884         (restore_extension_diagnostics): Restore warn_overlength_strings.
25885
25886 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25887
25888         * BASE-VER: Change to 4.7.0.
25889
25890 2011-03-14  Richard Guenther  <rguenther@suse.de>
25891
25892         PR middle-end/48098
25893         * tree.c (build_vector_from_val): Adjust assert to requirements
25894         and reality.
25895
25896 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25897
25898         PR bootstrap/48102
25899         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25900
25901 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
25902
25903         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25904         terms of target_flags_explicit. Adjust copyright year.
25905
25906         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25907         * config/rs6000/t-freebsd: New file. Add override for
25908         LIB2FUNCS_EXTRA.
25909
25910 2011-03-13  Chris Demetriou  <cgd@google.com>
25911
25912         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25913         (-fno-diagnostics-show-option): this, to reflect current default.
25914         (-Werror=): Update text about -fno-diagnostics-show-option.
25915
25916 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
25917
25918         PR target/48053
25919         * config/rs6000/predicates.md (easy_vector_constant_add_self,
25920         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25921         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25922         mode is not V2DImode or V2DFmode.
25923         (vspltis_constant): Do not handle V2DImode and V2DFmode.
25924         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25925         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25926         registers to 0.
25927         (movdi_internal64): Likewise.
25928
25929 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
25930
25931         PR tree-optimization/47127
25932         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25933         parameter.
25934         (set_cloog_options): Same.
25935         (scop_to_clast): Same.
25936         (print_clast_stmt): Do not call cloog_state_malloc and
25937         cloog_state_free.
25938         (print_generated_program): Same.
25939         (gloog): Same.
25940         * graphite-clast-to-gimple.h (cloog_state): Declared.
25941         (scop_to_clast): Adjust declaration.
25942         * graphite.c (cloog_state): Defined here.
25943         (graphite_initialize): Call cloog_state_malloc.
25944         (graphite_finalize): Call cloog_state_free.
25945
25946 2011-03-11  Jason Merrill  <jason@redhat.com>
25947
25948         * attribs.c (lookup_attribute_spec): Take const_tree.
25949         * tree.h: Adjust.
25950
25951 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
25952
25953         * config/sparc/sparc.c (sparc_option_override): Use
25954         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25955
25956 2011-03-11  Richard Guenther  <rguenther@suse.de>
25957
25958         PR tree-optimization/48067
25959         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25960         multiplication result will be only used once on the target
25961         stmt.
25962
25963 2011-03-11  Richard Guenther  <rguenther@suse.de>
25964
25965         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25966
25967 2011-03-11  Richard Guenther  <rguenther@suse.de>
25968
25969         PR lto/48073
25970         * tree.c (find_decls_types_r): Do not walk types only reachable
25971         from IDENTIFIER_NODEs.
25972
25973 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25974
25975         PR middle-end/48044
25976         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25977         all vnode->force_output nodes as needed.
25978
25979 2011-03-11  Jason Merrill  <jason@redhat.com>
25980
25981         PR c++/48069
25982         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25983         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25984
25985 2011-03-11  Martin Jambor  <mjambor@suse.cz>
25986
25987         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25988         cgraph_node.
25989
25990 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25991
25992         PR tree-optimization/48063
25993         * ipa-inline.c (cgraph_decide_inlining): Don't try to
25994         inline functions called once if !tree_can_inline_p (node->callers).
25995
25996 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
25997
25998         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25999         extra_objs.
26000         * config/score/score3.c: Delete.
26001         * config/score/score3.h: Delete.
26002         * config/score/mul-div.S: Delete.
26003         * config/score/sfp-machine.h: Add new file.
26004         * config/score/constraints.md: Add new file.
26005         * config/score/t-score-softfp: Add new file.
26006         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
26007         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
26008         (score7_extra_constraint): Delete.
26009         (score7_option_override): Remove unused code.
26010         * config/score/score.c: Remove score3 and score5 define and code.
26011         * config/score/score.h: Remove score3 and score5 define and code.
26012         * config/score/score.md: Remove score3 template and unusual insn.
26013         * config/score/score.opt: Remove score3 and score5 options.
26014
26015 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26016
26017         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
26018         when _HPUX_SOURCE is defined.
26019         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
26020
26021 2011-03-10  Jason Merrill  <jason@redhat.com>
26022
26023         PR c++/48029
26024         * stor-layout.c (layout_type): Don't set structural equality
26025         on arrays of incomplete type.
26026         * tree.c (type_hash_eq): Handle comparing them properly.
26027
26028 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
26029
26030         PR debug/48043
26031         * config/s390/s390.c (s390_delegitimize_address): Make sure the
26032         result mode matches original rtl mode.
26033
26034 2011-03-10  Nick Clifton  <nickc@redhat.com>
26035
26036         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
26037         (andsi3, andsi3_flags): Fix timings for three operand alternative.
26038
26039 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
26040
26041         PR rtl-optimization/47866
26042         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
26043         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
26044         if target wasn't scalar.
26045         * function.c (assign_stack_temp_for_type): Assert that neither
26046         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
26047         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
26048         macro.
26049         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
26050
26051 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26052
26053         * config/s390/s390-protos.h (s390_label_align): New prototype.
26054         * config/s390/s390.c (s390_label_align): New function.
26055         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
26056
26057 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
26058
26059         PR target/47755
26060         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
26061         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
26062         (output_vec_const_move): Ditto.
26063
26064 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
26065
26066         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
26067         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
26068         * config/mips/mips.c (mips_preferred_reload_class): Make static.
26069         Change 'rclass' argument and result type to reg_class_t.
26070         (TARGET_PREFERRED_RELOAD_CLASS): Define.
26071
26072 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
26073
26074         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26075         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
26076         (TARGET_MEMORY_MOVE_COST): Define.
26077         (avr_register_move_cost, avr_memory_move_cost): New Functions.
26078
26079 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
26080
26081         PR debug/47881
26082         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
26083         removed anything.
26084
26085         PR tree-optimization/48022
26086         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
26087         for EQ/NE_EXPR.
26088
26089 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
26090
26091         PR debug/47991
26092         * var-tracking.c (find_use_val): Return NULL for
26093         cui->sets && cui->store_p BLKmode MEMs.
26094
26095 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
26096
26097         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
26098         Remove.
26099         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
26100         xstormy16_print_operand_address): Remove.
26101         * config/stormy16/stormy16.c (xstormy16_print_operand,
26102         xstormy16_print_operand_address): Make static.
26103         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
26104
26105 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
26106
26107         PR target/47862
26108         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
26109         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
26110         before definition.
26111
26112 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
26113
26114         PR bootstrap/48000
26115         * cfgloopmanip.c (fix_bb_placements): Return immediately
26116         if FROM is BASE_LOOP's header.
26117
26118 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
26119
26120         * gimplify.c (gimplify_function_tree): Fix building calls
26121         to __builtin_return_address.
26122
26123 2011-03-07  Alan Modra  <amodra@gmail.com>
26124
26125         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
26126         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
26127         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
26128         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
26129         return_mode args.
26130         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
26131         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
26132         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
26133         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
26134         * config/rs6000/rs6000.c
26135         (rs6000_elf_end_indicate_exec_stack): Rename to..
26136         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
26137         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
26138         (rs6000_file_start): ..here.
26139         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
26140         file scope variables.
26141         (call_ABI_of_interest): New function.
26142         (init_cumulative_args): Set above vars when function return value
26143         is a float, vector, or small struct.
26144         (rs6000_function_arg_advance_1): Likewise for function args.
26145         (rs6000_va_start): Set rs6000_passes_float if variable arg function
26146         references float args.
26147
26148 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
26149
26150         * doc/cfg.texi: Remove "See" before @ref.
26151         * doc/invoke.texi: Likewise.
26152
26153 2011-03-05  Jason Merrill  <jason@redhat.com>
26154
26155         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
26156
26157 2011-03-05  Anthony Green  <green@moxielogic.com>
26158
26159         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
26160
26161 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
26162
26163         PR rtl-optimization/47899
26164         * cfgloopmanip.c (fix_bb_placements): Fix first argument
26165         to flow_loop_nested_p when moving the loop upward.
26166
26167 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
26168
26169         PR target/47719
26170         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
26171
26172 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
26173
26174         PR tree-optimization/47967
26175         * ipa-cp.c (build_const_val): Return NULL instead of creating
26176         VIEW_CONVERT_EXPR for mismatching sizes.
26177         (ipcp_create_replace_map): Return NULL if build_const_val failed.
26178         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
26179         give up on versioning.
26180
26181 2011-03-05  Alan Modra  <amodra@gmail.com>
26182
26183         PR target/47986
26184         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26185         full cmodel medium/large lo_sum + high addresses.
26186
26187 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26188
26189         * config/s390/s390.c (s390_decompose_address): Reject non-literal
26190         pool references in UNSPEC_LTREL_OFFSET.
26191
26192 2011-03-04  Jan Hubicka  <jh@suse.cz>
26193
26194         PR lto/47497
26195         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
26196         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
26197         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
26198         Add node pointers.
26199         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
26200         cgraph_add_thunk): Add node pointers.
26201         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
26202         associated to right node.
26203         (input_node): Update use of cgraph_same_body_alias
26204         and cgraph_add_thunk.
26205
26206 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26207
26208         * config/i386/i386.opt (mprefer-avx128): New flag.
26209         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
26210         modes when the flag -mprefer-avx128 is on.
26211
26212 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
26213
26214         * dwarf2out.c (compare_loc_operands): Fix address handling.
26215
26216 2011-03-04  Alan Modra  <amodra@gmail.com>
26217
26218         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
26219
26220 2011-03-04  Richard Guenther  <rguenther@suse.de>
26221
26222         PR middle-end/47968
26223         * expmed.c (extract_bit_field_1): Prefer vector modes that
26224         vec_extract patterns can handle.
26225
26226 2011-03-04  Richard Guenther  <rguenther@suse.de>
26227
26228         PR middle-end/47975
26229         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
26230
26231 2011-03-04  Richard Henderson  <rth@redhat.com>
26232
26233         * explow.c (emit_stack_save): Remove 'after' parameter.
26234         (emit_stack_restore): Likewise.
26235         * expr.h: Update to match.
26236         * builtins.c, calls.c, stmt.c: Likewise.
26237         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
26238         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
26239         * function.c (expand_function_end): Insert the emit_stack_save
26240         sequence before parm_birth_insn instead of after.
26241
26242 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
26243
26244         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
26245         (ssse3_pmaddubsw128): Ditto.
26246         (ssse3_pmaddubsw): Ditto.
26247
26248 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
26249
26250         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
26251
26252 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
26253
26254         PR c/47963
26255         * gimplify.c (omp_add_variable): Only call omp_notice_variable
26256         on TYPE_SIZE_UNIT if it is a DECL.
26257
26258         PR debug/47283
26259         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
26260         first operand is not is_gimple_mem_ref_addr, try to fold it.
26261         If the operand still isn't is_gimple_mem_ref_addr, clear
26262         MEM_EXPR on op0.
26263
26264 2011-03-03  Richard Guenther  <rguenther@suse.de>
26265
26266         PR middle-end/47283
26267         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
26268         match comment.
26269         (refs_may_alias_p_1): For release branches return true if
26270         we are confused by our input.
26271
26272 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26273
26274         * config/s390/s390.c (s390_function_value): Rename to ...
26275         (s390_function_and_libcall_value): ... this.
26276         (s390_function_value): New function.
26277         (s390_libcall_value): New function.
26278         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
26279         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
26280         target macro definitions.
26281         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
26282
26283 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
26284
26285         * config/i386/freebsd64.h (CC1_SPEC): Define.
26286         * config/i386/linux64.h (CC1_SPEC): Define.
26287         * config/i386/x86-64.h (CC1_SPEC): Don't define.
26288
26289 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
26290
26291         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26292         Remove.
26293         * config/stormy16/stormy16.c: Include reload.h.
26294         (xstormy16_memory_move_cost): New function.
26295         (TARGET_MEMORY_MOVE_COST): Define.
26296
26297 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
26298
26299         PR rtl-optimization/47925
26300         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
26301         with side effects.  Remove the more-specific check for volatile asms.
26302
26303 2011-03-02  Alan Modra  <amodra@gmail.com>
26304
26305         PR target/47935
26306         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
26307         toc relative addresses for valid offsets.
26308
26309 2011-03-01  Richard Guenther  <rguenther@suse.de>
26310
26311         PR tree-optimization/47890
26312         * tree-vect-loop.c (get_initial_def_for_induction): Set
26313         related stmt properly.
26314
26315 2011-03-01  Richard Guenther  <rguenther@suse.de>
26316
26317         PR lto/47924
26318         * lto-streamer.c (lto_record_common_node): Also register
26319         the canonical type.
26320
26321 2011-03-01  Richard Guenther  <rguenther@suse.de>
26322
26323         PR lto/46911
26324         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26325         Do not stream DECL_ABSTRACT_ORIGIN.
26326         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26327         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26328         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26329         Do not stream DECL_ABSTRACT_ORIGIN.
26330         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
26331         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
26332
26333 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
26334
26335         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
26336         FUNCTION_VALUE_REGNO_P): Remove.
26337         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
26338         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
26339         Add 'outgoing' argument.
26340         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
26341         function.
26342         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26343         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26344
26345 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
26346
26347         PR debug/28047
26348         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
26349         (lookup_filename): Likewise.
26350         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
26351
26352 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
26353             Jakub Jelinek  <jakub@redhat.com>
26354
26355         PR middle-end/47893
26356         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
26357         (assign_stack_local_1): Change last argument type to int.
26358         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
26359         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
26360         don't record padding space into frame_space_list nor use those areas.
26361         (assign_stack_local): Adjust caller.
26362         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
26363         of assign_stack_local, pass 0 as last argument.
26364         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
26365         callers.
26366
26367 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
26368
26369         PR debug/47283
26370         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
26371         Use target address_mode and pointer_mode hooks instead of hardcoded
26372         Pmode and ptr_mode.  Handle some simple cases of extending if
26373         POINTERS_EXTEND_UNSIGNED < 0.
26374         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
26375         Call convert_debug_memory_address.
26376         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
26377         convert_debug_memory_address.
26378
26379         PR middle-end/46790
26380         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
26381         * configure: Regenerated.
26382         * config.in: Regenerated.
26383         * varasm.c (default_function_section): Return NULL
26384         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
26385
26386 2011-02-28  Martin Jambor  <mjambor@suse.cz>
26387
26388         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
26389         the description to match the printed values.
26390
26391 2011-02-28  Richard Guenther  <rguenther@suse.de>
26392
26393         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
26394         of the copied scope tree.
26395
26396 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26397
26398         * doc/extend.texi (Function Attributes): Avoid deeply (and
26399         wrongly) nested tables.
26400
26401 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
26402
26403         PR middle-end/47903
26404         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
26405         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
26406         r isn't op0 nor op1.
26407
26408 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26409
26410         * config/avr/avr.md: Remove magic comment for emacs.
26411
26412 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
26413
26414         PR target/45261
26415         * config/avr/avr.c (avr_option_override): Use error on bad options.
26416         (avr_help): New function.
26417         (TARGET_HELP): Define.
26418
26419 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
26420
26421         PR target/42240
26422         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
26423         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
26424
26425 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
26426
26427         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
26428         (ARM Options): Ditto.
26429         (i386 and x86-64 Options): Ditto.
26430         (RX Options): Ditto.
26431         (SPARC Options): Ditto.
26432
26433 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
26434
26435         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
26436         FreeBSD 6 and later.  Generally use cpu generic.
26437
26438 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26439
26440         * doc/cpp.texi: Update copyright years.
26441
26442 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
26443
26444         PR target/46898
26445         * config/lm32/lm32.md (ashrsi3): Added needed variable.
26446
26447 2011-02-25  Jon Beniston  <jon@beniston.com>
26448
26449         PR target/46898
26450         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
26451         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
26452         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
26453         (lm32_block_move_inline): Add type cast to remove warning.
26454         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
26455         (gen_int_relational): Move declarations to start of function.
26456
26457 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
26458
26459         PR tree-optimization/45470
26460         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
26461         can throw internally only.
26462         * tree-vect-stmts.c (vectorizable_call): Likewise.
26463
26464 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
26465
26466         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
26467         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26468         * config/stormy16/stormy16-protos.h
26469         (xstormy16_preferred_reload_class): Remove.
26470         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
26471         static. Change 'rclass' argument and return type to reg_class_t.
26472         (TARGET_PREFERRED_RELOAD_CLASS,
26473         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26474
26475 2011-02-24  Richard Guenther  <rguenther@suse.de>
26476
26477         * lto-streamer-in.c (input_bb): Do not find referenced vars
26478         in debug statements.
26479
26480 2011-02-23  Jason Merrill  <jason@redhat.com>
26481
26482         * common.opt (fabi-version): Document v5 and v6.
26483
26484 2011-02-23  Richard Guenther  <rguenther@suse.de>
26485
26486         PR tree-optimization/47849
26487         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
26488
26489 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26490
26491         * opts-common.c (decode_cmdline_option): Print empty string
26492         argument as "" in decoded->orig_option_with_args_text.
26493         * gcc.c (execute): Print empty string argument as ""
26494         in the verbose output.
26495         (do_spec_1): Keep empty string argument.
26496
26497 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
26498
26499         * config.gcc: Declare score-* and crx-* obsolete.
26500
26501 2011-02-23  Jie Zhang  <jie@codesourcery.com>
26502
26503         PR rtl-optimization/47763
26504         * web.c (web_main): Ignore naked clobber when replacing register.
26505
26506 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
26507
26508         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
26509         Remove.
26510
26511 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26512
26513         PR doc/47848
26514         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
26515
26516 2011-02-22  Mike Stump  <mikestump@comcast.net>
26517
26518         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
26519         assembler.
26520         * configure: Regenerate.
26521
26522 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
26523
26524         PR rtl-optimization/46002
26525         * ira-color.c (update_copy_costs): Change class intersection
26526         test to reg_class_contents[] test of 'hard_regno'.
26527
26528 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
26529
26530         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
26531         than Driver option.
26532         * config/hpux11.opt (mt): Likewise.
26533         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
26534         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
26535         * config/vax/elf.opt (mno-asm-pic): Likewise.
26536         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
26537
26538 2011-02-21  Mike Stump  <mikestump@comcast.net>
26539
26540         PR target/47822
26541         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
26542         tree so we can get save the type.
26543         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
26544         for CFString instead of trying to use past the end of the builtins.
26545         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
26546         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
26547         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
26548         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
26549         Rename to darwin_builtin_cfstring.
26550         (darwin_init_cfstring_builtins): Return the built type.
26551
26552 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
26553
26554         PR target/47840
26555         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
26556         (_mm256_insert_epi64): Use _mm_insert_epi64.
26557
26558 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
26559
26560         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26561         * config/stormy16/stormy16-protos.h
26562         (xstormy16_mode_dependent_address_p): Remove.
26563         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
26564         Make static. Change return type to bool. Change argument type to
26565         const_rtx. Remove dead code.
26566         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26567
26568 2011-02-21  Richard Guenther  <rguenther@suse.de>
26569
26570         PR lto/47820
26571         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
26572         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26573         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
26574         TUs context.
26575         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26576         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
26577
26578 2011-02-20  Richard Guenther  <rguenther@suse.de>
26579
26580         PR lto/47822
26581         * tree.c (free_lang_data_in_decl): Clean builtins from
26582         the TU decl BLOCK_VARS.
26583
26584 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
26585
26586         PR debug/47620
26587         PR debug/47630
26588         * haifa-sched.c (fix_tick_ready): Skip tick computation
26589         for debug insns.
26590
26591 2011-02-19  Richard Guenther  <rguenther@suse.de>
26592
26593         PR lto/47647
26594         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
26595         Remove lazy BLOCK_VARS streaming.
26596         (lto_input_ts_block_tree_pointers): Likewise.
26597         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
26598
26599 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26600
26601         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
26602
26603 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
26604
26605         * config/i386/biarch32.h, config/i386/mach.h,
26606         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
26607
26608 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
26609
26610         PR target/47800
26611         * config/i386/i386.md (peephole2 for shift and plus): Use
26612         operands[1] original mode in the first insn.
26613
26614 2011-02-18  Mike Stump  <mikestump@comcast.net>
26615
26616         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
26617
26618 2011-02-18  Jan Hubicka  <jh@suse.cz>
26619
26620         PR middle-end/47788
26621         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
26622         to zero when the function is not inlinable at all.
26623
26624 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26625
26626         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
26627         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26628         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
26629         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
26630         * config/pa/t-pa64: Likewise.
26631         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
26632
26633 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26634
26635         PR driver/47787
26636         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
26637
26638 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26639
26640         PR target/47792
26641         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
26642
26643 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
26644
26645         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26646         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26647         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26648         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26649         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26650         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26651         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26652         m32r_load_postinc_p, m32r_store_preinc_predec_p,
26653         m32r_legitimate_address_p): New functions.
26654         * config/m32r/constraints.md (constraint "S"): Don't use
26655         STORE_PREINC_PREDEC_P.
26656         (constraint "U"): Don't use LOAD_POSTINC_P.
26657
26658 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
26659
26660         PR rtl-optimization/46178
26661         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26662         compute ira_hard_regno_cover_class[].
26663
26664 2011-02-18  Richard Guenther  <rguenther@suse.de>
26665
26666         PR lto/47798
26667         * lto-streamer.h (lto_global_var_decls): Declare.
26668         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26669         statics for global var processing.
26670
26671 2011-02-18  Richard Guenther  <rguenther@suse.de>
26672
26673         PR tree-optimization/47737
26674         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26675         edge dominance check.
26676
26677 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26678
26679         PR debug/47780
26680         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26681         avoid invalid rtx sharing.
26682
26683 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
26684
26685         * doc/cpp.texi (Obsolete Features): Add background on the
26686         origin of assertions.
26687
26688 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
26689
26690         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26691         objc_abi == 2.
26692         * config/darwin.c (output_objc_section_asm_op): Added support for
26693         ABI v1 and v2.
26694         (is_objc_metadata): New.
26695         (darwin_objc2_section): New.
26696         (darwin_objc1_section): New.
26697         (machopic_select_section): Added support for ABI v1 and v2.
26698         (darwin_emit_objc_zeroed): New.
26699         (darwin_output_aligned_bss): Detect objc metadata and treat it
26700         appropriately.
26701         (darwin_asm_output_aligned_decl_common): Same.
26702         (darwin_asm_output_aligned_decl_local): Same.
26703         * config/darwin-sections.def: Updated for ABI v1 and v2.
26704         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26705         compiling Objective-C code for the NeXT runtime, default to using
26706         ABI version 0 for 32-bit, and version 2 for 64-bit.
26707
26708 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26709
26710         * common.opt (optimize_fast): New Variable.
26711         * opts.c (default_options_optimization): Use opts->x_optimize_fast
26712         instead of local variable ofast.
26713
26714 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
26715
26716         * doc/invoke.texi (fobjc-abi-version): Documented.
26717         (fobjc-nilcheck): Documented.
26718         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26719         version.
26720
26721 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26722
26723         PR driver/47390
26724         * common.opt (export-dynamic): New Driver option.
26725         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26726
26727 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26728
26729         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26730
26731 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
26732             Jan Hubicka  <jh@suse.cz>
26733
26734         PR debug/47106
26735         PR debug/47402
26736         * cfgexpand.c (account_used_vars_for_block): Remove.
26737         (estimated_stack_frame_size): Use referenced vars.
26738         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26739         that were referenced in the original function.  Test src_fn
26740         rather than cfun.  Drop redundant get_var_ann.
26741         (setup_one_parameter): Drop redundant get_var_ann.
26742         (declare_return_variable): Likewise.
26743         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26744         (copy_arguments_for_versioning): Drop redundant get_var_ann.
26745         * ipa-inline.c (compute_inline_parameters): Do not compute
26746         disregard_inline_limits here.
26747         (compute_inlinable_for_current, pass_inlinable): New.
26748         (pass_inline_parameters): Require PROP_referenced_vars.
26749         * cgraphunit.c (cgraph_process_new_functions): Don't run
26750         compute_inline_parameters explicitly unless function is in SSA form.
26751         (cgraph_analyze_function): Set .disregard_inline_limits.
26752         * tree-sra.c (convert_callers): Compute inliner parameters
26753         only for functions already in SSA form.
26754
26755 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26756
26757         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26758         -mlittle-endian-data.
26759
26760 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26761
26762         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26763         -mno-fpu, not -fpu and -no-fpu.
26764         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26765         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26766
26767 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
26768
26769         PR target/43653
26770         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26771         input reload with PLUS RTX.
26772
26773 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26774
26775         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26776         of InverseVar(MDMX).
26777
26778 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26779
26780         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26781         --m4-340.
26782
26783 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26784
26785         * config/mn10300/mn10300.opt (mno-crt0): New.
26786
26787 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26788
26789         * config/m68k/uclinux.opt (static-libc): New Driver option.
26790
26791 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26792
26793         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26794
26795 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26796
26797         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26798         %{muser-extend-enabled}.
26799
26800 2011-02-16  Richard Guenther  <rguenther@suse.de>
26801
26802         PR tree-optimization/47738
26803         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26804         the TODO from tree_predictive_commoning.
26805
26806 2011-02-15  Jeff Law  <law@redhat.com>
26807
26808         Revert
26809         2011-01-25  Jeff Law  <law@redhat.com>
26810
26811         PR rtl-optimization/37273
26812         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26813         handle them like argument loads from stack slots.  Do not double
26814         count memory for memory constants and argument loads from stack slots.
26815
26816 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26817
26818         PR target/47755
26819         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26820         mode for vector constants.  Remove code that checks for TImode.
26821
26822 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26823
26824         PR debug/47106
26825         PR debug/47402
26826         * cgraph.h (compute_inline_parameters): Return void.
26827         * ipa-inline.c (compute_inline_parameters): Adjust.
26828
26829 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26830
26831         PR debug/47106
26832         PR debug/47402
26833         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26834         rather than decl.
26835         * cfgexpand.c (estimated_stack_frame_size): Likewise.
26836         * ipa-inline.c (compute_inline_parameters): Adjust.
26837
26838 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26839
26840         PR debug/47106
26841         PR debug/47402
26842         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26843         Adjust all users.  Pass FN to...
26844         * tree-flow-inline.h (first_referenced_var): ... this.  Add
26845         fn argument.
26846         * ipa-struct-reorg.c: Adjust.
26847         * tree-dfa.c: Adjust.
26848         * tree-into-ssa.c: Adjust.
26849         * tree-sra.c: Adjust.
26850         * tree-ssa-alias.c: Adjust.
26851         * tree-ssa-live.c: Adjust.
26852         * tree-ssa.c: Adjust.
26853         * tree-ssanames.c: Adjust.
26854         * tree-tailcall.c: Adjust.
26855
26856 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26857
26858         PR debug/47106
26859         PR debug/47402
26860         * tree-flow.h (referenced_var_lookup): Add fn parameter.
26861         Adjust all callers.
26862         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26863         * tree-flow-inline.h: Adjust.
26864         * gimple-pretty-print.c: Adjust.
26865         * tree-into-ssa.c: Adjust.
26866         * tree-ssa.c: Adjust.
26867         * cfgexpand.c: Adjust.
26868
26869 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26870
26871         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26872         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26873         (EXTRA_CONSTRAINT): Delete.
26874         * config/iq2000/constraints.md: New file.
26875         * config/iq2000/iq2000.md: Include it.
26876         (define_insn ""): Delete.
26877         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26878         unsupported constraint letters from patterns.
26879         (call_value, call_value_internal1): Likewise.
26880         (call_value_multiple_internal1): Likewise.
26881
26882 2011-02-15  Nick Clifton  <nickc@redhat.com>
26883
26884         * config/mn10300/mn10300.c: Include tm-constrs.h.
26885         (struct liw_data): New data structure describing an LIW candidate
26886         instruction.
26887         (extract_bundle): Use struct liw_data.  Allow small integer
26888         operands for some instructions.
26889         (check_liw_constraints): Use struct liw_data.  Remove swapped
26890         parameter.  Add comments describing the checks.  Fix bug when
26891         assigning the source of liw1 to the source of liw2.
26892         (liw_candidate): Delete.  Code moved into extract_bundle.
26893         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
26894         before swapping.
26895         * config/mn10300/predicates.md (liw_operand): New predicate.
26896         Allows registers and small integer constants.
26897         * config/mn10300/constraints.md (O): New constraint.  Accetps
26898         integers in the range -8 to +7 inclusive.
26899         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26900         for moving a small integer into a register.  Give this alternative
26901         LIW attributes.
26902         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26903         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26904         using the J,K,L and M constraints,
26905         (liw): Remove SI mode on second operands to allow for HI and QI
26906         mode values.
26907         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
26908         instruction.
26909
26910 2011-02-15  Richard Guenther  <rguenther@suse.de>
26911
26912         PR tree-optimization/47743
26913         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26914         for a non-type-compatible VN lookup bail out.
26915
26916 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26917
26918         * config/fr30/constraints.md: New file.
26919         * config/fr30/fr30.md: Include it.
26920         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26921         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26922         (EXTRA_CONSTRAINT): Delete.
26923
26924 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26925
26926         * config/frv/constraints.md: New file.
26927         * config/frv/predicates.md: Include it.
26928         * config/frv/frv.c (reg_class_from_letter): Delete.
26929         (frv_option_override): Don't initialize it.
26930         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26931         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26932         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26933         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26934         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26935         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26936         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26937         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26938         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26939         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26940         (REG_CLASS_FROM_CONSTRAINT): Delete.
26941
26942 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
26943
26944         PR middle-end/47581
26945         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26946         if frame size is 0 in a leaf function.
26947
26948 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26949
26950         PR pch/14940
26951         * config/alpha/host-osf.c: New file.
26952         * config/alpha/x-osf: New file.
26953         * config.host (alpha*-dec-osf*): Use it.
26954
26955 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26956
26957         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26958         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26959         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26960         (rx_mode_dependent_address_p): ...this. Make static. Change argument
26961         type to const_rtx.
26962         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26963
26964 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26965
26966         * config/stormy16/constraints.md: New file.
26967         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26968         Use satisfies_constraint_Q and satisfies_constraint_R.
26969         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26970         Delete.
26971         (xstormy16_legitiamte_address_p): Declare.
26972         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26973         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26974         (EXTRA_CONSTRAINT): Delete.
26975         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26976         Un-staticize.
26977         (xstormy16_extra_constraint_p): Delete.
26978
26979 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
26980
26981         PR tree-optimization/46494
26982         * loop-unroll.c (split_edge_and_insert): Adjust comment.
26983         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26984         (pass_rtl_loop_done): Add TODO_verify_flow.
26985         * fwprop.c (pass_rtl_fwprop): Likewise.
26986         * modulo-sched.c (pass_sms): Likewise.
26987         * tree-ssa-dom.c (pass_dominator): Likewise.
26988         * tree-ssa-loop-ch.c (pass_ch): Likewise.
26989         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26990         (pass_tree_loop_done): Likewise.
26991         * tree-ssa-pre.c (execute_pre): Likewise.
26992         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26993         * tree-ssa-sink.c (pass_sink_code): Likewise.
26994         * tree-vrp.c (pass_vrp): Likewise.
26995
26996 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26997
26998         * config/v850/constraints.md: New file.
26999         * config/v850/v850.md: Include it.
27000         * config/v850/predicates.md (reg_or_0_operand): Use
27001         satisfies_constraint_G.
27002         (special_symbolref_operand): Use satisfies_constraint_K.
27003         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
27004         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
27005         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
27006         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
27007         (EXTRA_CONSTRAINT): Delete.
27008         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
27009         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
27010         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
27011
27012 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
27013
27014         PR target/47696
27015         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
27016         description.
27017
27018 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
27019
27020         * config/mcore/constraints.md: New file.
27021         * config/mcore/mcore.md: Include it.
27022         * config/mcore/mcore.c (reg_class_from_letter): Delete.
27023         * config/mcore/mcore.h (reg_class_from_letter): Delete.
27024         (REG_CLASS_FROM_LETTER): Delete.
27025         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
27026         insn_const_int_ok_for_constraint.
27027         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
27028         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
27029         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
27030         (EXTRA_CONSTRAINT): Delete.
27031
27032 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27033
27034         PR ada/41929
27035         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
27036         (IS_SIGHANDLER): Define.
27037         (sparc64_is_sighandler): New function, split off from
27038         sparc64_fallback_frame_state.
27039         (sparc_is_sighandler): New function, split off from
27040         sparc_fallback_frame_state.
27041         (sparc64_fallback_frame_state): Merge with ...
27042         (sparc_fallback_frame_state): ... this into ...
27043         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
27044         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
27045         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
27046         stack instead of hardcoded offsets.
27047
27048 2011-02-14  Andriy Gapon  <avg@freebsd.org>
27049
27050         PR target/45808
27051         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
27052
27053 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27054
27055         * configure: Regenerate.
27056
27057 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
27058
27059         PR driver/45731
27060         * gcc.c (asm_options): Correct spec matching --target-help.
27061
27062 2011-02-12  Martin Jambor  <mjambor@suse.cz>
27063
27064         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
27065         to gimple call error.
27066
27067 2011-02-12  Mike Stump  <mikestump@comcast.net>
27068
27069         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
27070         comments in backslash regions.
27071
27072 2011-02-12  Mike Stump  <mikestump@comcast.net>
27073             Jakub Jelinek  <jakub@redhat.com>
27074             Iain Sandoe  <iains@gcc.gnu.org>
27075
27076         PR target/47324
27077         * dwarf2out.c (output_cfa_loc): When required, apply the
27078         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
27079         (output_loc_sequence): Likewise.
27080         (output_loc_operands_raw): Likewise.
27081         (output_loc_sequence_raw): Likewise.
27082         (output_cfa_loc): Likewise.
27083         (output_loc_list): Suppress register number adjustment when
27084         calling output_loc_sequence()
27085         (output_die): Likewise.
27086
27087 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
27088
27089         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27090         Remove macros.
27091         * config/xtensa/xtensa.c (xtensa_register_move_cost,
27092         xtensa_memory_move_cost): New functions.
27093         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
27094
27095 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
27096
27097         PR lto/47225
27098         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
27099         in the current directory.
27100         * configure: Rebuilt.
27101
27102 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27103
27104         * config/darwin.c (darwin_override_options): Add a hunk missed
27105         from the commit of r168571.  Trim comment line lengths and
27106         correct indents of the preceding block.
27107
27108 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
27109
27110         * gcc.c (driver_handle_option): Concatenate the argument to -F with
27111         the switch.
27112
27113 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27114
27115         * common.opt (nostartfiles): New Driver option.
27116
27117 2011-02-11  Xinliang David Li  <davidxl@google.com>
27118
27119         PR tree-optimization/47707
27120         * tree-chrec.c (convert_affine_scev): Keep type precision.
27121
27122 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
27123
27124         PR tree-optimization/47420
27125         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
27126
27127 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
27128
27129         PR rtl-optimization/47614
27130         * rtl.h (check_for_inc_dec): Declare.
27131         * dse.c (check_for_inc_dec): Externalize...
27132         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
27133         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
27134
27135 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
27136
27137         PR driver/47678
27138         * gcc.c (main): Do not compile inputs if there were errors in
27139         option handling.
27140         * opts-common.c (read_cmdline_option): Check for wrong language
27141         after other error checks.
27142
27143 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
27144
27145         * cgraph.c: Fix comment typos.
27146         * cgraph.h: Likewise.
27147         * cgraphunit.c: Likewise.
27148         * ipa-cp.c: Likewise.
27149         * ipa-inline.c: Likewise.
27150         * ipa-prop.c: Likewise.
27151         * ipa-pure-const.c: Likewise.
27152         * ipa-ref.c: Likewise.
27153         * ipa-reference.c: Likewise.
27154
27155 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
27156
27157         PR debug/47684
27158         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
27159
27160 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27161
27162         PR testsuite/47400
27163         * doc/sourcebuild.texi (Require Support): Document
27164         dg-require-ascii-locale.
27165
27166 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
27167
27168         * doc/lto.texi (Write summary): Fix missing parentheses.
27169
27170 2011-02-10  DJ Delorie  <dj@redhat.com>
27171
27172         * config/m32c/m32c.c (m32c_option_override): Disable
27173         -fcombine-stack-adjustments until flag value tracking and compare
27174         optimization can be rewritten.
27175
27176 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
27177
27178         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
27179         PROCESSOR_POWER7.
27180         (PROCESSOR_DEFAULT64): Likewise.
27181
27182 2011-02-10  Richard Henderson  <rth@redhat.com>
27183
27184         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
27185         change from 2011-02-03.
27186         * config/rx/rx.c (flags_from_code): Likewise.
27187         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
27188         is valid, n/pz otherwise.
27189         (rx_select_cc_mode): Return CCmode if Y is not zero.
27190
27191 2011-02-10  Richard Guenther  <rguenther@suse.de>
27192
27193         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
27194
27195 2011-02-10  Richard Guenther  <rguenther@suse.de>
27196
27197         PR tree-optimization/47677
27198         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
27199
27200 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
27201
27202         PR target/47665
27203         * combine.c (make_compound_operation): Only change shifts into
27204         multiplication for SCALAR_INT_MODE_P.
27205
27206 2011-02-10  Jie Zhang  <jie@codesourcery.com>
27207
27208         PR testsuite/47622
27209         Revert
27210         2011-02-05  Jie Zhang  <jie@codesourcery.com>
27211         PR debug/42631
27212         * web.c (entry_register): Don't clobber the number of the
27213         first uninitialized reference in used[].
27214
27215 2011-02-09  Richard Guenther  <rguenther@suse.de>
27216
27217         PR tree-optimization/47664
27218         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
27219         all edges again.
27220
27221 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
27222
27223         PR target/46481
27224         PR target/47032
27225         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
27226         PROCESSOR_POWER7.
27227         (PROCESSOR_DEFAULT64): Same.
27228         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
27229
27230 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27231
27232         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
27233
27234 2011-02-09  Martin Jambor  <mjambor@suse.cz>
27235
27236         PR middle-end/45505
27237         * tree-sra.c (struct access): New flags grp_scalar_read and
27238         grp_scalar_write.  Changed description of assignment read and write
27239         flags.
27240         (dump_access): Dump new flags, reorder all of them.
27241         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
27242         to detect multiple scalar reads.
27243         (analyze_access_subtree): Use the new scalar read write flags instead
27244         of the old flags.  Adjusted comments.
27245
27246 2011-02-08  DJ Delorie  <dj@redhat.com>
27247
27248         PR target/47548
27249         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
27250         patterns.
27251
27252 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27253
27254         * config/m68k/uclinux.opt: New.
27255         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
27256
27257 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27258
27259         * config/cris/elf.opt (sim): New Driver option.
27260
27261 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27262
27263         * config/xtensa/elf.opt: New.
27264         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
27265
27266 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27267
27268         * config/vax/elf.opt: New.
27269         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
27270
27271 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27272
27273         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
27274
27275 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27276
27277         * config/gnu-user.opt: New.
27278         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
27279         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
27280         *-*-uclinux*): Use gnu-user.opt.
27281
27282 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
27283
27284         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
27285         * config/i386/gnu.h (CPP_SPEC): Likewise.
27286
27287 2011-02-08  Ian Lance Taylor  <iant@google.com>
27288
27289         * common.opt (fcx-limited-range): Add SetByCombined flag.
27290         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
27291         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
27292         (fassociative-math, freciprocal-math): Likewise.
27293         (funsafe-math-optimizations): Likewise.
27294         * opth-gen.awk: Handle SetByCombined.
27295         * optc-gen.awk: Likewise.
27296         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
27297         (set_unsafe_math_optimizations_flags): Likewise.
27298         * doc/options.texi (Option properties): Document SetByCombined.
27299
27300 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
27301
27302         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
27303         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
27304         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
27305         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
27306         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
27307
27308 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
27309
27310         PR tree-optimization/46834
27311         PR tree-optimization/46994
27312         PR tree-optimization/46995
27313         * graphite-sese-to-poly.c (used_outside_reduction): New.
27314         (detect_commutative_reduction): Call used_outside_reduction.
27315         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
27316         translate_scalar_reduction_to_array only when at least one
27317         loop-phi/close-phi tuple has been detected.
27318
27319 2011-02-08  Richard Guenther  <rguenther@suse.de>
27320
27321         PR middle-end/47639
27322         * tree-vect-generic.c (expand_vector_operations_1): Update
27323         stmts here ...
27324         (expand_vector_operations): ... not here.  Cleanup EH info
27325         and the CFG if required.
27326
27327 2011-02-08  Richard Guenther  <rguenther@suse.de>
27328
27329         PR tree-optimization/47641
27330         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
27331         require type compatibility.
27332
27333 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27334
27335         * gimple-low.c (lower_function_body): Don't remove the location of
27336         the return statement here.
27337         (lower_gimple_return): Do it here instead but only if the return
27338         statement is actually used twice.
27339
27340 2011-02-08  Richard Guenther  <rguenther@suse.de>
27341
27342         PR tree-optimization/47632
27343         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
27344         unused up_to_stmt parameter, return whether cfg-cleanup is
27345         necessary, remove EH info properly.
27346         (forward_propagate_into_gimple_cond): Adjust caller.
27347         (forward_propagate_into_cond): Likewise.
27348         (forward_propagate_comparison): Likewise.
27349         (tree_ssa_forward_propagate_single_use_vars): Make
27350         forward_propagate_comparison case similar to the two others.
27351
27352 2011-02-08  Nick Clifton  <nickc@redhat.com>
27353
27354         * config/mn10300/mn10300.opt (mliw): New command line option.
27355         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
27356         (liw_bundling): New automaton.
27357         (liw): New attribute.
27358         (liw_op): New attribute.
27359         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
27360         (movsi_internal): Add LIW attributes.
27361         (andsi3): Likewise.
27362         (iorsi3): Likewise.
27363         (xorsi3): Likewise.
27364         (addsi3): Separate register and immediate alternatives.
27365         Add LIW attributes.
27366         (subsi3): Likewise.
27367         (cmpsi): Likewise.
27368         (aslsi3): Likewise.
27369         (lshrsi3): Likewise.
27370         (ashrsi3): Likewise.
27371         (liw): New pattern.
27372         * config/mn10300/mn10300.c (liw_op_names): New
27373         (mn10300_print_operand): Handle 'W' operand descriptor.
27374         (extract_bundle): New function.
27375         (check_liw_constraints): New function.
27376         (liw_candidate): New function.
27377         (mn10300_bundle_liw): New function.
27378         (mn10300_reorg): New function.
27379         (TARGET_MACHINE_DEPENDENT_REORG): Define.
27380         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
27381         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
27382         __LIW__ or __NO_LIW__.
27383         * doc/invoke.texi: Describe the -mliw command line option.
27384
27385 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27386
27387         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
27388         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
27389         pthread_mutex_unlock): Remove.
27390         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
27391         * config/pa/t-pa64: Likewise.
27392         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
27393         shared libc if not linking against libpthread.
27394         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27395
27396 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
27397
27398         PR target/47558
27399         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
27400         on 10.6 and later to ensure that we always use the unwinder from
27401         the system.  Only add -no_compact_unwind when tarteting darwin
27402         10.6 or later.
27403
27404 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
27405
27406         PR target/46997
27407         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
27408         (vec_interleave_lowv2sf): Ditto.
27409         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
27410         (vec_extract_oddv2sf): Ditto.
27411
27412 2011-02-07  Mike Stump  <mikestump@comcast.net>
27413
27414         PR target/42333
27415         Add __ieee_divdc3 entry point.
27416         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
27417         entry point.
27418         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
27419         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
27420         * config/darwin.c (darwin_rename_builtins): Add.
27421         * config/darwin-protos.h (darwin_rename_builtins): Add.
27422
27423 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
27424
27425         PR target/47636
27426         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
27427         for the condition.
27428
27429 2011-02-07  Mike Stump  <mikestump@comcast.net>
27430
27431         * config/darwin.opt (mmacosx-version-min): Update default OS version.
27432
27433 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
27434
27435         PR target/47534
27436         * config/avr/libgcc.S (exit): Move .endfunc
27437
27438 2011-02-07  Richard Guenther  <rguenther@suse.de>
27439
27440         PR tree-optimization/47615
27441         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
27442         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
27443         (run_scc_vn): Initialize it.
27444         (visit_reference_op_load): Use it.
27445         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
27446
27447 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27448
27449         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
27450         DImode trapping arithmetic libfuncs.
27451
27452 2011-02-07  Richard Guenther  <rguenther@suse.de>
27453
27454         PR tree-optimization/47621
27455         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
27456         two duplicates ...
27457         (execute_update_addresses_taken): ... here.  Make it more
27458         conservative in what we accept.
27459
27460 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27461
27462         * config/sparc/freebsd.h (ASM_SPEC): Define.
27463         * config/sparc/vxworks.h (ASM_SPEC): Define.
27464
27465 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
27466
27467         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27468
27469 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
27470
27471         * doc/invoke.texi: Remove reference to compiler internals from
27472         user documentation.
27473
27474         * reg-notes.def: Remove REG_VALUE_PROFILE.
27475         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
27476
27477 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
27478
27479         PR middle-end/47610
27480         * varasm.c (default_section_type_flags): If decl is NULL,
27481         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
27482
27483 2011-02-05  Jie Zhang  <jie@codesourcery.com>
27484
27485         PR debug/42631
27486         * web.c (entry_register): Don't clobber the number of the
27487         first uninitialized reference in used[].
27488
27489 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
27490
27491         PR tree-optimization/46194
27492         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
27493         (build_classic_dist_vector_1): Do not represent classic distance
27494         vectors when the access functions are variating in different loops.
27495
27496 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27497
27498         * config/mips/iris6.opt: New.
27499         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
27500
27501 2011-02-04  Richard Henderson  <rth@redhat.com>
27502             Steve Ellcey  <sje@cup.hp.com>
27503
27504         PR target/46997
27505         * config/ia64/predicates.md (mux1_brcst_element): New.
27506         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
27507         * config/ia64/ia64.c (ia64_unpack_assemble): New.
27508         (ia64_unpack_sign): New.
27509         (ia64_expand_unpack): Rewrite using new routines.
27510         (ia64_expand_widen_sum): Ditto.
27511         (ia64_expand_dot_prod_v8qi): Ditto.
27512         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
27513         routines, add endian check.
27514         (pmpy2_even): Rename from pmpy2_r, add endian check.
27515         (pmpy2_odd): Rename from pmpy2_l, add endian check.
27516         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
27517         (vec_widen_smult_hi_v4hi): Ditto.
27518         (vec_widen_umult_lo_v4hi): Ditto.
27519         (vec_widen_umult_hi_v4hi): Ditto.
27520         (mulv2si3): Change endian checks.
27521         (sdot_prodv4hi): Rewrite with new calls.
27522         (udot_prodv4hi): New.
27523         (vec_pack_ssat_v4hi): Add endian check.
27524         (vec_pack_usat_v4hi): Ditto.
27525         (vec_pack_ssat_v2si): Ditto.
27526         (max1_even): Rename from max1_r, add endian check.
27527         (max1_odd): Rename from max1_l, add endian check.
27528         (*mux1_rev): Format change.
27529         (*mux1_mix): Ditto.
27530         (*mux1_shuf): Ditto.
27531         (*mux1_alt): Ditto.
27532         (*mux1_brcst_v8qi): Use new predicate.
27533         (vec_extract_evenv8qi): Remove endian check.
27534         (vec_extract_oddv8qi): Ditto.
27535         (vec_interleave_lowv4hi): Format change.
27536         (vec_interleave_highv4hi): Ditto.
27537         (mix2_even): Rename from mix2_r, add endian check.
27538         (mix2_odd): Rename from mux2_l, add endian check.
27539         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
27540         (vec_extract_evenodd_helper): Format change.
27541         (vec_extract_evenv4hi): Remove endian check.
27542         (vec_extract_oddv4hi): Remove endian check.
27543         (vec_interleave_lowv2si): Format change.
27544         (vec_interleave_highv2si): Format change.
27545         (vec_initv2si): Remove endian check.
27546         (vecinit_v2si): Add endian check.
27547         (reduc_splus_v2sf): Add endian check.
27548         (reduc_smax_v2sf): Ditto.
27549         (reduc_smin_v2sf): Ditto.
27550         (vec_initv2sf): Remove endian check.
27551         (fpack): Add endian check.
27552         (fswap): Add endian check.
27553         (vec_interleave_highv2sf): Add endian check.
27554         (vec_interleave_lowv2sf): Add endian check.
27555         (fmix_lr): Add endian check.
27556         (vec_setv2sf): Format change.
27557         (*vec_extractv2sf_0_be): Use shift to extract operand.
27558         (*vec_extractv2sf_1_be): New.
27559         (vec_pack_trunc_v4hi): Add endian check.
27560         (vec_pack_trunc_v2si): Format change.
27561
27562 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
27563
27564         PR inline-asm/23200
27565         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
27566         do bb, locus and block comparison and disallow loads if it is not set.
27567         (stmt_is_replaceable_p): New function.
27568         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
27569         callers.
27570         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
27571         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
27572         SSA_NAME_DEF_STMT.
27573         * tree-flow.h (stmt_is_replaceable_p): New prototype.
27574
27575 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27576
27577         * config/rs6000/xilinx.opt: New.
27578         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
27579
27580 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
27581
27582         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
27583
27584 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
27585
27586         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
27587         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
27588         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
27589         secondary_reload_info, xtensa_secondary_reload): Remove.
27590         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
27591         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
27592         (xtensa_preferred_reload_class): Make static. Change return and
27593         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
27594         Use CONST_DOUBLE_P predicate.
27595         (xtensa_preferred_output_reload_class): New function.
27596         (xtensa_secondary_reload): Make static.
27597
27598 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
27599
27600         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
27601         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
27602         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
27603
27604 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27605
27606         PR middle-end/31490
27607         * output.h (SECTION_RELRO): Define.
27608         (SECTION_MACH_DEP): Adjust.
27609         (get_variable_section): New prototype.
27610         * varpool.c (varpool_finalize_named_section_flags): New function.
27611         (varpool_assemble_pending_decls): Call it.
27612         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
27613         * cgraphunit.c (cgraph_output_in_order): Call
27614         varpool_finalize_named_section_flags.
27615         * varasm.c (get_section): Allow section flags conflicts between
27616         relro and read-only sections if the section hasn't been declared yet.
27617         Set SECTION_OVERRIDE after diagnosing section type conflict.
27618         (get_variable_section): No longer static.
27619         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
27620         readonly sections that need relocations.
27621         (decl_readonly_section_1): New function.
27622         (decl_readonly_section): Use it.
27623
27624         Revert:
27625         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
27626                     Steve Ellcey  <sje@cup.hp.com>
27627
27628         PR middle-end/31490
27629         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
27630         if section attribute used.
27631
27632 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27633
27634         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
27635         * config/darwin.c (SECTION_NO_ANCHOR): Define.
27636         (darwin_init_sections): Remove assertion.
27637
27638 2011-02-03  Nick Clifton  <nickc@redhat.com>
27639
27640         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
27641         lt and ge.
27642         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27643         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27644         instead of "n" and "pz".
27645         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27646         CC_FLAG_S.
27647
27648 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27649
27650         PR target/47312
27651         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27652         fma, expand FMA_EXPR as fma{,f,l} call.
27653
27654         PR lto/47274
27655         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27656         copy them into a unsigned char variable and pass address of it to
27657         lto_output_data_stream.
27658
27659         PR target/47564
27660         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27661         around backend_init_target and lang_dependent_init_target calls.
27662         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27663         (verify_cgraph_node): Don't call set_cfun here.  Use
27664         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27665         Set error_found for incorrectly represented calls to thunks.
27666
27667 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27668
27669         PR debug/43092
27670         PR rtl-optimization/43494
27671         * rtl.h (for_each_inc_dec_fn): New type.
27672         (for_each_inc_dec): Declare.
27673         * rtlanal.c (struct for_each_inc_dec_ops): New type.
27674         (for_each_inc_dec_find_inc_dec): New fn.
27675         (for_each_inc_dec_find_mem): New fn.
27676         (for_each_inc_dec): New fn.
27677         * dse.c (struct insn_size): Remove.
27678         (replace_inc_dec, replace_inc_dec_mem): Remove.
27679         (emit_inc_dec_insn_before): New fn.
27680         (check_for_inc_dec): Use it, along with for_each_inc_dec.
27681         (canon_address): Pass mem modes to cselib_lookup.
27682         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
27683         (cselib_lookup_from_insn): Likewise.
27684         (cselib_subst_to_values): Likewise.
27685         * cselib.c (find_slot_memmode): New var.
27686         (cselib_find_slot): New fn.  Use it instead of
27687         htab_find_slot_with_hash everywhere.
27688         (entry_and_rtx_equal_p): Use find_slot_memmode.
27689         (autoinc_split): New fn.
27690         (rtx_equal_for_cselib_p): Rename and implement in terms of...
27691         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
27692         Deal with autoinc.  Special-case recursion into MEMs.
27693         (cselib_hash_rtx): Likewise.
27694         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
27695         address and MEM modes.
27696         (cselib_subst_to_values): Add memmode, pass it on.
27697         Deal with autoinc.
27698         (cselib_lookup): Add memmode argument, pass it on.
27699         (cselib_lookup_from_insn): Add memmode.
27700         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27701         (struct cselib_record_autoinc_data): New.
27702         (cselib_record_autoinc_cb): New fn.
27703         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
27704         mode to cselib_lookup.  Reset autoinced REGs here instead of...
27705         (cselib_process_insn): ... here.
27706         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27707         to cselib_lookup.
27708         (add_uses): Likewise, also to cselib_subst_to_values.
27709         (add_stores): Likewise.
27710         * sched-deps.c (add_insn_mem_dependence): Pass mode to
27711         cselib_subst_to_values.
27712         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
27713         * gcse.c (do_local_cprop): Adjusted.
27714         * postreload.c (reload_cse_simplify_set): Adjusted.
27715         (reload_cse_simplify_operands): Adjusted.
27716         * sel-sched-dump (debug_mem_addr_value): Pass mode.
27717
27718 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27719
27720         PR tree-optimization/45122
27721         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27722         unsafe assumptions when there's more than one loop exit.
27723
27724 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27725
27726         PR target/47272
27727         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27728         Document using vector double with the load/store builtins, and
27729         that the load/store builtins always use Altivec instructions.
27730
27731         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27732         to use altivec memory instructions, even on VSX.
27733         (vector_altivec_store_<mode>): Ditto.
27734
27735         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27736         function.
27737
27738         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27739         V2DF, V2DI support to load/store overloaded builtins.
27740
27741         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27742         altivec load/store builtins for V2DF/V2DI types.
27743
27744         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27745         set avoid indexed addresses on power6 if -maltivec.
27746         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27747         vector_altivec_load/vector_altivec_store builtins.
27748         (altivec_expand_st_builtin): Ditto.
27749         (altivec_expand_builtin): Add VSX memory builtins.
27750         (rs6000_init_builtins): Add V2DI types to internal types.
27751         (altivec_init_builtins): Add support for V2DF/V2DI altivec
27752         load/store builtins.
27753         (rs6000_address_for_altivec): Insure memory address is appropriate
27754         for Altivec.
27755
27756         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27757         vec_vsx_ld and vec_vsx_st.
27758         (vsx_store_<mode>): Ditto.
27759
27760         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27761         variables to hold long long types for VSX vector memory builtins.
27762         (RS6000_BTI_unsigned_long_long): Ditto.
27763         (long_long_integer_type_internal_node): Ditti.
27764         (long_long_unsigned_type_internal_node): Ditti.
27765
27766         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27767         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27768         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27769
27770         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27771         short cuts.
27772         (vec_vsx_st): Ditto.
27773
27774 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27775
27776         * config/pa/pa-hpux10.opt: New.
27777         * config/hpux11.opt (pthread): New Driver option.
27778         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27779         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27780
27781 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27782
27783         * config/ia64/vms.opt: New.
27784         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27785
27786 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27787
27788         PR target/47580
27789         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27790         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27791         generator functions.
27792         (vsx_floatuns<VSi><mode>2): Ditto.
27793         (vsx_fix_trunc<mode><VSi>2): Ditto.
27794         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27795
27796 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27797
27798         * config/i386/djgpp.opt (posix): New Driver option.
27799
27800 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
27801
27802         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27803         Move to the unsupported targets list.
27804
27805 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
27806
27807         PR rtl-optimization/47525
27808         * df-scan.c: Update copyright years.
27809         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27810         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27811
27812 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27813
27814         * config/i386/sysv4.h (TARGET_VERSION): Remove.
27815         (SUBTARGET_RETURN_IN_MEMORY): Remove.
27816         (ASM_OUTPUT_ASCII): Remove.
27817         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27818
27819 2011-02-02  Jeff Law  <law@redhat.com>
27820
27821         PR middle-end/47543
27822         * reload.c (find_reloads_address): Handle reg+d address where both
27823         components are invalid by reloading the entire address.
27824
27825 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27826             Richard Guenther  <rguenther@suse.de>
27827
27828         PR tree-optimization/40979
27829         PR bootstrap/47044
27830         * passes.c (init_optimization_passes): After LIM call copy_prop
27831         and DCE to clean up.
27832         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27833
27834 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27835
27836         PR tree-optimization/47576
27837         PR tree-optimization/47555
27838         * doc/invoke.texi (scev-max-expr-complexity): Documented.
27839         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27840         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27841         * tree-scalar-evolution.c (follow_ssa_edge): Use
27842         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27843
27844 2011-02-02  Richard Guenther  <rguenther@suse.de>
27845
27846         PR tree-optimization/47566
27847         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27848
27849 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27850
27851         PR debug/47106
27852         PR debug/47402
27853         * tree-inline.c (declare_return_variable): Remove unused caller
27854         variable.
27855
27856         PR debug/47106
27857         PR debug/47402
27858         * tree-flow-inline.h (clear_is_used, is_used_p): New.
27859         * cfgexpand.c (account_used_vars_for_block): Use them.
27860         * tree-nrv.c (tree_nrv): Likewise.
27861         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27862         (dump_scope_block): Likewise.
27863         (remove_unused_locals): Likewise.
27864
27865         PR debug/47106
27866         PR debug/47402
27867         * tree-inline.c (declare_return_variable): Add result decl to
27868         local decls only once.
27869         * gimple-low.c (record_vars_into): Mark newly-created variables
27870         as referenced.
27871
27872 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27873
27874         PR debug/47498
27875         PR debug/47501
27876         PR debug/45136
27877         PR debug/45130
27878         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27879         debug insns.
27880         (no_real_insns_p, schedule_block, set_priorities): Drop special
27881         treatment of boundary debug insns.
27882         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27883         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27884         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27885         (BOUNDARY_DEBUG_INSN_P): Likewise.
27886         (SCHEDULE_DEBUG_INSN_P): Likewise.
27887         * sched-rgn.c (init_ready_list): Drop special treatment of
27888         boundary debug insns.
27889         * final.c (rest_of_clean_state): Clear notes' BB.
27890
27891 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27892
27893         * config/openbsd.opt (assert=): New Driver option.
27894
27895 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27896
27897         * config/i386/nto.opt: New.
27898         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27899
27900 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27901
27902         * config/i386/netware.opt: New.
27903         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27904
27905 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27906
27907         * config/interix.opt (posix): New Driver option.
27908
27909 2011-02-01  DJ Delorie  <dj@redhat.com>
27910
27911         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27912
27913         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27914         class for A0/A1.
27915
27916 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
27917
27918         PR tree-optimization/47561
27919         * toplev.c (process_options): Print the Graphite flags.  Add
27920         flag_loop_flatten to the list of options requiring Graphite.
27921
27922 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27923
27924         * config/i386/cygming.opt (posix): New Driver option.
27925
27926 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27927
27928         * config/arm/vxworks.opt: New.
27929         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27930
27931 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27932
27933         * config/alpha/elf.opt: New.
27934         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27935         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27936
27937 2011-02-01  Richard Guenther  <rguenther@suse.de>
27938
27939         PR tree-optimization/47559
27940         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27941         store-motion on references that can throw.
27942
27943 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
27944
27945         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27946         * tree-pass.h (TDF_CSELIB): New macro.
27947         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27948         cselib_lookup): Check for it rather than for TDF_DETAILS.
27949
27950 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
27951
27952         PR driver/47547
27953         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27954         is HOST_BIT_BUCKET.
27955
27956         * opts.c (finish_options): Don't add x_aux_base_name if it is
27957         HOST_BIT_BUCKET.
27958
27959 2011-02-01  Richard Guenther  <rguenther@suse.de>
27960
27961         PR tree-optimization/47555
27962         Revert
27963         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
27964
27965         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27966
27967 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27968
27969         PR gcc/46692
27970         * config/lm32/t-lm32: Add multilib for all CPU options.
27971
27972 2011-02-01  Richard Guenther  <rguenther@suse.de>
27973
27974         PR tree-optimization/47541
27975         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27976         sure to have a field at offset zero.
27977
27978 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27979
27980         * config/arc/arc.opt (EB, EL): New Driver options.
27981
27982 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27983
27984         * config/alpha/osf5.opt: New.
27985         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27986
27987 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27988
27989         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27990
27991 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
27992
27993         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27994         -floop-interchange.
27995         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27996         is an alias of -floop-interchange and that it requires the
27997         Graphite infrastructure.
27998         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27999         flag_loop_interchange based on the value of flag_tree_loop_linear.
28000
28001 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
28002             Richard Guenther  <rguenther@suse.de>
28003
28004         PR tree-optimization/47538
28005         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
28006         type instead of r1type, except for comparisons.  For right
28007         shifts and comparisons punt if there are mismatches in
28008         sizetype vs. non-sizetype types.
28009
28010 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28011
28012         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28013         avx_runtime.
28014
28015 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28016
28017         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
28018         version number.
28019         * configure: Regenerate.
28020
28021 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28022
28023         * configure.ac (gcc_cv_ld_static_option): Define.
28024         (gcc_cv_ld_dynamic_option): Define.
28025         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
28026         instead.
28027         (HAVE_LD_STATIC_DYNAMIC): Update message.
28028         (LD_STATIC_OPTION): Define.
28029         (LD_DYNAMIC_OPTION): Define.
28030         * configure: Regenerate.
28031         * config.in: Regenerate.
28032         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
28033         HAVE_LD_STATIC_DYNAMIC]: Use them.
28034
28035 2011-01-31  Nick Clifton  <nickc@redhat.com>
28036
28037         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
28038         registers inside interrupt handlers if the handler is not a leaf
28039         function.
28040
28041 2011-01-31  Nick Clifton  <nickc@redhat.com>
28042
28043         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
28044         reg_renumber returning an INVALID_REGNUM.
28045
28046 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28047
28048         PR libgcj/44341
28049         * doc/install.texi: Document host options discarded when cross
28050         configuring target libraries.
28051
28052 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
28053
28054         Reverted:
28055         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28056         PR debug/45136
28057         PR debug/45130
28058         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28059         debug insns.
28060         (no_real_insns_p, schedule_block, set_priorities): Drop special
28061         treatment of boundary debug insns.
28062         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28063         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28064         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28065         (BOUNDARY_DEBUG_INSN_P): Likewise.
28066         (SCHEDULE_DEBUG_INSN_P): Likewise.
28067         * sched-rgn.c (init_ready_list): Drop special treatment of
28068         boundary debug insns.
28069         * final.c (rest_of_clean-state): Clear notes' BB.
28070
28071 2011-01-31  Alan Modra  <amodra@gmail.com>
28072
28073         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
28074         toc relative expressions as we do in print_operand_address.
28075
28076 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
28077
28078         * doc/extend.texi: Follow spelling conventions.
28079         * doc/invoke.texi: Fix a typo.
28080
28081 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
28082
28083         * config/hpux11.opt: New.
28084         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
28085         ia64*-*-hpux*): Use hpux11.opt.
28086
28087 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
28088
28089         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
28090         to tmake_file.
28091
28092 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28093
28094         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
28095         support sites.
28096
28097 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28098
28099         * doc/install.texi (Binaries): Remove outdated reference for
28100         Motorola 68HC11/68HC12 downloads.
28101
28102 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
28103
28104         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
28105         Drepper's paper.
28106
28107 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
28108
28109         PR bootstrap/47147
28110         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
28111         used by NetBSD.
28112
28113 2011-01-28  Ahmad Sharif  <asharif@google.com>
28114
28115         * value-prof.c (check_counter): Corrected error message.
28116
28117 2011-01-29  Jie Zhang  <jie@codesourcery.com>
28118
28119         * config/arm/arm.c (arm_legitimize_reload_address): New.
28120         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
28121         arm_legitimize_reload_address.
28122         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
28123
28124 2011-01-28  Ian Lance Taylor  <iant@google.com>
28125
28126         * godump.c (go_define): Ignore macros whose definitions include
28127         two adjacent operands.
28128
28129 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
28130
28131         PR target/42894
28132         * varasm.c (force_const_mem): Store copy of x in desc->constant
28133         instead of x itself.
28134         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
28135         itself into REG_EQUAL note.
28136
28137 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
28138
28139         * config/freebsd.opt (posix, rdynamic): New Driver options.
28140
28141 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28142
28143         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
28144         -Bstatic/-Bdynamic.
28145         * configure: Regenerate.
28146
28147 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
28148
28149         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
28150         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
28151
28152 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
28153
28154         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
28155         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28156         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28157         (s390_preferred_reload_class): Make static. Change return and
28158         'rclass' argument type to reg_class_t.
28159
28160 2011-01-27  Jan Hubicka  <jh@suse.cz>
28161
28162         PR middle-end/46949
28163         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
28164         (process_function_and_variable_attributes): Check defined weakrefs.
28165
28166 2011-01-27  Martin Jambor  <mjambor@suse.cz>
28167
28168         PR tree-optimization/47228
28169         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
28170         build_ref_for_offset.
28171
28172 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28173
28174         * config/spu/spu-elf.h (ASM_SPEC): Remove.
28175
28176 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
28177
28178         PR rtl-optimization/46856
28179         * postreload.c (reload_combine_recognize_const_pattern): Do not
28180         separate cc0 setter and user on cc0 targets.
28181
28182 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
28183
28184         PR c/43082
28185         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
28186         passed a VOID_TYPE expression, immediately emit an error and
28187         return error_mark_node.
28188
28189 2011-01-26  Jeff Law  <law@redhat.com>
28190
28191         PR rtl-optimization/47464
28192         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
28193         rather than may_trap_p as needed.
28194
28195 2011-01-26  DJ Delorie  <dj@redhat.com>
28196
28197         PR rtl-optimization/46878
28198         * combine.c (insn_a_feeds_b): Check for the implicit cc0
28199         setter/user dependency as well.
28200
28201 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
28202
28203         PR rtl-optimization/44469
28204         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
28205         after removing trivially dead basic blocks.
28206
28207 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28208
28209         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
28210         * config/frv/frv.h (LINK_SPEC): Likewise.
28211         * config/i386/netware.h (LINK_SPEC): Likewise.
28212         * config/m68k/linux.h (ASM_SPEC): Likewise.
28213         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
28214         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28215         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28216         * config/sparc/linux.h (ASM_SPEC): Likewise.
28217         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28218         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28219
28220 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28221
28222         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
28223         * config/frv/frv.h (ASM_SPEC): Likewise.
28224         * config/m68k/linux.h (ASM_SPEC): Likewise.
28225         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28226         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
28227         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28228         * config/sparc/linux.h (ASM_SPEC): Likewise.
28229         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28230         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28231
28232 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28233
28234         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
28235         * config/frv/frv.h (LINK_SPEC): Likewise.
28236         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
28237
28238 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
28239
28240         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
28241         * config/frv/frv.h (ASM_SPEC): Likewise.
28242         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
28243         * config/m68k/linux.h (ASM_SPEC): Likewise.
28244         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
28245         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28246         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28247         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
28248         * config/sparc/linux.h (ASM_SPEC): Likewise.
28249         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28250         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28251         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
28252
28253 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
28254
28255         PR target/46997
28256         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
28257         (*mux2): Ditto.
28258         (vec_extract_evenodd_help): Ditto.
28259         (vec_extract_evenv4hi): Ditto.
28260         (vec_extract_oddv4hi): Ditto.
28261         (vec_interleave_lowv2si): Ditto.
28262         (vec_interleave_highv2si): Ditto.
28263         (vec_extract_evenv2si): Ditto.
28264         (vec_extract_oddv2si: Ditto.
28265         (vec_pack_trunc_v2si): Ditto.
28266
28267 2011-01-22  Jan Hubicka  <jh@suse.cz>
28268
28269         PR target/47237
28270         * cgraph.h (cgraph_local_info): New field can_change_signature.
28271         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
28272         signature can change.
28273         (ipcp_estimate_growth): Call sequence simplify only if calle signature
28274         can change.
28275         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
28276         (cgraph_function_versioning): We can not change signature of functions
28277         that don't allow that.
28278         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
28279         (lto_input_node): Likewise.
28280         * ipa-inline.c (compute_inline_parameters): Compute
28281         local.can_change_signature.
28282         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
28283         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
28284         functions that can not change signature.
28285         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
28286         init_cumulative_args): Do not use local calling conventions
28287         for functions that can not change signature.
28288
28289 2011-01-22  Jan Hubicka  <jh@suse.cz>
28290
28291         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
28292
28293 2011-01-26  Richard Guenther  <rguenther@suse.de>
28294
28295         PR tree-optimization/47190
28296         * cgraphunit.c (process_common_attributes): New function.
28297         (process_function_and_variable_attributes): Use it.
28298
28299 2011-01-26  Richard Guenther  <rguenther@suse.de>
28300
28301         PR lto/47423
28302         * cgraphbuild.c (record_eh_tables): Record reference to personality
28303         function.
28304
28305 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
28306
28307         PR debug/45454
28308         * sel-sched.c (moveup_expr): Don't let debug insns prevent
28309         non-debug insns from moving up.
28310
28311 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28312
28313         PR target/40125
28314         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
28315         t-dlldir{,-x} fragment for build and add it to tmake_file.
28316         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
28317         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
28318         * config/i386/t-dlldir: New file.
28319         (SHLIB_DLLDIR): Define.
28320         * config/i386/t-dlldir-x: New file.
28321         (SHLIB_DLLDIR): Define.
28322         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
28323         (SHLIB_INSTALL): Use it.
28324
28325 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
28326
28327         PR target/47246
28328         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
28329         lower bound of the allowed Thumb-2 coprocessor load/store
28330         index range to -256. Add explaining comment.
28331
28332 2011-01-25  Ian Lance Taylor  <iant@google.com>
28333
28334         * godump.c (go_define): Improve lexing of macro expansion to only
28335         accept expressions which match Go spec.
28336
28337 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
28338
28339         PR c++/43601
28340         * tree.c (handle_dll_attribute): Handle it.
28341         * doc/extend.texi (@item dllexport): Mention it.
28342         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
28343
28344 2011-01-25  Ian Lance Taylor  <iant@google.com>
28345
28346         PR tree-optimization/26854
28347         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
28348         (decl_jump_unsafe): Move higher in file, with no other change.
28349         (bind): Set has_jump_unsafe_decl if appropriate.
28350         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
28351         (check_earlier_gotos): Likewise.
28352         (c_check_switch_jump_warnings): Likewise.
28353
28354 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
28355
28356         * doc/invoke.texi (Warning Options): Add missing hyphen.
28357         (-fprofile-dir): Minor grammatical fixes.
28358         (-fbranch-probabilities): Likewise.
28359
28360 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
28361
28362         PR debug/45136
28363         PR debug/45130
28364         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
28365         debug insns.
28366         (no_real_insns_p, schedule_block, set_priorities): Drop special
28367         treatment of boundary debug insns.
28368         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
28369         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
28370         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
28371         (BOUNDARY_DEBUG_INSN_P): Likewise.
28372         (SCHEDULE_DEBUG_INSN_P): Likewise.
28373         * sched-rgn.c (init_ready_list): Drop special treatment of
28374         boundary debug insns.
28375         * final.c (rest_of_clean-state): Clear notes' BB.
28376
28377 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28378
28379         * Makefile.in (LAMBDA_H): Removed.
28380         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
28381         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
28382         lambda-trans.o, and tree-loop-linear.o.
28383         (lto-symtab.o): Remove dependence on LAMBDA_H.
28384         (tree-loop-linear.o): Remove rule.
28385         (lambda-mat.o): Same.
28386         (lambda-trans.o): Same.
28387         (lambda-code.o): Same.
28388         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
28389         (tree-vect-slp.o): Same.
28390         * hwint.h (gcd): Moved here.
28391         (least_common_multiple): Same.
28392         * lambda-code.c: Removed.
28393         * lambda-mat.c: Removed.
28394         * lambda-trans.c: Removed.
28395         * lambda.h: Removed.
28396         * tree-loop-linear.c: Removed.
28397         * lto-symtab.c: Do not include lambda.h.
28398         * omega.c (gcd): Removed.
28399         * passes.c (init_optimization_passes): Remove pass_linear_transform.
28400         * tree-data-ref.c (print_lambda_vector): Moved here.
28401         (lambda_vector_copy): Same.
28402         (lambda_matrix_copy): Same.
28403         (lambda_matrix_id): Same.
28404         (lambda_vector_first_nz): Same.
28405         (lambda_matrix_row_add): Same.
28406         (lambda_matrix_row_exchange): Same.
28407         (lambda_vector_mult_const): Same.
28408         (lambda_vector_negate): Same.
28409         (lambda_matrix_row_negate): Same.
28410         (lambda_vector_equal): Same.
28411         (lambda_matrix_right_hermite): Same.
28412         * tree-data-ref.h: Do not include lambda.h.
28413         (lambda_vector): Moved here.
28414         (lambda_matrix): Same.
28415         (dependence_level): Same.
28416         (lambda_transform_legal_p): Removed declaration.
28417         (lambda_collect_parameters): Same.
28418         (lambda_compute_access_matrices): Same.
28419         (lambda_vector_gcd): Same.
28420         (lambda_vector_new): Same.
28421         (lambda_vector_clear): Same.
28422         (lambda_vector_lexico_pos): Same.
28423         (lambda_vector_zerop): Same.
28424         (lambda_matrix_new): Same.
28425         * tree-flow.h (least_common_multiple): Removed declaration.
28426         * tree-parloops.c (lambda_trans_matrix): Moved here.
28427         (LTM_MATRIX): Same.
28428         (LTM_ROWSIZE): Same.
28429         (LTM_COLSIZE): Same.
28430         (LTM_DENOMINATOR): Same.
28431         (lambda_trans_matrix_new): Same.
28432         (lambda_matrix_vector_mult): Same.
28433         (lambda_transform_legal_p): Same.
28434         * tree-pass.h (pass_linear_transform): Removed declaration.
28435         * tree-ssa-loop.c (tree_linear_transform): Removed.
28436         (gate_tree_linear_transform): Removed.
28437         (pass_linear_transform): Removed.
28438         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
28439         flag_loop_interchange.
28440
28441 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28442
28443         PR tree-optimization/47265
28444         PR tree-optimization/47443
28445         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
28446         if name still has some uses.
28447
28448 2011-01-25  Martin Jambor  <mjambor@suse.cz>
28449
28450         PR tree-optimization/47382
28451         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
28452         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
28453
28454 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
28455
28456         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
28457         sjlj_except_unwind_info.
28458
28459 2011-01-25  Richard Guenther  <rguenther@suse.de>
28460
28461         PR tree-optimization/47426
28462         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
28463         visible functions results escape.
28464
28465 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28466
28467         PR target/45701
28468         * config/arm/arm.c (any_sibcall_uses_r3): New function.
28469         (arm_get_frame_offsets): Use it.
28470
28471 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28472             Jakub Jelinek  <jakub@redhat.com>
28473
28474         PR tree-optimization/47271
28475         * tree-if-conv.c (bb_postdominates_preds): New.
28476         (if_convertible_bb_p): Call bb_postdominates_preds.
28477         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
28478         (predicate_scalar_phi): Call bb_postdominates_preds.
28479
28480 2011-01-25  Nick Clifton  <nickc@redhat.com>
28481
28482         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
28483         * config/rx/rx.c (rx_function_value): Likewise.
28484         (rx_promote_function_mode): Likewise.
28485         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
28486         in order to make it legitimate.
28487         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
28488         make sure that the first operand is the same as the result register.
28489         (addsi3_unspec): Delete.
28490         (subdi3): Do not accept immediate operands.
28491         (subdi3_internal): Likewise.
28492
28493 2011-01-25  Jeff Law  <law@redhat.com>
28494
28495         PR rtl-optimization/37273
28496         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28497         handle them like argument loads from stack slots.  Do not double
28498         count memory for memory constants and argument loads from stack slots.
28499
28500 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
28501
28502         PR tree-optimization/47427
28503         PR tree-optimization/47428
28504         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
28505         coalesce if the new root var would be TREE_READONLY.
28506
28507 2011-01-25  Richard Guenther  <rguenther@suse.de>
28508
28509         PR middle-end/47414
28510         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
28511         correct type for TBAA.
28512
28513 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28514
28515         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
28516         (close_phi_written_to_memory): Call for_each_index with
28517         dr_indices_valid_in_loop.
28518
28519 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28520
28521         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
28522         when it is initialized.
28523
28524 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28525
28526         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
28527         call to graphite_find_data_references_in_stmt.
28528         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
28529         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
28530         call to graphite_find_data_references_in_stmt.
28531         (analyze_drs_in_stmts): Same.
28532         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
28533         in which the scalar analysis of indices is performed.
28534         (create_data_ref): Same.  Update call to dr_analyze_indices.
28535         (find_data_references_in_stmt): Update call to create_data_ref.
28536         (graphite_find_data_references_in_stmt): Same.
28537         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
28538         declaration.
28539         (create_data_ref): Same.
28540         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
28541         call to create_data_ref.
28542
28543 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28544
28545         * graphite-sese-to-poly.c (build_poly_scop): Move
28546         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
28547
28548 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28549
28550         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
28551         VAR_DECL, PARM_DECL, and RESULT_DECL.
28552
28553 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28554
28555         * graphite-dependences.c (reduction_dr_1): Allow several reductions
28556         in a reduction PBB.
28557         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
28558         that have already been marked as PBB_IS_REDUCTION.
28559
28560 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28561
28562         * graphite-scop-detection.c (same_close_phi_node): New.
28563         (remove_duplicate_close_phi): New.
28564         (make_close_phi_nodes_unique): New.
28565         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
28566
28567 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28568
28569         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
28570         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
28571         of both data references to be the same.
28572
28573 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28574
28575         * graphite-dependences.c (build_lexicographical_constraint): Remove
28576         the gdim parameter.
28577         (build_lexicographical_constraint): Adjust call to
28578         ppl_powerset_is_empty.
28579         (dependence_polyhedron): Same.
28580         (graphite_legal_transform_dr): Same.
28581         (graphite_carried_dependence_level_k): Same.
28582         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
28583         parameter.
28584         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
28585
28586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28587
28588         * graphite-sese-to-poly.c
28589         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
28590         (close_phi_written_to_memory): New.
28591         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
28592         and unshare_expr.
28593
28594 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28595
28596         * doc/install.texi: Update the expected version number of PPL to 0.11.
28597         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
28598         #if PPL_VERSION_MINOR < 11.
28599
28600 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28601
28602         * graphite-dependences.c: Include graphite-cloog-util.h.
28603         (new_poly_ddr): Inlined into dependence_polyhedron.
28604         (free_poly_ddr): Moved close by new_poly_ddr.
28605         (dependence_polyhedron_1): Renamed dependence_polyhedron.
28606         Early return NULL when ppl_powerset_is_empty returns true.
28607         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
28608         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
28609         (graphite_legal_transform_dr): Call new_poly_ddr.
28610         (graphite_carried_dependence_level_k): Same.
28611         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
28612         (dot_transformed_deps_stmt_1): Removed.
28613         (dot_deps_stmt_1): Call dot_deps_stmt_2.
28614         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
28615         (dot_deps_1): Call dot_deps_2.
28616         * Makefile.in (graphite-dependences.o): Add missing dependence on
28617         graphite-cloog-util.h.
28618
28619 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28620
28621         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
28622         (build_lexicographical_constraint): Same.
28623         (dependence_polyhedron_1): Same.
28624         (graphite_legal_transform_dr): Same.
28625         (graphite_carried_dependence_level_k): Same.
28626         * graphite-ppl.c (ppl_powerset_is_empty): New.
28627         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
28628         * tree-data-ref.c (dump_data_reference): Print the basic block index.
28629
28630 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28631
28632         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
28633         the "a followed by b" relation and document it.
28634
28635 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28636
28637         * graphite-dependences.c (build_lexicographical_constraint): Stop the
28638         iteration when the bag of constraints is empty.
28639
28640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28641
28642         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28643
28644 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28645
28646         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28647         nest and two loop depths as parameters.
28648         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28649         lst_perfect_nestify.
28650
28651 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28652
28653         * graphite-dependences.c (print_pddr): Call
28654         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28655
28656 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28657
28658         * graphite-ppl.c (debug_gmp_value): New.
28659         * graphite-ppl.h (debug_gmp_value): Declared.
28660
28661 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
28662
28663         * doc/install.texi: Document availability of cloog-0.16.
28664
28665 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
28666
28667         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28668         invalid postdominance info.
28669
28670 2011-01-24  Jan Hubicka  <jh@suse.cz>
28671
28672         PR c/21659
28673         * doc/extend.texi (weak pragma): Drop claim that it must
28674         appear before definition.
28675         * varasm.c (merge_weak, declare_weak): Only sanity check
28676         that DECL is not output at a time it is declared weak.
28677
28678 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
28679
28680         * machmode.def: Fixed comments.
28681
28682 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
28683
28684         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28685
28686 2011-01-24  Paul Koning  <ni1d@arrl.net>
28687
28688         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28689         WORDS_BIG_ENDIAN.
28690
28691 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28692
28693         PR target/46519
28694         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28695         (block_info): Add scanned and prev.
28696         (move_or_delete_vzeroupper_2): Return if the basic block
28697         has been scanned and the upper 128bit state is unchanged
28698         from the last scan.
28699         (move_or_delete_vzeroupper_1): Return true if the exit
28700         state is changed.
28701         (move_or_delete_vzeroupper): Visit basic blocks using the
28702         work-list based algorithm based on vt_find_locations in
28703         var-tracking.c.
28704
28705         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28706
28707 2011-01-24  Nick Clifton  <nickc@redhat.com>
28708
28709         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28710         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28711         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
28712         then define __v850e1__.
28713         * doc/invoke.texi: Document -mv850es.
28714
28715 2011-01-24  Richard Henderson  <rth@redhat.com>
28716
28717         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28718         compound unordered comparisons.
28719         * config/rx/rx.c (rx_split_fp_compare): Remove.
28720         * config/rx/rx-protos.h: Update.
28721         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28722         (cbranchsf4): Don't call rx_split_fp_compare.
28723         (*cbranchsf4): Use rx_split_cbranch.
28724         (*cmpsf): Don't accept "i" constraint.
28725         (*conditional_branch): Only valid after reload.
28726         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
28727
28728 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28729
28730         PR target/47385
28731         * config/rs6000/altivec.md (vector constant splitters): Add
28732         support for creating vector single precision constants if -mvsx is
28733         used and we would create the constant using Altivec primitives.
28734
28735 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
28736             Richard Sandiford  <rdsandiford@googlemail.com>
28737
28738         PR rtl-optimization/47166
28739         * reload1.c (emit_reload_insns): Disable the spill_reg_store
28740         mechanism for PRE_MODIFY and POST_MODIFY.
28741         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28742         reloadreg.
28743
28744 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
28745
28746         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28747
28748 2011-01-22  Jan Hubicka  <jh@suse.cz>
28749
28750         PR lto/47333
28751         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28752
28753 2011-01-22  Jan Hubicka  <jh@suse.cz>
28754
28755         PR tree-optimization/43884
28756         PR lto/44334
28757         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28758         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28759
28760 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
28761
28762         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28763         * config/s390/s390.c (s390_register_move_cost,
28764         s390_memory_move_cost): New.
28765         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28766
28767 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28768
28769         PR middle-end/47401
28770         * except.c (sjlj_assign_call_site_values): Move setting the
28771         crtl->uses_eh_lsda flag to ...
28772         (sjlj_mark_call_sites): ... here.
28773         (sjlj_emit_function_enter): Support NULL dispatch label.
28774         (sjlj_build_landing_pads): In a function with no landing pads
28775         that still has must-not-throw regions, generate code to register
28776         a personality function with empty LSDA.
28777
28778 2011-01-21  Richard Henderson  <rth@redhat.com>
28779
28780         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28781
28782         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28783
28784         * compare-elim.c: New file.
28785         * Makefile.in (OBJS-common): Add it.
28786         (compare-elim.o): New.
28787         * common.opt (fcompare-elim): New.
28788         * opts.c (default_options_table): Add OPT_fcompare_elim.
28789         * tree-pass.h (pass_compare_elim_after_reload): New.
28790         * passes.c (init_optimization_passes): Add it.
28791         * recog.h: Protect against re-inclusion.
28792         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28793         * doc/invoke.texi (-fcompare-elim): Document it.
28794         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28795         * doc/tm.texi: Rebuild.
28796
28797 2011-01-22  Nick Clifton  <nickc@redhat.com>
28798
28799         * config/rx/rx.md (cstoresf4): Pass comparison operator to
28800         rx_split_fp_compare.
28801
28802 2011-01-22  Nick Clifton  <nickc@redhat.com>
28803
28804         * config/rx/rx.md (UNSPEC_CONST): New.
28805         (deallocate_and_return): Wrap the amount popped off the stack in
28806         an UNSPEC_CONST in order to stop it being rejected by
28807         -mmax-constant-size.
28808         (pop_and_return): Add a "(return)" rtx.
28809         (call): Drop the immediate operand.
28810         (call_internal): Likewise.
28811         (call_value): Likewise.
28812         (call_value_internal): Likewise.
28813         (sibcall_internal): Likewise.
28814         (sibcall_value_internal): Likewise.
28815         (sibcall): Likewise.  Generate an explicit call using
28816         sibcall_internal.
28817         (sibcall_value): Likewise.
28818         (mov<>): FAIL if a constant operand is not legitimate.
28819         (addsi3_unpsec): New pattern.
28820
28821         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28822         (ok_for_max_constant): New function.
28823         (gen_safe_add): New function.
28824         (rx_expand_prologue): Use gen_safe_add.
28825         (rx_expand_epilogue): Likewise.
28826         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
28827         UNSPEC CONSTs.
28828
28829 2011-01-21  Jeff Law  <law@redhat.com>
28830
28831         PR tree-optimization/47053
28832         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28833         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28834         statements are deleted.
28835         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
28836         is nonempty, then purge dead edges and cleanup the CFG.
28837
28838 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28839
28840         PR debug/47402
28841         Temporarily revert:
28842         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28843         PR debug/47106
28844         * tree-dfa.c (create_var_ann): Mark variable as used.
28845
28846 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28847
28848         PR middle-end/45566
28849         * except.c (convert_to_eh_region_ranges): Emit queued no-region
28850         notes from other section in hot/cold partitioning even if
28851         last_action is -3.  Increment call_site_base.
28852
28853         PR rtl-optimization/47366
28854         * fwprop.c (forward_propagate_into): Return bool.  If
28855         any changes are made, -fnon-call-exceptions is used and
28856         REG_EH_REGION note is present, call purge_dead_edges
28857         and return true if it purged anything.
28858         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28859         any EH edges were purged.
28860
28861 2011-01-21  Jeff Law  <law@redhat.com>
28862
28863         PR rtl-optimization/41619
28864         * caller-save.c (setup_save_areas): Break out code to determine
28865         which hard regs are live across calls by examining the reload chains
28866         so that it is always used.
28867         Eliminate code which checked REG_N_CALLS_CROSSED.
28868
28869 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28870
28871         PR tree-optimization/47355
28872         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28873         NOP has non-debug uses beyond PHIs in new_bb.
28874
28875 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28876
28877         PR debug/47106
28878         * cfgexpand.c (account_used_vars_for_block): Only account vars
28879         that are annotated as used.
28880         (estimated_stack_frame_size): Don't set TREE_USED.
28881         * tree-dfa.c (create_var_ann): Mark variable as used.
28882
28883 2011-01-21  Richard Guenther  <rguenther@suse.de>
28884
28885         PR middle-end/47395
28886         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28887
28888 2011-01-21  Richard Guenther  <rguenther@suse.de>
28889
28890         PR tree-optimization/47365
28891         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28892         (vn_reference_lookup_pieces): Adjust.
28893         (vn_reference_lookup): Likewise.
28894         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28895         (vn_reference_lookup_3): Only look through kills if in
28896         VN_WALKREWRITE mode.
28897         (vn_reference_lookup_pieces): Adjust.
28898         (vn_reference_lookup): Likewise.
28899         (visit_reference_op_load): Likewise.
28900         (visit_reference_op_store): Likewise.
28901         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28902         (compute_avail): Likewise.
28903         (eliminate): Likewise.
28904
28905 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28906
28907         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28908         DECL_IGNORED_P non-reg vars if they are used.
28909
28910         PR tree-optimization/47391
28911         * varpool.c (const_value_known_p): Return false if
28912         decl is volatile.
28913
28914 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
28915
28916         PR bootstrap/47215
28917         * config/i386/i386.c (ix86_local_alignment): Handle
28918         case for va_list_type_node is nil.
28919         (ix86_canonical_va_list_type): Likewise.
28920
28921 2011-01-21  Alan Modra  <amodra@gmail.com>
28922
28923         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28924         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28925
28926 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28927
28928         * config/arm/arm.md (define_attr type): Rename f_load
28929         and f_store to f_fpa_load and f_fpa_store. Update.
28930         (write_conflict): Deal with rename fallout.
28931         (*push_fp_multi): Likewise.
28932         * config/arm/fpa.md (f_load): Use f_fpa_load.
28933         (f_store): Use f_fpa_store.
28934         (*movsf_fpa): Likewise.
28935         (*movdf_fpa): Likewise.
28936         (*movxf_fpa): Likewise.
28937         (*thumb2_movsf_fpa): Likewise.
28938         (*thumb2_movdf_fpa): Likewise.
28939         (*thumb2_movxf_fpa): Likewise.
28940         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28941         f_loadd and f_stored.
28942         (*thumb2_movdi_vfp): Likewise.
28943         (*thumb2_movsf_vfp): Fix attribute to f_loads.
28944         (*thumb2_movsi_vfp): Likewise.
28945         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28946         Use f_loads instead of f_load.
28947         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28948
28949 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
28950
28951         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28952         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28953         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28954         (xtensa_mode_dependent_address_p): New function.
28955         (constantpool_address_p): Make static. Change return type to bool.
28956         Change argument type to const_rtx. Use CONST_INT_P predicate.
28957
28958 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
28959
28960         PR debug/46583
28961         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28962
28963 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28964
28965         PR debug/47283
28966         * cfgexpand.c (expand_debug_expr): Instead of generating
28967         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28968         etc. handling.
28969
28970 2011-01-20  Richard Guenther  <rguenther@suse.de>
28971
28972         PR middle-end/47370
28973         * tree-inline.c (remap_gimple_op_r): Recurse manually for
28974         the pointer operand of MEM_REFs.
28975
28976 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28977
28978         PR tree-optimization/46130
28979         * ipa-split.c (consider_split): If return_bb contains non-virtual
28980         PHIs other than for retval or if split_function would not adjust it,
28981         refuse to split.
28982
28983 2011-01-20  Richard Guenther  <rguenther@suse.de>
28984
28985         PR tree-optimization/47167
28986         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28987         Revert previous change, only avoid enumeral type changes.
28988
28989 2011-01-19  Mike Stump  <mikestump@comcast.net>
28990
28991         * doc/tm.texi.in (BRANCH_COST): Englishify.
28992         * doc/tm.texi (BRANCH_COST): Likewise.
28993
28994 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
28995
28996         PR c++/47291
28997         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28998         (gen_scheduled_generic_parms_dies): New functions.
28999         (gen_struct_or_union_type_die): Schedule template parameters DIEs
29000         generation for the end of CU compilation.
29001         (dwarf2out_finish): Generate template parameters DIEs here.
29002
29003 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29004
29005         PR debug/46240
29006         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
29007         debug bind stmt on merge edges.
29008
29009 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29010
29011         PR debug/47079
29012         PR debug/46724
29013         * function.c (instantiate_expr): Instantiate incoming rtl of
29014         implicit arguments, and recurse on VALUE_EXPRs.
29015         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
29016         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
29017
29018 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
29019
29020         * c-parser.c (c_parser_for_statement): Initialize
29021         collection_expression.
29022
29023 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29024
29025         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
29026
29027 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29028
29029         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
29030         (LINK_SHLIB_SPEC): Don't use %(link_path).
29031         (SUBTARGET_EXTRA_SPECS): Remove link_path.
29032
29033 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29034
29035         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
29036         (NO_SHARED_LIB_SUPPORT): Remove.
29037         (LINK_SHLIB_SPEC): Remove one conditional definition.
29038
29039 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
29040
29041         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
29042         %{call_shared}.
29043         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
29044         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
29045         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
29046         %{call_shared} and conditionals on these options not being passed.
29047         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
29048         %{call_shared}.
29049
29050 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29051
29052         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
29053         simplify.
29054
29055         * ipa-split.c: Spelling fixes.
29056
29057 2011-01-19  Richard Henderson  <rth@redhat.com>
29058
29059         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
29060         (*mulsi3): Likewise.
29061
29062         * longlong.h [__mn10300__] (count_leading_zeros): New.
29063         [__mn10300__] (umul_ppmm, smul_ppmm): New.
29064         [__mn10300__] (add_ssaaaa, subddmmss): New.
29065         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
29066         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
29067
29068 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29069
29070         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
29071
29072 2011-01-19  Richard Henderson  <rth@redhat.com>
29073
29074         * config/mn10300/mn10300.md (addsi3_flags): New.
29075         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
29076         (subsi3_flags, subc_internal, subdi3): New.
29077         (subdi3_internal, *subdi3_degenerate): New.
29078         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
29079
29080         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
29081         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
29082         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
29083         * config/mn10300/mn10300-protos.h: Update.
29084         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
29085         (return_ret): Likewise.  Rename from return_internal_regs.
29086         (return_internal): Remove.
29087
29088         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
29089         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
29090         (mn10300_legitimate_constant_p): Likewise.
29091         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
29092         (mn10300_frame_size): New.
29093         (mn10300_expand_prologue): Use it.
29094         (mn10300_expand_epilogue): Likewise.
29095         (mn10300_initial_offset): Likewise.
29096         * config/mn10300/mn10300-protos.h: Update.
29097         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
29098         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
29099         (prologue, epilogue, return_internal): Tidy output code.
29100         (mn10300_store_multiple_operation, return): Likewise.
29101         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
29102         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
29103         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
29104         (load_pic, am33_load_pic): New.
29105         (mn10300_load_pic0, mn10300_load_pic1): New.
29106
29107         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
29108         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
29109         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
29110         (cc_flags_for_mode, cc_flags_for_code): New.
29111         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
29112         overflow flag is not valid.  Validate that the flags we need
29113         for the comparison are valid.
29114         (mn10300_output_cmp): Remove.
29115         (mn10300_output_add): New.
29116         (mn10300_select_cc_mode): Use cc_flags_for_code.
29117         (mn10300_split_cbranch): New.
29118         (mn10300_match_ccmode): New.
29119         (mn10300_split_and_operand_count): New.
29120         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
29121         to the function.
29122         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
29123         (addsi3): ... here.  Use mn10300_output_add.
29124         (*addsi3_flags): New.
29125         (*am33_subsi3, *mn10300_subsi3): Merge...
29126         (subsi3): ... here.  Use attribute isa.
29127         (*subsi3_flags): New.
29128         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
29129         when possible.
29130         (*am33_andsi3, *mn10300_andsi3): Merge...
29131         (andsi3): ... here.
29132         (*andsi3_flags): New.
29133         (andsi3 splitters): New.
29134         (*am33_iorsi3, *mn10300_iorsi3): Merge...
29135         (iorsi3): ... here.
29136         (*iorsi3_flags): New.
29137         (*am33_xorsi3, *mn10300_xorsi3): Merge...
29138         (xorsi3): ... here.
29139         (*xorsi3_flags): New.
29140         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
29141         (one_cmplsi2): ... here.
29142         (*one_cmplsi2_flags): New.
29143         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
29144         instead of "dax" in constraints.  Use mn10300_split_cbranch.
29145         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
29146         use matching constraints to eliminate a self-comparison.
29147         (*integer_conditional_branch): Rename from integer_conditional_branch.
29148         Use int_mode_flags to match CC_REG.
29149         (*cbranchsi4_btst, *btstsi): New.
29150         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
29151         mn10300_split_cbranch.
29152         (*am33_cmpsf): Rename from am33_cmpsf.
29153         (*float_conditional_branch): Rename from float_conditional_branch.
29154         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
29155         (zero_extendqisi2): ... here.
29156         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
29157         (zero_extendhisi2): ... here.
29158         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
29159         (extendqisi2): ... here.
29160         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
29161         (extendhisi2): ... here.
29162         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
29163         (ashlsi3): ... here.
29164         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
29165         (lshrsi3): ... here.
29166         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
29167         (ashrsi3): ... here.
29168         (consecutive add peephole): Remove.
29169         * config/mn10300/predicates.md (label_ref_operand): New.
29170         (int_mode_flags): New.
29171         (CCZN_comparison_operator): New.
29172
29173         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
29174         (throughput_42_latency_43): New reservation.
29175         (mulsidi3, umulsidi3): New expanders.
29176         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
29177         the MDR register to allocation; separately allocate the low and
29178         high parts of the DImode result.
29179         (umulsidi3_internal): Similarly.
29180         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
29181         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
29182         (udivsi3, umodsi3): Remove.
29183         (udivmodsi4, divmodsi4): New expanders.
29184         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
29185         (*divmodsi4): Simiarly.
29186         (ext_internal): New.
29187
29188         * config/mn10300/constraints.md ("z"): New constraint.
29189         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
29190         (FIXED_REGISTERS): Don't fix MDR.
29191         (CALL_USED_REGSITERS): Reformat nicely.
29192         (REG_ALLOC_ORDER): Add MDR.
29193         (enum regclass): Add MDR_REGS.
29194         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
29195         (IRA_COVER_CLASSES): Add MDR_REGS.
29196         (REGNO_REG_CLASS): Handle MDR_REG.
29197         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
29198         (mn10300_register_move_cost): Likewise.
29199         * config/mn10300/mn10300.md (MDR_REG): New.
29200         (*movsi_internal): Handle moves to/from MDR_REGS.
29201
29202         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
29203         POST_MODIFY.
29204         (mn10300_secondary_reload): Tidy combination reload classes.
29205         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
29206         addresses for AM33.  Allow symbolic offsets for reg+imm.
29207         (mn10300_regno_in_class_p): New.
29208         (mn10300_legitimize_reload_address): New.
29209         * config/mn10300/mn10300.h (enum reg_class): Remove
29210         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
29211         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
29212         SP_OR_GENERAL_REGS.
29213         (REG_CLASS_NAMES): Update to match.
29214         (REG_CLASS_CONTENTS): Likewise.
29215         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
29216         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
29217         (REGNO_IN_RANGE_P): Remove.
29218         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
29219         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
29220         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
29221         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
29222         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
29223         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
29224         (REGNO_GENERAL_P): New.
29225         (HAVE_POST_MODIFY_DISP): New.
29226         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
29227         (LEGITIMIZE_RELOAD_ADDRESS): New.
29228         * config/mn10300/mn10300-protos.h: Update.
29229
29230         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
29231         DATA_REGS for AM33 stack-pointer destination.
29232         (mn10300_preferred_output_reload_class): Likewise.
29233         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
29234         into a form appropriate for ...
29235         (TARGET_SECONDARY_RELOAD): New.
29236         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
29237         * config/mn10300/mn10300-protos.h: Update.
29238         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
29239         reload_insi; use the "A" constraint for the scratch; handle AM33
29240         moves of sp to non-address registers.
29241
29242         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
29243         (*movqi_internal): ... here.
29244         (*am33_movhi, *mn10300_movhi): Merge into...
29245         (*movhi_internal): ... here.
29246         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
29247         as the source/destination of moves from/to SP.
29248         (movsf): Only allow for AM33-2.
29249         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
29250         any integer constant constraint.  Only allow for AM33-2.  Tidy
29251         all of the alternative outputs.
29252         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
29253         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
29254         for MN103.
29255         (udivsi3, umodsi3): New patterns for MN103 only.
29256
29257 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
29258
29259         * doc/tm.texi.in: Spell out that a lack of register class unions
29260         can lead to ICEs.
29261         * doc/tm.texi: Regenerate.
29262
29263 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
29264
29265         PR rtl-optimization/47337
29266         * dce.c (check_argument_store): New function.
29267         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
29268
29269         PR tree-optimization/47290
29270         * tree-eh.c (infinite_empty_loop_p): New function.
29271         (cleanup_empty_eh): Use it.
29272
29273 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
29274
29275         PR target/46997
29276         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
29277         (a64_expand_widen_sum): Ditto.
29278         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
29279         (vec_extract_evenodd_help): Ditto.
29280         (vec_extract_evenv4hi): Ditto.
29281         (vec_extract_oddv4hi): Ditto.
29282         (vec_extract_evenv2si): Ditto.
29283         (vec_extract_oddv2si): Ditto.
29284         (vec_extract_evenv2sf): Ditto.
29285         (vec_extract_oddv2sf): Ditto.
29286         (vec_pack_trunc_v4hi: Ditto.
29287         (vec_pack_trunc_v2si): Ditto.
29288         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
29289         (vec_interleave_highv8qi): Ditto.
29290         (mix1_r): Ditto.
29291         (vec_extract_oddv8qi): Ditto.
29292         (vec_interleave_lowv4hi): Ditto.
29293         (vec_interleave_highv4hi): Ditto.
29294         (vec_interleave_lowv2si): Ditto.
29295         (vec_interleave_highv2si): Ditto.
29296
29297 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29298
29299         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
29300         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
29301         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
29302         (pa_c_mode_for_suffix): New.
29303         (TARGET_EXPAND_BUILTIN): Define.
29304         (TARGET_C_MODE_FOR_SUFFIX): Define.
29305         (pa_builtins): Define.
29306         (pa_init_builtins): Register __float128 type and init new support
29307         builtins.
29308         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
29309         * config/pa/quadlib.c (_U_Qfcopysign): New.
29310
29311 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
29312
29313         PR middle-end/46894
29314         * explow.c (allocate_dynamic_stack_space): Do not assume more than
29315         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
29316         are defined.
29317
29318 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29319
29320         PR tree-optimization/47179
29321         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
29322         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
29323
29324 2011-01-18  Richard Guenther  <rguenther@suse.de>
29325
29326         PR rtl-optimization/47216
29327         * emit-rtl.c: Include tree-flow.h.
29328         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
29329         of replicating it with different semantics.
29330         * Makefile.in (emit-rtl.o): Adjust.
29331
29332 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29333
29334         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
29335         (cortex_a9_dp): Handle neon types correctly.
29336
29337 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
29338
29339         PR rtl-optimization/47299
29340         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
29341         subtarget.  Use normal multiplication if both operands are constants.
29342         * expmed.c (expand_widening_mult): Don't try to optimize constant
29343         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
29344         before using it.
29345
29346 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29347
29348         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
29349         spacing after 'e.g.', typos, comma, hyphenation.
29350
29351 2011-01-17  Richard Henderson  <rth@redhat.com>
29352
29353         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
29354         (rx_restricted_mem_operand): New.
29355         (rx_shift_operand): Use register_operand.
29356         (rx_source_operand, rx_compare_operand): Likewise.
29357         * config/rx/rx.md (addsi3_flags): New expander.
29358         (adddi3): Rewrite as expander.
29359         (adc_internal, *adc_flags, adddi3_internal): New patterns.
29360         (subsi3_flags): New expander.
29361         (subdi3): Rewrite as expander.
29362         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
29363
29364         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
29365         (rx_init_builtins): Remove sat builtin.
29366         (rx_expand_builtin): Likewise.
29367         * config/rx/rx.md (ssaddsi3): New.
29368         (*sat): Rename from sat.  Represent the CC_REG input.
29369
29370         * config/rx/predicates.md (rshift_operator): New.
29371         * config/rx/rx.c (rx_expand_insv): Remove.
29372         * config/rx/rx-protos.h: Update.
29373         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
29374         operand to the canonical position.
29375         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
29376         (*bitclr, *bitclr_in_memory): Similarly.
29377         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
29378         (insv): Retain the zero_extract in the expansion.
29379
29380         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
29381         (bswaphi2, bitinvert, revw): Likewise.
29382
29383         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
29384         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
29385         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
29386         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
29387         (bitset, bitset_in_memory): Likewise.
29388         (bitinvert, bitinvert_in_memory): Likewise.
29389         (bitclr, bitclr_in_memory): Likewise.
29390         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
29391         (rx_strend, rx_cmpstrn): Likewise.
29392         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
29393         (bitop peep2 patterns): Remove.
29394
29395         * config/rx/rx.c (rx_match_ccmode): New.
29396         * config/rx/rx-protos.h: Update.
29397         * config/rx/rx.md (abssi2): Clobber, don't set flags.
29398         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
29399         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
29400         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
29401         (fix_truncsfsi2, floatsisf2): Likewise.
29402         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
29403         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
29404         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
29405         (*subsi3_flags, *xorsi3_flags): New.
29406
29407         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
29408
29409         * config/rx/rx.c (rx_print_operand): Remove workaround for
29410         unsplit comparison operations.
29411
29412         * config/rx/rx.md (movsicc): Split after reload.
29413         (*movsicc): Merge *movsieq and *movsine via match_operator.
29414         (*stcc): New pattern.
29415
29416         * config/rx/rx.c (rx_float_compare_mode): Remove.
29417         * config/rx/rx.h (rx_float_compare_mode): Remove.
29418         * config/rx/rx.md (cstoresi4): Split after reload.
29419         (*sccc): New pattern.
29420
29421         * config/rx/predicates.md (label_ref_operand): New.
29422         (rx_z_comparison_operator): New.
29423         (rx_zs_comparison_operator): New.
29424         (rx_fp_comparison_operator): New.
29425         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
29426         Validate that the flags are set properly for the comparison.
29427         (rx_gen_cond_branch_template): Remove.
29428         (rx_cc_modes_compatible): Remove.
29429         (mode_from_flags): New.
29430         (flags_from_code): Rename from flags_needed_for_conditional.
29431         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
29432         (rx_select_cc_mode): Likewise.
29433         (rx_split_fp_compare): New.
29434         (rx_split_cbranch): New.
29435         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
29436         (*cbranchsi4): Use match_operator and rx_split_cbranch.
29437         (*cbranchsf4): Similarly.
29438         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
29439         match_operator and rx_split_cbranch.
29440         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
29441         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
29442         (*cmpsi): Rename from cmpsi.
29443         (*tstsi): Rename from tstsi.
29444         (*cmpsf): Rename from cmpsf; use CC_Fmode.
29445         (*conditional_branch): Rename from conditional_branch.
29446         (*reveresed_conditional_branch): Remove.
29447         (b<code>): Remove expander.
29448         * config/rx/rx-protos.h: Update.
29449
29450         * config/rx/rx.c (rx_compare_redundant): Remove.
29451         * config/rx/rx.md (cmpsi): Don't use it.
29452         * config/rx/rx-protos.h: Update.
29453
29454         * config/rx/rx-modes.def (CC_F): New mode.
29455         * config/rx/rx.c (rx_select_cc_mode): New.
29456         * config/rx/rx.h (SELECT_CC_MODE): Use it.
29457         * config/rx/rx-protos.h: Update.
29458
29459 2011-01-17  Richard Henderson  <rth@redhat.com>
29460
29461         * except.c (dump_eh_tree): Fix stray ; after for statement.
29462
29463 2011-01-17  Richard Guenther  <rguenther@suse.de>
29464
29465         PR tree-optimization/47313
29466         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
29467         handling before copying the body.  Properly deal with
29468         by-reference result in SSA form.
29469
29470 2011-01-17  Ian Lance Taylor  <iant@google.com>
29471
29472         PR target/47219
29473         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
29474         (struct_value_alias_set): Don't define.
29475         (sparc_option_override): Don't set sparc_sr_alias_set and
29476         struct_value_alias_set.
29477         (save_or_restore_regs): Use gen_frame_mem rather than calling
29478         set_mem_alias_set.
29479         (sparc_struct_value_rtx): Likewise.
29480
29481 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29482
29483         PR target/47318
29484         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
29485         (_mm_maskstore_pd): Likewise.
29486         (_mm_maskload_ps): Likewise.
29487         (_mm_maskstore_ps): Likewise.
29488         (_mm256_maskload_pd): Change mask to __m256i.
29489         (_mm256_maskstore_pd): Likewise.
29490         (_mm256_maskload_ps): Likewise.
29491         (_mm256_maskstore_ps): Likewise.
29492
29493         * config/i386/i386-builtin-types.def: Updated.
29494         (ix86_expand_special_args_builtin): Likewise.
29495
29496         * config/i386/i386.c (bdesc_special_args): Update
29497         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
29498         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
29499         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
29500         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
29501
29502         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
29503         Use <avxpermvecmode> on mask register.
29504         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
29505
29506 2011-01-17  Olivier Hainque  <hainque@adacore.com>
29507             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29508             Eric Botcazou  <ebotcazou@adacore.com>
29509
29510         PR target/46655
29511         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
29512         if <= USHRT_MAX in 32-bit mode.
29513
29514 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29515
29516         * doc/install.texi (Configuration, Specific): Wrap long
29517         lines in examples.  Allow line wrapping in long options
29518         and URLs where beneficial for PDF output.
29519
29520 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
29521
29522         * config/mips/mips.c (mips_classify_symbol): Don't return
29523         SYMBOL_PC_RELATIVE for nonlocal labels.
29524
29525 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29526
29527         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
29528
29529 2011-01-15  Jan Hubicka  <jh@suse.cz>
29530
29531         PR tree-optimization/47276
29532         * ipa.c (function_and_variable_visibility): Do not try to mark alias
29533         declarations as needed.
29534
29535 2011-01-15  Martin Jambor  <mjambor@suse.cz>
29536
29537         * common.opt (fdevirtualize): New flag.
29538         * doc/invoke.texi (Option Summary): Document it.
29539         * opts.c (default_options_table): Add devirtualize flag.
29540         * ipa-prop.c (detect_type_change): Return immediately if
29541         devirtualize flag is not set.
29542         (detect_type_change_ssa): Likewise.
29543         (compute_known_type_jump_func): Likewise.
29544         (ipa_analyze_virtual_call_uses): Likewise.
29545
29546 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29547
29548         PR tree-optimization/45934
29549         PR tree-optimization/46302
29550         * ipa-prop.c (type_change_info): New type.
29551         (stmt_may_be_vtbl_ptr_store): New function.
29552         (check_stmt_for_type_change): Likewise.
29553         (detect_type_change): Likewise.
29554         (detect_type_change_ssa): Likewise.
29555         (compute_complex_assign_jump_func): Check for dynamic type change.
29556         (compute_complex_ancestor_jump_func): Likewise.
29557         (compute_known_type_jump_func): Likewise.
29558         (compute_scalar_jump_functions): Likewise.
29559         (ipa_analyze_virtual_call_uses): Likewise.
29560         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
29561
29562 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29563
29564         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
29565         * config/i386/i386.opt (msse5): New Alias.
29566
29567 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29568
29569         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29570         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29571         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29572         * config/sparc/sparc.h (CC1_SPEC): Likewise.
29573
29574 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29575
29576         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
29577         -mcpu options.
29578         * config/sparc/linux64.h (CC1_SPEC): Likewise.
29579         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
29580         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
29581         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
29582         Likewise.
29583         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
29584
29585 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29586
29587         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
29588
29589 2011-01-14  Mike Stump  <mikestump@comcast.net>
29590
29591         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
29592         * config/fr30/fr30.md: Likweise
29593         (movsi_push): Likewise.
29594         (movsi_pop): Likewise.
29595         (enter_func): Likewise.
29596         * config/moxie/moxie.md (movsi_push): Likewise.
29597         (movsi_pop): Likewise.
29598
29599 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29600
29601         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
29602         %{no_archive} %{exact_version}.
29603         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
29604         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
29605         %{no_archive} %{exact_version}.
29606         * config/mips/openbsd.h (LINK_SPEC): Likewise.
29607         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
29608         * config/mips/vxworks.h: Likewise.
29609
29610 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29611
29612         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
29613
29614 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29615
29616         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
29617         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
29618
29619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29620
29621         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
29622         -nodefaultlib.
29623
29624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29625
29626         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
29627         for mcpu not cpu.
29628         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
29629         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
29630         not cpu.
29631         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
29632         Don't handle -shlib.
29633
29634 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29635
29636         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
29637         (CC1_SPEC): Don't handle -profile.
29638
29639 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29640
29641         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
29642         * config/mips/mips.h (CC1_SPEC): Likewise.
29643
29644 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29645
29646         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29647         * config/mips/mips.h (CC1_SPEC): Likewise.
29648
29649 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29650
29651         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29652         * config/m32r/linux.h (LINK_SPEC): Likewise.
29653         * config/mips/linux.h (LINK_SPEC): Likewise.
29654         * config/mips/linux64.h (LINK_SPEC): Likewise.
29655         * config/sparc/linux.h (LINK_SPEC): Likewise.
29656         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29657         LINK_SPEC): Likewise.
29658         * config/xtensa/linux.h (LINK_SPEC): Likewise.
29659
29660 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29661
29662         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29663         %{version:-v}.
29664         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29665
29666 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29667
29668         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29669         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29670
29671 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29672
29673         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29674
29675 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29676
29677         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29678         supports -Bstatic/-Bdynamic.
29679         * configure: Regenerate.
29680
29681 2011-01-14  Jan Hubicka  <jh@suse.cz>
29682             Jack Howarth  <howarth@bromo.med.uc.edu>
29683
29684         PR target/46037
29685         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29686         when checking debug_info_level. Test write_symbols instead of
29687         debug_hooks->var_location when setting flag_var_tracking_uninit.
29688
29689 2011-01-14  Richard Guenther  <rguenther@suse.de>
29690
29691         PR tree-optimization/47179
29692         * target.def (ref_may_alias_errno): New target hook.
29693         * targhooks.h (default_ref_may_alias_errno): Declare.
29694         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29695         (default_ref_may_alias_errno): New function.
29696         * target.h (struct ao_ref_s): Declare.
29697         * tree-ssa-alias.c: Include target.h.
29698         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29699         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29700         (targhooks.o): Likewise.
29701         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29702         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29703
29704 2011-01-14  Richard Guenther  <rguenther@suse.de>
29705
29706         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
29707
29708 2011-01-14  Richard Guenther  <rguenther@suse.de>
29709
29710         PR tree-optimization/47280
29711         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29712         return CFG changes.
29713         (tree_ssa_forward_propagate_single_use_vars): Deal with
29714         CFG changes from associate_plusminus.
29715
29716 2011-01-14  Richard Guenther  <rguenther@suse.de>
29717
29718         PR middle-end/47281
29719         Revert
29720         2011-01-11  Richard Guenther  <rguenther@suse.de>
29721
29722         PR tree-optimization/46076
29723         * tree-ssa.c (useless_type_conversion_p): Conversions from
29724         unprototyped to empty argument list function types are useless.
29725
29726 2011-01-14  Richard Guenther  <rguenther@suse.de>
29727
29728         PR tree-optimization/47286
29729         * tree-ssa-structalias.c (new_var_info): Register variables are global.
29730
29731 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29732
29733         PR middle-end/46823
29734         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29735
29736 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
29737
29738         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29739         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29740         * config/xtensa/xtensa.c (xtensa_libcall_value,
29741         xtensa_function_value_regno_p): New functions.
29742         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29743
29744 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
29745
29746         PR c++/47213
29747         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29748         PE specific hook.
29749         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29750         New function prototype.
29751         * config/i386/winnt.c (i386_pe_assemble_visibility):
29752         Warn only if attribute was specified by user.
29753
29754 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
29755
29756         PR target/47251
29757         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29758         floating point.
29759         (floatunsdidf2_fcfidu): Ditto.
29760
29761 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29762
29763         * config/s390/s390.c (print_operand_address): Replace 'error' with
29764         'output_operand_lossage'.
29765         (print_operand): Likewise.
29766
29767 2011-01-13  Jeff Law  <law@redhat.com>
29768
29769         PR rtl-optimization/39077
29770         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29771         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29772         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29773         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29774         * gcse.c (prune_insertions_deletions): New function.
29775         (compute_pre_data): Use it.
29776
29777 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
29778
29779         PR debug/PR46973
29780         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29781         static function.
29782         (prune_unused_types_mark): Use it.
29783
29784 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
29785
29786         PR rtl-optimization/45352
29787         * sel-sched.c: Update copyright years.
29788         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29789         in the advancing loop when we have issued issue_rate insns.
29790
29791 2011-01-12  Richard Henderson  <rth@redhat.com>
29792
29793         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29794         (TARGET_MD_ASM_CLOBBERS): New.
29795
29796         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29797         (TARGET_DELEGITIMIZE_ADDRESS): New.
29798
29799         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29800         (clzsi2, *bsch): New patterns.
29801
29802         * config/mn10300/mn10300.md (INT): New mode iterator.
29803         (*mov<INT>_clr): New pattern, and peep2 to generate it.
29804
29805         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29806         flag_split_wide_types.
29807
29808         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29809         (mn10300_trampoline_init): Rewrite without a template, an immediate
29810         load and a direct branch.
29811         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29812
29813 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
29814
29815         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29816         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29817         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29818         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29819
29820 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
29821
29822         PR debug/47209
29823         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29824         of type.
29825
29826 2011-01-12  Jan Hubicka  <jh@suse.cz>
29827
29828         PR driver/47244
29829         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29830         (PLUGIN_COND_CLOSE): New macro.
29831         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29832
29833 2011-01-12  Richard Guenther  <rguenther@suse.de>
29834
29835         PR lto/47259
29836         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29837         register variables in a MEM_REF.
29838
29839 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
29840
29841         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29842         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29843         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29844         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29845         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29846         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29847         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29848         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29849         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29850         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29851         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29852         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29853         * config/gnu-user.h: New.  Copied from linux.h.
29854         (LINUX_TARGET_STARTFILE_SPEC): Rename to
29855         GNU_USER_TARGET_STARTFILE_SPEC.
29856         (LINUX_TARGET_ENDFILE_SPEC): Rename to
29857         GNU_USER_TARGET_ENDFILE_SPEC.
29858         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29859         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29860         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29861         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29862         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29863         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29864         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29865         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29866         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29867         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29868         * config/arm/linux-eabi.h (CC1_SPEC): Use
29869         GNU_USER_TARGET_CC1_SPEC.
29870         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29871         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29872         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29873         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29874         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29875         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29876         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29877         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29878
29879 2011-01-12  Richard Guenther  <rguenther@suse.de>
29880
29881         PR other/46946
29882         * doc/invoke.texi (ffast-math): Document it is turned on
29883         with -Ofast.
29884
29885 2011-01-12  Jan Hubicka  <jh@suse.cz>
29886
29887         PR tree-optimization/47233
29888         * opts.c (common_handle_option): Disable ipa-reference with profile
29889         feedback.
29890
29891 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29892
29893         * c-parser.c (c_parser_objc_at_property_declaration): Improved
29894         error message.
29895
29896 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29897
29898         * c-parser.c (c_lex_one_token): Updated and reindented some
29899         comments.  No changes in code.
29900
29901 2011-01-11  Ian Lance Taylor  <iant@google.com>
29902
29903         * godump.c (go_output_var): Don't output the variable if there is
29904         already a type with the same name.
29905
29906 2011-01-11  Ian Lance Taylor  <iant@google.com>
29907
29908         * godump.c (go_format_type): Don't generate float80.
29909
29910 2011-01-11  Richard Henderson  <rth@redhat.com>
29911
29912         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29913         declaration.  Rewrite for both speed and size.
29914         (mn10300_address_cost_1): Remove.
29915         (mn10300_register_move_cost): New.
29916         (mn10300_memory_move_cost): New.
29917         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
29918         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
29919         extensions, shifts, BSWAP, CLZ.
29920         (mn10300_wide_const_load_uses_clr): Remove.
29921         (TARGET_REGISTER_MOVE_COST): New.
29922         (TARGET_MEMORY_MOVE_COST): New.
29923         * config/mn10300/mn10300-protos.h: Update.
29924         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29925
29926         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29927         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29928         * config/mn10300/mn10300-protos.h: Update.
29929         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29930         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29931         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29932         (*test_int_bitfield, *test_byte_bitfield): Remove.
29933         (*bit_test, *subreg_bit_test): Remove.
29934         * config/mn10300/predicates.md (const_8bit_operand): Remove.
29935
29936         * config/mn10300/constraints.md ("c"): Rename from "A".
29937         ("A", "D"): New constraint letters.
29938         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29939         (fmssf4, fnmasf4, fnmssf4): Likewise.
29940
29941         * config/mn10300/mn10300.md (isa): New attribute.
29942         (enabled): New attribute.
29943
29944         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29945         (abssf2, negsf2): Define only for hardware fp.
29946         (sqrtsf2): Reformat.
29947         (addsf3, subsf3, mulsf3): Merge expander and insn.
29948
29949         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29950         (DEBUGGER_AUTO_OFFSET): Remove.
29951         (DEBUGGER_ARG_OFFSET): Remove.
29952
29953         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29954         Emit register stores with the same offsets as the hardware.
29955         (mn10300_store_multiple_operation): Don't check that the register
29956         save offsets are monotonic.
29957         * config/mn10300/mn10300-protos.h: Update.
29958
29959         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29960
29961         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29962         in terms of the value on the stack, not the MDR register.
29963
29964 2011-01-11  Jan Hubicka  <jh@suse.cz>
29965
29966         PR lto/45721
29967         PR lto/45375
29968         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29969         (symbol_alias_set_destroy, symbol_alias_set_contains,
29970         propagate_aliases_backward): Declare.
29971         * lto-streamer-out.c (struct sets): New sturcture.
29972         (trivally_defined_alias): New function.
29973         (output_alias_pair_p): Rewrite.
29974         (output_unreferenced_globals): Fix output of alias pairs.
29975         (produce_symtab): Likewise.
29976         * ipa.c (function_and_variable_visibility): Set weak alias destination
29977         as needed in lto.
29978         * varasm.c (symbol_alias_set_t): Remove.
29979         (symbol_alias_set_destroy): Export.
29980         (propagate_aliases_forward, propagate_aliases_backward): New functions
29981         based on ...
29982         (compute_visible_aliases): ... this one; remove.
29983         (trivially_visible_alias): New
29984         (trivially_defined_alias): New.
29985         (remove_unreachable_alias_pairs): Rewrite.
29986         (finish_aliases_1): Reorganize code checking if alias is defined.
29987         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29988         in LTO mode.
29989
29990 2011-01-11  Richard Guenther  <rguenther@suse.de>
29991
29992         PR tree-optimization/46076
29993         * tree-ssa.c (useless_type_conversion_p): Conversions from
29994         unprototyped to empty argument list function types are useless.
29995
29996 2011-01-11  Richard Guenther  <rguenther@suse.de>
29997
29998         PR middle-end/45235
29999         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
30000         volatile MEMs as MEM_READONLY_P.
30001
30002 2011-01-11  Richard Guenther  <rguenther@suse.de>
30003
30004         PR tree-optimization/47239
30005         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
30006
30007 2011-01-11  Jeff Law  <law@redhat.com>
30008
30009         PR tree-optimization/47086
30010         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
30011         IVs from statements that might throw.
30012
30013 2011-01-10  Jan Hubicka  <jh@suse.cz>
30014
30015         PR lto/45375
30016         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
30017
30018 2011-01-10  Jan Hubicka  <jh@suse.cz>
30019
30020         PR lto/45375
30021         * profile.c (read_profile_edge_counts): Ignore profile inconistency
30022         when correcting profile.
30023
30024 2011-01-10  Jan Hubicka  <jh@suse.cz>
30025
30026         PR lto/46083
30027         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
30028         DECL_FINI_PRIORITY.
30029         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
30030         Restore DECL_FINI_PRIORITY.
30031
30032 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30033
30034         * doc/gimple.texi: Fix quoting of multi-word return values in
30035         @deftypefn statements.  Ensure presence of return value.  Wrap
30036         overlong @deftypefn lines.
30037         (is_gimple_operand, is_gimple_min_invariant_address): Remove
30038         descriptions of removed functions.
30039         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
30040         of multi-word return value in @deftypefn statement.
30041
30042 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30043
30044         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
30045         (Conditional Expressions, Logical Operators)
30046         (Statement and operand traversals): Do not indent smallexample
30047         code.  Fix duplicate function argument in example.
30048
30049 2011-01-10  Jeff Law  <law@redhat.com>
30050
30051         PR tree-optimization/47141
30052         * ipa-split.c (split_function): Handle case where we are
30053         returning a value and the return block has a virtual operand phi.
30054
30055 2011-01-10  Jan Hubicka  <jh@suse.cz>
30056
30057         PR tree-optimization/47234
30058         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
30059         (pass_feedback_split_functions): Declare.
30060         * passes.c (init_optimization_passes): Add ipa-split as subpass of
30061         tree-profile.
30062         * ipa-split.c (gate_split_functions): Update comments; disable
30063         split-functions for profile_arc_flag and branch_probabilities.
30064         (gate_feedback_split_functions): New function.
30065         (execute_feedback_split_functions): New function.
30066         (pass_feedback_split_functions): New global var.
30067
30068 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30069
30070         PR lto/46760
30071         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
30072         calling gimple_call_set_cannot_inline.
30073
30074 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
30075
30076         * config/darwin-sections.def: Remove unused section.
30077
30078 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
30079
30080         PR c++/47218
30081         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
30082
30083 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
30084
30085         PR objc/47232
30086         * c-parser.c (c_parser_declaration_or_fndef): Improved
30087         error message.
30088
30089 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
30090
30091         * config/i386/winnt.c (i386_pe_start_function): Make sure
30092         to switch back to function's section.
30093
30094 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
30095
30096         PR gcc/46902
30097         PR testsuite/46912
30098         * plugin.c: Move include of dlfcn.h from here...
30099         * system.h: ... to here.
30100
30101 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30102
30103         * doc/cpp.texi (C++ Named Operators): Fix markup for header
30104         file name.
30105         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
30106         two extra empty pages in PDF output.
30107
30108 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
30109
30110         PR objc/47078
30111         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
30112         for error recovery purposes behave as if it was not specified so
30113         that the default type is usd.
30114
30115 2011-01-07  Jan Hubicka  <jh@suse.cz>
30116
30117         PR tree-optmization/46469
30118         * ipa.c (function_and_variable_visibility): Clear needed flags on
30119         nodes with external decls; handle weakrefs merging correctly.
30120
30121 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
30122
30123         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
30124         not false.
30125
30126 2011-01-07  Jan Hubicka  <jh@suse.cz>
30127
30128         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
30129         and no longer claim that gold is required for linker plugin.
30130         * configure: Regenerate.
30131         * gcc.c (PLUGIN_COND): New macro.
30132         (LINK_COMMAND_SPEC): Use it.
30133         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
30134         * config.in (HAVE_LTO_PLUGIN): New.
30135         * configure.ac (--with-lto-plugin): New parameter; autodetect
30136         HAVE_LTO_PLUGIN.
30137
30138 2011-01-07  Jan Hubicka  <jh@suse.cz>
30139
30140         PR tree-optimization/46367
30141         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
30142         when we can update original.
30143         (cgraph_mark_inline_edge): Sanity check.
30144         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
30145
30146 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30147
30148         * config/spu/spu.h (ASM_COMMENT_START): Define.
30149
30150 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30151
30152         PR driver/42445
30153         * gcc.c (%>S): New.
30154         (SWITCH_KEEP_FOR_GCC): Likewise.
30155         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
30156         (do_spec_1): Handle "%>".
30157
30158         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
30159
30160 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
30161
30162         PR target/47201
30163         * config/i386/i386.c (ix86_delegitimize_address): If
30164         simplify_gen_subreg fails, return orig_x.
30165
30166         PR bootstrap/47187
30167         * value-prof.c (gimple_stringop_fixed_value): Handle
30168         lhs of the call properly.
30169
30170 2011-01-07  Jan Hubicka  <jh@suse.cz>
30171
30172         PR lto/45375
30173         * lto-opt.c (lto_reissue_options): Set flag_shlib.
30174
30175 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30176
30177         * target.def (function_switched_text_sections): New hook.
30178         * doc/tm.texi: Regenerated.
30179         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30180         * final.c (default_function_switched_text_sections): New.
30181         (final_scan_insn): Call function_switched_text_sections when a
30182         mid-function section change occurs.
30183         * output.h (default_function_switched_text_sections): Declare.
30184         * config/darwin-protos.h (darwin_function_switched_text_sections):
30185         Likewise.
30186         * config/darwin.c (darwin_function_switched_text_sections): New.
30187         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
30188
30189 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
30190
30191         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
30192         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
30193         the secondary code fragment when outputting for DWARF == 2.
30194
30195 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
30196
30197         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
30198         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
30199         Remove.
30200         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
30201         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
30202
30203 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
30204
30205         PR debug/46704
30206         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
30207         when it is not empty.
30208
30209 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
30210
30211         Bobcat Enablement
30212         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
30213         (case ${target}): Add btver1.
30214         * config/i386/driver-i386.c (host_detect_local_cpu): Let
30215         -march=native recognize btver1 processors.
30216         * config/i386/i386-c.c (ix86_target_macros_internal): Add
30217         btver1 def_and_undef
30218         * config/i386/i386.c (struct processor_costs btver1_cost): New
30219         btver1 cost table.
30220         (m_BTVER1): New definition.
30221         (m_AMD_MULTIPLE): Includes m_BTVER1.
30222         (initial_ix86_tune_features): Add btver1 tune.
30223         (processor_target_table): Add btver1 entry.
30224         (static const char *const cpu_names): Add btver1 entry.
30225         (software_prefetching_beneficial_p): Add btver1.
30226         (ix86_option_override_internal): Add btver1 instruction sets.
30227         (ix86_issue_rate): Add btver1.
30228         (ix86_adjust_cost): Add btver1.
30229         * config/i386/i386.h (TARGET_BTVER1): New definition.
30230         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
30231         (enum processor_type): Add PROCESSOR_BTVER1.
30232         * config/i386/i386.md (define_attr "cpu"): Add btver1.
30233
30234 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30235
30236         PR target/43309
30237         * config/i386/i386.c (legitimize_tls_address)
30238         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
30239         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
30240         (tls_initial_exec_64_sun): New pattern.
30241
30242 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30243
30244         * doc/invoke.texi (Overall Options): Improve wording and markup
30245         of the description of -wrapper.
30246
30247 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30248
30249         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
30250         rdynamic, threads): New Driver options.
30251
30252 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30253
30254         PR target/38118
30255         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
30256         if coming from .tdata.
30257         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
30258
30259 2011-01-06  Jan Hubicka  <jh@suse.cz>
30260
30261         PR lto/47188
30262         * collect2.c (main): Do not enable LTOmode when plugin is active.
30263
30264 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30265
30266         PR other/45915
30267         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
30268         --version output if supported.
30269         * configure: Regenerate.
30270
30271 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
30272
30273         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
30274         Driver options.
30275
30276 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
30277
30278         PR c/47150
30279         * c-convert.c (convert): When converting a complex expression
30280         other than COMPLEX_EXPR to a different complex type, ensure
30281         c_save_expr is called instead of save_expr, unless in_late_binary_op.
30282         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
30283         when converting COMPLEX_TYPE.
30284
30285 2011-01-06  Ira Rosen  <irar@il.ibm.com>
30286
30287         PR tree-optimization/47139
30288         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
30289         only the last reduction value is used outside the loop.  Update
30290         documentation.
30291
30292 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
30293
30294         * config/rtems.opt: New.
30295         * config.gcc (*-*-rtems*): Use rtems.opt.
30296
30297 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
30298
30299         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
30300         processors do not support 3DNow instructions.
30301
30302 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30303
30304         * config/spu/spu.c (spu_option_override): Set parameter
30305         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
30306
30307 2011-01-05  Jan Hubicka  <jh@suse.cz>
30308
30309         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
30310         at the command line.
30311
30312 2011-01-05  Martin Jambor  <mjambor@suse.cz>
30313
30314         PR lto/47162
30315         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
30316         deltas on streamed outgoing edges.
30317         (output_node_opt_summary): Output info for outgoing edges only when
30318         the node is in new parameter set.
30319         (output_cgraph_opt_summary): New parameter set, passed to the two
30320         aforementioned functions.  Update its forward declaration and its
30321         callee too.
30322
30323 2011-01-05  Tom Tromey  <tromey@redhat.com>
30324
30325         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
30326         operator to c_finish_omp_atomic.
30327         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
30328         (build_unary_op): Update.
30329         (build_modify_expr): Update.
30330         (build_asm_expr): Update.
30331
30332 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30333
30334         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
30335         newly inserted insns.
30336         (pad_bb): Likewise.
30337         (spu_emit_branch_hint): Likewise.
30338         (insert_hbrp_for_ilb_runout): Likewise.
30339         (spu_machine_dependent_reorg): Call df_finish_pass after
30340         schedule_insns returns.
30341
30342 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30343
30344         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
30345
30346 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
30347
30348         PR tree-optimization/47005
30349         * tree-sra.c (struct access): Add 'non_addressable' bit.
30350         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
30351         (decide_one_param_reduction): Return 0 if the parameter is passed by
30352         reference and one of the accesses in the group is non_addressable.
30353
30354 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30355
30356         PR tree-optimization/47056
30357         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
30358         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
30359         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
30360
30361 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
30362
30363         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
30364         initializer.  Skip view conversions from aggregate types.
30365
30366 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
30367
30368         PR bootstrap/47055
30369         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
30370
30371 2011-01-04  Philipp Thomas  <pth@suse.de>
30372
30373         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
30374         obvious typo.
30375
30376 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30377
30378         * function.c (thread_prologue_and_epilogue_insns): Do not crash
30379         on empty epilogue sequences.
30380
30381 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
30382
30383         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
30384         non-static): New Driver options.
30385
30386 2011-01-04  Jie Zhang  <jie@codesourcery.com>
30387
30388         PR driver/47137
30389         * gcc.c (default_compilers[]): Set combinable field to 0
30390         for all assembly languages.
30391
30392 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
30393
30394         * config/mips/loongson3a.md: New file.
30395         * config/mips/mips.md: Include loongson3a.md.
30396         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
30397         TUNE_LOONGSON_3A.
30398
30399 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
30400
30401         PR middle-end/47017
30402         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
30403         instead of convert_memory_address_addr_space on the base expression.
30404
30405 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30406
30407         * config/spu/spu.c (spu_option_override): Update error text
30408         for bad -march= / -mtune= values.
30409
30410 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30411
30412         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
30413         if branch-hint optimization will be performed.
30414
30415 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30416
30417         PR tree-optimization/47148
30418         * ipa-split.c (split_function): Convert arguments to
30419         DECL_ARG_TYPE if possible.
30420
30421         PR tree-optimization/47155
30422         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
30423         when computing uns.
30424
30425         PR rtl-optimization/47157
30426         * combine.c (try_combine): If undobuf.other_insn becomes
30427         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
30428         and set *new_direct_jump_p too.
30429
30430 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
30431
30432         PR tree-optimization/47021
30433         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
30434
30435 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
30436
30437         * gcc.c (process_command): Update copyright notice dates.
30438         * gcov.c (print_version): Likewise.
30439         * gcov-dump.c (print_version): Likewise.
30440         * mips-tfile.c (main): Likewise.
30441         * mips-tdump.c (main): Likewise.
30442
30443 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30444
30445         PR tree-optimization/46801
30446         * tree-sra.c (type_internals_preclude_sra_p): Check whether
30447         aggregate fields start at byte boundary instead of the bit-field flag.
30448
30449 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30450
30451         PR driver/47137
30452         * gcc.c (main): Revert revision 168407.
30453
30454 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30455
30456         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
30457
30458 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30459
30460         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
30461         vector optab to expand vector/scalar shift, update gimple to vector.
30462
30463 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30464
30465         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
30466         a thunk.
30467
30468 2011-01-03  Martin Jambor  <mjambor@suse.cz>
30469
30470         PR tree-optimization/46984
30471         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
30472         HOST_WIDE_INT.
30473         (cgraph_create_indirect_edge): Fixed line length.
30474         (cgraph_indirect_call_info): Declare.
30475         (cgraph_make_edge_direct) Update declaration.
30476         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
30477         (cgraph_create_indirect_edge): Use it.
30478         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
30479         callees.
30480         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
30481         the new thunk_delta representation.
30482         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
30483         HOST_WIDE_INT.
30484         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
30485         (ipa_read_indirect_edge_info): Likewise.
30486         * lto-cgraph.c (output_edge_opt_summary): New function.
30487         (output_node_opt_summary): Call it on all outgoing edges.
30488         (input_edge_opt_summary): New function.
30489         (input_node_opt_summary): Call it on all outgoing edges.
30490
30491 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
30492
30493         PR driver/47137
30494         * gcc.c (main): Don't check have_o when settting combine_inputs.
30495
30496 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
30497
30498         * regrename.c: Add general comment describing the pass.
30499         (struct du_head): Remove 'length' field.
30500         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
30501         (regrename_optimize): Do not sort chains.  Rework comments, add others.
30502         Force renaming to the preferred class (if any) in the first pass and do
30503         not consider registers that belong to it in the second pass.
30504         (create_new_chain): Do not set 'length' field.
30505         (scan_rtx_reg): Likewise.
30506
30507 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
30508
30509         PR tree-optimization/47140
30510         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
30511         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
30512         to bit_value_binop.
30513
30514         PR rtl-optimization/47028
30515         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
30516         parm_birth_insn instead of at the beginning of first bb.
30517
30518 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
30519
30520         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
30521         Remove the word "see" before "@pxref".
30522         * doc/rtl.texi: Remove the word "see" before "@pxref".
30523
30524 2011-01-01  Jan Hubicka  <jh@suse.cz>
30525
30526         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
30527         memory.
30528
30529 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
30530
30531         PR target/38662
30532         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
30533
30534 \f
30535 Copyright (C) 2011 Free Software Foundation, Inc.
30536
30537 Copying and distribution of this file, with or without modification,
30538 are permitted in any medium without royalty provided the copyright
30539 notice and this notice are preserved.